glacier.dts 12 KB

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