lg1313.dtsi 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * dts file for lg1313 SoC
  4. *
  5. * Copyright (C) 2016, LG Electronics
  6. */
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/interrupt-controller/arm-gic.h>
  9. / {
  10. #address-cells = <2>;
  11. #size-cells = <2>;
  12. compatible = "lge,lg1313";
  13. interrupt-parent = <&gic>;
  14. cpus {
  15. #address-cells = <2>;
  16. #size-cells = <0>;
  17. cpu0: cpu@0 {
  18. device_type = "cpu";
  19. compatible = "arm,cortex-a53", "arm,armv8";
  20. reg = <0x0 0x0>;
  21. next-level-cache = <&L2_0>;
  22. };
  23. cpu1: cpu@1 {
  24. device_type = "cpu";
  25. compatible = "arm,cortex-a53", "arm,armv8";
  26. reg = <0x0 0x1>;
  27. enable-method = "psci";
  28. next-level-cache = <&L2_0>;
  29. };
  30. cpu2: cpu@2 {
  31. device_type = "cpu";
  32. compatible = "arm,cortex-a53", "arm,armv8";
  33. reg = <0x0 0x2>;
  34. enable-method = "psci";
  35. next-level-cache = <&L2_0>;
  36. };
  37. cpu3: cpu@3 {
  38. device_type = "cpu";
  39. compatible = "arm,cortex-a53", "arm,armv8";
  40. reg = <0x0 0x3>;
  41. enable-method = "psci";
  42. next-level-cache = <&L2_0>;
  43. };
  44. L2_0: l2-cache0 {
  45. compatible = "cache";
  46. };
  47. };
  48. psci {
  49. compatible = "arm,psci-0.2", "arm,psci";
  50. method = "smc";
  51. cpu_suspend = <0x84000001>;
  52. cpu_off = <0x84000002>;
  53. cpu_on = <0x84000003>;
  54. };
  55. gic: interrupt-controller@c0001000 {
  56. #interrupt-cells = <3>;
  57. compatible = "arm,gic-400";
  58. interrupt-controller;
  59. reg = <0x0 0xc0001000 0x1000>,
  60. <0x0 0xc0002000 0x2000>,
  61. <0x0 0xc0004000 0x2000>,
  62. <0x0 0xc0006000 0x2000>;
  63. };
  64. pmu {
  65. compatible = "arm,cortex-a53-pmu";
  66. interrupts = <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>,
  67. <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>,
  68. <GIC_SPI 151 IRQ_TYPE_LEVEL_HIGH>,
  69. <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
  70. interrupt-affinity = <&cpu0>,
  71. <&cpu1>,
  72. <&cpu2>,
  73. <&cpu3>;
  74. };
  75. timer {
  76. compatible = "arm,armv8-timer";
  77. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_RAW(0x0f) |
  78. IRQ_TYPE_LEVEL_LOW)>,
  79. <GIC_PPI 14 (GIC_CPU_MASK_RAW(0x0f) |
  80. IRQ_TYPE_LEVEL_LOW)>,
  81. <GIC_PPI 11 (GIC_CPU_MASK_RAW(0x0f) |
  82. IRQ_TYPE_LEVEL_LOW)>,
  83. <GIC_PPI 10 (GIC_CPU_MASK_RAW(0x0f) |
  84. IRQ_TYPE_LEVEL_LOW)>;
  85. };
  86. clk_bus: clk_bus {
  87. #clock-cells = <0>;
  88. compatible = "fixed-clock";
  89. clock-frequency = <198000000>;
  90. clock-output-names = "BUSCLK";
  91. };
  92. soc {
  93. #address-cells = <2>;
  94. #size-cells = <1>;
  95. compatible = "simple-bus";
  96. interrupt-parent = <&gic>;
  97. ranges;
  98. eth0: ethernet@c3700000 {
  99. compatible = "cdns,gem";
  100. reg = <0x0 0xc3700000 0x1000>;
  101. interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
  102. clocks = <&clk_bus>, <&clk_bus>;
  103. clock-names = "hclk", "pclk";
  104. phy-mode = "rmii";
  105. /* Filled in by boot */
  106. mac-address = [ 00 00 00 00 00 00 ];
  107. };
  108. };
  109. amba {
  110. #address-cells = <2>;
  111. #size-cells = <1>;
  112. #interrupts-cells = <3>;
  113. compatible = "simple-bus";
  114. interrupt-parent = <&gic>;
  115. ranges;
  116. timers: timer@fd100000 {
  117. compatible = "arm,sp804";
  118. reg = <0x0 0xfd100000 0x1000>;
  119. interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
  120. clocks = <&clk_bus>;
  121. clock-names = "apb_pclk";
  122. };
  123. wdog: watchdog@fd200000 {
  124. compatible = "arm,sp805", "arm,primecell";
  125. reg = <0x0 0xfd200000 0x1000>;
  126. interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
  127. clocks = <&clk_bus>;
  128. clock-names = "apb_pclk";
  129. };
  130. uart0: serial@fe000000 {
  131. compatible = "arm,pl011", "arm,primecell";
  132. reg = <0x0 0xfe000000 0x1000>;
  133. interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
  134. clocks = <&clk_bus>;
  135. clock-names = "apb_pclk";
  136. status="disabled";
  137. };
  138. uart1: serial@fe100000 {
  139. compatible = "arm,pl011", "arm,primecell";
  140. reg = <0x0 0xfe100000 0x1000>;
  141. interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
  142. clocks = <&clk_bus>;
  143. clock-names = "apb_pclk";
  144. status="disabled";
  145. };
  146. uart2: serial@fe200000 {
  147. compatible = "arm,pl011", "arm,primecell";
  148. reg = <0x0 0xfe200000 0x1000>;
  149. interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
  150. clocks = <&clk_bus>;
  151. clock-names = "apb_pclk";
  152. status="disabled";
  153. };
  154. spi0: spi@fe800000 {
  155. compatible = "arm,pl022", "arm,primecell";
  156. reg = <0x0 0xfe800000 0x1000>;
  157. interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
  158. clocks = <&clk_bus>;
  159. clock-names = "apb_pclk";
  160. };
  161. spi1: spi@fe900000 {
  162. compatible = "arm,pl022", "arm,primecell";
  163. reg = <0x0 0xfe900000 0x1000>;
  164. interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
  165. clocks = <&clk_bus>;
  166. clock-names = "apb_pclk";
  167. };
  168. dmac0: dma@c1128000 {
  169. compatible = "arm,pl330", "arm,primecell";
  170. reg = <0x0 0xc1128000 0x1000>;
  171. interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
  172. clocks = <&clk_bus>;
  173. clock-names = "apb_pclk";
  174. };
  175. gpio0: gpio@fd400000 {
  176. #gpio-cells = <2>;
  177. compatible = "arm,pl061", "arm,primecell";
  178. gpio-controller;
  179. reg = <0x0 0xfd400000 0x1000>;
  180. clocks = <&clk_bus>;
  181. clock-names = "apb_pclk";
  182. status="disabled";
  183. };
  184. gpio1: gpio@fd410000 {
  185. #gpio-cells = <2>;
  186. compatible = "arm,pl061", "arm,primecell";
  187. gpio-controller;
  188. reg = <0x0 0xfd410000 0x1000>;
  189. clocks = <&clk_bus>;
  190. clock-names = "apb_pclk";
  191. status="disabled";
  192. };
  193. gpio2: gpio@fd420000 {
  194. #gpio-cells = <2>;
  195. compatible = "arm,pl061", "arm,primecell";
  196. gpio-controller;
  197. reg = <0x0 0xfd420000 0x1000>;
  198. clocks = <&clk_bus>;
  199. clock-names = "apb_pclk";
  200. status="disabled";
  201. };
  202. gpio3: gpio@fd430000 {
  203. #gpio-cells = <2>;
  204. compatible = "arm,pl061", "arm,primecell";
  205. gpio-controller;
  206. reg = <0x0 0xfd430000 0x1000>;
  207. clocks = <&clk_bus>;
  208. clock-names = "apb_pclk";
  209. };
  210. gpio4: gpio@fd440000 {
  211. #gpio-cells = <2>;
  212. compatible = "arm,pl061", "arm,primecell";
  213. gpio-controller;
  214. reg = <0x0 0xfd440000 0x1000>;
  215. clocks = <&clk_bus>;
  216. clock-names = "apb_pclk";
  217. status="disabled";
  218. };
  219. gpio5: gpio@fd450000 {
  220. #gpio-cells = <2>;
  221. compatible = "arm,pl061", "arm,primecell";
  222. gpio-controller;
  223. reg = <0x0 0xfd450000 0x1000>;
  224. clocks = <&clk_bus>;
  225. clock-names = "apb_pclk";
  226. status="disabled";
  227. };
  228. gpio6: gpio@fd460000 {
  229. #gpio-cells = <2>;
  230. compatible = "arm,pl061", "arm,primecell";
  231. gpio-controller;
  232. reg = <0x0 0xfd460000 0x1000>;
  233. clocks = <&clk_bus>;
  234. clock-names = "apb_pclk";
  235. status="disabled";
  236. };
  237. gpio7: gpio@fd470000 {
  238. #gpio-cells = <2>;
  239. compatible = "arm,pl061", "arm,primecell";
  240. gpio-controller;
  241. reg = <0x0 0xfd470000 0x1000>;
  242. clocks = <&clk_bus>;
  243. clock-names = "apb_pclk";
  244. status="disabled";
  245. };
  246. gpio8: gpio@fd480000 {
  247. #gpio-cells = <2>;
  248. compatible = "arm,pl061", "arm,primecell";
  249. gpio-controller;
  250. reg = <0x0 0xfd480000 0x1000>;
  251. clocks = <&clk_bus>;
  252. clock-names = "apb_pclk";
  253. status="disabled";
  254. };
  255. gpio9: gpio@fd490000 {
  256. #gpio-cells = <2>;
  257. compatible = "arm,pl061", "arm,primecell";
  258. gpio-controller;
  259. reg = <0x0 0xfd490000 0x1000>;
  260. clocks = <&clk_bus>;
  261. clock-names = "apb_pclk";
  262. status="disabled";
  263. };
  264. gpio10: gpio@fd4a0000 {
  265. #gpio-cells = <2>;
  266. compatible = "arm,pl061", "arm,primecell";
  267. gpio-controller;
  268. reg = <0x0 0xfd4a0000 0x1000>;
  269. clocks = <&clk_bus>;
  270. clock-names = "apb_pclk";
  271. status="disabled";
  272. };
  273. gpio11: gpio@fd4b0000 {
  274. #gpio-cells = <2>;
  275. compatible = "arm,pl061", "arm,primecell";
  276. gpio-controller;
  277. reg = <0x0 0xfd4b0000 0x1000>;
  278. clocks = <&clk_bus>;
  279. clock-names = "apb_pclk";
  280. };
  281. gpio12: gpio@fd4c0000 {
  282. #gpio-cells = <2>;
  283. compatible = "arm,pl061", "arm,primecell";
  284. gpio-controller;
  285. reg = <0x0 0xfd4c0000 0x1000>;
  286. clocks = <&clk_bus>;
  287. clock-names = "apb_pclk";
  288. status="disabled";
  289. };
  290. gpio13: gpio@fd4d0000 {
  291. #gpio-cells = <2>;
  292. compatible = "arm,pl061", "arm,primecell";
  293. gpio-controller;
  294. reg = <0x0 0xfd4d0000 0x1000>;
  295. clocks = <&clk_bus>;
  296. clock-names = "apb_pclk";
  297. status="disabled";
  298. };
  299. gpio14: gpio@fd4e0000 {
  300. #gpio-cells = <2>;
  301. compatible = "arm,pl061", "arm,primecell";
  302. gpio-controller;
  303. reg = <0x0 0xfd4e0000 0x1000>;
  304. clocks = <&clk_bus>;
  305. clock-names = "apb_pclk";
  306. status="disabled";
  307. };
  308. gpio15: gpio@fd4f0000 {
  309. #gpio-cells = <2>;
  310. compatible = "arm,pl061", "arm,primecell";
  311. gpio-controller;
  312. reg = <0x0 0xfd4f0000 0x1000>;
  313. clocks = <&clk_bus>;
  314. clock-names = "apb_pclk";
  315. status="disabled";
  316. };
  317. gpio16: gpio@fd500000 {
  318. #gpio-cells = <2>;
  319. compatible = "arm,pl061", "arm,primecell";
  320. gpio-controller;
  321. reg = <0x0 0xfd500000 0x1000>;
  322. clocks = <&clk_bus>;
  323. clock-names = "apb_pclk";
  324. status="disabled";
  325. };
  326. gpio17: gpio@fd510000 {
  327. #gpio-cells = <2>;
  328. compatible = "arm,pl061", "arm,primecell";
  329. gpio-controller;
  330. reg = <0x0 0xfd510000 0x1000>;
  331. clocks = <&clk_bus>;
  332. clock-names = "apb_pclk";
  333. };
  334. };
  335. };