canyonlands.dts 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. /*
  2. * Device Tree Source for AMCC Canyonlands (460EX)
  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 = <2>;
  12. #size-cells = <1>;
  13. model = "amcc,canyonlands";
  14. compatible = "amcc,canyonlands";
  15. dcr-parent = <&/cpus/cpu@0>;
  16. aliases {
  17. ethernet0 = &EMAC0;
  18. ethernet1 = &EMAC1;
  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,460EX";
  28. reg = <0>;
  29. clock-frequency = <0>; /* Filled in by U-Boot */
  30. timebase-frequency = <0>; /* Filled in by U-Boot */
  31. i-cache-line-size = <20>;
  32. d-cache-line-size = <20>;
  33. i-cache-size = <8000>;
  34. d-cache-size = <8000>;
  35. dcr-controller;
  36. dcr-access-method = "native";
  37. };
  38. };
  39. memory {
  40. device_type = "memory";
  41. reg = <0 0 0>; /* Filled in by U-Boot */
  42. };
  43. UIC0: interrupt-controller0 {
  44. compatible = "ibm,uic-460ex","ibm,uic";
  45. interrupt-controller;
  46. cell-index = <0>;
  47. dcr-reg = <0c0 009>;
  48. #address-cells = <0>;
  49. #size-cells = <0>;
  50. #interrupt-cells = <2>;
  51. };
  52. UIC1: interrupt-controller1 {
  53. compatible = "ibm,uic-460ex","ibm,uic";
  54. interrupt-controller;
  55. cell-index = <1>;
  56. dcr-reg = <0d0 009>;
  57. #address-cells = <0>;
  58. #size-cells = <0>;
  59. #interrupt-cells = <2>;
  60. interrupts = <1e 4 1f 4>; /* cascade */
  61. interrupt-parent = <&UIC0>;
  62. };
  63. UIC2: interrupt-controller2 {
  64. compatible = "ibm,uic-460ex","ibm,uic";
  65. interrupt-controller;
  66. cell-index = <2>;
  67. dcr-reg = <0e0 009>;
  68. #address-cells = <0>;
  69. #size-cells = <0>;
  70. #interrupt-cells = <2>;
  71. interrupts = <a 4 b 4>; /* cascade */
  72. interrupt-parent = <&UIC0>;
  73. };
  74. UIC3: interrupt-controller3 {
  75. compatible = "ibm,uic-460ex","ibm,uic";
  76. interrupt-controller;
  77. cell-index = <3>;
  78. dcr-reg = <0f0 009>;
  79. #address-cells = <0>;
  80. #size-cells = <0>;
  81. #interrupt-cells = <2>;
  82. interrupts = <10 4 11 4>; /* cascade */
  83. interrupt-parent = <&UIC0>;
  84. };
  85. SDR0: sdr {
  86. compatible = "ibm,sdr-460ex";
  87. dcr-reg = <00e 002>;
  88. };
  89. CPR0: cpr {
  90. compatible = "ibm,cpr-460ex";
  91. dcr-reg = <00c 002>;
  92. };
  93. plb {
  94. compatible = "ibm,plb-460ex", "ibm,plb4";
  95. #address-cells = <2>;
  96. #size-cells = <1>;
  97. ranges;
  98. clock-frequency = <0>; /* Filled in by U-Boot */
  99. SDRAM0: sdram {
  100. compatible = "ibm,sdram-460ex", "ibm,sdram-405gp";
  101. dcr-reg = <010 2>;
  102. };
  103. MAL0: mcmal {
  104. compatible = "ibm,mcmal-460ex", "ibm,mcmal2";
  105. dcr-reg = <180 62>;
  106. num-tx-chans = <2>;
  107. num-rx-chans = <10>;
  108. #address-cells = <0>;
  109. #size-cells = <0>;
  110. interrupt-parent = <&UIC2>;
  111. interrupts = < /*TXEOB*/ 6 4
  112. /*RXEOB*/ 7 4
  113. /*SERR*/ 3 4
  114. /*TXDE*/ 4 4
  115. /*RXDE*/ 5 4>;
  116. };
  117. POB0: opb {
  118. compatible = "ibm,opb-460ex", "ibm,opb";
  119. #address-cells = <1>;
  120. #size-cells = <1>;
  121. ranges = <b0000000 4 b0000000 50000000>;
  122. clock-frequency = <0>; /* Filled in by U-Boot */
  123. EBC0: ebc {
  124. compatible = "ibm,ebc-460ex", "ibm,ebc";
  125. dcr-reg = <012 2>;
  126. #address-cells = <2>;
  127. #size-cells = <1>;
  128. clock-frequency = <0>; /* Filled in by U-Boot */
  129. interrupts = <6 4>;
  130. interrupt-parent = <&UIC1>;
  131. };
  132. UART0: serial@ef600300 {
  133. device_type = "serial";
  134. compatible = "ns16550";
  135. reg = <ef600300 8>;
  136. virtual-reg = <ef600300>;
  137. clock-frequency = <0>; /* Filled in by U-Boot */
  138. current-speed = <0>; /* Filled in by U-Boot */
  139. interrupt-parent = <&UIC1>;
  140. interrupts = <1 4>;
  141. };
  142. UART1: serial@ef600400 {
  143. device_type = "serial";
  144. compatible = "ns16550";
  145. reg = <ef600400 8>;
  146. virtual-reg = <ef600400>;
  147. clock-frequency = <0>; /* Filled in by U-Boot */
  148. current-speed = <0>; /* Filled in by U-Boot */
  149. interrupt-parent = <&UIC0>;
  150. interrupts = <1 4>;
  151. };
  152. UART2: serial@ef600500 {
  153. device_type = "serial";
  154. compatible = "ns16550";
  155. reg = <ef600500 8>;
  156. virtual-reg = <ef600500>;
  157. clock-frequency = <0>; /* Filled in by U-Boot */
  158. current-speed = <0>; /* Filled in by U-Boot */
  159. interrupt-parent = <&UIC1>;
  160. interrupts = <1d 4>;
  161. };
  162. UART3: serial@ef600600 {
  163. device_type = "serial";
  164. compatible = "ns16550";
  165. reg = <ef600600 8>;
  166. virtual-reg = <ef600600>;
  167. clock-frequency = <0>; /* Filled in by U-Boot */
  168. current-speed = <0>; /* Filled in by U-Boot */
  169. interrupt-parent = <&UIC1>;
  170. interrupts = <1e 4>;
  171. };
  172. IIC0: i2c@ef600700 {
  173. compatible = "ibm,iic-460ex", "ibm,iic";
  174. reg = <ef600700 14>;
  175. interrupt-parent = <&UIC0>;
  176. interrupts = <2 4>;
  177. };
  178. IIC1: i2c@ef600800 {
  179. compatible = "ibm,iic-460ex", "ibm,iic";
  180. reg = <ef600800 14>;
  181. interrupt-parent = <&UIC0>;
  182. interrupts = <3 4>;
  183. };
  184. ZMII0: emac-zmii@ef600d00 {
  185. compatible = "ibm,zmii-460ex", "ibm,zmii";
  186. reg = <ef600d00 c>;
  187. };
  188. RGMII0: emac-rgmii@ef601500 {
  189. compatible = "ibm,rgmii-460ex", "ibm,rgmii";
  190. reg = <ef601500 8>;
  191. has-mdio;
  192. };
  193. TAH0: emac-tah@ef601350 {
  194. compatible = "ibm,tah-460ex", "ibm,tah";
  195. reg = <ef601350 30>;
  196. };
  197. TAH1: emac-tah@ef601450 {
  198. compatible = "ibm,tah-460ex", "ibm,tah";
  199. reg = <ef601450 30>;
  200. };
  201. EMAC0: ethernet@ef600e00 {
  202. device_type = "network";
  203. compatible = "ibm,emac-460ex", "ibm,emac4";
  204. interrupt-parent = <&EMAC0>;
  205. interrupts = <0 1>;
  206. #interrupt-cells = <1>;
  207. #address-cells = <0>;
  208. #size-cells = <0>;
  209. interrupt-map = </*Status*/ 0 &UIC2 10 4
  210. /*Wake*/ 1 &UIC2 14 4>;
  211. reg = <ef600e00 70>;
  212. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  213. mal-device = <&MAL0>;
  214. mal-tx-channel = <0>;
  215. mal-rx-channel = <0>;
  216. cell-index = <0>;
  217. max-frame-size = <2328>;
  218. rx-fifo-size = <1000>;
  219. tx-fifo-size = <800>;
  220. phy-mode = "rgmii";
  221. phy-map = <00000000>;
  222. rgmii-device = <&RGMII0>;
  223. rgmii-channel = <0>;
  224. tah-device = <&TAH0>;
  225. tah-channel = <0>;
  226. has-inverted-stacr-oc;
  227. has-new-stacr-staopc;
  228. };
  229. EMAC1: ethernet@ef600f00 {
  230. device_type = "network";
  231. compatible = "ibm,emac-460ex", "ibm,emac4";
  232. interrupt-parent = <&EMAC1>;
  233. interrupts = <0 1>;
  234. #interrupt-cells = <1>;
  235. #address-cells = <0>;
  236. #size-cells = <0>;
  237. interrupt-map = </*Status*/ 0 &UIC2 11 4
  238. /*Wake*/ 1 &UIC2 15 4>;
  239. reg = <ef600f00 70>;
  240. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  241. mal-device = <&MAL0>;
  242. mal-tx-channel = <1>;
  243. mal-rx-channel = <8>;
  244. cell-index = <1>;
  245. max-frame-size = <2328>;
  246. rx-fifo-size = <1000>;
  247. tx-fifo-size = <800>;
  248. phy-mode = "rgmii";
  249. phy-map = <00000000>;
  250. rgmii-device = <&RGMII0>;
  251. rgmii-channel = <1>;
  252. tah-device = <&TAH1>;
  253. tah-channel = <1>;
  254. has-inverted-stacr-oc;
  255. has-new-stacr-staopc;
  256. mdio-device = <&EMAC0>;
  257. };
  258. };
  259. PCIX0: pci@c0ec00000 {
  260. device_type = "pci";
  261. #interrupt-cells = <1>;
  262. #size-cells = <2>;
  263. #address-cells = <3>;
  264. compatible = "ibm,plb-pcix-460ex", "ibm,plb-pcix";
  265. primary;
  266. large-inbound-windows;
  267. enable-msi-hole;
  268. reg = <c 0ec00000 8 /* Config space access */
  269. 0 0 0 /* no IACK cycles */
  270. c 0ed00000 4 /* Special cycles */
  271. c 0ec80000 100 /* Internal registers */
  272. c 0ec80100 fc>; /* Internal messaging registers */
  273. /* Outbound ranges, one memory and one IO,
  274. * later cannot be changed
  275. */
  276. ranges = <02000000 0 80000000 0000000d 80000000 0 80000000
  277. 01000000 0 00000000 0000000c 08000000 0 00010000>;
  278. /* Inbound 2GB range starting at 0 */
  279. dma-ranges = <42000000 0 0 0 0 0 80000000>;
  280. /* This drives busses 0 to 0x3f */
  281. bus-range = <0 3f>;
  282. /* All PCI interrupts are routed to ext IRQ 2 -> UIC1-0 */
  283. interrupt-map-mask = <0000 0 0 0>;
  284. interrupt-map = < 0000 0 0 0 &UIC1 0 8 >;
  285. };
  286. PCIE0: pciex@d00000000 {
  287. device_type = "pci";
  288. #interrupt-cells = <1>;
  289. #size-cells = <2>;
  290. #address-cells = <3>;
  291. compatible = "ibm,plb-pciex-460ex", "ibm,plb-pciex";
  292. primary;
  293. port = <0>; /* port number */
  294. reg = <d 00000000 20000000 /* Config space access */
  295. c 08010000 00001000>; /* Registers */
  296. dcr-reg = <100 020>;
  297. sdr-base = <300>;
  298. /* Outbound ranges, one memory and one IO,
  299. * later cannot be changed
  300. */
  301. ranges = <02000000 0 80000000 0000000e 00000000 0 80000000
  302. 01000000 0 00000000 0000000f 80000000 0 00010000>;
  303. /* Inbound 2GB range starting at 0 */
  304. dma-ranges = <42000000 0 0 0 0 0 80000000>;
  305. /* This drives busses 40 to 0x7f */
  306. bus-range = <40 7f>;
  307. /* Legacy interrupts (note the weird polarity, the bridge seems
  308. * to invert PCIe legacy interrupts).
  309. * We are de-swizzling here because the numbers are actually for
  310. * port of the root complex virtual P2P bridge. But I want
  311. * to avoid putting a node for it in the tree, so the numbers
  312. * below are basically de-swizzled numbers.
  313. * The real slot is on idsel 0, so the swizzling is 1:1
  314. */
  315. interrupt-map-mask = <0000 0 0 7>;
  316. interrupt-map = <
  317. 0000 0 0 1 &UIC3 c 4 /* swizzled int A */
  318. 0000 0 0 2 &UIC3 d 4 /* swizzled int B */
  319. 0000 0 0 3 &UIC3 e 4 /* swizzled int C */
  320. 0000 0 0 4 &UIC3 f 4 /* swizzled int D */>;
  321. };
  322. PCIE1: pciex@d20000000 {
  323. device_type = "pci";
  324. #interrupt-cells = <1>;
  325. #size-cells = <2>;
  326. #address-cells = <3>;
  327. compatible = "ibm,plb-pciex-460ex", "ibm,plb-pciex";
  328. primary;
  329. port = <1>; /* port number */
  330. reg = <d 20000000 20000000 /* Config space access */
  331. c 08011000 00001000>; /* Registers */
  332. dcr-reg = <120 020>;
  333. sdr-base = <340>;
  334. /* Outbound ranges, one memory and one IO,
  335. * later cannot be changed
  336. */
  337. ranges = <02000000 0 80000000 0000000e 80000000 0 80000000
  338. 01000000 0 00000000 0000000f 80010000 0 00010000>;
  339. /* Inbound 2GB range starting at 0 */
  340. dma-ranges = <42000000 0 0 0 0 0 80000000>;
  341. /* This drives busses 80 to 0xbf */
  342. bus-range = <80 bf>;
  343. /* Legacy interrupts (note the weird polarity, the bridge seems
  344. * to invert PCIe legacy interrupts).
  345. * We are de-swizzling here because the numbers are actually for
  346. * port of the root complex virtual P2P bridge. But I want
  347. * to avoid putting a node for it in the tree, so the numbers
  348. * below are basically de-swizzled numbers.
  349. * The real slot is on idsel 0, so the swizzling is 1:1
  350. */
  351. interrupt-map-mask = <0000 0 0 7>;
  352. interrupt-map = <
  353. 0000 0 0 1 &UIC3 10 4 /* swizzled int A */
  354. 0000 0 0 2 &UIC3 11 4 /* swizzled int B */
  355. 0000 0 0 3 &UIC3 12 4 /* swizzled int C */
  356. 0000 0 0 4 &UIC3 13 4 /* swizzled int D */>;
  357. };
  358. };
  359. };