mpc8540ads.dts 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. /*
  2. * MPC8540 ADS Device Tree Source
  3. *
  4. * Copyright 2006, 2008 Freescale Semiconductor Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation; either version 2 of the License, or (at your
  9. * option) any later version.
  10. */
  11. /dts-v1/;
  12. / {
  13. model = "MPC8540ADS";
  14. compatible = "MPC8540ADS", "MPC85xxADS";
  15. #address-cells = <1>;
  16. #size-cells = <1>;
  17. aliases {
  18. ethernet0 = &enet0;
  19. ethernet1 = &enet1;
  20. ethernet2 = &enet2;
  21. serial0 = &serial0;
  22. serial1 = &serial1;
  23. pci0 = &pci0;
  24. };
  25. cpus {
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. PowerPC,8540@0 {
  29. device_type = "cpu";
  30. reg = <0x0>;
  31. d-cache-line-size = <32>; // 32 bytes
  32. i-cache-line-size = <32>; // 32 bytes
  33. d-cache-size = <0x8000>; // L1, 32K
  34. i-cache-size = <0x8000>; // L1, 32K
  35. timebase-frequency = <0>; // 33 MHz, from uboot
  36. bus-frequency = <0>; // 166 MHz
  37. clock-frequency = <0>; // 825 MHz, from uboot
  38. next-level-cache = <&L2>;
  39. };
  40. };
  41. memory {
  42. device_type = "memory";
  43. reg = <0x0 0x8000000>; // 128M at 0x0
  44. };
  45. soc8540@e0000000 {
  46. #address-cells = <1>;
  47. #size-cells = <1>;
  48. device_type = "soc";
  49. compatible = "simple-bus";
  50. ranges = <0x0 0xe0000000 0x100000>;
  51. reg = <0xe0000000 0x100000>; // CCSRBAR 1M
  52. bus-frequency = <0>;
  53. memory-controller@2000 {
  54. compatible = "fsl,8540-memory-controller";
  55. reg = <0x2000 0x1000>;
  56. interrupt-parent = <&mpic>;
  57. interrupts = <18 2>;
  58. };
  59. L2: l2-cache-controller@20000 {
  60. compatible = "fsl,8540-l2-cache-controller";
  61. reg = <0x20000 0x1000>;
  62. cache-line-size = <32>; // 32 bytes
  63. cache-size = <0x40000>; // L2, 256K
  64. interrupt-parent = <&mpic>;
  65. interrupts = <16 2>;
  66. };
  67. i2c@3000 {
  68. #address-cells = <1>;
  69. #size-cells = <0>;
  70. cell-index = <0>;
  71. compatible = "fsl-i2c";
  72. reg = <0x3000 0x100>;
  73. interrupts = <43 2>;
  74. interrupt-parent = <&mpic>;
  75. dfsrr;
  76. };
  77. dma@21300 {
  78. #address-cells = <1>;
  79. #size-cells = <1>;
  80. compatible = "fsl,mpc8540-dma", "fsl,eloplus-dma";
  81. reg = <0x21300 0x4>;
  82. ranges = <0x0 0x21100 0x200>;
  83. cell-index = <0>;
  84. dma-channel@0 {
  85. compatible = "fsl,mpc8540-dma-channel",
  86. "fsl,eloplus-dma-channel";
  87. reg = <0x0 0x80>;
  88. cell-index = <0>;
  89. interrupt-parent = <&mpic>;
  90. interrupts = <20 2>;
  91. };
  92. dma-channel@80 {
  93. compatible = "fsl,mpc8540-dma-channel",
  94. "fsl,eloplus-dma-channel";
  95. reg = <0x80 0x80>;
  96. cell-index = <1>;
  97. interrupt-parent = <&mpic>;
  98. interrupts = <21 2>;
  99. };
  100. dma-channel@100 {
  101. compatible = "fsl,mpc8540-dma-channel",
  102. "fsl,eloplus-dma-channel";
  103. reg = <0x100 0x80>;
  104. cell-index = <2>;
  105. interrupt-parent = <&mpic>;
  106. interrupts = <22 2>;
  107. };
  108. dma-channel@180 {
  109. compatible = "fsl,mpc8540-dma-channel",
  110. "fsl,eloplus-dma-channel";
  111. reg = <0x180 0x80>;
  112. cell-index = <3>;
  113. interrupt-parent = <&mpic>;
  114. interrupts = <23 2>;
  115. };
  116. };
  117. mdio@24520 {
  118. #address-cells = <1>;
  119. #size-cells = <0>;
  120. compatible = "fsl,gianfar-mdio";
  121. reg = <0x24520 0x20>;
  122. phy0: ethernet-phy@0 {
  123. interrupt-parent = <&mpic>;
  124. interrupts = <5 1>;
  125. reg = <0x0>;
  126. device_type = "ethernet-phy";
  127. };
  128. phy1: ethernet-phy@1 {
  129. interrupt-parent = <&mpic>;
  130. interrupts = <5 1>;
  131. reg = <0x1>;
  132. device_type = "ethernet-phy";
  133. };
  134. phy3: ethernet-phy@3 {
  135. interrupt-parent = <&mpic>;
  136. interrupts = <7 1>;
  137. reg = <0x3>;
  138. device_type = "ethernet-phy";
  139. };
  140. };
  141. enet0: ethernet@24000 {
  142. cell-index = <0>;
  143. device_type = "network";
  144. model = "TSEC";
  145. compatible = "gianfar";
  146. reg = <0x24000 0x1000>;
  147. local-mac-address = [ 00 00 00 00 00 00 ];
  148. interrupts = <29 2 30 2 34 2>;
  149. interrupt-parent = <&mpic>;
  150. phy-handle = <&phy0>;
  151. };
  152. enet1: ethernet@25000 {
  153. cell-index = <1>;
  154. device_type = "network";
  155. model = "TSEC";
  156. compatible = "gianfar";
  157. reg = <0x25000 0x1000>;
  158. local-mac-address = [ 00 00 00 00 00 00 ];
  159. interrupts = <35 2 36 2 40 2>;
  160. interrupt-parent = <&mpic>;
  161. phy-handle = <&phy1>;
  162. };
  163. enet2: ethernet@26000 {
  164. cell-index = <2>;
  165. device_type = "network";
  166. model = "FEC";
  167. compatible = "gianfar";
  168. reg = <0x26000 0x1000>;
  169. local-mac-address = [ 00 00 00 00 00 00 ];
  170. interrupts = <41 2>;
  171. interrupt-parent = <&mpic>;
  172. phy-handle = <&phy3>;
  173. };
  174. serial0: serial@4500 {
  175. cell-index = <0>;
  176. device_type = "serial";
  177. compatible = "ns16550";
  178. reg = <0x4500 0x100>; // reg base, size
  179. clock-frequency = <0>; // should we fill in in uboot?
  180. interrupts = <42 2>;
  181. interrupt-parent = <&mpic>;
  182. };
  183. serial1: serial@4600 {
  184. cell-index = <1>;
  185. device_type = "serial";
  186. compatible = "ns16550";
  187. reg = <0x4600 0x100>; // reg base, size
  188. clock-frequency = <0>; // should we fill in in uboot?
  189. interrupts = <42 2>;
  190. interrupt-parent = <&mpic>;
  191. };
  192. mpic: pic@40000 {
  193. interrupt-controller;
  194. #address-cells = <0>;
  195. #interrupt-cells = <2>;
  196. reg = <0x40000 0x40000>;
  197. compatible = "chrp,open-pic";
  198. device_type = "open-pic";
  199. };
  200. };
  201. pci0: pci@e0008000 {
  202. cell-index = <0>;
  203. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  204. interrupt-map = <
  205. /* IDSEL 0x02 */
  206. 0x1000 0x0 0x0 0x1 &mpic 0x1 0x1
  207. 0x1000 0x0 0x0 0x2 &mpic 0x2 0x1
  208. 0x1000 0x0 0x0 0x3 &mpic 0x3 0x1
  209. 0x1000 0x0 0x0 0x4 &mpic 0x4 0x1
  210. /* IDSEL 0x03 */
  211. 0x1800 0x0 0x0 0x1 &mpic 0x4 0x1
  212. 0x1800 0x0 0x0 0x2 &mpic 0x1 0x1
  213. 0x1800 0x0 0x0 0x3 &mpic 0x2 0x1
  214. 0x1800 0x0 0x0 0x4 &mpic 0x3 0x1
  215. /* IDSEL 0x04 */
  216. 0x2000 0x0 0x0 0x1 &mpic 0x3 0x1
  217. 0x2000 0x0 0x0 0x2 &mpic 0x4 0x1
  218. 0x2000 0x0 0x0 0x3 &mpic 0x1 0x1
  219. 0x2000 0x0 0x0 0x4 &mpic 0x2 0x1
  220. /* IDSEL 0x05 */
  221. 0x2800 0x0 0x0 0x1 &mpic 0x2 0x1
  222. 0x2800 0x0 0x0 0x2 &mpic 0x3 0x1
  223. 0x2800 0x0 0x0 0x3 &mpic 0x4 0x1
  224. 0x2800 0x0 0x0 0x4 &mpic 0x1 0x1
  225. /* IDSEL 0x0c */
  226. 0x6000 0x0 0x0 0x1 &mpic 0x1 0x1
  227. 0x6000 0x0 0x0 0x2 &mpic 0x2 0x1
  228. 0x6000 0x0 0x0 0x3 &mpic 0x3 0x1
  229. 0x6000 0x0 0x0 0x4 &mpic 0x4 0x1
  230. /* IDSEL 0x0d */
  231. 0x6800 0x0 0x0 0x1 &mpic 0x4 0x1
  232. 0x6800 0x0 0x0 0x2 &mpic 0x1 0x1
  233. 0x6800 0x0 0x0 0x3 &mpic 0x2 0x1
  234. 0x6800 0x0 0x0 0x4 &mpic 0x3 0x1
  235. /* IDSEL 0x0e */
  236. 0x7000 0x0 0x0 0x1 &mpic 0x3 0x1
  237. 0x7000 0x0 0x0 0x2 &mpic 0x4 0x1
  238. 0x7000 0x0 0x0 0x3 &mpic 0x1 0x1
  239. 0x7000 0x0 0x0 0x4 &mpic 0x2 0x1
  240. /* IDSEL 0x0f */
  241. 0x7800 0x0 0x0 0x1 &mpic 0x2 0x1
  242. 0x7800 0x0 0x0 0x2 &mpic 0x3 0x1
  243. 0x7800 0x0 0x0 0x3 &mpic 0x4 0x1
  244. 0x7800 0x0 0x0 0x4 &mpic 0x1 0x1
  245. /* IDSEL 0x12 */
  246. 0x9000 0x0 0x0 0x1 &mpic 0x1 0x1
  247. 0x9000 0x0 0x0 0x2 &mpic 0x2 0x1
  248. 0x9000 0x0 0x0 0x3 &mpic 0x3 0x1
  249. 0x9000 0x0 0x0 0x4 &mpic 0x4 0x1
  250. /* IDSEL 0x13 */
  251. 0x9800 0x0 0x0 0x1 &mpic 0x4 0x1
  252. 0x9800 0x0 0x0 0x2 &mpic 0x1 0x1
  253. 0x9800 0x0 0x0 0x3 &mpic 0x2 0x1
  254. 0x9800 0x0 0x0 0x4 &mpic 0x3 0x1
  255. /* IDSEL 0x14 */
  256. 0xa000 0x0 0x0 0x1 &mpic 0x3 0x1
  257. 0xa000 0x0 0x0 0x2 &mpic 0x4 0x1
  258. 0xa000 0x0 0x0 0x3 &mpic 0x1 0x1
  259. 0xa000 0x0 0x0 0x4 &mpic 0x2 0x1
  260. /* IDSEL 0x15 */
  261. 0xa800 0x0 0x0 0x1 &mpic 0x2 0x1
  262. 0xa800 0x0 0x0 0x2 &mpic 0x3 0x1
  263. 0xa800 0x0 0x0 0x3 &mpic 0x4 0x1
  264. 0xa800 0x0 0x0 0x4 &mpic 0x1 0x1>;
  265. interrupt-parent = <&mpic>;
  266. interrupts = <24 2>;
  267. bus-range = <0 0>;
  268. ranges = <0x2000000 0x0 0x80000000 0x80000000 0x0 0x20000000
  269. 0x1000000 0x0 0x0 0xe2000000 0x0 0x100000>;
  270. clock-frequency = <66666666>;
  271. #interrupt-cells = <1>;
  272. #size-cells = <2>;
  273. #address-cells = <3>;
  274. reg = <0xe0008000 0x1000>;
  275. compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
  276. device_type = "pci";
  277. };
  278. };