integratorap.dts 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree for the ARM Integrator/AP platform
  4. */
  5. /dts-v1/;
  6. #include "integrator.dtsi"
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/input/input.h>
  9. / {
  10. model = "ARM Integrator/AP";
  11. compatible = "arm,integrator-ap";
  12. cpus {
  13. #address-cells = <1>;
  14. #size-cells = <0>;
  15. cpu@0 {
  16. device_type = "cpu";
  17. /*
  18. * Since the board has pluggable CPU modules, we
  19. * cannot define a proper compatible here. Let the
  20. * boot loader fill in the apropriate compatible
  21. * string if necessary.
  22. */
  23. /* compatible = "arm,arm926ej-s"; */
  24. reg = <0>;
  25. /*
  26. * The documentation in ARM DUI 0138E page 3-12 states
  27. * that the maximum frequency for this clock is 200 MHz
  28. * but painful trial-and-error has proved to me that it
  29. * is actually just hanging the system above 71 MHz.
  30. * Sad but true.
  31. */
  32. /* kHz uV */
  33. operating-points = <71000 0
  34. 66000 0
  35. 60000 0
  36. 48000 0
  37. 36000 0
  38. 24000 0
  39. 12000 0>;
  40. clocks = <&cmosc>;
  41. clock-names = "cpu";
  42. clock-latency = <1000000>; /* 1 ms */
  43. };
  44. };
  45. aliases {
  46. arm,timer-primary = &timer2;
  47. arm,timer-secondary = &timer1;
  48. };
  49. chosen {
  50. bootargs = "root=/dev/ram0 console=ttyAM0,38400n8 earlyprintk";
  51. };
  52. /* 24 MHz chrystal on the Integrator/AP development board */
  53. xtal24mhz: xtal24mhz@24M {
  54. #clock-cells = <0>;
  55. compatible = "fixed-clock";
  56. clock-frequency = <24000000>;
  57. };
  58. pclk: pclk@0 {
  59. #clock-cells = <0>;
  60. compatible = "fixed-factor-clock";
  61. clock-div = <1>;
  62. clock-mult = <1>;
  63. clocks = <&xtal24mhz>;
  64. };
  65. /* The UART clock is 14.74 MHz divided by an ICS525 */
  66. uartclk: [email protected] {
  67. #clock-cells = <0>;
  68. compatible = "fixed-clock";
  69. clock-frequency = <14745600>;
  70. clocks = <&xtal24mhz>;
  71. };
  72. core-module@10000000 {
  73. /* 24 MHz chrystal on the core module */
  74. cm24mhz: cm24mhz@24M {
  75. #clock-cells = <0>;
  76. compatible = "fixed-clock";
  77. clock-frequency = <24000000>;
  78. };
  79. /* Oscillator on the core module, clocks the CPU core */
  80. cmosc: clock-controller@8 {
  81. compatible = "arm,syscon-icst525-integratorap-cm";
  82. reg = <0x08 0x04>;
  83. #clock-cells = <0>;
  84. lock-offset = <0x14>;
  85. vco-offset = <0x08>;
  86. clocks = <&cm24mhz>;
  87. };
  88. /* Auxilary oscillator on the core module, 32.369MHz at boot */
  89. auxosc: clock-controller@1c {
  90. compatible = "arm,syscon-icst525";
  91. reg = <0x1c 0x04>;
  92. #clock-cells = <0>;
  93. lock-offset = <0x14>;
  94. vco-offset = <0x1c>;
  95. clocks = <&cm24mhz>;
  96. };
  97. };
  98. syscon {
  99. compatible = "arm,integrator-ap-syscon", "syscon";
  100. reg = <0x11000000 0x100>;
  101. ranges = <0x0 0x11000000 0x100>;
  102. #size-cells = <1>;
  103. #address-cells = <1>;
  104. /*
  105. * SYSCLK clocks PCIv3 bridge, system controller and the
  106. * logic modules.
  107. */
  108. sysclk: clock-controller@4 {
  109. compatible = "arm,syscon-icst525-integratorap-sys";
  110. reg = <0x04 0x04>;
  111. #clock-cells = <0>;
  112. lock-offset = <0x1c>;
  113. vco-offset = <0x04>;
  114. clocks = <&xtal24mhz>;
  115. };
  116. /* One-bit control for the PCI bus clock (33 or 25 MHz) */
  117. pciclk: clock-controller@4,8 {
  118. compatible = "arm,syscon-icst525-integratorap-pci";
  119. reg = <0x04 0x04>;
  120. #clock-cells = <0>;
  121. lock-offset = <0x1c>;
  122. vco-offset = <0x04>;
  123. clocks = <&xtal24mhz>;
  124. };
  125. };
  126. timer0: timer@13000000 {
  127. compatible = "arm,integrator-timer";
  128. clocks = <&xtal24mhz>;
  129. };
  130. timer1: timer@13000100 {
  131. compatible = "arm,integrator-timer";
  132. clocks = <&xtal24mhz>;
  133. };
  134. timer2: timer@13000200 {
  135. compatible = "arm,integrator-timer";
  136. clocks = <&xtal24mhz>;
  137. };
  138. pic: pic@14000000 {
  139. valid-mask = <0x003fffff>;
  140. };
  141. pci: pciv3@62000000 {
  142. compatible = "arm,integrator-ap-pci", "v3,v360epc-pci";
  143. device_type = "pci";
  144. #interrupt-cells = <1>;
  145. #size-cells = <2>;
  146. #address-cells = <3>;
  147. /* Bridge registers and config access space */
  148. reg = <0x62000000 0x10000>, <0x61000000 0x01000000>;
  149. interrupt-parent = <&pic>;
  150. interrupts = <17>; /* Bus error IRQ */
  151. clocks = <&pciclk>;
  152. bus-range = <0x00 0xff>;
  153. ranges = <0x01000000 0 0x0000000 /* I/O space @00000000 */
  154. 0x60000000 0 0x00010000 /* 64 KB @ LB 60000000 */
  155. 0x02000000 0 0x40000000 /* non-prefectable memory @40000000 */
  156. 0x40000000 0 0x10000000 /* 256 MiB @ LB 40000000 1:1 */
  157. 0x42000000 0 0x50000000 /* prefetchable memory @50000000 */
  158. 0x50000000 0 0x10000000>; /* 256 MiB @ LB 50000000 1:1 */
  159. dma-ranges = <0x02000000 0 0x20000000 /* EBI memory space */
  160. 0x20000000 0 0x20000000 /* 512 MB @ LB 20000000 1:1 */
  161. 0x02000000 0 0x80000000 /* Core module alias memory */
  162. 0x80000000 0 0x40000000>; /* 1GB @ LB 80000000 */
  163. interrupt-map-mask = <0xf800 0 0 0x7>;
  164. interrupt-map = <
  165. /* IDSEL 9 */
  166. 0x4800 0 0 1 &pic 13 /* INT A on slot 9 is irq 13 */
  167. 0x4800 0 0 2 &pic 14 /* INT B on slot 9 is irq 14 */
  168. 0x4800 0 0 3 &pic 15 /* INT C on slot 9 is irq 15 */
  169. 0x4800 0 0 4 &pic 16 /* INT D on slot 9 is irq 16 */
  170. /* IDSEL 10 */
  171. 0x5000 0 0 1 &pic 14 /* INT A on slot 10 is irq 14 */
  172. 0x5000 0 0 2 &pic 15 /* INT B on slot 10 is irq 15 */
  173. 0x5000 0 0 3 &pic 16 /* INT C on slot 10 is irq 16 */
  174. 0x5000 0 0 4 &pic 13 /* INT D on slot 10 is irq 13 */
  175. /* IDSEL 11 */
  176. 0x5800 0 0 1 &pic 15 /* INT A on slot 11 is irq 15 */
  177. 0x5800 0 0 2 &pic 16 /* INT B on slot 11 is irq 16 */
  178. 0x5800 0 0 3 &pic 13 /* INT C on slot 11 is irq 13 */
  179. 0x5800 0 0 4 &pic 14 /* INT D on slot 11 is irq 14 */
  180. /* IDSEL 12 */
  181. 0x6000 0 0 1 &pic 16 /* INT A on slot 12 is irq 16 */
  182. 0x6000 0 0 2 &pic 13 /* INT B on slot 12 is irq 13 */
  183. 0x6000 0 0 3 &pic 14 /* INT C on slot 12 is irq 14 */
  184. 0x6000 0 0 4 &pic 15 /* INT D on slot 12 is irq 15 */
  185. >;
  186. };
  187. fpga {
  188. /*
  189. * The Integator/AP predates the idea to have magic numbers
  190. * identifying the PrimeCell in hardware, thus we have to
  191. * supply these from the device tree.
  192. */
  193. rtc: rtc@15000000 {
  194. compatible = "arm,pl030", "arm,primecell";
  195. arm,primecell-periphid = <0x00041030>;
  196. clocks = <&pclk>;
  197. clock-names = "apb_pclk";
  198. };
  199. uart0: uart@16000000 {
  200. compatible = "arm,pl010", "arm,primecell";
  201. arm,primecell-periphid = <0x00041010>;
  202. clocks = <&uartclk>, <&pclk>;
  203. clock-names = "uartclk", "apb_pclk";
  204. };
  205. uart1: uart@17000000 {
  206. compatible = "arm,pl010", "arm,primecell";
  207. arm,primecell-periphid = <0x00041010>;
  208. clocks = <&uartclk>, <&pclk>;
  209. clock-names = "uartclk", "apb_pclk";
  210. };
  211. kmi0: kmi@18000000 {
  212. compatible = "arm,pl050", "arm,primecell";
  213. arm,primecell-periphid = <0x00041050>;
  214. clocks = <&xtal24mhz>, <&pclk>;
  215. clock-names = "KMIREFCLK", "apb_pclk";
  216. };
  217. kmi1: kmi@19000000 {
  218. compatible = "arm,pl050", "arm,primecell";
  219. arm,primecell-periphid = <0x00041050>;
  220. clocks = <&xtal24mhz>, <&pclk>;
  221. clock-names = "KMIREFCLK", "apb_pclk";
  222. };
  223. };
  224. /*
  225. * Logic module bus, we support up to 4 logical modules
  226. * They appear at 0xc0000000, 0xd0000000, 0xe0000000 and 0xf0000000
  227. * and use interrupts 9, 10, 11 and 12 respectively.
  228. */
  229. bus@c0000000 {
  230. compatible = "arm,integrator-ap-lm";
  231. #address-cells = <1>;
  232. #size-cells = <1>;
  233. ranges = <0xc0000000 0xc0000000 0x40000000>;
  234. dma-ranges;
  235. lm0: bus@c0000000 {
  236. compatible = "simple-bus";
  237. ranges = <0x00000000 0xc0000000 0x10000000>;
  238. dma-ranges = <0x00000000 0xc0000000 0x10000000>;
  239. reg = <0xc0000000 0x10000000>;
  240. #address-cells = <1>;
  241. #size-cells = <1>;
  242. };
  243. lm1: bus@d0000000 {
  244. compatible = "simple-bus";
  245. ranges = <0x00000000 0xd0000000 0x10000000>;
  246. dma-ranges = <0x00000000 0xd0000000 0x10000000>;
  247. reg = <0xd0000000 0x10000000>;
  248. #address-cells = <1>;
  249. #size-cells = <1>;
  250. };
  251. lm2: bus@e0000000 {
  252. compatible = "simple-bus";
  253. ranges = <0x00000000 0xe0000000 0x10000000>;
  254. dma-ranges = <0x00000000 0xe0000000 0x10000000>;
  255. reg = <0xe0000000 0x10000000>;
  256. #address-cells = <1>;
  257. #size-cells = <1>;
  258. };
  259. lm3: bus@f0000000 {
  260. compatible = "simple-bus";
  261. ranges = <0x00000000 0xf0000000 0x10000000>;
  262. dma-ranges = <0x00000000 0xf0000000 0x10000000>;
  263. reg = <0xf0000000 0x10000000>;
  264. #address-cells = <1>;
  265. #size-cells = <1>;
  266. };
  267. };
  268. };