lite5200.dts 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  1. /*
  2. * Lite5200 board Device Tree Source
  3. *
  4. * Copyright 2006-2007 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 = "fsl,lite5200";
  19. // revision = "1.0";
  20. compatible = "fsl,lite5200\0generic-mpc5200";
  21. #address-cells = <1>;
  22. #size-cells = <1>;
  23. cpus {
  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. model = "fsl,mpc5200";
  45. compatible = "mpc5200";
  46. revision = ""; // from bootloader
  47. #interrupt-cells = <3>;
  48. device_type = "soc";
  49. ranges = <0 f0000000 f0010000>;
  50. reg = <f0000000 00010000>;
  51. bus-frequency = <0>; // from bootloader
  52. system-frequency = <0>; // from bootloader
  53. cdm@200 {
  54. compatible = "mpc5200-cdm";
  55. reg = <200 38>;
  56. };
  57. mpc5200_pic: pic@500 {
  58. // 5200 interrupts are encoded into two levels;
  59. interrupt-controller;
  60. #interrupt-cells = <3>;
  61. device_type = "interrupt-controller";
  62. compatible = "mpc5200-pic";
  63. reg = <500 80>;
  64. built-in;
  65. };
  66. gpt@600 { // General Purpose Timer
  67. compatible = "mpc5200-gpt";
  68. device_type = "gpt";
  69. cell-index = <0>;
  70. reg = <600 10>;
  71. interrupts = <1 9 0>;
  72. interrupt-parent = <&mpc5200_pic>;
  73. has-wdt;
  74. };
  75. gpt@610 { // General Purpose Timer
  76. compatible = "mpc5200-gpt";
  77. device_type = "gpt";
  78. cell-index = <1>;
  79. reg = <610 10>;
  80. interrupts = <1 a 0>;
  81. interrupt-parent = <&mpc5200_pic>;
  82. };
  83. gpt@620 { // General Purpose Timer
  84. compatible = "mpc5200-gpt";
  85. device_type = "gpt";
  86. cell-index = <2>;
  87. reg = <620 10>;
  88. interrupts = <1 b 0>;
  89. interrupt-parent = <&mpc5200_pic>;
  90. };
  91. gpt@630 { // General Purpose Timer
  92. compatible = "mpc5200-gpt";
  93. device_type = "gpt";
  94. cell-index = <3>;
  95. reg = <630 10>;
  96. interrupts = <1 c 0>;
  97. interrupt-parent = <&mpc5200_pic>;
  98. };
  99. gpt@640 { // General Purpose Timer
  100. compatible = "mpc5200-gpt";
  101. device_type = "gpt";
  102. cell-index = <4>;
  103. reg = <640 10>;
  104. interrupts = <1 d 0>;
  105. interrupt-parent = <&mpc5200_pic>;
  106. };
  107. gpt@650 { // General Purpose Timer
  108. compatible = "mpc5200-gpt";
  109. device_type = "gpt";
  110. cell-index = <5>;
  111. reg = <650 10>;
  112. interrupts = <1 e 0>;
  113. interrupt-parent = <&mpc5200_pic>;
  114. };
  115. gpt@660 { // General Purpose Timer
  116. compatible = "mpc5200-gpt";
  117. device_type = "gpt";
  118. cell-index = <6>;
  119. reg = <660 10>;
  120. interrupts = <1 f 0>;
  121. interrupt-parent = <&mpc5200_pic>;
  122. };
  123. gpt@670 { // General Purpose Timer
  124. compatible = "mpc5200-gpt";
  125. device_type = "gpt";
  126. cell-index = <7>;
  127. reg = <670 10>;
  128. interrupts = <1 10 0>;
  129. interrupt-parent = <&mpc5200_pic>;
  130. };
  131. rtc@800 { // Real time clock
  132. compatible = "mpc5200-rtc";
  133. device_type = "rtc";
  134. reg = <800 100>;
  135. interrupts = <1 5 0 1 6 0>;
  136. interrupt-parent = <&mpc5200_pic>;
  137. };
  138. mscan@900 {
  139. device_type = "mscan";
  140. compatible = "mpc5200-mscan";
  141. cell-index = <0>;
  142. interrupts = <2 11 0>;
  143. interrupt-parent = <&mpc5200_pic>;
  144. reg = <900 80>;
  145. };
  146. mscan@980 {
  147. device_type = "mscan";
  148. compatible = "mpc5200-mscan";
  149. cell-index = <1>;
  150. interrupts = <2 12 0>;
  151. interrupt-parent = <&mpc5200_pic>;
  152. reg = <980 80>;
  153. };
  154. gpio@b00 {
  155. compatible = "mpc5200-gpio";
  156. reg = <b00 40>;
  157. interrupts = <1 7 0>;
  158. interrupt-parent = <&mpc5200_pic>;
  159. };
  160. gpio-wkup@c00 {
  161. compatible = "mpc5200-gpio-wkup";
  162. reg = <c00 40>;
  163. interrupts = <1 8 0 0 3 0>;
  164. interrupt-parent = <&mpc5200_pic>;
  165. };
  166. pci@0d00 {
  167. #interrupt-cells = <1>;
  168. #size-cells = <2>;
  169. #address-cells = <3>;
  170. device_type = "pci";
  171. compatible = "mpc5200-pci";
  172. reg = <d00 100>;
  173. interrupt-map-mask = <f800 0 0 7>;
  174. interrupt-map = <c000 0 0 1 &mpc5200_pic 0 0 3
  175. c000 0 0 2 &mpc5200_pic 0 0 3
  176. c000 0 0 3 &mpc5200_pic 0 0 3
  177. c000 0 0 4 &mpc5200_pic 0 0 3>;
  178. clock-frequency = <0>; // From boot loader
  179. interrupts = <2 8 0 2 9 0 2 a 0>;
  180. interrupt-parent = <&mpc5200_pic>;
  181. bus-range = <0 0>;
  182. ranges = <42000000 0 80000000 80000000 0 20000000
  183. 02000000 0 a0000000 a0000000 0 10000000
  184. 01000000 0 00000000 b0000000 0 01000000>;
  185. };
  186. spi@f00 {
  187. device_type = "spi";
  188. compatible = "mpc5200-spi";
  189. reg = <f00 20>;
  190. interrupts = <2 d 0 2 e 0>;
  191. interrupt-parent = <&mpc5200_pic>;
  192. };
  193. usb@1000 {
  194. device_type = "usb-ohci-be";
  195. compatible = "mpc5200-ohci\0ohci-be";
  196. reg = <1000 ff>;
  197. interrupts = <2 6 0>;
  198. interrupt-parent = <&mpc5200_pic>;
  199. };
  200. bestcomm@1200 {
  201. device_type = "dma-controller";
  202. compatible = "mpc5200-bestcomm";
  203. reg = <1200 80>;
  204. interrupts = <3 0 0 3 1 0 3 2 0 3 3 0
  205. 3 4 0 3 5 0 3 6 0 3 7 0
  206. 3 8 0 3 9 0 3 a 0 3 b 0
  207. 3 c 0 3 d 0 3 e 0 3 f 0>;
  208. interrupt-parent = <&mpc5200_pic>;
  209. };
  210. xlb@1f00 {
  211. compatible = "mpc5200-xlb";
  212. reg = <1f00 100>;
  213. };
  214. serial@2000 { // PSC1
  215. device_type = "serial";
  216. compatible = "mpc5200-psc-uart";
  217. port-number = <0>; // Logical port assignment
  218. cell-index = <0>;
  219. reg = <2000 100>;
  220. interrupts = <2 1 0>;
  221. interrupt-parent = <&mpc5200_pic>;
  222. };
  223. // PSC2 in ac97 mode example
  224. //ac97@2200 { // PSC2
  225. // device_type = "sound";
  226. // compatible = "mpc5200-psc-ac97";
  227. // cell-index = <1>;
  228. // reg = <2200 100>;
  229. // interrupts = <2 2 0>;
  230. // interrupt-parent = <&mpc5200_pic>;
  231. //};
  232. // PSC3 in CODEC mode example
  233. //i2s@2400 { // PSC3
  234. // device_type = "sound";
  235. // compatible = "mpc5200-psc-i2s";
  236. // cell-index = <2>;
  237. // reg = <2400 100>;
  238. // interrupts = <2 3 0>;
  239. // interrupt-parent = <&mpc5200_pic>;
  240. //};
  241. // PSC4 in uart mode example
  242. //serial@2600 { // PSC4
  243. // device_type = "serial";
  244. // compatible = "mpc5200-psc-uart";
  245. // cell-index = <3>;
  246. // reg = <2600 100>;
  247. // interrupts = <2 b 0>;
  248. // interrupt-parent = <&mpc5200_pic>;
  249. //};
  250. // PSC5 in uart mode example
  251. //serial@2800 { // PSC5
  252. // device_type = "serial";
  253. // compatible = "mpc5200-psc-uart";
  254. // cell-index = <4>;
  255. // reg = <2800 100>;
  256. // interrupts = <2 c 0>;
  257. // interrupt-parent = <&mpc5200_pic>;
  258. //};
  259. // PSC6 in spi mode example
  260. //spi@2c00 { // PSC6
  261. // device_type = "spi";
  262. // compatible = "mpc5200-psc-spi";
  263. // cell-index = <5>;
  264. // reg = <2c00 100>;
  265. // interrupts = <2 4 0>;
  266. // interrupt-parent = <&mpc5200_pic>;
  267. //};
  268. ethernet@3000 {
  269. device_type = "network";
  270. compatible = "mpc5200-fec";
  271. reg = <3000 800>;
  272. mac-address = [ 02 03 04 05 06 07 ]; // Bad!
  273. interrupts = <2 5 0>;
  274. interrupt-parent = <&mpc5200_pic>;
  275. };
  276. ata@3a00 {
  277. device_type = "ata";
  278. compatible = "mpc5200-ata";
  279. reg = <3a00 100>;
  280. interrupts = <2 7 0>;
  281. interrupt-parent = <&mpc5200_pic>;
  282. };
  283. i2c@3d00 {
  284. device_type = "i2c";
  285. compatible = "mpc5200-i2c\0fsl-i2c";
  286. cell-index = <0>;
  287. reg = <3d00 40>;
  288. interrupts = <2 f 0>;
  289. interrupt-parent = <&mpc5200_pic>;
  290. fsl5200-clocking;
  291. };
  292. i2c@3d40 {
  293. device_type = "i2c";
  294. compatible = "mpc5200-i2c\0fsl-i2c";
  295. cell-index = <1>;
  296. reg = <3d40 40>;
  297. interrupts = <2 10 0>;
  298. interrupt-parent = <&mpc5200_pic>;
  299. fsl5200-clocking;
  300. };
  301. sram@8000 {
  302. device_type = "sram";
  303. compatible = "mpc5200-sram\0sram";
  304. reg = <8000 4000>;
  305. };
  306. };
  307. };