mpc8540ads.dts 6.4 KB

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