mpc8540ads.dts 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  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. mdio@24520 {
  77. #address-cells = <1>;
  78. #size-cells = <0>;
  79. compatible = "fsl,gianfar-mdio";
  80. reg = <0x24520 0x20>;
  81. phy0: ethernet-phy@0 {
  82. interrupt-parent = <&mpic>;
  83. interrupts = <5 1>;
  84. reg = <0x0>;
  85. device_type = "ethernet-phy";
  86. };
  87. phy1: ethernet-phy@1 {
  88. interrupt-parent = <&mpic>;
  89. interrupts = <5 1>;
  90. reg = <0x1>;
  91. device_type = "ethernet-phy";
  92. };
  93. phy3: ethernet-phy@3 {
  94. interrupt-parent = <&mpic>;
  95. interrupts = <7 1>;
  96. reg = <0x3>;
  97. device_type = "ethernet-phy";
  98. };
  99. };
  100. enet0: ethernet@24000 {
  101. cell-index = <0>;
  102. device_type = "network";
  103. model = "TSEC";
  104. compatible = "gianfar";
  105. reg = <0x24000 0x1000>;
  106. local-mac-address = [ 00 00 00 00 00 00 ];
  107. interrupts = <29 2 30 2 34 2>;
  108. interrupt-parent = <&mpic>;
  109. phy-handle = <&phy0>;
  110. };
  111. enet1: ethernet@25000 {
  112. cell-index = <1>;
  113. device_type = "network";
  114. model = "TSEC";
  115. compatible = "gianfar";
  116. reg = <0x25000 0x1000>;
  117. local-mac-address = [ 00 00 00 00 00 00 ];
  118. interrupts = <35 2 36 2 40 2>;
  119. interrupt-parent = <&mpic>;
  120. phy-handle = <&phy1>;
  121. };
  122. enet2: ethernet@26000 {
  123. cell-index = <2>;
  124. device_type = "network";
  125. model = "FEC";
  126. compatible = "gianfar";
  127. reg = <0x26000 0x1000>;
  128. local-mac-address = [ 00 00 00 00 00 00 ];
  129. interrupts = <41 2>;
  130. interrupt-parent = <&mpic>;
  131. phy-handle = <&phy3>;
  132. };
  133. serial0: serial@4500 {
  134. cell-index = <0>;
  135. device_type = "serial";
  136. compatible = "ns16550";
  137. reg = <0x4500 0x100>; // reg base, size
  138. clock-frequency = <0>; // should we fill in in uboot?
  139. interrupts = <42 2>;
  140. interrupt-parent = <&mpic>;
  141. };
  142. serial1: serial@4600 {
  143. cell-index = <1>;
  144. device_type = "serial";
  145. compatible = "ns16550";
  146. reg = <0x4600 0x100>; // reg base, size
  147. clock-frequency = <0>; // should we fill in in uboot?
  148. interrupts = <42 2>;
  149. interrupt-parent = <&mpic>;
  150. };
  151. mpic: pic@40000 {
  152. interrupt-controller;
  153. #address-cells = <0>;
  154. #interrupt-cells = <2>;
  155. reg = <0x40000 0x40000>;
  156. compatible = "chrp,open-pic";
  157. device_type = "open-pic";
  158. };
  159. };
  160. pci0: pci@e0008000 {
  161. cell-index = <0>;
  162. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  163. interrupt-map = <
  164. /* IDSEL 0x02 */
  165. 0x1000 0x0 0x0 0x1 &mpic 0x1 0x1
  166. 0x1000 0x0 0x0 0x2 &mpic 0x2 0x1
  167. 0x1000 0x0 0x0 0x3 &mpic 0x3 0x1
  168. 0x1000 0x0 0x0 0x4 &mpic 0x4 0x1
  169. /* IDSEL 0x03 */
  170. 0x1800 0x0 0x0 0x1 &mpic 0x4 0x1
  171. 0x1800 0x0 0x0 0x2 &mpic 0x1 0x1
  172. 0x1800 0x0 0x0 0x3 &mpic 0x2 0x1
  173. 0x1800 0x0 0x0 0x4 &mpic 0x3 0x1
  174. /* IDSEL 0x04 */
  175. 0x2000 0x0 0x0 0x1 &mpic 0x3 0x1
  176. 0x2000 0x0 0x0 0x2 &mpic 0x4 0x1
  177. 0x2000 0x0 0x0 0x3 &mpic 0x1 0x1
  178. 0x2000 0x0 0x0 0x4 &mpic 0x2 0x1
  179. /* IDSEL 0x05 */
  180. 0x2800 0x0 0x0 0x1 &mpic 0x2 0x1
  181. 0x2800 0x0 0x0 0x2 &mpic 0x3 0x1
  182. 0x2800 0x0 0x0 0x3 &mpic 0x4 0x1
  183. 0x2800 0x0 0x0 0x4 &mpic 0x1 0x1
  184. /* IDSEL 0x0c */
  185. 0x6000 0x0 0x0 0x1 &mpic 0x1 0x1
  186. 0x6000 0x0 0x0 0x2 &mpic 0x2 0x1
  187. 0x6000 0x0 0x0 0x3 &mpic 0x3 0x1
  188. 0x6000 0x0 0x0 0x4 &mpic 0x4 0x1
  189. /* IDSEL 0x0d */
  190. 0x6800 0x0 0x0 0x1 &mpic 0x4 0x1
  191. 0x6800 0x0 0x0 0x2 &mpic 0x1 0x1
  192. 0x6800 0x0 0x0 0x3 &mpic 0x2 0x1
  193. 0x6800 0x0 0x0 0x4 &mpic 0x3 0x1
  194. /* IDSEL 0x0e */
  195. 0x7000 0x0 0x0 0x1 &mpic 0x3 0x1
  196. 0x7000 0x0 0x0 0x2 &mpic 0x4 0x1
  197. 0x7000 0x0 0x0 0x3 &mpic 0x1 0x1
  198. 0x7000 0x0 0x0 0x4 &mpic 0x2 0x1
  199. /* IDSEL 0x0f */
  200. 0x7800 0x0 0x0 0x1 &mpic 0x2 0x1
  201. 0x7800 0x0 0x0 0x2 &mpic 0x3 0x1
  202. 0x7800 0x0 0x0 0x3 &mpic 0x4 0x1
  203. 0x7800 0x0 0x0 0x4 &mpic 0x1 0x1
  204. /* IDSEL 0x12 */
  205. 0x9000 0x0 0x0 0x1 &mpic 0x1 0x1
  206. 0x9000 0x0 0x0 0x2 &mpic 0x2 0x1
  207. 0x9000 0x0 0x0 0x3 &mpic 0x3 0x1
  208. 0x9000 0x0 0x0 0x4 &mpic 0x4 0x1
  209. /* IDSEL 0x13 */
  210. 0x9800 0x0 0x0 0x1 &mpic 0x4 0x1
  211. 0x9800 0x0 0x0 0x2 &mpic 0x1 0x1
  212. 0x9800 0x0 0x0 0x3 &mpic 0x2 0x1
  213. 0x9800 0x0 0x0 0x4 &mpic 0x3 0x1
  214. /* IDSEL 0x14 */
  215. 0xa000 0x0 0x0 0x1 &mpic 0x3 0x1
  216. 0xa000 0x0 0x0 0x2 &mpic 0x4 0x1
  217. 0xa000 0x0 0x0 0x3 &mpic 0x1 0x1
  218. 0xa000 0x0 0x0 0x4 &mpic 0x2 0x1
  219. /* IDSEL 0x15 */
  220. 0xa800 0x0 0x0 0x1 &mpic 0x2 0x1
  221. 0xa800 0x0 0x0 0x2 &mpic 0x3 0x1
  222. 0xa800 0x0 0x0 0x3 &mpic 0x4 0x1
  223. 0xa800 0x0 0x0 0x4 &mpic 0x1 0x1>;
  224. interrupt-parent = <&mpic>;
  225. interrupts = <24 2>;
  226. bus-range = <0 0>;
  227. ranges = <0x2000000 0x0 0x80000000 0x80000000 0x0 0x20000000
  228. 0x1000000 0x0 0x0 0xe2000000 0x0 0x100000>;
  229. clock-frequency = <66666666>;
  230. #interrupt-cells = <1>;
  231. #size-cells = <2>;
  232. #address-cells = <3>;
  233. reg = <0xe0008000 0x1000>;
  234. compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
  235. device_type = "pci";
  236. };
  237. };