haleakala.dts 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  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. / {
  11. #address-cells = <1>;
  12. #size-cells = <1>;
  13. model = "amcc,haleakala";
  14. compatible = "amcc,haleakala", "amcc,kilauea";
  15. dcr-parent = <&/cpus/cpu@0>;
  16. aliases {
  17. ethernet0 = &EMAC0;
  18. serial0 = &UART0;
  19. serial1 = &UART1;
  20. };
  21. cpus {
  22. #address-cells = <1>;
  23. #size-cells = <0>;
  24. cpu@0 {
  25. device_type = "cpu";
  26. model = "PowerPC,405EXr";
  27. reg = <0>;
  28. clock-frequency = <0>; /* Filled in by U-Boot */
  29. timebase-frequency = <0>; /* Filled in by U-Boot */
  30. i-cache-line-size = <20>;
  31. d-cache-line-size = <20>;
  32. i-cache-size = <4000>; /* 16 kB */
  33. d-cache-size = <4000>; /* 16 kB */
  34. dcr-controller;
  35. dcr-access-method = "native";
  36. };
  37. };
  38. memory {
  39. device_type = "memory";
  40. reg = <0 0>; /* Filled in by U-Boot */
  41. };
  42. UIC0: interrupt-controller {
  43. compatible = "ibm,uic-405exr", "ibm,uic";
  44. interrupt-controller;
  45. cell-index = <0>;
  46. dcr-reg = <0c0 009>;
  47. #address-cells = <0>;
  48. #size-cells = <0>;
  49. #interrupt-cells = <2>;
  50. };
  51. UIC1: interrupt-controller1 {
  52. compatible = "ibm,uic-405exr","ibm,uic";
  53. interrupt-controller;
  54. cell-index = <1>;
  55. dcr-reg = <0d0 009>;
  56. #address-cells = <0>;
  57. #size-cells = <0>;
  58. #interrupt-cells = <2>;
  59. interrupts = <1e 4 1f 4>; /* cascade */
  60. interrupt-parent = <&UIC0>;
  61. };
  62. UIC2: interrupt-controller2 {
  63. compatible = "ibm,uic-405exr","ibm,uic";
  64. interrupt-controller;
  65. cell-index = <2>;
  66. dcr-reg = <0e0 009>;
  67. #address-cells = <0>;
  68. #size-cells = <0>;
  69. #interrupt-cells = <2>;
  70. interrupts = <1c 4 1d 4>; /* cascade */
  71. interrupt-parent = <&UIC0>;
  72. };
  73. plb {
  74. compatible = "ibm,plb-405exr", "ibm,plb4";
  75. #address-cells = <1>;
  76. #size-cells = <1>;
  77. ranges;
  78. clock-frequency = <0>; /* Filled in by U-Boot */
  79. SDRAM0: memory-controller {
  80. compatible = "ibm,sdram-405exr";
  81. dcr-reg = <010 2>;
  82. };
  83. MAL0: mcmal {
  84. compatible = "ibm,mcmal-405exr", "ibm,mcmal2";
  85. dcr-reg = <180 62>;
  86. num-tx-chans = <2>;
  87. num-rx-chans = <2>;
  88. interrupt-parent = <&MAL0>;
  89. interrupts = <0 1 2 3 4>;
  90. #interrupt-cells = <1>;
  91. #address-cells = <0>;
  92. #size-cells = <0>;
  93. interrupt-map = </*TXEOB*/ 0 &UIC0 a 4
  94. /*RXEOB*/ 1 &UIC0 b 4
  95. /*SERR*/ 2 &UIC1 0 4
  96. /*TXDE*/ 3 &UIC1 1 4
  97. /*RXDE*/ 4 &UIC1 2 4>;
  98. interrupt-map-mask = <ffffffff>;
  99. };
  100. POB0: opb {
  101. compatible = "ibm,opb-405exr", "ibm,opb";
  102. #address-cells = <1>;
  103. #size-cells = <1>;
  104. ranges = <80000000 80000000 10000000
  105. ef600000 ef600000 a00000
  106. f0000000 f0000000 10000000>;
  107. dcr-reg = <0a0 5>;
  108. clock-frequency = <0>; /* Filled in by U-Boot */
  109. EBC0: ebc {
  110. compatible = "ibm,ebc-405exr", "ibm,ebc";
  111. dcr-reg = <012 2>;
  112. #address-cells = <2>;
  113. #size-cells = <1>;
  114. clock-frequency = <0>; /* Filled in by U-Boot */
  115. /* ranges property is supplied by U-Boot */
  116. interrupts = <5 1>;
  117. interrupt-parent = <&UIC1>;
  118. nor_flash@0,0 {
  119. compatible = "amd,s29gl512n", "cfi-flash";
  120. bank-width = <2>;
  121. reg = <0 000000 4000000>;
  122. #address-cells = <1>;
  123. #size-cells = <1>;
  124. partition@0 {
  125. label = "kernel";
  126. reg = <0 200000>;
  127. };
  128. partition@200000 {
  129. label = "root";
  130. reg = <200000 200000>;
  131. };
  132. partition@400000 {
  133. label = "user";
  134. reg = <400000 3b60000>;
  135. };
  136. partition@3f60000 {
  137. label = "env";
  138. reg = <3f60000 40000>;
  139. };
  140. partition@3fa0000 {
  141. label = "u-boot";
  142. reg = <3fa0000 60000>;
  143. };
  144. };
  145. };
  146. UART0: serial@ef600200 {
  147. device_type = "serial";
  148. compatible = "ns16550";
  149. reg = <ef600200 8>;
  150. virtual-reg = <ef600200>;
  151. clock-frequency = <0>; /* Filled in by U-Boot */
  152. current-speed = <0>;
  153. interrupt-parent = <&UIC0>;
  154. interrupts = <1a 4>;
  155. };
  156. UART1: serial@ef600300 {
  157. device_type = "serial";
  158. compatible = "ns16550";
  159. reg = <ef600300 8>;
  160. virtual-reg = <ef600300>;
  161. clock-frequency = <0>; /* Filled in by U-Boot */
  162. current-speed = <0>;
  163. interrupt-parent = <&UIC0>;
  164. interrupts = <1 4>;
  165. };
  166. IIC0: i2c@ef600400 {
  167. compatible = "ibm,iic-405exr", "ibm,iic";
  168. reg = <ef600400 14>;
  169. interrupt-parent = <&UIC0>;
  170. interrupts = <2 4>;
  171. };
  172. IIC1: i2c@ef600500 {
  173. compatible = "ibm,iic-405exr", "ibm,iic";
  174. reg = <ef600500 14>;
  175. interrupt-parent = <&UIC0>;
  176. interrupts = <7 4>;
  177. };
  178. RGMII0: emac-rgmii@ef600b00 {
  179. compatible = "ibm,rgmii-405exr", "ibm,rgmii";
  180. reg = <ef600b00 104>;
  181. has-mdio;
  182. };
  183. EMAC0: ethernet@ef600900 {
  184. linux,network-index = <0>;
  185. device_type = "network";
  186. compatible = "ibm,emac-405exr", "ibm,emac4";
  187. interrupt-parent = <&EMAC0>;
  188. interrupts = <0 1>;
  189. #interrupt-cells = <1>;
  190. #address-cells = <0>;
  191. #size-cells = <0>;
  192. interrupt-map = </*Status*/ 0 &UIC0 18 4
  193. /*Wake*/ 1 &UIC1 1d 4>;
  194. reg = <ef600900 70>;
  195. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  196. mal-device = <&MAL0>;
  197. mal-tx-channel = <0>;
  198. mal-rx-channel = <0>;
  199. cell-index = <0>;
  200. max-frame-size = <2328>;
  201. rx-fifo-size = <1000>;
  202. tx-fifo-size = <800>;
  203. phy-mode = "rgmii";
  204. phy-map = <00000000>;
  205. rgmii-device = <&RGMII0>;
  206. rgmii-channel = <0>;
  207. has-inverted-stacr-oc;
  208. has-new-stacr-staopc;
  209. };
  210. };
  211. PCIE0: pciex@0a0000000 {
  212. device_type = "pci";
  213. #interrupt-cells = <1>;
  214. #size-cells = <2>;
  215. #address-cells = <3>;
  216. compatible = "ibm,plb-pciex-405ex", "ibm,plb-pciex";
  217. primary;
  218. port = <0>; /* port number */
  219. reg = <a0000000 20000000 /* Config space access */
  220. ef000000 00001000>; /* Registers */
  221. dcr-reg = <040 020>;
  222. sdr-base = <400>;
  223. /* Outbound ranges, one memory and one IO,
  224. * later cannot be changed
  225. */
  226. ranges = <02000000 0 80000000 90000000 0 08000000
  227. 01000000 0 00000000 e0000000 0 00010000>;
  228. /* Inbound 2GB range starting at 0 */
  229. dma-ranges = <42000000 0 0 0 0 80000000>;
  230. /* This drives busses 0x00 to 0x3f */
  231. bus-range = <00 3f>;
  232. /* Legacy interrupts (note the weird polarity, the bridge seems
  233. * to invert PCIe legacy interrupts).
  234. * We are de-swizzling here because the numbers are actually for
  235. * port of the root complex virtual P2P bridge. But I want
  236. * to avoid putting a node for it in the tree, so the numbers
  237. * below are basically de-swizzled numbers.
  238. * The real slot is on idsel 0, so the swizzling is 1:1
  239. */
  240. interrupt-map-mask = <0000 0 0 7>;
  241. interrupt-map = <
  242. 0000 0 0 1 &UIC2 0 4 /* swizzled int A */
  243. 0000 0 0 2 &UIC2 1 4 /* swizzled int B */
  244. 0000 0 0 3 &UIC2 2 4 /* swizzled int C */
  245. 0000 0 0 4 &UIC2 3 4 /* swizzled int D */>;
  246. };
  247. };
  248. };