lite5200.dts 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. /*
  2. * Lite5200 board Device Tree Source
  3. *
  4. * Copyright 2006 Secret Lab Technologies Ltd.
  5. * Grant Likely <grant.likely@secretlab.ca>
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License as published by the
  9. * Free Software Foundation; either version 2 of the License, or (at your
  10. * option) any later version.
  11. */
  12. /*
  13. * WARNING: Do not depend on this tree layout remaining static just yet.
  14. * The MPC5200 device tree conventions are still in flux
  15. * Keep an eye on the linuxppc-dev mailing list for more details
  16. */
  17. / {
  18. model = "Lite5200";
  19. compatible = "lite5200\0lite52xx\0mpc5200\0mpc52xx";
  20. #address-cells = <1>;
  21. #size-cells = <1>;
  22. cpus {
  23. #cpus = <1>;
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. PowerPC,5200@0 {
  27. device_type = "cpu";
  28. reg = <0>;
  29. d-cache-line-size = <20>;
  30. i-cache-line-size = <20>;
  31. d-cache-size = <4000>; // L1, 16K
  32. i-cache-size = <4000>; // L1, 16K
  33. timebase-frequency = <0>; // from bootloader
  34. bus-frequency = <0>; // from bootloader
  35. clock-frequency = <0>; // from bootloader
  36. 32-bit;
  37. };
  38. };
  39. memory {
  40. device_type = "memory";
  41. reg = <00000000 04000000>; // 64MB
  42. };
  43. soc5200@f0000000 {
  44. #interrupt-cells = <3>;
  45. device_type = "soc";
  46. ranges = <0 f0000000 f0010000>;
  47. reg = <f0000000 00010000>;
  48. bus-frequency = <0>; // from bootloader
  49. cdm@200 {
  50. compatible = "mpc5200-cdm\0mpc52xx-cdm";
  51. reg = <200 38>;
  52. };
  53. pic@500 {
  54. // 5200 interrupts are encoded into two levels;
  55. linux,phandle = <500>;
  56. interrupt-controller;
  57. #interrupt-cells = <3>;
  58. device_type = "interrupt-controller";
  59. compatible = "mpc5200-pic\0mpc52xx-pic";
  60. reg = <500 80>;
  61. built-in;
  62. };
  63. gpt@600 { // General Purpose Timer
  64. compatible = "mpc5200-gpt\0mpc52xx-gpt";
  65. device_type = "gpt";
  66. reg = <600 10>;
  67. interrupts = <1 9 0>;
  68. interrupt-parent = <500>;
  69. };
  70. gpt@610 { // General Purpose Timer
  71. compatible = "mpc5200-gpt\0mpc52xx-gpt";
  72. device_type = "gpt";
  73. reg = <610 10>;
  74. interrupts = <1 a 0>;
  75. interrupt-parent = <500>;
  76. };
  77. gpt@620 { // General Purpose Timer
  78. compatible = "mpc5200-gpt\0mpc52xx-gpt";
  79. device_type = "gpt";
  80. reg = <620 10>;
  81. interrupts = <1 b 0>;
  82. interrupt-parent = <500>;
  83. };
  84. gpt@630 { // General Purpose Timer
  85. compatible = "mpc5200-gpt\0mpc52xx-gpt";
  86. device_type = "gpt";
  87. reg = <630 10>;
  88. interrupts = <1 c 0>;
  89. interrupt-parent = <500>;
  90. };
  91. gpt@640 { // General Purpose Timer
  92. compatible = "mpc5200-gpt\0mpc52xx-gpt";
  93. device_type = "gpt";
  94. reg = <640 10>;
  95. interrupts = <1 d 0>;
  96. interrupt-parent = <500>;
  97. };
  98. gpt@650 { // General Purpose Timer
  99. compatible = "mpc5200-gpt\0mpc52xx-gpt";
  100. device_type = "gpt";
  101. reg = <650 10>;
  102. interrupts = <1 e 0>;
  103. interrupt-parent = <500>;
  104. };
  105. gpt@660 { // General Purpose Timer
  106. compatible = "mpc5200-gpt\0mpc52xx-gpt";
  107. device_type = "gpt";
  108. reg = <660 10>;
  109. interrupts = <1 f 0>;
  110. interrupt-parent = <500>;
  111. };
  112. gpt@670 { // General Purpose Timer
  113. compatible = "mpc5200-gpt\0mpc52xx-gpt";
  114. device_type = "gpt";
  115. reg = <670 10>;
  116. interrupts = <1 10 0>;
  117. interrupt-parent = <500>;
  118. };
  119. rtc@800 { // Real time clock
  120. compatible = "mpc5200-rtc\0mpc52xx-rtc";
  121. device_type = "rtc";
  122. reg = <800 100>;
  123. interrupts = <1 5 0 1 6 0>;
  124. interrupt-parent = <500>;
  125. };
  126. mscan@900 {
  127. device_type = "mscan";
  128. compatible = "mpc5200-mscan\0mpc52xx-mscan";
  129. interrupts = <2 11 0>;
  130. interrupt-parent = <500>;
  131. reg = <900 80>;
  132. };
  133. mscan@980 {
  134. device_type = "mscan";
  135. compatible = "mpc5200-mscan\0mpc52xx-mscan";
  136. interrupts = <1 12 0>;
  137. interrupt-parent = <500>;
  138. reg = <980 80>;
  139. };
  140. gpio@b00 {
  141. compatible = "mpc5200-gpio\0mpc52xx-gpio";
  142. reg = <b00 40>;
  143. interrupts = <1 7 0>;
  144. interrupt-parent = <500>;
  145. };
  146. gpio-wkup@b00 {
  147. compatible = "mpc5200-gpio-wkup\0mpc52xx-gpio-wkup";
  148. reg = <c00 40>;
  149. interrupts = <1 8 0 0 3 0>;
  150. interrupt-parent = <500>;
  151. };
  152. pci@0d00 {
  153. #interrupt-cells = <1>;
  154. #size-cells = <2>;
  155. #address-cells = <3>;
  156. device_type = "pci";
  157. compatible = "mpc5200-pci\0mpc52xx-pci";
  158. reg = <d00 100>;
  159. interrupt-map-mask = <f800 0 0 7>;
  160. interrupt-map = <c000 0 0 1 500 0 0 3
  161. c000 0 0 2 500 0 0 3
  162. c000 0 0 3 500 0 0 3
  163. c000 0 0 4 500 0 0 3>;
  164. clock-frequency = <0>; // From boot loader
  165. interrupts = <2 8 0 2 9 0 2 a 0>;
  166. interrupt-parent = <500>;
  167. bus-range = <0 0>;
  168. ranges = <42000000 0 80000000 80000000 0 20000000
  169. 02000000 0 a0000000 a0000000 0 10000000
  170. 01000000 0 00000000 b0000000 0 01000000>;
  171. };
  172. spi@f00 {
  173. device_type = "spi";
  174. compatible = "mpc5200-spi\0mpc52xx-spi";
  175. reg = <f00 20>;
  176. interrupts = <2 d 0 2 e 0>;
  177. interrupt-parent = <500>;
  178. };
  179. usb@1000 {
  180. device_type = "usb-ohci-be";
  181. compatible = "mpc5200-ohci\0mpc52xx-ohci\0ohci-be";
  182. reg = <1000 ff>;
  183. interrupts = <2 6 0>;
  184. interrupt-parent = <500>;
  185. };
  186. bestcomm@1200 {
  187. device_type = "dma-controller";
  188. compatible = "mpc5200-bestcomm\0mpc52xx-bestcomm";
  189. reg = <1200 80>;
  190. interrupts = <3 0 0 3 1 0 3 2 0 3 3 0
  191. 3 4 0 3 5 0 3 6 0 3 7 0
  192. 3 8 0 3 9 0 3 a 0 3 b 0
  193. 3 c 0 3 d 0 3 e 0 3 f 0>;
  194. interrupt-parent = <500>;
  195. };
  196. xlb@1f00 {
  197. compatible = "mpc5200-xlb\0mpc52xx-xlb";
  198. reg = <1f00 100>;
  199. };
  200. serial@2000 { // PSC1
  201. device_type = "serial";
  202. compatible = "mpc5200-psc-uart\0mpc52xx-psc-uart";
  203. port-number = <0>; // Logical port assignment
  204. reg = <2000 100>;
  205. interrupts = <2 1 0>;
  206. interrupt-parent = <500>;
  207. };
  208. // PSC2 in spi mode example
  209. spi@2200 { // PSC2
  210. device_type = "spi";
  211. compatible = "mpc5200-psc-spi\0mpc52xx-psc-spi";
  212. reg = <2200 100>;
  213. interrupts = <2 2 0>;
  214. interrupt-parent = <500>;
  215. };
  216. // PSC3 in CODEC mode example
  217. i2s@2400 { // PSC3
  218. device_type = "sound";
  219. compatible = "mpc5200-psc-i2s\0mpc52xx-psc-i2s";
  220. reg = <2400 100>;
  221. interrupts = <2 3 0>;
  222. interrupt-parent = <500>;
  223. };
  224. // PSC4 unconfigured
  225. //serial@2600 { // PSC4
  226. // device_type = "serial";
  227. // compatible = "mpc5200-psc-uart\0mpc52xx-psc-uart";
  228. // reg = <2600 100>;
  229. // interrupts = <2 b 0>;
  230. // interrupt-parent = <500>;
  231. //};
  232. // PSC5 unconfigured
  233. //serial@2800 { // PSC5
  234. // device_type = "serial";
  235. // compatible = "mpc5200-psc-uart\0mpc52xx-psc-uart";
  236. // reg = <2800 100>;
  237. // interrupts = <2 c 0>;
  238. // interrupt-parent = <500>;
  239. //};
  240. // PSC6 in AC97 mode example
  241. ac97@2c00 { // PSC6
  242. device_type = "sound";
  243. compatible = "mpc5200-psc-ac97\0mpc52xx-psc-ac97";
  244. reg = <2c00 100>;
  245. interrupts = <2 4 0>;
  246. interrupt-parent = <500>;
  247. };
  248. ethernet@3000 {
  249. device_type = "network";
  250. compatible = "mpc5200-fec\0mpc52xx-fec";
  251. reg = <3000 800>;
  252. mac-address = [ 02 03 04 05 06 07 ]; // Bad!
  253. interrupts = <2 5 0>;
  254. interrupt-parent = <500>;
  255. };
  256. ata@3a00 {
  257. device_type = "ata";
  258. compatible = "mpc5200-ata\0mpc52xx-ata";
  259. reg = <3a00 100>;
  260. interrupts = <2 7 0>;
  261. interrupt-parent = <500>;
  262. };
  263. i2c@3d00 {
  264. device_type = "i2c";
  265. compatible = "mpc5200-i2c\0mpc52xx-i2c";
  266. reg = <3d00 40>;
  267. interrupts = <2 f 0>;
  268. interrupt-parent = <500>;
  269. };
  270. i2c@3d40 {
  271. device_type = "i2c";
  272. compatible = "mpc5200-i2c\0mpc52xx-i2c";
  273. reg = <3d40 40>;
  274. interrupts = <2 10 0>;
  275. interrupt-parent = <500>;
  276. };
  277. sram@8000 {
  278. device_type = "sram";
  279. compatible = "mpc5200-sram\0mpc52xx-sram\0sram";
  280. reg = <8000 4000>;
  281. };
  282. };
  283. };