lite5200b.dts 8.3 KB

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