mpc8572ds_camp_core1.dts 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. /*
  2. * MPC8572 DS Core1 Device Tree Source in CAMP mode.
  3. *
  4. * In CAMP mode, each core needs to have its own dts. Only mpic and L2 cache
  5. * can be shared, all the other devices must be assigned to one core only.
  6. * This dts allows core1 to have l2, dma2, eth2, eth3, pci2, msi.
  7. *
  8. * Please note to add "-b 1" for core1's dts compiling.
  9. *
  10. * Copyright 2007-2009 Freescale Semiconductor Inc.
  11. *
  12. * This program is free software; you can redistribute it and/or modify it
  13. * under the terms of the GNU General Public License as published by the
  14. * Free Software Foundation; either version 2 of the License, or (at your
  15. * option) any later version.
  16. */
  17. /dts-v1/;
  18. / {
  19. model = "fsl,MPC8572DS";
  20. compatible = "fsl,MPC8572DS", "fsl,MPC8572DS-CAMP";
  21. #address-cells = <1>;
  22. #size-cells = <1>;
  23. aliases {
  24. ethernet2 = &enet2;
  25. ethernet3 = &enet3;
  26. serial0 = &serial0;
  27. pci2 = &pci2;
  28. };
  29. cpus {
  30. #address-cells = <1>;
  31. #size-cells = <0>;
  32. PowerPC,8572@1 {
  33. device_type = "cpu";
  34. reg = <0x1>;
  35. d-cache-line-size = <32>; // 32 bytes
  36. i-cache-line-size = <32>; // 32 bytes
  37. d-cache-size = <0x8000>; // L1, 32K
  38. i-cache-size = <0x8000>; // L1, 32K
  39. timebase-frequency = <0>;
  40. bus-frequency = <0>;
  41. clock-frequency = <0>;
  42. next-level-cache = <&L2>;
  43. };
  44. };
  45. memory {
  46. device_type = "memory";
  47. reg = <0x0 0x0>; // Filled by U-Boot
  48. };
  49. soc8572@ffe00000 {
  50. #address-cells = <1>;
  51. #size-cells = <1>;
  52. device_type = "soc";
  53. compatible = "simple-bus";
  54. ranges = <0x0 0xffe00000 0x100000>;
  55. bus-frequency = <0>; // Filled out by uboot.
  56. L2: l2-cache-controller@20000 {
  57. compatible = "fsl,mpc8572-l2-cache-controller";
  58. reg = <0x20000 0x1000>;
  59. cache-line-size = <32>; // 32 bytes
  60. cache-size = <0x80000>; // L2, 512K
  61. interrupt-parent = <&mpic>;
  62. };
  63. dma@c300 {
  64. #address-cells = <1>;
  65. #size-cells = <1>;
  66. compatible = "fsl,mpc8572-dma", "fsl,eloplus-dma";
  67. reg = <0xc300 0x4>;
  68. ranges = <0x0 0xc100 0x200>;
  69. cell-index = <0>;
  70. dma-channel@0 {
  71. compatible = "fsl,mpc8572-dma-channel",
  72. "fsl,eloplus-dma-channel";
  73. reg = <0x0 0x80>;
  74. cell-index = <0>;
  75. interrupt-parent = <&mpic>;
  76. interrupts = <76 2>;
  77. };
  78. dma-channel@80 {
  79. compatible = "fsl,mpc8572-dma-channel",
  80. "fsl,eloplus-dma-channel";
  81. reg = <0x80 0x80>;
  82. cell-index = <1>;
  83. interrupt-parent = <&mpic>;
  84. interrupts = <77 2>;
  85. };
  86. dma-channel@100 {
  87. compatible = "fsl,mpc8572-dma-channel",
  88. "fsl,eloplus-dma-channel";
  89. reg = <0x100 0x80>;
  90. cell-index = <2>;
  91. interrupt-parent = <&mpic>;
  92. interrupts = <78 2>;
  93. };
  94. dma-channel@180 {
  95. compatible = "fsl,mpc8572-dma-channel",
  96. "fsl,eloplus-dma-channel";
  97. reg = <0x180 0x80>;
  98. cell-index = <3>;
  99. interrupt-parent = <&mpic>;
  100. interrupts = <79 2>;
  101. };
  102. };
  103. mdio@24520 {
  104. #address-cells = <1>;
  105. #size-cells = <0>;
  106. compatible = "fsl,gianfar-mdio";
  107. reg = <0x24520 0x20>;
  108. phy2: ethernet-phy@2 {
  109. interrupt-parent = <&mpic>;
  110. reg = <0x2>;
  111. };
  112. phy3: ethernet-phy@3 {
  113. interrupt-parent = <&mpic>;
  114. reg = <0x3>;
  115. };
  116. };
  117. enet2: ethernet@26000 {
  118. cell-index = <2>;
  119. device_type = "network";
  120. model = "eTSEC";
  121. compatible = "gianfar";
  122. reg = <0x26000 0x1000>;
  123. local-mac-address = [ 00 00 00 00 00 00 ];
  124. interrupts = <31 2 32 2 33 2>;
  125. interrupt-parent = <&mpic>;
  126. phy-handle = <&phy2>;
  127. phy-connection-type = "rgmii-id";
  128. };
  129. enet3: ethernet@27000 {
  130. cell-index = <3>;
  131. device_type = "network";
  132. model = "eTSEC";
  133. compatible = "gianfar";
  134. reg = <0x27000 0x1000>;
  135. local-mac-address = [ 00 00 00 00 00 00 ];
  136. interrupts = <37 2 38 2 39 2>;
  137. interrupt-parent = <&mpic>;
  138. phy-handle = <&phy3>;
  139. phy-connection-type = "rgmii-id";
  140. };
  141. msi@41600 {
  142. compatible = "fsl,mpc8572-msi", "fsl,mpic-msi";
  143. reg = <0x41600 0x80>;
  144. msi-available-ranges = <0x80 0x80>;
  145. interrupts = <
  146. 0xe4 0
  147. 0xe5 0
  148. 0xe6 0
  149. 0xe7 0>;
  150. interrupt-parent = <&mpic>;
  151. };
  152. serial0: serial@4600 {
  153. cell-index = <1>;
  154. device_type = "serial";
  155. compatible = "ns16550";
  156. reg = <0x4600 0x100>;
  157. clock-frequency = <0>;
  158. };
  159. mpic: pic@40000 {
  160. interrupt-controller;
  161. #address-cells = <0>;
  162. #interrupt-cells = <2>;
  163. reg = <0x40000 0x40000>;
  164. compatible = "chrp,open-pic";
  165. device_type = "open-pic";
  166. protected-sources = <
  167. 18 16 10 42 45 58 /* MEM L2 mdio serial crypto */
  168. 29 30 34 35 36 40 /* enet0 enet1 */
  169. 24 25 20 21 22 23 /* pci0 pci1 dma1 */
  170. 43 /* i2c */
  171. 0x1 0x2 0x3 0x4 /* pci slot */
  172. 0x9 0xa 0xb 0xc /* usb */
  173. 0x6 0x7 0xe 0x5 /* Audio elgacy SATA */
  174. 0xe0 0xe1 0xe2 0xe3 /* msi */
  175. >;
  176. };
  177. };
  178. pci2: pcie@ffe0a000 {
  179. compatible = "fsl,mpc8548-pcie";
  180. device_type = "pci";
  181. #interrupt-cells = <1>;
  182. #size-cells = <2>;
  183. #address-cells = <3>;
  184. reg = <0xffe0a000 0x1000>;
  185. bus-range = <0 255>;
  186. ranges = <0x2000000 0x0 0xc0000000 0xc0000000 0x0 0x20000000
  187. 0x1000000 0x0 0x0 0xffc20000 0x0 0x10000>;
  188. clock-frequency = <33333333>;
  189. interrupt-parent = <&mpic>;
  190. interrupts = <26 2>;
  191. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  192. interrupt-map = <
  193. /* IDSEL 0x0 */
  194. 0000 0x0 0x0 0x1 &mpic 0x0 0x1
  195. 0000 0x0 0x0 0x2 &mpic 0x1 0x1
  196. 0000 0x0 0x0 0x3 &mpic 0x2 0x1
  197. 0000 0x0 0x0 0x4 &mpic 0x3 0x1
  198. >;
  199. pcie@0 {
  200. reg = <0x0 0x0 0x0 0x0 0x0>;
  201. #size-cells = <2>;
  202. #address-cells = <3>;
  203. device_type = "pci";
  204. ranges = <0x2000000 0x0 0xc0000000
  205. 0x2000000 0x0 0xc0000000
  206. 0x0 0x20000000
  207. 0x1000000 0x0 0x0
  208. 0x1000000 0x0 0x0
  209. 0x0 0x10000>;
  210. };
  211. };
  212. };