lg1313.dtsi 8.4 KB

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