mpc8540ads.dts 8.4 KB

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