lite5200.dts 7.8 KB

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