integratorcp.dts 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Device Tree for the ARM Integrator/CP platform
  4. */
  5. /dts-v1/;
  6. /include/ "integrator.dtsi"
  7. / {
  8. model = "ARM Integrator/CP";
  9. compatible = "arm,integrator-cp";
  10. chosen {
  11. bootargs = "root=/dev/ram0 console=ttyAMA0,38400n8 earlyprintk";
  12. };
  13. cpus {
  14. #address-cells = <1>;
  15. #size-cells = <0>;
  16. cpu@0 {
  17. device_type = "cpu";
  18. /*
  19. * Since the board has pluggable CPU modules, we
  20. * cannot define a proper compatible here. Let the
  21. * boot loader fill in the apropriate compatible
  22. * string if necessary.
  23. */
  24. /* compatible = "arm,arm920t"; */
  25. reg = <0>;
  26. /*
  27. * TBD comment.
  28. */
  29. /* kHz uV */
  30. operating-points = <50000 0
  31. 48000 0>;
  32. clocks = <&cmcore>;
  33. clock-names = "cpu";
  34. clock-latency = <1000000>; /* 1 ms */
  35. };
  36. };
  37. /*
  38. * The Integrator/CP overall clocking architecture can be found in
  39. * ARM DUI 0184B page 7-28 "Integrator/CP922T system clocks" which
  40. * appear to illustrate the layout used in most configurations.
  41. */
  42. /* The codec chrystal operates at 24.576 MHz */
  43. xtal_codec: [email protected] {
  44. #clock-cells = <0>;
  45. compatible = "fixed-clock";
  46. clock-frequency = <24576000>;
  47. };
  48. /* The chrystal is divided by 2 by the codec for the AACI bit clock */
  49. aaci_bitclk: [email protected] {
  50. #clock-cells = <0>;
  51. compatible = "fixed-factor-clock";
  52. clock-div = <2>;
  53. clock-mult = <1>;
  54. clocks = <&xtal_codec>;
  55. };
  56. /* This is a 25MHz chrystal on the base board */
  57. xtal25mhz: xtal25mhz@25M {
  58. #clock-cells = <0>;
  59. compatible = "fixed-clock";
  60. clock-frequency = <25000000>;
  61. };
  62. /* The UART clock is 14.74 MHz divided from 25MHz by an ICS525 */
  63. uartclk: [email protected] {
  64. #clock-cells = <0>;
  65. compatible = "fixed-clock";
  66. clock-frequency = <14745600>;
  67. };
  68. /* Actually sysclk I think */
  69. pclk: pclk@0 {
  70. #clock-cells = <0>;
  71. compatible = "fixed-clock";
  72. clock-frequency = <0>;
  73. };
  74. core-module@10000000 {
  75. /* 24 MHz chrystal on the core module */
  76. cm24mhz: cm24mhz@24M {
  77. #clock-cells = <0>;
  78. compatible = "fixed-clock";
  79. clock-frequency = <24000000>;
  80. };
  81. /* Oscillator on the core module, clocks the CPU core */
  82. cmcore: clock-controller@8 {
  83. compatible = "arm,syscon-icst525-integratorcp-cm-core";
  84. reg = <0x08 0x04>;
  85. #clock-cells = <0>;
  86. lock-offset = <0x14>;
  87. vco-offset = <0x08>;
  88. clocks = <&cm24mhz>;
  89. };
  90. /* Oscillator on the core module, clocks the memory bus */
  91. cmmem: clock-controller@8,12 {
  92. compatible = "arm,syscon-icst525-integratorcp-cm-mem";
  93. reg = <0x08 0x04>;
  94. #clock-cells = <0>;
  95. lock-offset = <0x14>;
  96. vco-offset = <0x08>;
  97. clocks = <&cm24mhz>;
  98. };
  99. /* Auxilary oscillator on the core module, clocks the CLCD */
  100. auxosc: clock-controller@1c {
  101. compatible = "arm,syscon-icst525";
  102. reg = <0x1c 0x04>;
  103. #clock-cells = <0>;
  104. lock-offset = <0x14>;
  105. vco-offset = <0x1c>;
  106. clocks = <&cm24mhz>;
  107. };
  108. /* The KMI clock is the 24 MHz oscillator divided to 8MHz */
  109. kmiclk: kmiclk@1M {
  110. #clock-cells = <0>;
  111. compatible = "fixed-factor-clock";
  112. clock-div = <3>;
  113. clock-mult = <1>;
  114. clocks = <&cm24mhz>;
  115. };
  116. /* The timer clock is the 24 MHz oscillator divided to 1MHz */
  117. timclk: timclk@1M {
  118. #clock-cells = <0>;
  119. compatible = "fixed-factor-clock";
  120. clock-div = <24>;
  121. clock-mult = <1>;
  122. clocks = <&cm24mhz>;
  123. };
  124. };
  125. syscon {
  126. compatible = "arm,integrator-cp-syscon", "syscon";
  127. reg = <0xcb000000 0x100>;
  128. };
  129. timer0: timer@13000000 {
  130. /* TIMER0 runs directly on the 25MHz chrystal */
  131. compatible = "arm,integrator-cp-timer";
  132. clocks = <&xtal25mhz>;
  133. };
  134. timer1: timer@13000100 {
  135. /* TIMER1 runs @ 1MHz */
  136. compatible = "arm,integrator-cp-timer";
  137. clocks = <&timclk>;
  138. };
  139. timer2: timer@13000200 {
  140. /* TIMER2 runs @ 1MHz */
  141. compatible = "arm,integrator-cp-timer";
  142. clocks = <&timclk>;
  143. };
  144. pic: pic@14000000 {
  145. valid-mask = <0x1fc003ff>;
  146. };
  147. cic: cic@10000040 {
  148. compatible = "arm,versatile-fpga-irq";
  149. #interrupt-cells = <1>;
  150. interrupt-controller;
  151. reg = <0x10000040 0x100>;
  152. clear-mask = <0xffffffff>;
  153. valid-mask = <0x00000007>;
  154. };
  155. /* The SIC is cascaded off IRQ 26 on the PIC */
  156. sic: sic@ca000000 {
  157. compatible = "arm,versatile-fpga-irq";
  158. interrupt-parent = <&pic>;
  159. interrupts = <26>;
  160. #interrupt-cells = <1>;
  161. interrupt-controller;
  162. reg = <0xca000000 0x100>;
  163. clear-mask = <0x00000fff>;
  164. valid-mask = <0x00000fff>;
  165. };
  166. ethernet@c8000000 {
  167. compatible = "smsc,lan91c111";
  168. reg = <0xc8000000 0x10>;
  169. interrupt-parent = <&pic>;
  170. interrupts = <27>;
  171. };
  172. bridge {
  173. compatible = "ti,ths8134a", "ti,ths8134";
  174. #address-cells = <1>;
  175. #size-cells = <0>;
  176. ports {
  177. #address-cells = <1>;
  178. #size-cells = <0>;
  179. port@0 {
  180. reg = <0>;
  181. vga_bridge_in: endpoint {
  182. remote-endpoint = <&clcd_pads_vga_dac>;
  183. };
  184. };
  185. port@1 {
  186. reg = <1>;
  187. vga_bridge_out: endpoint {
  188. remote-endpoint = <&vga_con_in>;
  189. };
  190. };
  191. };
  192. };
  193. vga {
  194. compatible = "vga-connector";
  195. port {
  196. vga_con_in: endpoint {
  197. remote-endpoint = <&vga_bridge_out>;
  198. };
  199. };
  200. };
  201. fpga {
  202. /*
  203. * These PrimeCells are at the same location and using
  204. * the same interrupts in all Integrators, but in the CP
  205. * slightly newer versions are deployed.
  206. */
  207. rtc@15000000 {
  208. compatible = "arm,pl031", "arm,primecell";
  209. clocks = <&pclk>;
  210. clock-names = "apb_pclk";
  211. };
  212. uart@16000000 {
  213. compatible = "arm,pl011", "arm,primecell";
  214. clocks = <&uartclk>, <&pclk>;
  215. clock-names = "uartclk", "apb_pclk";
  216. };
  217. uart@17000000 {
  218. compatible = "arm,pl011", "arm,primecell";
  219. clocks = <&uartclk>, <&pclk>;
  220. clock-names = "uartclk", "apb_pclk";
  221. };
  222. kmi@18000000 {
  223. compatible = "arm,pl050", "arm,primecell";
  224. clocks = <&kmiclk>, <&pclk>;
  225. clock-names = "KMIREFCLK", "apb_pclk";
  226. };
  227. kmi@19000000 {
  228. compatible = "arm,pl050", "arm,primecell";
  229. clocks = <&kmiclk>, <&pclk>;
  230. clock-names = "KMIREFCLK", "apb_pclk";
  231. };
  232. /*
  233. * These PrimeCells are only available on the Integrator/CP
  234. */
  235. mmc@1c000000 {
  236. compatible = "arm,pl180", "arm,primecell";
  237. reg = <0x1c000000 0x1000>;
  238. interrupts = <23 24>;
  239. max-frequency = <515633>;
  240. clocks = <&uartclk>, <&pclk>;
  241. clock-names = "mclk", "apb_pclk";
  242. };
  243. aaci@1d000000 {
  244. compatible = "arm,pl041", "arm,primecell";
  245. reg = <0x1d000000 0x1000>;
  246. interrupts = <25>;
  247. clocks = <&pclk>;
  248. clock-names = "apb_pclk";
  249. };
  250. clcd@c0000000 {
  251. compatible = "arm,pl110", "arm,primecell";
  252. reg = <0xC0000000 0x1000>;
  253. interrupts = <22>;
  254. clocks = <&auxosc>, <&pclk>;
  255. clock-names = "clcdclk", "apb_pclk";
  256. /* 640x480 16bpp @ 25.175MHz is 36827428 bytes/s */
  257. max-memory-bandwidth = <40000000>;
  258. /*
  259. * This port is routed through a PLD (Programmable
  260. * Logic Device) that routes the output from the CLCD
  261. * (after transformations) to the VGA DAC and also an
  262. * external panel connector. The PLD is essential for
  263. * supporting RGB565/BGR565.
  264. *
  265. * The signals from the port thus reaches two endpoints.
  266. * The PLD is managed through a few special bits in the
  267. * FPGA "sysreg".
  268. *
  269. * This arrangement can be clearly seen in
  270. * ARM DUI 0225D, page 3-41, figure 3-19.
  271. */
  272. port@0 {
  273. clcd_pads_vga_dac: endpoint {
  274. remote-endpoint = <&vga_bridge_in>;
  275. arm,pl11x,tft-r0g0b0-pads = <0 8 16>;
  276. };
  277. };
  278. };
  279. };
  280. };