haleakala.dts 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. /*
  2. * Device Tree Source for AMCC Haleakala (405EXr)
  3. *
  4. * Copyright 2008 DENX Software Engineering, Stefan Roese <sr@denx.de>
  5. *
  6. * This file is licensed under the terms of the GNU General Public
  7. * License version 2. This program is licensed "as is" without
  8. * any warranty of any kind, whether express or implied.
  9. */
  10. /dts-v1/;
  11. / {
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. model = "amcc,haleakala";
  15. compatible = "amcc,haleakala", "amcc,kilauea";
  16. dcr-parent = <&{/cpus/cpu@0}>;
  17. aliases {
  18. ethernet0 = &EMAC0;
  19. serial0 = &UART0;
  20. serial1 = &UART1;
  21. };
  22. cpus {
  23. #address-cells = <1>;
  24. #size-cells = <0>;
  25. cpu@0 {
  26. device_type = "cpu";
  27. model = "PowerPC,405EXr";
  28. reg = <0x00000000>;
  29. clock-frequency = <0>; /* Filled in by U-Boot */
  30. timebase-frequency = <0>; /* Filled in by U-Boot */
  31. i-cache-line-size = <32>;
  32. d-cache-line-size = <32>;
  33. i-cache-size = <16384>; /* 16 kB */
  34. d-cache-size = <16384>; /* 16 kB */
  35. dcr-controller;
  36. dcr-access-method = "native";
  37. };
  38. };
  39. memory {
  40. device_type = "memory";
  41. reg = <0x00000000 0x00000000>; /* Filled in by U-Boot */
  42. };
  43. UIC0: interrupt-controller {
  44. compatible = "ibm,uic-405exr", "ibm,uic";
  45. interrupt-controller;
  46. cell-index = <0>;
  47. dcr-reg = <0x0c0 0x009>;
  48. #address-cells = <0>;
  49. #size-cells = <0>;
  50. #interrupt-cells = <2>;
  51. };
  52. UIC1: interrupt-controller1 {
  53. compatible = "ibm,uic-405exr","ibm,uic";
  54. interrupt-controller;
  55. cell-index = <1>;
  56. dcr-reg = <0x0d0 0x009>;
  57. #address-cells = <0>;
  58. #size-cells = <0>;
  59. #interrupt-cells = <2>;
  60. interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
  61. interrupt-parent = <&UIC0>;
  62. };
  63. UIC2: interrupt-controller2 {
  64. compatible = "ibm,uic-405exr","ibm,uic";
  65. interrupt-controller;
  66. cell-index = <2>;
  67. dcr-reg = <0x0e0 0x009>;
  68. #address-cells = <0>;
  69. #size-cells = <0>;
  70. #interrupt-cells = <2>;
  71. interrupts = <0x1c 0x4 0x1d 0x4>; /* cascade */
  72. interrupt-parent = <&UIC0>;
  73. };
  74. plb {
  75. compatible = "ibm,plb-405exr", "ibm,plb4";
  76. #address-cells = <1>;
  77. #size-cells = <1>;
  78. ranges;
  79. clock-frequency = <0>; /* Filled in by U-Boot */
  80. SDRAM0: memory-controller {
  81. compatible = "ibm,sdram-405exr", "ibm,sdram-4xx-ddr2";
  82. dcr-reg = <0x010 0x002>;
  83. interrupt-parent = <&UIC2>;
  84. interrupts = <0x5 0x4 /* ECC DED Error */
  85. 0x6 0x4>; /* ECC SEC Error */
  86. };
  87. MAL0: mcmal {
  88. compatible = "ibm,mcmal-405exr", "ibm,mcmal2";
  89. dcr-reg = <0x180 0x062>;
  90. num-tx-chans = <2>;
  91. num-rx-chans = <2>;
  92. interrupt-parent = <&MAL0>;
  93. interrupts = <0x0 0x1 0x2 0x3 0x4>;
  94. #interrupt-cells = <1>;
  95. #address-cells = <0>;
  96. #size-cells = <0>;
  97. interrupt-map = </*TXEOB*/ 0x0 &UIC0 0xa 0x4
  98. /*RXEOB*/ 0x1 &UIC0 0xb 0x4
  99. /*SERR*/ 0x2 &UIC1 0x0 0x4
  100. /*TXDE*/ 0x3 &UIC1 0x1 0x4
  101. /*RXDE*/ 0x4 &UIC1 0x2 0x4>;
  102. interrupt-map-mask = <0xffffffff>;
  103. };
  104. POB0: opb {
  105. compatible = "ibm,opb-405exr", "ibm,opb";
  106. #address-cells = <1>;
  107. #size-cells = <1>;
  108. ranges = <0x80000000 0x80000000 0x10000000
  109. 0xef600000 0xef600000 0x00a00000
  110. 0xf0000000 0xf0000000 0x10000000>;
  111. dcr-reg = <0x0a0 0x005>;
  112. clock-frequency = <0>; /* Filled in by U-Boot */
  113. EBC0: ebc {
  114. compatible = "ibm,ebc-405exr", "ibm,ebc";
  115. dcr-reg = <0x012 0x002>;
  116. #address-cells = <2>;
  117. #size-cells = <1>;
  118. clock-frequency = <0>; /* Filled in by U-Boot */
  119. /* ranges property is supplied by U-Boot */
  120. interrupts = <0x5 0x1>;
  121. interrupt-parent = <&UIC1>;
  122. nor_flash@0,0 {
  123. compatible = "amd,s29gl512n", "cfi-flash";
  124. bank-width = <2>;
  125. reg = <0x00000000 0x00000000 0x04000000>;
  126. #address-cells = <1>;
  127. #size-cells = <1>;
  128. partition@0 {
  129. label = "kernel";
  130. reg = <0x00000000 0x00200000>;
  131. };
  132. partition@200000 {
  133. label = "root";
  134. reg = <0x00200000 0x00200000>;
  135. };
  136. partition@400000 {
  137. label = "user";
  138. reg = <0x00400000 0x03b60000>;
  139. };
  140. partition@3f60000 {
  141. label = "env";
  142. reg = <0x03f60000 0x00040000>;
  143. };
  144. partition@3fa0000 {
  145. label = "u-boot";
  146. reg = <0x03fa0000 0x00060000>;
  147. };
  148. };
  149. };
  150. UART0: serial@ef600200 {
  151. device_type = "serial";
  152. compatible = "ns16550";
  153. reg = <0xef600200 0x00000008>;
  154. virtual-reg = <0xef600200>;
  155. clock-frequency = <0>; /* Filled in by U-Boot */
  156. current-speed = <0>;
  157. interrupt-parent = <&UIC0>;
  158. interrupts = <0x1a 0x4>;
  159. };
  160. UART1: serial@ef600300 {
  161. device_type = "serial";
  162. compatible = "ns16550";
  163. reg = <0xef600300 0x00000008>;
  164. virtual-reg = <0xef600300>;
  165. clock-frequency = <0>; /* Filled in by U-Boot */
  166. current-speed = <0>;
  167. interrupt-parent = <&UIC0>;
  168. interrupts = <0x1 0x4>;
  169. };
  170. IIC0: i2c@ef600400 {
  171. compatible = "ibm,iic-405exr", "ibm,iic";
  172. reg = <0xef600400 0x00000014>;
  173. interrupt-parent = <&UIC0>;
  174. interrupts = <0x2 0x4>;
  175. };
  176. IIC1: i2c@ef600500 {
  177. compatible = "ibm,iic-405exr", "ibm,iic";
  178. reg = <0xef600500 0x00000014>;
  179. interrupt-parent = <&UIC0>;
  180. interrupts = <0x7 0x4>;
  181. };
  182. RGMII0: emac-rgmii@ef600b00 {
  183. compatible = "ibm,rgmii-405exr", "ibm,rgmii";
  184. reg = <0xef600b00 0x00000104>;
  185. has-mdio;
  186. };
  187. EMAC0: ethernet@ef600900 {
  188. linux,network-index = <0x0>;
  189. device_type = "network";
  190. compatible = "ibm,emac-405exr", "ibm,emac4sync";
  191. interrupt-parent = <&EMAC0>;
  192. interrupts = <0x0 0x1>;
  193. #interrupt-cells = <1>;
  194. #address-cells = <0>;
  195. #size-cells = <0>;
  196. interrupt-map = </*Status*/ 0x0 &UIC0 0x18 0x4
  197. /*Wake*/ 0x1 &UIC1 0x1d 0x4>;
  198. reg = <0xef600900 0x000000c4>;
  199. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  200. mal-device = <&MAL0>;
  201. mal-tx-channel = <0>;
  202. mal-rx-channel = <0>;
  203. cell-index = <0>;
  204. max-frame-size = <9000>;
  205. rx-fifo-size = <4096>;
  206. tx-fifo-size = <2048>;
  207. rx-fifo-size-gige = <16384>;
  208. tx-fifo-size-gige = <16384>;
  209. phy-mode = "rgmii";
  210. phy-map = <0x00000000>;
  211. rgmii-device = <&RGMII0>;
  212. rgmii-channel = <0>;
  213. has-inverted-stacr-oc;
  214. has-new-stacr-staopc;
  215. };
  216. };
  217. PCIE0: pciex@0a0000000 {
  218. device_type = "pci";
  219. #interrupt-cells = <1>;
  220. #size-cells = <2>;
  221. #address-cells = <3>;
  222. compatible = "ibm,plb-pciex-405ex", "ibm,plb-pciex";
  223. primary;
  224. port = <0x0>; /* port number */
  225. reg = <0xa0000000 0x20000000 /* Config space access */
  226. 0xef000000 0x00001000>; /* Registers */
  227. dcr-reg = <0x040 0x020>;
  228. sdr-base = <0x400>;
  229. /* Outbound ranges, one memory and one IO,
  230. * later cannot be changed
  231. */
  232. ranges = <0x02000000 0x00000000 0x80000000 0x90000000 0x00000000 0x08000000
  233. 0x01000000 0x00000000 0x00000000 0xe0000000 0x00000000 0x00010000>;
  234. /* Inbound 2GB range starting at 0 */
  235. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x80000000>;
  236. /* This drives busses 0x00 to 0x3f */
  237. bus-range = <0x0 0x3f>;
  238. /* Legacy interrupts (note the weird polarity, the bridge seems
  239. * to invert PCIe legacy interrupts).
  240. * We are de-swizzling here because the numbers are actually for
  241. * port of the root complex virtual P2P bridge. But I want
  242. * to avoid putting a node for it in the tree, so the numbers
  243. * below are basically de-swizzled numbers.
  244. * The real slot is on idsel 0, so the swizzling is 1:1
  245. */
  246. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  247. interrupt-map = <
  248. 0x0 0x0 0x0 0x1 &UIC2 0x0 0x4 /* swizzled int A */
  249. 0x0 0x0 0x0 0x2 &UIC2 0x1 0x4 /* swizzled int B */
  250. 0x0 0x0 0x0 0x3 &UIC2 0x2 0x4 /* swizzled int C */
  251. 0x0 0x0 0x0 0x4 &UIC2 0x3 0x4 /* swizzled int D */>;
  252. };
  253. };
  254. };