lg1313.dtsi 8.6 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";
  20. reg = <0x0 0x0>;
  21. next-level-cache = <&L2_0>;
  22. };
  23. cpu1: cpu@1 {
  24. device_type = "cpu";
  25. compatible = "arm,cortex-a53";
  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";
  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";
  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. #interrupt-cells = <3>;
  113. compatible = "simple-bus";
  114. interrupt-parent = <&gic>;
  115. ranges;
  116. timers: timer@fd100000 {
  117. compatible = "arm,sp804", "arm,primecell";
  118. reg = <0x0 0xfd100000 0x1000>;
  119. interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
  120. clocks = <&clk_bus>, <&clk_bus>, <&clk_bus>;
  121. clock-names = "timer0clk", "timer1clk", "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>, <&clk_bus>;
  128. clock-names = "wdog_clk", "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-controller@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. #dma-cells = <1>;
  175. };
  176. gpio0: gpio@fd400000 {
  177. #gpio-cells = <2>;
  178. compatible = "arm,pl061", "arm,primecell";
  179. gpio-controller;
  180. reg = <0x0 0xfd400000 0x1000>;
  181. clocks = <&clk_bus>;
  182. clock-names = "apb_pclk";
  183. status = "disabled";
  184. };
  185. gpio1: gpio@fd410000 {
  186. #gpio-cells = <2>;
  187. compatible = "arm,pl061", "arm,primecell";
  188. gpio-controller;
  189. reg = <0x0 0xfd410000 0x1000>;
  190. clocks = <&clk_bus>;
  191. clock-names = "apb_pclk";
  192. status = "disabled";
  193. };
  194. gpio2: gpio@fd420000 {
  195. #gpio-cells = <2>;
  196. compatible = "arm,pl061", "arm,primecell";
  197. gpio-controller;
  198. reg = <0x0 0xfd420000 0x1000>;
  199. clocks = <&clk_bus>;
  200. clock-names = "apb_pclk";
  201. status = "disabled";
  202. };
  203. gpio3: gpio@fd430000 {
  204. #gpio-cells = <2>;
  205. compatible = "arm,pl061", "arm,primecell";
  206. gpio-controller;
  207. reg = <0x0 0xfd430000 0x1000>;
  208. clocks = <&clk_bus>;
  209. clock-names = "apb_pclk";
  210. };
  211. gpio4: gpio@fd440000 {
  212. #gpio-cells = <2>;
  213. compatible = "arm,pl061", "arm,primecell";
  214. gpio-controller;
  215. reg = <0x0 0xfd440000 0x1000>;
  216. clocks = <&clk_bus>;
  217. clock-names = "apb_pclk";
  218. status = "disabled";
  219. };
  220. gpio5: gpio@fd450000 {
  221. #gpio-cells = <2>;
  222. compatible = "arm,pl061", "arm,primecell";
  223. gpio-controller;
  224. reg = <0x0 0xfd450000 0x1000>;
  225. clocks = <&clk_bus>;
  226. clock-names = "apb_pclk";
  227. status = "disabled";
  228. };
  229. gpio6: gpio@fd460000 {
  230. #gpio-cells = <2>;
  231. compatible = "arm,pl061", "arm,primecell";
  232. gpio-controller;
  233. reg = <0x0 0xfd460000 0x1000>;
  234. clocks = <&clk_bus>;
  235. clock-names = "apb_pclk";
  236. status = "disabled";
  237. };
  238. gpio7: gpio@fd470000 {
  239. #gpio-cells = <2>;
  240. compatible = "arm,pl061", "arm,primecell";
  241. gpio-controller;
  242. reg = <0x0 0xfd470000 0x1000>;
  243. clocks = <&clk_bus>;
  244. clock-names = "apb_pclk";
  245. status = "disabled";
  246. };
  247. gpio8: gpio@fd480000 {
  248. #gpio-cells = <2>;
  249. compatible = "arm,pl061", "arm,primecell";
  250. gpio-controller;
  251. reg = <0x0 0xfd480000 0x1000>;
  252. clocks = <&clk_bus>;
  253. clock-names = "apb_pclk";
  254. status = "disabled";
  255. };
  256. gpio9: gpio@fd490000 {
  257. #gpio-cells = <2>;
  258. compatible = "arm,pl061", "arm,primecell";
  259. gpio-controller;
  260. reg = <0x0 0xfd490000 0x1000>;
  261. clocks = <&clk_bus>;
  262. clock-names = "apb_pclk";
  263. status = "disabled";
  264. };
  265. gpio10: gpio@fd4a0000 {
  266. #gpio-cells = <2>;
  267. compatible = "arm,pl061", "arm,primecell";
  268. gpio-controller;
  269. reg = <0x0 0xfd4a0000 0x1000>;
  270. clocks = <&clk_bus>;
  271. clock-names = "apb_pclk";
  272. status = "disabled";
  273. };
  274. gpio11: gpio@fd4b0000 {
  275. #gpio-cells = <2>;
  276. compatible = "arm,pl061", "arm,primecell";
  277. gpio-controller;
  278. reg = <0x0 0xfd4b0000 0x1000>;
  279. clocks = <&clk_bus>;
  280. clock-names = "apb_pclk";
  281. };
  282. gpio12: gpio@fd4c0000 {
  283. #gpio-cells = <2>;
  284. compatible = "arm,pl061", "arm,primecell";
  285. gpio-controller;
  286. reg = <0x0 0xfd4c0000 0x1000>;
  287. clocks = <&clk_bus>;
  288. clock-names = "apb_pclk";
  289. status = "disabled";
  290. };
  291. gpio13: gpio@fd4d0000 {
  292. #gpio-cells = <2>;
  293. compatible = "arm,pl061", "arm,primecell";
  294. gpio-controller;
  295. reg = <0x0 0xfd4d0000 0x1000>;
  296. clocks = <&clk_bus>;
  297. clock-names = "apb_pclk";
  298. status = "disabled";
  299. };
  300. gpio14: gpio@fd4e0000 {
  301. #gpio-cells = <2>;
  302. compatible = "arm,pl061", "arm,primecell";
  303. gpio-controller;
  304. reg = <0x0 0xfd4e0000 0x1000>;
  305. clocks = <&clk_bus>;
  306. clock-names = "apb_pclk";
  307. status = "disabled";
  308. };
  309. gpio15: gpio@fd4f0000 {
  310. #gpio-cells = <2>;
  311. compatible = "arm,pl061", "arm,primecell";
  312. gpio-controller;
  313. reg = <0x0 0xfd4f0000 0x1000>;
  314. clocks = <&clk_bus>;
  315. clock-names = "apb_pclk";
  316. status = "disabled";
  317. };
  318. gpio16: gpio@fd500000 {
  319. #gpio-cells = <2>;
  320. compatible = "arm,pl061", "arm,primecell";
  321. gpio-controller;
  322. reg = <0x0 0xfd500000 0x1000>;
  323. clocks = <&clk_bus>;
  324. clock-names = "apb_pclk";
  325. status = "disabled";
  326. };
  327. gpio17: gpio@fd510000 {
  328. #gpio-cells = <2>;
  329. compatible = "arm,pl061", "arm,primecell";
  330. gpio-controller;
  331. reg = <0x0 0xfd510000 0x1000>;
  332. clocks = <&clk_bus>;
  333. clock-names = "apb_pclk";
  334. };
  335. };
  336. };