lite5200.dts 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  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. 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 = "mpc5200-pic";
  64. reg = <500 80>;
  65. built-in;
  66. };
  67. gpt@600 { // General Purpose Timer
  68. compatible = "mpc5200-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 = "mpc5200-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 = "mpc5200-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 = "mpc5200-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 = "mpc5200-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 = "mpc5200-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 = "mpc5200-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 = "mpc5200-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 = "mpc5200-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 = "mpc5200-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 = "mpc5200-mscan";
  150. cell-index = <1>;
  151. interrupts = <2 12 0>;
  152. interrupt-parent = <500>;
  153. reg = <980 80>;
  154. };
  155. gpio@b00 {
  156. compatible = "mpc5200-gpio";
  157. reg = <b00 40>;
  158. interrupts = <1 7 0>;
  159. interrupt-parent = <500>;
  160. };
  161. gpio-wkup@c00 {
  162. compatible = "mpc5200-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 = "mpc5200-pci";
  173. reg = <d00 100>;
  174. interrupt-map-mask = <f800 0 0 7>;
  175. interrupt-map = <c000 0 0 1 500 0 0 3
  176. c000 0 0 2 500 0 0 3
  177. c000 0 0 3 500 0 0 3
  178. c000 0 0 4 500 0 0 3>;
  179. clock-frequency = <0>; // From boot loader
  180. interrupts = <2 8 0 2 9 0 2 a 0>;
  181. interrupt-parent = <500>;
  182. bus-range = <0 0>;
  183. ranges = <42000000 0 80000000 80000000 0 20000000
  184. 02000000 0 a0000000 a0000000 0 10000000
  185. 01000000 0 00000000 b0000000 0 01000000>;
  186. };
  187. spi@f00 {
  188. device_type = "spi";
  189. compatible = "mpc5200-spi";
  190. reg = <f00 20>;
  191. interrupts = <2 d 0 2 e 0>;
  192. interrupt-parent = <500>;
  193. };
  194. usb@1000 {
  195. device_type = "usb-ohci-be";
  196. compatible = "mpc5200-ohci\0ohci-be";
  197. reg = <1000 ff>;
  198. interrupts = <2 6 0>;
  199. interrupt-parent = <500>;
  200. };
  201. bestcomm@1200 {
  202. device_type = "dma-controller";
  203. compatible = "mpc5200-bestcomm";
  204. reg = <1200 80>;
  205. interrupts = <3 0 0 3 1 0 3 2 0 3 3 0
  206. 3 4 0 3 5 0 3 6 0 3 7 0
  207. 3 8 0 3 9 0 3 a 0 3 b 0
  208. 3 c 0 3 d 0 3 e 0 3 f 0>;
  209. interrupt-parent = <500>;
  210. };
  211. xlb@1f00 {
  212. compatible = "mpc5200-xlb";
  213. reg = <1f00 100>;
  214. };
  215. serial@2000 { // PSC1
  216. device_type = "serial";
  217. compatible = "mpc5200-psc-uart";
  218. port-number = <0>; // Logical port assignment
  219. cell-index = <0>;
  220. reg = <2000 100>;
  221. interrupts = <2 1 0>;
  222. interrupt-parent = <500>;
  223. };
  224. // PSC2 in ac97 mode example
  225. //ac97@2200 { // PSC2
  226. // device_type = "sound";
  227. // compatible = "mpc5200-psc-ac97";
  228. // cell-index = <1>;
  229. // reg = <2200 100>;
  230. // interrupts = <2 2 0>;
  231. // interrupt-parent = <500>;
  232. //};
  233. // PSC3 in CODEC mode example
  234. //i2s@2400 { // PSC3
  235. // device_type = "sound";
  236. // compatible = "mpc5200-psc-i2s";
  237. // cell-index = <2>;
  238. // reg = <2400 100>;
  239. // interrupts = <2 3 0>;
  240. // interrupt-parent = <500>;
  241. //};
  242. // PSC4 in uart mode example
  243. //serial@2600 { // PSC4
  244. // device_type = "serial";
  245. // compatible = "mpc5200-psc-uart";
  246. // cell-index = <3>;
  247. // reg = <2600 100>;
  248. // interrupts = <2 b 0>;
  249. // interrupt-parent = <500>;
  250. //};
  251. // PSC5 in uart mode example
  252. //serial@2800 { // PSC5
  253. // device_type = "serial";
  254. // compatible = "mpc5200-psc-uart";
  255. // cell-index = <4>;
  256. // reg = <2800 100>;
  257. // interrupts = <2 c 0>;
  258. // interrupt-parent = <500>;
  259. //};
  260. // PSC6 in spi mode example
  261. //spi@2c00 { // PSC6
  262. // device_type = "spi";
  263. // compatible = "mpc5200-psc-spi";
  264. // cell-index = <5>;
  265. // reg = <2c00 100>;
  266. // interrupts = <2 4 0>;
  267. // interrupt-parent = <500>;
  268. //};
  269. ethernet@3000 {
  270. device_type = "network";
  271. compatible = "mpc5200-fec";
  272. reg = <3000 800>;
  273. mac-address = [ 02 03 04 05 06 07 ]; // Bad!
  274. interrupts = <2 5 0>;
  275. interrupt-parent = <500>;
  276. };
  277. ata@3a00 {
  278. device_type = "ata";
  279. compatible = "mpc5200-ata";
  280. reg = <3a00 100>;
  281. interrupts = <2 7 0>;
  282. interrupt-parent = <500>;
  283. };
  284. i2c@3d00 {
  285. device_type = "i2c";
  286. compatible = "mpc5200-i2c\0fsl-i2c";
  287. cell-index = <0>;
  288. reg = <3d00 40>;
  289. interrupts = <2 f 0>;
  290. interrupt-parent = <500>;
  291. fsl5200-clocking;
  292. };
  293. i2c@3d40 {
  294. device_type = "i2c";
  295. compatible = "mpc5200-i2c\0fsl-i2c";
  296. cell-index = <1>;
  297. reg = <3d40 40>;
  298. interrupts = <2 10 0>;
  299. interrupt-parent = <500>;
  300. fsl5200-clocking;
  301. };
  302. sram@8000 {
  303. device_type = "sram";
  304. compatible = "mpc5200-sram\0sram";
  305. reg = <8000 4000>;
  306. };
  307. };
  308. };