mpc8540ads.dts 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  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. /include/ "e500v2_power_isa.dtsi"
  13. / {
  14. model = "MPC8540ADS";
  15. compatible = "MPC8540ADS", "MPC85xxADS";
  16. #address-cells = <1>;
  17. #size-cells = <1>;
  18. aliases {
  19. ethernet0 = &enet0;
  20. ethernet1 = &enet1;
  21. ethernet2 = &enet2;
  22. serial0 = &serial0;
  23. serial1 = &serial1;
  24. pci0 = &pci0;
  25. };
  26. cpus {
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. PowerPC,8540@0 {
  30. device_type = "cpu";
  31. reg = <0x0>;
  32. d-cache-line-size = <32>; // 32 bytes
  33. i-cache-line-size = <32>; // 32 bytes
  34. d-cache-size = <0x8000>; // L1, 32K
  35. i-cache-size = <0x8000>; // L1, 32K
  36. timebase-frequency = <0>; // 33 MHz, from uboot
  37. bus-frequency = <0>; // 166 MHz
  38. clock-frequency = <0>; // 825 MHz, from uboot
  39. next-level-cache = <&L2>;
  40. };
  41. };
  42. memory {
  43. device_type = "memory";
  44. reg = <0x0 0x8000000>; // 128M at 0x0
  45. };
  46. soc8540@e0000000 {
  47. #address-cells = <1>;
  48. #size-cells = <1>;
  49. device_type = "soc";
  50. compatible = "simple-bus";
  51. ranges = <0x0 0xe0000000 0x100000>;
  52. bus-frequency = <0>;
  53. ecm-law@0 {
  54. compatible = "fsl,ecm-law";
  55. reg = <0x0 0x1000>;
  56. fsl,num-laws = <8>;
  57. };
  58. ecm@1000 {
  59. compatible = "fsl,mpc8540-ecm", "fsl,ecm";
  60. reg = <0x1000 0x1000>;
  61. interrupts = <17 2>;
  62. interrupt-parent = <&mpic>;
  63. };
  64. memory-controller@2000 {
  65. compatible = "fsl,mpc8540-memory-controller";
  66. reg = <0x2000 0x1000>;
  67. interrupt-parent = <&mpic>;
  68. interrupts = <18 2>;
  69. };
  70. L2: l2-cache-controller@20000 {
  71. compatible = "fsl,mpc8540-l2-cache-controller";
  72. reg = <0x20000 0x1000>;
  73. cache-line-size = <32>; // 32 bytes
  74. cache-size = <0x40000>; // L2, 256K
  75. interrupt-parent = <&mpic>;
  76. interrupts = <16 2>;
  77. };
  78. i2c@3000 {
  79. #address-cells = <1>;
  80. #size-cells = <0>;
  81. cell-index = <0>;
  82. compatible = "fsl-i2c";
  83. reg = <0x3000 0x100>;
  84. interrupts = <43 2>;
  85. interrupt-parent = <&mpic>;
  86. dfsrr;
  87. };
  88. dma@21300 {
  89. #address-cells = <1>;
  90. #size-cells = <1>;
  91. compatible = "fsl,mpc8540-dma", "fsl,eloplus-dma";
  92. reg = <0x21300 0x4>;
  93. ranges = <0x0 0x21100 0x200>;
  94. cell-index = <0>;
  95. dma-channel@0 {
  96. compatible = "fsl,mpc8540-dma-channel",
  97. "fsl,eloplus-dma-channel";
  98. reg = <0x0 0x80>;
  99. cell-index = <0>;
  100. interrupt-parent = <&mpic>;
  101. interrupts = <20 2>;
  102. };
  103. dma-channel@80 {
  104. compatible = "fsl,mpc8540-dma-channel",
  105. "fsl,eloplus-dma-channel";
  106. reg = <0x80 0x80>;
  107. cell-index = <1>;
  108. interrupt-parent = <&mpic>;
  109. interrupts = <21 2>;
  110. };
  111. dma-channel@100 {
  112. compatible = "fsl,mpc8540-dma-channel",
  113. "fsl,eloplus-dma-channel";
  114. reg = <0x100 0x80>;
  115. cell-index = <2>;
  116. interrupt-parent = <&mpic>;
  117. interrupts = <22 2>;
  118. };
  119. dma-channel@180 {
  120. compatible = "fsl,mpc8540-dma-channel",
  121. "fsl,eloplus-dma-channel";
  122. reg = <0x180 0x80>;
  123. cell-index = <3>;
  124. interrupt-parent = <&mpic>;
  125. interrupts = <23 2>;
  126. };
  127. };
  128. enet0: ethernet@24000 {
  129. #address-cells = <1>;
  130. #size-cells = <1>;
  131. cell-index = <0>;
  132. device_type = "network";
  133. model = "TSEC";
  134. compatible = "gianfar";
  135. reg = <0x24000 0x1000>;
  136. ranges = <0x0 0x24000 0x1000>;
  137. local-mac-address = [ 00 00 00 00 00 00 ];
  138. interrupts = <29 2 30 2 34 2>;
  139. interrupt-parent = <&mpic>;
  140. tbi-handle = <&tbi0>;
  141. phy-handle = <&phy0>;
  142. mdio@520 {
  143. #address-cells = <1>;
  144. #size-cells = <0>;
  145. compatible = "fsl,gianfar-mdio";
  146. reg = <0x520 0x20>;
  147. phy0: ethernet-phy@0 {
  148. interrupt-parent = <&mpic>;
  149. interrupts = <5 1>;
  150. reg = <0x0>;
  151. };
  152. phy1: ethernet-phy@1 {
  153. interrupt-parent = <&mpic>;
  154. interrupts = <5 1>;
  155. reg = <0x1>;
  156. };
  157. phy3: ethernet-phy@3 {
  158. interrupt-parent = <&mpic>;
  159. interrupts = <7 1>;
  160. reg = <0x3>;
  161. };
  162. tbi0: tbi-phy@11 {
  163. reg = <0x11>;
  164. device_type = "tbi-phy";
  165. };
  166. };
  167. };
  168. enet1: ethernet@25000 {
  169. #address-cells = <1>;
  170. #size-cells = <1>;
  171. cell-index = <1>;
  172. device_type = "network";
  173. model = "TSEC";
  174. compatible = "gianfar";
  175. reg = <0x25000 0x1000>;
  176. ranges = <0x0 0x25000 0x1000>;
  177. local-mac-address = [ 00 00 00 00 00 00 ];
  178. interrupts = <35 2 36 2 40 2>;
  179. interrupt-parent = <&mpic>;
  180. tbi-handle = <&tbi1>;
  181. phy-handle = <&phy1>;
  182. mdio@520 {
  183. #address-cells = <1>;
  184. #size-cells = <0>;
  185. compatible = "fsl,gianfar-tbi";
  186. reg = <0x520 0x20>;
  187. tbi1: tbi-phy@11 {
  188. reg = <0x11>;
  189. device_type = "tbi-phy";
  190. };
  191. };
  192. };
  193. enet2: ethernet@26000 {
  194. #address-cells = <1>;
  195. #size-cells = <1>;
  196. cell-index = <2>;
  197. device_type = "network";
  198. model = "FEC";
  199. compatible = "gianfar";
  200. reg = <0x26000 0x1000>;
  201. ranges = <0x0 0x26000 0x1000>;
  202. local-mac-address = [ 00 00 00 00 00 00 ];
  203. interrupts = <41 2>;
  204. interrupt-parent = <&mpic>;
  205. tbi-handle = <&tbi2>;
  206. phy-handle = <&phy3>;
  207. mdio@520 {
  208. #address-cells = <1>;
  209. #size-cells = <0>;
  210. compatible = "fsl,gianfar-tbi";
  211. reg = <0x520 0x20>;
  212. tbi2: tbi-phy@11 {
  213. reg = <0x11>;
  214. device_type = "tbi-phy";
  215. };
  216. };
  217. };
  218. serial0: serial@4500 {
  219. cell-index = <0>;
  220. device_type = "serial";
  221. compatible = "fsl,ns16550", "ns16550";
  222. reg = <0x4500 0x100>; // reg base, size
  223. clock-frequency = <0>; // should we fill in in uboot?
  224. interrupts = <42 2>;
  225. interrupt-parent = <&mpic>;
  226. };
  227. serial1: serial@4600 {
  228. cell-index = <1>;
  229. device_type = "serial";
  230. compatible = "fsl,ns16550", "ns16550";
  231. reg = <0x4600 0x100>; // reg base, size
  232. clock-frequency = <0>; // should we fill in in uboot?
  233. interrupts = <42 2>;
  234. interrupt-parent = <&mpic>;
  235. };
  236. mpic: pic@40000 {
  237. interrupt-controller;
  238. #address-cells = <0>;
  239. #interrupt-cells = <2>;
  240. reg = <0x40000 0x40000>;
  241. compatible = "chrp,open-pic";
  242. device_type = "open-pic";
  243. };
  244. };
  245. pci0: pci@e0008000 {
  246. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  247. interrupt-map = <
  248. /* IDSEL 0x02 */
  249. 0x1000 0x0 0x0 0x1 &mpic 0x1 0x1
  250. 0x1000 0x0 0x0 0x2 &mpic 0x2 0x1
  251. 0x1000 0x0 0x0 0x3 &mpic 0x3 0x1
  252. 0x1000 0x0 0x0 0x4 &mpic 0x4 0x1
  253. /* IDSEL 0x03 */
  254. 0x1800 0x0 0x0 0x1 &mpic 0x4 0x1
  255. 0x1800 0x0 0x0 0x2 &mpic 0x1 0x1
  256. 0x1800 0x0 0x0 0x3 &mpic 0x2 0x1
  257. 0x1800 0x0 0x0 0x4 &mpic 0x3 0x1
  258. /* IDSEL 0x04 */
  259. 0x2000 0x0 0x0 0x1 &mpic 0x3 0x1
  260. 0x2000 0x0 0x0 0x2 &mpic 0x4 0x1
  261. 0x2000 0x0 0x0 0x3 &mpic 0x1 0x1
  262. 0x2000 0x0 0x0 0x4 &mpic 0x2 0x1
  263. /* IDSEL 0x05 */
  264. 0x2800 0x0 0x0 0x1 &mpic 0x2 0x1
  265. 0x2800 0x0 0x0 0x2 &mpic 0x3 0x1
  266. 0x2800 0x0 0x0 0x3 &mpic 0x4 0x1
  267. 0x2800 0x0 0x0 0x4 &mpic 0x1 0x1
  268. /* IDSEL 0x0c */
  269. 0x6000 0x0 0x0 0x1 &mpic 0x1 0x1
  270. 0x6000 0x0 0x0 0x2 &mpic 0x2 0x1
  271. 0x6000 0x0 0x0 0x3 &mpic 0x3 0x1
  272. 0x6000 0x0 0x0 0x4 &mpic 0x4 0x1
  273. /* IDSEL 0x0d */
  274. 0x6800 0x0 0x0 0x1 &mpic 0x4 0x1
  275. 0x6800 0x0 0x0 0x2 &mpic 0x1 0x1
  276. 0x6800 0x0 0x0 0x3 &mpic 0x2 0x1
  277. 0x6800 0x0 0x0 0x4 &mpic 0x3 0x1
  278. /* IDSEL 0x0e */
  279. 0x7000 0x0 0x0 0x1 &mpic 0x3 0x1
  280. 0x7000 0x0 0x0 0x2 &mpic 0x4 0x1
  281. 0x7000 0x0 0x0 0x3 &mpic 0x1 0x1
  282. 0x7000 0x0 0x0 0x4 &mpic 0x2 0x1
  283. /* IDSEL 0x0f */
  284. 0x7800 0x0 0x0 0x1 &mpic 0x2 0x1
  285. 0x7800 0x0 0x0 0x2 &mpic 0x3 0x1
  286. 0x7800 0x0 0x0 0x3 &mpic 0x4 0x1
  287. 0x7800 0x0 0x0 0x4 &mpic 0x1 0x1
  288. /* IDSEL 0x12 */
  289. 0x9000 0x0 0x0 0x1 &mpic 0x1 0x1
  290. 0x9000 0x0 0x0 0x2 &mpic 0x2 0x1
  291. 0x9000 0x0 0x0 0x3 &mpic 0x3 0x1
  292. 0x9000 0x0 0x0 0x4 &mpic 0x4 0x1
  293. /* IDSEL 0x13 */
  294. 0x9800 0x0 0x0 0x1 &mpic 0x4 0x1
  295. 0x9800 0x0 0x0 0x2 &mpic 0x1 0x1
  296. 0x9800 0x0 0x0 0x3 &mpic 0x2 0x1
  297. 0x9800 0x0 0x0 0x4 &mpic 0x3 0x1
  298. /* IDSEL 0x14 */
  299. 0xa000 0x0 0x0 0x1 &mpic 0x3 0x1
  300. 0xa000 0x0 0x0 0x2 &mpic 0x4 0x1
  301. 0xa000 0x0 0x0 0x3 &mpic 0x1 0x1
  302. 0xa000 0x0 0x0 0x4 &mpic 0x2 0x1
  303. /* IDSEL 0x15 */
  304. 0xa800 0x0 0x0 0x1 &mpic 0x2 0x1
  305. 0xa800 0x0 0x0 0x2 &mpic 0x3 0x1
  306. 0xa800 0x0 0x0 0x3 &mpic 0x4 0x1
  307. 0xa800 0x0 0x0 0x4 &mpic 0x1 0x1>;
  308. interrupt-parent = <&mpic>;
  309. interrupts = <24 2>;
  310. bus-range = <0 0>;
  311. ranges = <0x2000000 0x0 0x80000000 0x80000000 0x0 0x20000000
  312. 0x1000000 0x0 0x0 0xe2000000 0x0 0x100000>;
  313. clock-frequency = <66666666>;
  314. #interrupt-cells = <1>;
  315. #size-cells = <2>;
  316. #address-cells = <3>;
  317. reg = <0xe0008000 0x1000>;
  318. compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
  319. device_type = "pci";
  320. };
  321. };