lite5200b.dts 8.7 KB

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