haleakala.dts 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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";
  82. dcr-reg = <0x010 0x002>;
  83. };
  84. MAL0: mcmal {
  85. compatible = "ibm,mcmal-405exr", "ibm,mcmal2";
  86. dcr-reg = <0x180 0x062>;
  87. num-tx-chans = <2>;
  88. num-rx-chans = <2>;
  89. interrupt-parent = <&MAL0>;
  90. interrupts = <0x0 0x1 0x2 0x3 0x4>;
  91. #interrupt-cells = <1>;
  92. #address-cells = <0>;
  93. #size-cells = <0>;
  94. interrupt-map = </*TXEOB*/ 0x0 &UIC0 0xa 0x4
  95. /*RXEOB*/ 0x1 &UIC0 0xb 0x4
  96. /*SERR*/ 0x2 &UIC1 0x0 0x4
  97. /*TXDE*/ 0x3 &UIC1 0x1 0x4
  98. /*RXDE*/ 0x4 &UIC1 0x2 0x4>;
  99. interrupt-map-mask = <0xffffffff>;
  100. };
  101. POB0: opb {
  102. compatible = "ibm,opb-405exr", "ibm,opb";
  103. #address-cells = <1>;
  104. #size-cells = <1>;
  105. ranges = <0x80000000 0x80000000 0x10000000
  106. 0xef600000 0xef600000 0x00a00000
  107. 0xf0000000 0xf0000000 0x10000000>;
  108. dcr-reg = <0x0a0 0x005>;
  109. clock-frequency = <0>; /* Filled in by U-Boot */
  110. EBC0: ebc {
  111. compatible = "ibm,ebc-405exr", "ibm,ebc";
  112. dcr-reg = <0x012 0x002>;
  113. #address-cells = <2>;
  114. #size-cells = <1>;
  115. clock-frequency = <0>; /* Filled in by U-Boot */
  116. /* ranges property is supplied by U-Boot */
  117. interrupts = <0x5 0x1>;
  118. interrupt-parent = <&UIC1>;
  119. nor_flash@0,0 {
  120. compatible = "amd,s29gl512n", "cfi-flash";
  121. bank-width = <2>;
  122. reg = <0x00000000 0x00000000 0x04000000>;
  123. #address-cells = <1>;
  124. #size-cells = <1>;
  125. partition@0 {
  126. label = "kernel";
  127. reg = <0x00000000 0x00200000>;
  128. };
  129. partition@200000 {
  130. label = "root";
  131. reg = <0x00200000 0x00200000>;
  132. };
  133. partition@400000 {
  134. label = "user";
  135. reg = <0x00400000 0x03b60000>;
  136. };
  137. partition@3f60000 {
  138. label = "env";
  139. reg = <0x03f60000 0x00040000>;
  140. };
  141. partition@3fa0000 {
  142. label = "u-boot";
  143. reg = <0x03fa0000 0x00060000>;
  144. };
  145. };
  146. };
  147. UART0: serial@ef600200 {
  148. device_type = "serial";
  149. compatible = "ns16550";
  150. reg = <0xef600200 0x00000008>;
  151. virtual-reg = <0xef600200>;
  152. clock-frequency = <0>; /* Filled in by U-Boot */
  153. current-speed = <0>;
  154. interrupt-parent = <&UIC0>;
  155. interrupts = <0x1a 0x4>;
  156. };
  157. UART1: serial@ef600300 {
  158. device_type = "serial";
  159. compatible = "ns16550";
  160. reg = <0xef600300 0x00000008>;
  161. virtual-reg = <0xef600300>;
  162. clock-frequency = <0>; /* Filled in by U-Boot */
  163. current-speed = <0>;
  164. interrupt-parent = <&UIC0>;
  165. interrupts = <0x1 0x4>;
  166. };
  167. IIC0: i2c@ef600400 {
  168. compatible = "ibm,iic-405exr", "ibm,iic";
  169. reg = <0xef600400 0x00000014>;
  170. interrupt-parent = <&UIC0>;
  171. interrupts = <0x2 0x4>;
  172. };
  173. IIC1: i2c@ef600500 {
  174. compatible = "ibm,iic-405exr", "ibm,iic";
  175. reg = <0xef600500 0x00000014>;
  176. interrupt-parent = <&UIC0>;
  177. interrupts = <0x7 0x4>;
  178. };
  179. RGMII0: emac-rgmii@ef600b00 {
  180. compatible = "ibm,rgmii-405exr", "ibm,rgmii";
  181. reg = <0xef600b00 0x00000104>;
  182. has-mdio;
  183. };
  184. EMAC0: ethernet@ef600900 {
  185. linux,network-index = <0x0>;
  186. device_type = "network";
  187. compatible = "ibm,emac-405exr", "ibm,emac4sync";
  188. interrupt-parent = <&EMAC0>;
  189. interrupts = <0x0 0x1>;
  190. #interrupt-cells = <1>;
  191. #address-cells = <0>;
  192. #size-cells = <0>;
  193. interrupt-map = </*Status*/ 0x0 &UIC0 0x18 0x4
  194. /*Wake*/ 0x1 &UIC1 0x1d 0x4>;
  195. reg = <0xef600900 0x000000c4>;
  196. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  197. mal-device = <&MAL0>;
  198. mal-tx-channel = <0>;
  199. mal-rx-channel = <0>;
  200. cell-index = <0>;
  201. max-frame-size = <9000>;
  202. rx-fifo-size = <4096>;
  203. tx-fifo-size = <2048>;
  204. phy-mode = "rgmii";
  205. phy-map = <0x00000000>;
  206. rgmii-device = <&RGMII0>;
  207. rgmii-channel = <0>;
  208. has-inverted-stacr-oc;
  209. has-new-stacr-staopc;
  210. };
  211. };
  212. PCIE0: pciex@0a0000000 {
  213. device_type = "pci";
  214. #interrupt-cells = <1>;
  215. #size-cells = <2>;
  216. #address-cells = <3>;
  217. compatible = "ibm,plb-pciex-405ex", "ibm,plb-pciex";
  218. primary;
  219. port = <0x0>; /* port number */
  220. reg = <0xa0000000 0x20000000 /* Config space access */
  221. 0xef000000 0x00001000>; /* Registers */
  222. dcr-reg = <0x040 0x020>;
  223. sdr-base = <0x400>;
  224. /* Outbound ranges, one memory and one IO,
  225. * later cannot be changed
  226. */
  227. ranges = <0x02000000 0x00000000 0x80000000 0x90000000 0x00000000 0x08000000
  228. 0x01000000 0x00000000 0x00000000 0xe0000000 0x00000000 0x00010000>;
  229. /* Inbound 2GB range starting at 0 */
  230. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x80000000>;
  231. /* This drives busses 0x00 to 0x3f */
  232. bus-range = <0x0 0x3f>;
  233. /* Legacy interrupts (note the weird polarity, the bridge seems
  234. * to invert PCIe legacy interrupts).
  235. * We are de-swizzling here because the numbers are actually for
  236. * port of the root complex virtual P2P bridge. But I want
  237. * to avoid putting a node for it in the tree, so the numbers
  238. * below are basically de-swizzled numbers.
  239. * The real slot is on idsel 0, so the swizzling is 1:1
  240. */
  241. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  242. interrupt-map = <
  243. 0x0 0x0 0x0 0x1 &UIC2 0x0 0x4 /* swizzled int A */
  244. 0x0 0x0 0x0 0x2 &UIC2 0x1 0x4 /* swizzled int B */
  245. 0x0 0x0 0x0 0x3 &UIC2 0x2 0x4 /* swizzled int C */
  246. 0x0 0x0 0x0 0x4 &UIC2 0x3 0x4 /* swizzled int D */>;
  247. };
  248. };
  249. };