lite5200.dts 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  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. /dts-v1/;
  13. / {
  14. model = "fsl,lite5200";
  15. compatible = "fsl,lite5200";
  16. #address-cells = <1>;
  17. #size-cells = <1>;
  18. interrupt-parent = <&mpc5200_pic>;
  19. cpus {
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. PowerPC,5200@0 {
  23. device_type = "cpu";
  24. reg = <0>;
  25. d-cache-line-size = <32>;
  26. i-cache-line-size = <32>;
  27. d-cache-size = <0x4000>; // L1, 16K
  28. i-cache-size = <0x4000>; // L1, 16K
  29. timebase-frequency = <0>; // from bootloader
  30. bus-frequency = <0>; // from bootloader
  31. clock-frequency = <0>; // from bootloader
  32. };
  33. };
  34. memory {
  35. device_type = "memory";
  36. reg = <0x00000000 0x04000000>; // 64MB
  37. };
  38. soc5200@f0000000 {
  39. #address-cells = <1>;
  40. #size-cells = <1>;
  41. compatible = "fsl,mpc5200-immr";
  42. ranges = <0 0xf0000000 0x0000c000>;
  43. reg = <0xf0000000 0x00000100>;
  44. bus-frequency = <0>; // from bootloader
  45. system-frequency = <0>; // from bootloader
  46. cdm@200 {
  47. compatible = "fsl,mpc5200-cdm";
  48. reg = <0x200 0x38>;
  49. };
  50. mpc5200_pic: interrupt-controller@500 {
  51. // 5200 interrupts are encoded into two levels;
  52. interrupt-controller;
  53. #interrupt-cells = <3>;
  54. compatible = "fsl,mpc5200-pic";
  55. reg = <0x500 0x80>;
  56. };
  57. timer@600 { // General Purpose Timer
  58. compatible = "fsl,mpc5200-gpt";
  59. reg = <0x600 0x10>;
  60. interrupts = <1 9 0>;
  61. fsl,has-wdt;
  62. };
  63. timer@610 { // General Purpose Timer
  64. compatible = "fsl,mpc5200-gpt";
  65. reg = <0x610 0x10>;
  66. interrupts = <1 10 0>;
  67. };
  68. timer@620 { // General Purpose Timer
  69. compatible = "fsl,mpc5200-gpt";
  70. reg = <0x620 0x10>;
  71. interrupts = <1 11 0>;
  72. };
  73. timer@630 { // General Purpose Timer
  74. compatible = "fsl,mpc5200-gpt";
  75. reg = <0x630 0x10>;
  76. interrupts = <1 12 0>;
  77. };
  78. timer@640 { // General Purpose Timer
  79. compatible = "fsl,mpc5200-gpt";
  80. reg = <0x640 0x10>;
  81. interrupts = <1 13 0>;
  82. };
  83. timer@650 { // General Purpose Timer
  84. compatible = "fsl,mpc5200-gpt";
  85. reg = <0x650 0x10>;
  86. interrupts = <1 14 0>;
  87. };
  88. timer@660 { // General Purpose Timer
  89. compatible = "fsl,mpc5200-gpt";
  90. reg = <0x660 0x10>;
  91. interrupts = <1 15 0>;
  92. };
  93. timer@670 { // General Purpose Timer
  94. compatible = "fsl,mpc5200-gpt";
  95. reg = <0x670 0x10>;
  96. interrupts = <1 16 0>;
  97. };
  98. rtc@800 { // Real time clock
  99. compatible = "fsl,mpc5200-rtc";
  100. reg = <0x800 0x100>;
  101. interrupts = <1 5 0 1 6 0>;
  102. };
  103. can@900 {
  104. compatible = "fsl,mpc5200-mscan";
  105. interrupts = <2 17 0>;
  106. reg = <0x900 0x80>;
  107. };
  108. can@980 {
  109. compatible = "fsl,mpc5200-mscan";
  110. interrupts = <2 18 0>;
  111. reg = <0x980 0x80>;
  112. };
  113. gpio@b00 {
  114. compatible = "fsl,mpc5200-gpio";
  115. reg = <0xb00 0x40>;
  116. interrupts = <1 7 0>;
  117. gpio-controller;
  118. #gpio-cells = <2>;
  119. };
  120. gpio@c00 {
  121. compatible = "fsl,mpc5200-gpio-wkup";
  122. reg = <0xc00 0x40>;
  123. interrupts = <1 8 0 0 3 0>;
  124. gpio-controller;
  125. #gpio-cells = <2>;
  126. };
  127. spi@f00 {
  128. compatible = "fsl,mpc5200-spi";
  129. reg = <0xf00 0x20>;
  130. interrupts = <2 13 0 2 14 0>;
  131. };
  132. usb@1000 {
  133. compatible = "fsl,mpc5200-ohci","ohci-be";
  134. reg = <0x1000 0xff>;
  135. interrupts = <2 6 0>;
  136. };
  137. dma-controller@1200 {
  138. compatible = "fsl,mpc5200-bestcomm";
  139. reg = <0x1200 0x80>;
  140. interrupts = <3 0 0 3 1 0 3 2 0 3 3 0
  141. 3 4 0 3 5 0 3 6 0 3 7 0
  142. 3 8 0 3 9 0 3 10 0 3 11 0
  143. 3 12 0 3 13 0 3 14 0 3 15 0>;
  144. };
  145. xlb@1f00 {
  146. compatible = "fsl,mpc5200-xlb";
  147. reg = <0x1f00 0x100>;
  148. };
  149. serial@2000 { // PSC1
  150. compatible = "fsl,mpc5200-psc-uart";
  151. cell-index = <0>;
  152. reg = <0x2000 0x100>;
  153. interrupts = <2 1 0>;
  154. };
  155. // PSC2 in ac97 mode example
  156. //ac97@2200 { // PSC2
  157. // compatible = "fsl,mpc5200-psc-ac97";
  158. // cell-index = <1>;
  159. // reg = <0x2200 0x100>;
  160. // interrupts = <2 2 0>;
  161. //};
  162. // PSC3 in CODEC mode example
  163. //i2s@2400 { // PSC3
  164. // compatible = "fsl,mpc5200-psc-i2s";
  165. // cell-index = <2>;
  166. // reg = <0x2400 0x100>;
  167. // interrupts = <2 3 0>;
  168. //};
  169. // PSC4 in uart mode example
  170. //serial@2600 { // PSC4
  171. // compatible = "fsl,mpc5200-psc-uart";
  172. // cell-index = <3>;
  173. // reg = <0x2600 0x100>;
  174. // interrupts = <2 11 0>;
  175. //};
  176. // PSC5 in uart mode example
  177. //serial@2800 { // PSC5
  178. // compatible = "fsl,mpc5200-psc-uart";
  179. // cell-index = <4>;
  180. // reg = <0x2800 0x100>;
  181. // interrupts = <2 12 0>;
  182. //};
  183. // PSC6 in spi mode example
  184. //spi@2c00 { // PSC6
  185. // compatible = "fsl,mpc5200-psc-spi";
  186. // cell-index = <5>;
  187. // reg = <0x2c00 0x100>;
  188. // interrupts = <2 4 0>;
  189. //};
  190. ethernet@3000 {
  191. compatible = "fsl,mpc5200-fec";
  192. reg = <0x3000 0x400>;
  193. local-mac-address = [ 00 00 00 00 00 00 ];
  194. interrupts = <2 5 0>;
  195. phy-handle = <&phy0>;
  196. };
  197. mdio@3000 {
  198. #address-cells = <1>;
  199. #size-cells = <0>;
  200. compatible = "fsl,mpc5200-mdio";
  201. reg = <0x3000 0x400>; // fec range, since we need to setup fec interrupts
  202. interrupts = <2 5 0>; // these are for "mii command finished", not link changes & co.
  203. phy0: ethernet-phy@0 {
  204. reg = <0>;
  205. };
  206. };
  207. ata@3a00 {
  208. compatible = "fsl,mpc5200-ata";
  209. reg = <0x3a00 0x100>;
  210. interrupts = <2 7 0>;
  211. };
  212. i2c@3d00 {
  213. #address-cells = <1>;
  214. #size-cells = <0>;
  215. compatible = "fsl,mpc5200-i2c","fsl-i2c";
  216. reg = <0x3d00 0x40>;
  217. interrupts = <2 15 0>;
  218. };
  219. i2c@3d40 {
  220. #address-cells = <1>;
  221. #size-cells = <0>;
  222. compatible = "fsl,mpc5200-i2c","fsl-i2c";
  223. reg = <0x3d40 0x40>;
  224. interrupts = <2 16 0>;
  225. eeprom@50 {
  226. compatible = "atmel,24c02";
  227. reg = <0x50>;
  228. };
  229. };
  230. sram@8000 {
  231. compatible = "fsl,mpc5200-sram";
  232. reg = <0x8000 0x4000>;
  233. };
  234. };
  235. pci@f0000d00 {
  236. #interrupt-cells = <1>;
  237. #size-cells = <2>;
  238. #address-cells = <3>;
  239. device_type = "pci";
  240. compatible = "fsl,mpc5200-pci";
  241. reg = <0xf0000d00 0x100>;
  242. interrupt-map-mask = <0xf800 0 0 7>;
  243. interrupt-map = <0xc000 0 0 1 &mpc5200_pic 0 0 3
  244. 0xc000 0 0 2 &mpc5200_pic 0 0 3
  245. 0xc000 0 0 3 &mpc5200_pic 0 0 3
  246. 0xc000 0 0 4 &mpc5200_pic 0 0 3>;
  247. clock-frequency = <0>; // From boot loader
  248. interrupts = <2 8 0 2 9 0 2 10 0>;
  249. bus-range = <0 0>;
  250. ranges = <0x42000000 0 0x80000000 0x80000000 0 0x20000000
  251. 0x02000000 0 0xa0000000 0xa0000000 0 0x10000000
  252. 0x01000000 0 0x00000000 0xb0000000 0 0x01000000>;
  253. };
  254. localbus {
  255. compatible = "fsl,mpc5200-lpb","simple-bus";
  256. #address-cells = <2>;
  257. #size-cells = <1>;
  258. ranges = <0 0 0xff000000 0x01000000>;
  259. flash@0,0 {
  260. compatible = "amd,am29lv652d", "cfi-flash";
  261. reg = <0 0 0x01000000>;
  262. bank-width = <1>;
  263. };
  264. };
  265. };