keystone.dtsi 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) 2013-2017 Texas Instruments Incorporated - http://www.ti.com/
  4. */
  5. #include <dt-bindings/interrupt-controller/arm-gic.h>
  6. #include <dt-bindings/gpio/gpio.h>
  7. / {
  8. compatible = "ti,keystone";
  9. model = "Texas Instruments Keystone 2 SoC";
  10. #address-cells = <2>;
  11. #size-cells = <2>;
  12. interrupt-parent = <&gic>;
  13. aliases {
  14. serial0 = &uart0;
  15. spi0 = &spi0;
  16. spi1 = &spi1;
  17. spi2 = &spi2;
  18. };
  19. chosen { };
  20. memory: memory@80000000 {
  21. device_type = "memory";
  22. reg = <0x00000000 0x80000000 0x00000000 0x40000000>;
  23. };
  24. gic: interrupt-controller@2561000 {
  25. compatible = "arm,gic-400", "arm,cortex-a15-gic";
  26. #interrupt-cells = <3>;
  27. interrupt-controller;
  28. reg = <0x0 0x02561000 0x0 0x1000>,
  29. <0x0 0x02562000 0x0 0x2000>,
  30. <0x0 0x02564000 0x0 0x2000>,
  31. <0x0 0x02566000 0x0 0x2000>;
  32. interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) |
  33. IRQ_TYPE_LEVEL_HIGH)>;
  34. };
  35. timer {
  36. compatible = "arm,armv7-timer";
  37. interrupts =
  38. <GIC_PPI 13
  39. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  40. <GIC_PPI 14
  41. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  42. <GIC_PPI 11
  43. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
  44. <GIC_PPI 10
  45. (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
  46. };
  47. pmu {
  48. compatible = "arm,cortex-a15-pmu";
  49. interrupts = <GIC_SPI 20 IRQ_TYPE_EDGE_RISING>,
  50. <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>,
  51. <GIC_SPI 22 IRQ_TYPE_EDGE_RISING>,
  52. <GIC_SPI 23 IRQ_TYPE_EDGE_RISING>;
  53. };
  54. psci {
  55. compatible = "arm,psci";
  56. method = "smc";
  57. cpu_suspend = <0x84000001>;
  58. cpu_off = <0x84000002>;
  59. cpu_on = <0x84000003>;
  60. };
  61. soc0: soc@0 {
  62. #address-cells = <1>;
  63. #size-cells = <1>;
  64. compatible = "ti,keystone","simple-bus";
  65. interrupt-parent = <&gic>;
  66. ranges = <0x0 0x0 0x0 0xc0000000>;
  67. dma-ranges = <0x80000000 0x8 0x00000000 0x80000000>;
  68. pllctrl: pll-controller@2310000 {
  69. compatible = "ti,keystone-pllctrl", "syscon";
  70. reg = <0x02310000 0x200>;
  71. };
  72. psc: power-sleep-controller@2350000 {
  73. compatible = "syscon", "simple-mfd";
  74. reg = <0x02350000 0x1000>;
  75. };
  76. devctrl: device-state-control@2620000 {
  77. compatible = "ti,keystone-devctrl", "syscon", "simple-mfd";
  78. reg = <0x02620000 0x1000>;
  79. #address-cells = <1>;
  80. #size-cells = <1>;
  81. ranges = <0x0 0x02620000 0x1000>;
  82. kirq0: keystone_irq@2a0 {
  83. compatible = "ti,keystone-irq";
  84. reg = <0x2a0 0x4>;
  85. interrupts = <GIC_SPI 4 IRQ_TYPE_EDGE_RISING>;
  86. interrupt-controller;
  87. #interrupt-cells = <1>;
  88. ti,syscon-dev = <&devctrl 0x2a0>;
  89. };
  90. rstctrl: reset-controller@328 {
  91. compatible = "ti,keystone-reset";
  92. reg = <0x328 0x10>;
  93. ti,syscon-pll = <&pllctrl 0xe4>;
  94. ti,syscon-dev = <&devctrl 0x328>;
  95. ti,wdt-list = <0>;
  96. };
  97. };
  98. /include/ "keystone-clocks.dtsi"
  99. uart0: serial@2530c00 {
  100. compatible = "ti,da830-uart", "ns16550a";
  101. current-speed = <115200>;
  102. reg-shift = <2>;
  103. reg-io-width = <4>;
  104. reg = <0x02530c00 0x100>;
  105. clocks = <&clkuart0>;
  106. interrupts = <GIC_SPI 277 IRQ_TYPE_EDGE_RISING>;
  107. };
  108. uart1: serial@2531000 {
  109. compatible = "ti,da830-uart", "ns16550a";
  110. current-speed = <115200>;
  111. reg-shift = <2>;
  112. reg-io-width = <4>;
  113. reg = <0x02531000 0x100>;
  114. clocks = <&clkuart1>;
  115. interrupts = <GIC_SPI 280 IRQ_TYPE_EDGE_RISING>;
  116. };
  117. i2c0: i2c@2530000 {
  118. compatible = "ti,davinci-i2c";
  119. reg = <0x02530000 0x400>;
  120. clock-frequency = <100000>;
  121. clocks = <&clki2c>;
  122. interrupts = <GIC_SPI 283 IRQ_TYPE_EDGE_RISING>;
  123. #address-cells = <1>;
  124. #size-cells = <0>;
  125. };
  126. i2c1: i2c@2530400 {
  127. compatible = "ti,davinci-i2c";
  128. reg = <0x02530400 0x400>;
  129. clock-frequency = <100000>;
  130. clocks = <&clki2c>;
  131. interrupts = <GIC_SPI 286 IRQ_TYPE_EDGE_RISING>;
  132. #address-cells = <1>;
  133. #size-cells = <0>;
  134. };
  135. i2c2: i2c@2530800 {
  136. compatible = "ti,davinci-i2c";
  137. reg = <0x02530800 0x400>;
  138. clock-frequency = <100000>;
  139. clocks = <&clki2c>;
  140. interrupts = <GIC_SPI 289 IRQ_TYPE_EDGE_RISING>;
  141. #address-cells = <1>;
  142. #size-cells = <0>;
  143. };
  144. spi0: spi@21000400 {
  145. compatible = "ti,keystone-spi", "ti,dm6441-spi";
  146. reg = <0x21000400 0x200>;
  147. num-cs = <4>;
  148. ti,davinci-spi-intr-line = <0>;
  149. interrupts = <GIC_SPI 292 IRQ_TYPE_EDGE_RISING>;
  150. clocks = <&clkspi>;
  151. #address-cells = <1>;
  152. #size-cells = <0>;
  153. };
  154. spi1: spi@21000600 {
  155. compatible = "ti,keystone-spi", "ti,dm6441-spi";
  156. reg = <0x21000600 0x200>;
  157. num-cs = <4>;
  158. ti,davinci-spi-intr-line = <0>;
  159. interrupts = <GIC_SPI 296 IRQ_TYPE_EDGE_RISING>;
  160. clocks = <&clkspi>;
  161. #address-cells = <1>;
  162. #size-cells = <0>;
  163. };
  164. spi2: spi@21000800 {
  165. compatible = "ti,keystone-spi", "ti,dm6441-spi";
  166. reg = <0x21000800 0x200>;
  167. num-cs = <4>;
  168. ti,davinci-spi-intr-line = <0>;
  169. interrupts = <GIC_SPI 300 IRQ_TYPE_EDGE_RISING>;
  170. clocks = <&clkspi>;
  171. #address-cells = <1>;
  172. #size-cells = <0>;
  173. };
  174. usb_phy: usb_phy@2620738 {
  175. compatible = "ti,keystone-usbphy";
  176. #address-cells = <1>;
  177. #size-cells = <1>;
  178. reg = <0x2620738 24>;
  179. status = "disabled";
  180. };
  181. keystone_usb0: usb@2680000 {
  182. compatible = "ti,keystone-dwc3";
  183. #address-cells = <1>;
  184. #size-cells = <1>;
  185. reg = <0x2680000 0x10000>;
  186. clocks = <&clkusb>;
  187. clock-names = "usb";
  188. interrupts = <GIC_SPI 393 IRQ_TYPE_EDGE_RISING>;
  189. ranges;
  190. dma-coherent;
  191. dma-ranges;
  192. status = "disabled";
  193. usb0: usb@2690000 {
  194. compatible = "snps,dwc3";
  195. reg = <0x2690000 0x70000>;
  196. interrupts = <GIC_SPI 393 IRQ_TYPE_EDGE_RISING>;
  197. usb-phy = <&usb_phy>, <&usb_phy>;
  198. };
  199. };
  200. wdt: wdt@22f0080 {
  201. compatible = "ti,keystone-wdt","ti,davinci-wdt";
  202. reg = <0x022f0080 0x80>;
  203. clocks = <&clkwdtimer0>;
  204. };
  205. clock_event: timer@22f0000 {
  206. compatible = "ti,keystone-timer";
  207. reg = <0x022f0000 0x80>;
  208. interrupts = <GIC_SPI 110 IRQ_TYPE_EDGE_RISING>;
  209. clocks = <&clktimer15>;
  210. };
  211. gpio0: gpio@260bf00 {
  212. compatible = "ti,keystone-gpio";
  213. reg = <0x0260bf00 0x100>;
  214. gpio-controller;
  215. #gpio-cells = <2>;
  216. /* HW Interrupts mapped to GPIO pins */
  217. interrupts = <GIC_SPI 120 IRQ_TYPE_EDGE_RISING>,
  218. <GIC_SPI 121 IRQ_TYPE_EDGE_RISING>,
  219. <GIC_SPI 122 IRQ_TYPE_EDGE_RISING>,
  220. <GIC_SPI 123 IRQ_TYPE_EDGE_RISING>,
  221. <GIC_SPI 124 IRQ_TYPE_EDGE_RISING>,
  222. <GIC_SPI 125 IRQ_TYPE_EDGE_RISING>,
  223. <GIC_SPI 126 IRQ_TYPE_EDGE_RISING>,
  224. <GIC_SPI 127 IRQ_TYPE_EDGE_RISING>,
  225. <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>,
  226. <GIC_SPI 129 IRQ_TYPE_EDGE_RISING>,
  227. <GIC_SPI 130 IRQ_TYPE_EDGE_RISING>,
  228. <GIC_SPI 131 IRQ_TYPE_EDGE_RISING>,
  229. <GIC_SPI 132 IRQ_TYPE_EDGE_RISING>,
  230. <GIC_SPI 133 IRQ_TYPE_EDGE_RISING>,
  231. <GIC_SPI 134 IRQ_TYPE_EDGE_RISING>,
  232. <GIC_SPI 135 IRQ_TYPE_EDGE_RISING>,
  233. <GIC_SPI 136 IRQ_TYPE_EDGE_RISING>,
  234. <GIC_SPI 137 IRQ_TYPE_EDGE_RISING>,
  235. <GIC_SPI 138 IRQ_TYPE_EDGE_RISING>,
  236. <GIC_SPI 139 IRQ_TYPE_EDGE_RISING>,
  237. <GIC_SPI 140 IRQ_TYPE_EDGE_RISING>,
  238. <GIC_SPI 141 IRQ_TYPE_EDGE_RISING>,
  239. <GIC_SPI 142 IRQ_TYPE_EDGE_RISING>,
  240. <GIC_SPI 143 IRQ_TYPE_EDGE_RISING>,
  241. <GIC_SPI 144 IRQ_TYPE_EDGE_RISING>,
  242. <GIC_SPI 145 IRQ_TYPE_EDGE_RISING>,
  243. <GIC_SPI 146 IRQ_TYPE_EDGE_RISING>,
  244. <GIC_SPI 147 IRQ_TYPE_EDGE_RISING>,
  245. <GIC_SPI 148 IRQ_TYPE_EDGE_RISING>,
  246. <GIC_SPI 149 IRQ_TYPE_EDGE_RISING>,
  247. <GIC_SPI 150 IRQ_TYPE_EDGE_RISING>,
  248. <GIC_SPI 151 IRQ_TYPE_EDGE_RISING>;
  249. clocks = <&clkgpio>;
  250. clock-names = "gpio";
  251. ti,ngpio = <32>;
  252. ti,davinci-gpio-unbanked = <32>;
  253. };
  254. aemif: aemif@21000A00 {
  255. compatible = "ti,keystone-aemif", "ti,davinci-aemif";
  256. #address-cells = <2>;
  257. #size-cells = <1>;
  258. clocks = <&clkaemif>;
  259. clock-names = "aemif";
  260. clock-ranges;
  261. reg = <0x21000A00 0x00000100>;
  262. ranges = <0 0 0x30000000 0x10000000
  263. 1 0 0x21000A00 0x00000100>;
  264. };
  265. pcie0: pcie@21800000 {
  266. compatible = "ti,keystone-pcie", "snps,dw-pcie";
  267. clocks = <&clkpcie>;
  268. clock-names = "pcie";
  269. #address-cells = <3>;
  270. #size-cells = <2>;
  271. reg = <0x21801000 0x2000>, <0x21800000 0x1000>, <0x02620128 4>;
  272. ranges = <0x82000000 0 0x50000000 0x50000000
  273. 0 0x10000000>;
  274. status = "disabled";
  275. device_type = "pci";
  276. num-lanes = <2>;
  277. bus-range = <0x00 0xff>;
  278. /* error interrupt */
  279. interrupts = <GIC_SPI 38 IRQ_TYPE_EDGE_RISING>;
  280. #interrupt-cells = <1>;
  281. interrupt-map-mask = <0 0 0 7>;
  282. interrupt-map = <0 0 0 1 &pcie_intc0 0>, /* INT A */
  283. <0 0 0 2 &pcie_intc0 1>, /* INT B */
  284. <0 0 0 3 &pcie_intc0 2>, /* INT C */
  285. <0 0 0 4 &pcie_intc0 3>; /* INT D */
  286. pcie_msi_intc0: msi-interrupt-controller {
  287. interrupt-controller;
  288. #interrupt-cells = <1>;
  289. interrupt-parent = <&gic>;
  290. interrupts = <GIC_SPI 30 IRQ_TYPE_EDGE_RISING>,
  291. <GIC_SPI 31 IRQ_TYPE_EDGE_RISING>,
  292. <GIC_SPI 32 IRQ_TYPE_EDGE_RISING>,
  293. <GIC_SPI 33 IRQ_TYPE_EDGE_RISING>,
  294. <GIC_SPI 34 IRQ_TYPE_EDGE_RISING>,
  295. <GIC_SPI 35 IRQ_TYPE_EDGE_RISING>,
  296. <GIC_SPI 36 IRQ_TYPE_EDGE_RISING>,
  297. <GIC_SPI 37 IRQ_TYPE_EDGE_RISING>;
  298. };
  299. pcie_intc0: legacy-interrupt-controller {
  300. interrupt-controller;
  301. #interrupt-cells = <1>;
  302. interrupt-parent = <&gic>;
  303. interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>,
  304. <GIC_SPI 27 IRQ_TYPE_EDGE_RISING>,
  305. <GIC_SPI 28 IRQ_TYPE_EDGE_RISING>,
  306. <GIC_SPI 29 IRQ_TYPE_EDGE_RISING>;
  307. };
  308. };
  309. emif: emif@21010000 {
  310. compatible = "ti,emif-keystone";
  311. reg = <0x21010000 0x200>;
  312. interrupts = <GIC_SPI 448 IRQ_TYPE_EDGE_RISING>;
  313. interrupt-parent = <&gic>;
  314. };
  315. };
  316. };