mpc8540ads.dts 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  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. ranges = <0x0 0xe0000000 0x100000>;
  50. reg = <0xe0000000 0x100000>; // CCSRBAR 1M
  51. bus-frequency = <0>;
  52. memory-controller@2000 {
  53. compatible = "fsl,8540-memory-controller";
  54. reg = <0x2000 0x1000>;
  55. interrupt-parent = <&mpic>;
  56. interrupts = <18 2>;
  57. };
  58. L2: l2-cache-controller@20000 {
  59. compatible = "fsl,8540-l2-cache-controller";
  60. reg = <0x20000 0x1000>;
  61. cache-line-size = <32>; // 32 bytes
  62. cache-size = <0x40000>; // L2, 256K
  63. interrupt-parent = <&mpic>;
  64. interrupts = <16 2>;
  65. };
  66. i2c@3000 {
  67. #address-cells = <1>;
  68. #size-cells = <0>;
  69. cell-index = <0>;
  70. compatible = "fsl-i2c";
  71. reg = <0x3000 0x100>;
  72. interrupts = <43 2>;
  73. interrupt-parent = <&mpic>;
  74. dfsrr;
  75. };
  76. dma@21300 {
  77. #address-cells = <1>;
  78. #size-cells = <1>;
  79. compatible = "fsl,mpc8540-dma", "fsl,eloplus-dma";
  80. reg = <0x21300 0x4>;
  81. ranges = <0x0 0x21100 0x200>;
  82. cell-index = <0>;
  83. dma-channel@0 {
  84. compatible = "fsl,mpc8540-dma-channel",
  85. "fsl,eloplus-dma-channel";
  86. reg = <0x0 0x80>;
  87. cell-index = <0>;
  88. interrupt-parent = <&mpic>;
  89. interrupts = <20 2>;
  90. };
  91. dma-channel@80 {
  92. compatible = "fsl,mpc8540-dma-channel",
  93. "fsl,eloplus-dma-channel";
  94. reg = <0x80 0x80>;
  95. cell-index = <1>;
  96. interrupt-parent = <&mpic>;
  97. interrupts = <21 2>;
  98. };
  99. dma-channel@100 {
  100. compatible = "fsl,mpc8540-dma-channel",
  101. "fsl,eloplus-dma-channel";
  102. reg = <0x100 0x80>;
  103. cell-index = <2>;
  104. interrupt-parent = <&mpic>;
  105. interrupts = <22 2>;
  106. };
  107. dma-channel@180 {
  108. compatible = "fsl,mpc8540-dma-channel",
  109. "fsl,eloplus-dma-channel";
  110. reg = <0x180 0x80>;
  111. cell-index = <3>;
  112. interrupt-parent = <&mpic>;
  113. interrupts = <23 2>;
  114. };
  115. };
  116. mdio@24520 {
  117. #address-cells = <1>;
  118. #size-cells = <0>;
  119. compatible = "fsl,gianfar-mdio";
  120. reg = <0x24520 0x20>;
  121. phy0: ethernet-phy@0 {
  122. interrupt-parent = <&mpic>;
  123. interrupts = <5 1>;
  124. reg = <0x0>;
  125. device_type = "ethernet-phy";
  126. };
  127. phy1: ethernet-phy@1 {
  128. interrupt-parent = <&mpic>;
  129. interrupts = <5 1>;
  130. reg = <0x1>;
  131. device_type = "ethernet-phy";
  132. };
  133. phy3: ethernet-phy@3 {
  134. interrupt-parent = <&mpic>;
  135. interrupts = <7 1>;
  136. reg = <0x3>;
  137. device_type = "ethernet-phy";
  138. };
  139. };
  140. enet0: ethernet@24000 {
  141. cell-index = <0>;
  142. device_type = "network";
  143. model = "TSEC";
  144. compatible = "gianfar";
  145. reg = <0x24000 0x1000>;
  146. local-mac-address = [ 00 00 00 00 00 00 ];
  147. interrupts = <29 2 30 2 34 2>;
  148. interrupt-parent = <&mpic>;
  149. phy-handle = <&phy0>;
  150. };
  151. enet1: ethernet@25000 {
  152. cell-index = <1>;
  153. device_type = "network";
  154. model = "TSEC";
  155. compatible = "gianfar";
  156. reg = <0x25000 0x1000>;
  157. local-mac-address = [ 00 00 00 00 00 00 ];
  158. interrupts = <35 2 36 2 40 2>;
  159. interrupt-parent = <&mpic>;
  160. phy-handle = <&phy1>;
  161. };
  162. enet2: ethernet@26000 {
  163. cell-index = <2>;
  164. device_type = "network";
  165. model = "FEC";
  166. compatible = "gianfar";
  167. reg = <0x26000 0x1000>;
  168. local-mac-address = [ 00 00 00 00 00 00 ];
  169. interrupts = <41 2>;
  170. interrupt-parent = <&mpic>;
  171. phy-handle = <&phy3>;
  172. };
  173. serial0: serial@4500 {
  174. cell-index = <0>;
  175. device_type = "serial";
  176. compatible = "ns16550";
  177. reg = <0x4500 0x100>; // reg base, size
  178. clock-frequency = <0>; // should we fill in in uboot?
  179. interrupts = <42 2>;
  180. interrupt-parent = <&mpic>;
  181. };
  182. serial1: serial@4600 {
  183. cell-index = <1>;
  184. device_type = "serial";
  185. compatible = "ns16550";
  186. reg = <0x4600 0x100>; // reg base, size
  187. clock-frequency = <0>; // should we fill in in uboot?
  188. interrupts = <42 2>;
  189. interrupt-parent = <&mpic>;
  190. };
  191. mpic: pic@40000 {
  192. interrupt-controller;
  193. #address-cells = <0>;
  194. #interrupt-cells = <2>;
  195. reg = <0x40000 0x40000>;
  196. compatible = "chrp,open-pic";
  197. device_type = "open-pic";
  198. };
  199. };
  200. pci0: pci@e0008000 {
  201. cell-index = <0>;
  202. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  203. interrupt-map = <
  204. /* IDSEL 0x02 */
  205. 0x1000 0x0 0x0 0x1 &mpic 0x1 0x1
  206. 0x1000 0x0 0x0 0x2 &mpic 0x2 0x1
  207. 0x1000 0x0 0x0 0x3 &mpic 0x3 0x1
  208. 0x1000 0x0 0x0 0x4 &mpic 0x4 0x1
  209. /* IDSEL 0x03 */
  210. 0x1800 0x0 0x0 0x1 &mpic 0x4 0x1
  211. 0x1800 0x0 0x0 0x2 &mpic 0x1 0x1
  212. 0x1800 0x0 0x0 0x3 &mpic 0x2 0x1
  213. 0x1800 0x0 0x0 0x4 &mpic 0x3 0x1
  214. /* IDSEL 0x04 */
  215. 0x2000 0x0 0x0 0x1 &mpic 0x3 0x1
  216. 0x2000 0x0 0x0 0x2 &mpic 0x4 0x1
  217. 0x2000 0x0 0x0 0x3 &mpic 0x1 0x1
  218. 0x2000 0x0 0x0 0x4 &mpic 0x2 0x1
  219. /* IDSEL 0x05 */
  220. 0x2800 0x0 0x0 0x1 &mpic 0x2 0x1
  221. 0x2800 0x0 0x0 0x2 &mpic 0x3 0x1
  222. 0x2800 0x0 0x0 0x3 &mpic 0x4 0x1
  223. 0x2800 0x0 0x0 0x4 &mpic 0x1 0x1
  224. /* IDSEL 0x0c */
  225. 0x6000 0x0 0x0 0x1 &mpic 0x1 0x1
  226. 0x6000 0x0 0x0 0x2 &mpic 0x2 0x1
  227. 0x6000 0x0 0x0 0x3 &mpic 0x3 0x1
  228. 0x6000 0x0 0x0 0x4 &mpic 0x4 0x1
  229. /* IDSEL 0x0d */
  230. 0x6800 0x0 0x0 0x1 &mpic 0x4 0x1
  231. 0x6800 0x0 0x0 0x2 &mpic 0x1 0x1
  232. 0x6800 0x0 0x0 0x3 &mpic 0x2 0x1
  233. 0x6800 0x0 0x0 0x4 &mpic 0x3 0x1
  234. /* IDSEL 0x0e */
  235. 0x7000 0x0 0x0 0x1 &mpic 0x3 0x1
  236. 0x7000 0x0 0x0 0x2 &mpic 0x4 0x1
  237. 0x7000 0x0 0x0 0x3 &mpic 0x1 0x1
  238. 0x7000 0x0 0x0 0x4 &mpic 0x2 0x1
  239. /* IDSEL 0x0f */
  240. 0x7800 0x0 0x0 0x1 &mpic 0x2 0x1
  241. 0x7800 0x0 0x0 0x2 &mpic 0x3 0x1
  242. 0x7800 0x0 0x0 0x3 &mpic 0x4 0x1
  243. 0x7800 0x0 0x0 0x4 &mpic 0x1 0x1
  244. /* IDSEL 0x12 */
  245. 0x9000 0x0 0x0 0x1 &mpic 0x1 0x1
  246. 0x9000 0x0 0x0 0x2 &mpic 0x2 0x1
  247. 0x9000 0x0 0x0 0x3 &mpic 0x3 0x1
  248. 0x9000 0x0 0x0 0x4 &mpic 0x4 0x1
  249. /* IDSEL 0x13 */
  250. 0x9800 0x0 0x0 0x1 &mpic 0x4 0x1
  251. 0x9800 0x0 0x0 0x2 &mpic 0x1 0x1
  252. 0x9800 0x0 0x0 0x3 &mpic 0x2 0x1
  253. 0x9800 0x0 0x0 0x4 &mpic 0x3 0x1
  254. /* IDSEL 0x14 */
  255. 0xa000 0x0 0x0 0x1 &mpic 0x3 0x1
  256. 0xa000 0x0 0x0 0x2 &mpic 0x4 0x1
  257. 0xa000 0x0 0x0 0x3 &mpic 0x1 0x1
  258. 0xa000 0x0 0x0 0x4 &mpic 0x2 0x1
  259. /* IDSEL 0x15 */
  260. 0xa800 0x0 0x0 0x1 &mpic 0x2 0x1
  261. 0xa800 0x0 0x0 0x2 &mpic 0x3 0x1
  262. 0xa800 0x0 0x0 0x3 &mpic 0x4 0x1
  263. 0xa800 0x0 0x0 0x4 &mpic 0x1 0x1>;
  264. interrupt-parent = <&mpic>;
  265. interrupts = <24 2>;
  266. bus-range = <0 0>;
  267. ranges = <0x2000000 0x0 0x80000000 0x80000000 0x0 0x20000000
  268. 0x1000000 0x0 0x0 0xe2000000 0x0 0x100000>;
  269. clock-frequency = <66666666>;
  270. #interrupt-cells = <1>;
  271. #size-cells = <2>;
  272. #address-cells = <3>;
  273. reg = <0xe0008000 0x1000>;
  274. compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
  275. device_type = "pci";
  276. };
  277. };