glacier.dts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506
  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. /dts-v1/;
  11. / {
  12. #address-cells = <2>;
  13. #size-cells = <1>;
  14. model = "amcc,glacier";
  15. compatible = "amcc,glacier";
  16. dcr-parent = <&{/cpus/cpu@0}>;
  17. aliases {
  18. ethernet0 = &EMAC0;
  19. ethernet1 = &EMAC1;
  20. ethernet2 = &EMAC2;
  21. ethernet3 = &EMAC3;
  22. serial0 = &UART0;
  23. serial1 = &UART1;
  24. };
  25. cpus {
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. cpu@0 {
  29. device_type = "cpu";
  30. model = "PowerPC,460GT";
  31. reg = <0x00000000>;
  32. clock-frequency = <0>; /* Filled in by U-Boot */
  33. timebase-frequency = <0>; /* Filled in by U-Boot */
  34. i-cache-line-size = <32>;
  35. d-cache-line-size = <32>;
  36. i-cache-size = <32768>;
  37. d-cache-size = <32768>;
  38. dcr-controller;
  39. dcr-access-method = "native";
  40. };
  41. };
  42. memory {
  43. device_type = "memory";
  44. reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by U-Boot */
  45. };
  46. UIC0: interrupt-controller0 {
  47. compatible = "ibm,uic-460gt","ibm,uic";
  48. interrupt-controller;
  49. cell-index = <0>;
  50. dcr-reg = <0x0c0 0x009>;
  51. #address-cells = <0>;
  52. #size-cells = <0>;
  53. #interrupt-cells = <2>;
  54. };
  55. UIC1: interrupt-controller1 {
  56. compatible = "ibm,uic-460gt","ibm,uic";
  57. interrupt-controller;
  58. cell-index = <1>;
  59. dcr-reg = <0x0d0 0x009>;
  60. #address-cells = <0>;
  61. #size-cells = <0>;
  62. #interrupt-cells = <2>;
  63. interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
  64. interrupt-parent = <&UIC0>;
  65. };
  66. UIC2: interrupt-controller2 {
  67. compatible = "ibm,uic-460gt","ibm,uic";
  68. interrupt-controller;
  69. cell-index = <2>;
  70. dcr-reg = <0x0e0 0x009>;
  71. #address-cells = <0>;
  72. #size-cells = <0>;
  73. #interrupt-cells = <2>;
  74. interrupts = <0xa 0x4 0xb 0x4>; /* cascade */
  75. interrupt-parent = <&UIC0>;
  76. };
  77. UIC3: interrupt-controller3 {
  78. compatible = "ibm,uic-460gt","ibm,uic";
  79. interrupt-controller;
  80. cell-index = <3>;
  81. dcr-reg = <0x0f0 0x009>;
  82. #address-cells = <0>;
  83. #size-cells = <0>;
  84. #interrupt-cells = <2>;
  85. interrupts = <0x10 0x4 0x11 0x4>; /* cascade */
  86. interrupt-parent = <&UIC0>;
  87. };
  88. SDR0: sdr {
  89. compatible = "ibm,sdr-460gt";
  90. dcr-reg = <0x00e 0x002>;
  91. };
  92. CPR0: cpr {
  93. compatible = "ibm,cpr-460gt";
  94. dcr-reg = <0x00c 0x002>;
  95. };
  96. plb {
  97. compatible = "ibm,plb-460gt", "ibm,plb4";
  98. #address-cells = <2>;
  99. #size-cells = <1>;
  100. ranges;
  101. clock-frequency = <0>; /* Filled in by U-Boot */
  102. SDRAM0: sdram {
  103. compatible = "ibm,sdram-460gt", "ibm,sdram-405gp";
  104. dcr-reg = <0x010 0x002>;
  105. };
  106. MAL0: mcmal {
  107. compatible = "ibm,mcmal-460gt", "ibm,mcmal2";
  108. dcr-reg = <0x180 0x062>;
  109. num-tx-chans = <4>;
  110. num-rx-chans = <32>;
  111. #address-cells = <0>;
  112. #size-cells = <0>;
  113. interrupt-parent = <&UIC2>;
  114. interrupts = < /*TXEOB*/ 0x6 0x4
  115. /*RXEOB*/ 0x7 0x4
  116. /*SERR*/ 0x3 0x4
  117. /*TXDE*/ 0x4 0x4
  118. /*RXDE*/ 0x5 0x4>;
  119. desc-base-addr-high = <0x8>;
  120. };
  121. POB0: opb {
  122. compatible = "ibm,opb-460gt", "ibm,opb";
  123. #address-cells = <1>;
  124. #size-cells = <1>;
  125. ranges = <0xb0000000 0x00000004 0xb0000000 0x50000000>;
  126. clock-frequency = <0>; /* Filled in by U-Boot */
  127. EBC0: ebc {
  128. compatible = "ibm,ebc-460gt", "ibm,ebc";
  129. dcr-reg = <0x012 0x002>;
  130. #address-cells = <2>;
  131. #size-cells = <1>;
  132. clock-frequency = <0>; /* Filled in by U-Boot */
  133. /* ranges property is supplied by U-Boot */
  134. interrupts = <0x6 0x4>;
  135. interrupt-parent = <&UIC1>;
  136. nor_flash@0,0 {
  137. compatible = "amd,s29gl512n", "cfi-flash";
  138. bank-width = <2>;
  139. reg = <0x00000000 0x00000000 0x04000000>;
  140. #address-cells = <1>;
  141. #size-cells = <1>;
  142. partition@0 {
  143. label = "kernel";
  144. reg = <0x00000000 0x001e0000>;
  145. };
  146. partition@1e0000 {
  147. label = "dtb";
  148. reg = <0x001e0000 0x00020000>;
  149. };
  150. partition@200000 {
  151. label = "ramdisk";
  152. reg = <0x00200000 0x01400000>;
  153. };
  154. partition@1600000 {
  155. label = "jffs2";
  156. reg = <0x01600000 0x00400000>;
  157. };
  158. partition@1a00000 {
  159. label = "user";
  160. reg = <0x01a00000 0x02560000>;
  161. };
  162. partition@3f60000 {
  163. label = "env";
  164. reg = <0x03f60000 0x00040000>;
  165. };
  166. partition@3fa0000 {
  167. label = "u-boot";
  168. reg = <0x03fa0000 0x00060000>;
  169. };
  170. };
  171. };
  172. UART0: serial@ef600300 {
  173. device_type = "serial";
  174. compatible = "ns16550";
  175. reg = <0xef600300 0x00000008>;
  176. virtual-reg = <0xef600300>;
  177. clock-frequency = <0>; /* Filled in by U-Boot */
  178. current-speed = <0>; /* Filled in by U-Boot */
  179. interrupt-parent = <&UIC1>;
  180. interrupts = <0x1 0x4>;
  181. };
  182. UART1: serial@ef600400 {
  183. device_type = "serial";
  184. compatible = "ns16550";
  185. reg = <0xef600400 0x00000008>;
  186. virtual-reg = <0xef600400>;
  187. clock-frequency = <0>; /* Filled in by U-Boot */
  188. current-speed = <0>; /* Filled in by U-Boot */
  189. interrupt-parent = <&UIC0>;
  190. interrupts = <0x1 0x4>;
  191. };
  192. UART2: serial@ef600500 {
  193. device_type = "serial";
  194. compatible = "ns16550";
  195. reg = <0xef600500 0x00000008>;
  196. virtual-reg = <0xef600500>;
  197. clock-frequency = <0>; /* Filled in by U-Boot */
  198. current-speed = <0>; /* Filled in by U-Boot */
  199. interrupt-parent = <&UIC1>;
  200. interrupts = <0x1d 0x4>;
  201. };
  202. UART3: serial@ef600600 {
  203. device_type = "serial";
  204. compatible = "ns16550";
  205. reg = <0xef600600 0x00000008>;
  206. virtual-reg = <0xef600600>;
  207. clock-frequency = <0>; /* Filled in by U-Boot */
  208. current-speed = <0>; /* Filled in by U-Boot */
  209. interrupt-parent = <&UIC1>;
  210. interrupts = <0x1e 0x4>;
  211. };
  212. IIC0: i2c@ef600700 {
  213. compatible = "ibm,iic-460gt", "ibm,iic";
  214. reg = <0xef600700 0x00000014>;
  215. interrupt-parent = <&UIC0>;
  216. interrupts = <0x2 0x4>;
  217. };
  218. IIC1: i2c@ef600800 {
  219. compatible = "ibm,iic-460gt", "ibm,iic";
  220. reg = <0xef600800 0x00000014>;
  221. interrupt-parent = <&UIC0>;
  222. interrupts = <0x3 0x4>;
  223. };
  224. ZMII0: emac-zmii@ef600d00 {
  225. compatible = "ibm,zmii-460gt", "ibm,zmii";
  226. reg = <0xef600d00 0x0000000c>;
  227. };
  228. RGMII0: emac-rgmii@ef601500 {
  229. compatible = "ibm,rgmii-460gt", "ibm,rgmii";
  230. reg = <0xef601500 0x00000008>;
  231. has-mdio;
  232. };
  233. RGMII1: emac-rgmii@ef601600 {
  234. compatible = "ibm,rgmii-460gt", "ibm,rgmii";
  235. reg = <0xef601600 0x00000008>;
  236. has-mdio;
  237. };
  238. TAH0: emac-tah@ef601350 {
  239. compatible = "ibm,tah-460gt", "ibm,tah";
  240. reg = <0xef601350 0x00000030>;
  241. };
  242. TAH1: emac-tah@ef601450 {
  243. compatible = "ibm,tah-460gt", "ibm,tah";
  244. reg = <0xef601450 0x00000030>;
  245. };
  246. EMAC0: ethernet@ef600e00 {
  247. device_type = "network";
  248. compatible = "ibm,emac-460gt", "ibm,emac4";
  249. interrupt-parent = <&EMAC0>;
  250. interrupts = <0x0 0x1>;
  251. #interrupt-cells = <1>;
  252. #address-cells = <0>;
  253. #size-cells = <0>;
  254. interrupt-map = </*Status*/ 0x0 &UIC2 0x10 0x4
  255. /*Wake*/ 0x1 &UIC2 0x14 0x4>;
  256. reg = <0xef600e00 0x00000074>;
  257. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  258. mal-device = <&MAL0>;
  259. mal-tx-channel = <0>;
  260. mal-rx-channel = <0>;
  261. cell-index = <0>;
  262. max-frame-size = <9000>;
  263. rx-fifo-size = <4096>;
  264. tx-fifo-size = <2048>;
  265. phy-mode = "rgmii";
  266. phy-map = <0x00000000>;
  267. rgmii-device = <&RGMII0>;
  268. rgmii-channel = <0>;
  269. tah-device = <&TAH0>;
  270. tah-channel = <0>;
  271. has-inverted-stacr-oc;
  272. has-new-stacr-staopc;
  273. };
  274. EMAC1: ethernet@ef600f00 {
  275. device_type = "network";
  276. compatible = "ibm,emac-460gt", "ibm,emac4";
  277. interrupt-parent = <&EMAC1>;
  278. interrupts = <0x0 0x1>;
  279. #interrupt-cells = <1>;
  280. #address-cells = <0>;
  281. #size-cells = <0>;
  282. interrupt-map = </*Status*/ 0x0 &UIC2 0x11 0x4
  283. /*Wake*/ 0x1 &UIC2 0x15 0x4>;
  284. reg = <0xef600f00 0x00000074>;
  285. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  286. mal-device = <&MAL0>;
  287. mal-tx-channel = <1>;
  288. mal-rx-channel = <8>;
  289. cell-index = <1>;
  290. max-frame-size = <9000>;
  291. rx-fifo-size = <4096>;
  292. tx-fifo-size = <2048>;
  293. phy-mode = "rgmii";
  294. phy-map = <0x00000000>;
  295. rgmii-device = <&RGMII0>;
  296. rgmii-channel = <1>;
  297. tah-device = <&TAH1>;
  298. tah-channel = <1>;
  299. has-inverted-stacr-oc;
  300. has-new-stacr-staopc;
  301. mdio-device = <&EMAC0>;
  302. };
  303. EMAC2: ethernet@ef601100 {
  304. device_type = "network";
  305. compatible = "ibm,emac-460gt", "ibm,emac4";
  306. interrupt-parent = <&EMAC2>;
  307. interrupts = <0x0 0x1>;
  308. #interrupt-cells = <1>;
  309. #address-cells = <0>;
  310. #size-cells = <0>;
  311. interrupt-map = </*Status*/ 0x0 &UIC2 0x12 0x4
  312. /*Wake*/ 0x1 &UIC2 0x16 0x4>;
  313. reg = <0xef601100 0x00000074>;
  314. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  315. mal-device = <&MAL0>;
  316. mal-tx-channel = <2>;
  317. mal-rx-channel = <16>;
  318. cell-index = <2>;
  319. max-frame-size = <9000>;
  320. rx-fifo-size = <4096>;
  321. tx-fifo-size = <2048>;
  322. phy-mode = "rgmii";
  323. phy-map = <0x00000000>;
  324. rgmii-device = <&RGMII1>;
  325. rgmii-channel = <0>;
  326. has-inverted-stacr-oc;
  327. has-new-stacr-staopc;
  328. mdio-device = <&EMAC0>;
  329. };
  330. EMAC3: ethernet@ef601200 {
  331. device_type = "network";
  332. compatible = "ibm,emac-460gt", "ibm,emac4";
  333. interrupt-parent = <&EMAC3>;
  334. interrupts = <0x0 0x1>;
  335. #interrupt-cells = <1>;
  336. #address-cells = <0>;
  337. #size-cells = <0>;
  338. interrupt-map = </*Status*/ 0x0 &UIC2 0x13 0x4
  339. /*Wake*/ 0x1 &UIC2 0x17 0x4>;
  340. reg = <0xef601200 0x00000074>;
  341. local-mac-address = [000000000000]; /* Filled in by U-Boot */
  342. mal-device = <&MAL0>;
  343. mal-tx-channel = <3>;
  344. mal-rx-channel = <24>;
  345. cell-index = <3>;
  346. max-frame-size = <9000>;
  347. rx-fifo-size = <4096>;
  348. tx-fifo-size = <2048>;
  349. phy-mode = "rgmii";
  350. phy-map = <0x00000000>;
  351. rgmii-device = <&RGMII1>;
  352. rgmii-channel = <1>;
  353. has-inverted-stacr-oc;
  354. has-new-stacr-staopc;
  355. mdio-device = <&EMAC0>;
  356. };
  357. };
  358. PCIX0: pci@c0ec00000 {
  359. device_type = "pci";
  360. #interrupt-cells = <1>;
  361. #size-cells = <2>;
  362. #address-cells = <3>;
  363. compatible = "ibm,plb-pcix-460gt", "ibm,plb-pcix";
  364. primary;
  365. large-inbound-windows;
  366. enable-msi-hole;
  367. reg = <0x0000000c 0x0ec00000 0x00000008 /* Config space access */
  368. 0x00000000 0x00000000 0x00000000 /* no IACK cycles */
  369. 0x0000000c 0x0ed00000 0x00000004 /* Special cycles */
  370. 0x0000000c 0x0ec80000 0x00000100 /* Internal registers */
  371. 0x0000000c 0x0ec80100 0x000000fc>; /* Internal messaging registers */
  372. /* Outbound ranges, one memory and one IO,
  373. * later cannot be changed
  374. */
  375. ranges = <0x02000000 0x00000000 0x80000000 0x0000000d 0x80000000 0x00000000 0x80000000
  376. 0x01000000 0x00000000 0x00000000 0x0000000c 0x08000000 0x00000000 0x00010000>;
  377. /* Inbound 2GB range starting at 0 */
  378. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
  379. /* This drives busses 0 to 0x3f */
  380. bus-range = <0x0 0x3f>;
  381. /* All PCI interrupts are routed to ext IRQ 2 -> UIC1-0 */
  382. interrupt-map-mask = <0x0 0x0 0x0 0x0>;
  383. interrupt-map = < 0x0 0x0 0x0 0x0 &UIC1 0x0 0x8 >;
  384. };
  385. PCIE0: pciex@d00000000 {
  386. device_type = "pci";
  387. #interrupt-cells = <1>;
  388. #size-cells = <2>;
  389. #address-cells = <3>;
  390. compatible = "ibm,plb-pciex-460ex", "ibm,plb-pciex";
  391. primary;
  392. port = <0x0>; /* port number */
  393. reg = <0x0000000d 0x00000000 0x20000000 /* Config space access */
  394. 0x0000000c 0x08010000 0x00001000>; /* Registers */
  395. dcr-reg = <0x100 0x020>;
  396. sdr-base = <0x300>;
  397. /* Outbound ranges, one memory and one IO,
  398. * later cannot be changed
  399. */
  400. ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x00000000 0x00000000 0x80000000
  401. 0x01000000 0x00000000 0x00000000 0x0000000f 0x80000000 0x00000000 0x00010000>;
  402. /* Inbound 2GB range starting at 0 */
  403. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
  404. /* This drives busses 40 to 0x7f */
  405. bus-range = <0x40 0x7f>;
  406. /* Legacy interrupts (note the weird polarity, the bridge seems
  407. * to invert PCIe legacy interrupts).
  408. * We are de-swizzling here because the numbers are actually for
  409. * port of the root complex virtual P2P bridge. But I want
  410. * to avoid putting a node for it in the tree, so the numbers
  411. * below are basically de-swizzled numbers.
  412. * The real slot is on idsel 0, so the swizzling is 1:1
  413. */
  414. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  415. interrupt-map = <
  416. 0x0 0x0 0x0 0x1 &UIC3 0xc 0x4 /* swizzled int A */
  417. 0x0 0x0 0x0 0x2 &UIC3 0xd 0x4 /* swizzled int B */
  418. 0x0 0x0 0x0 0x3 &UIC3 0xe 0x4 /* swizzled int C */
  419. 0x0 0x0 0x0 0x4 &UIC3 0xf 0x4 /* swizzled int D */>;
  420. };
  421. PCIE1: pciex@d20000000 {
  422. device_type = "pci";
  423. #interrupt-cells = <1>;
  424. #size-cells = <2>;
  425. #address-cells = <3>;
  426. compatible = "ibm,plb-pciex-460ex", "ibm,plb-pciex";
  427. primary;
  428. port = <0x1>; /* port number */
  429. reg = <0x0000000d 0x20000000 0x20000000 /* Config space access */
  430. 0x0000000c 0x08011000 0x00001000>; /* Registers */
  431. dcr-reg = <0x120 0x020>;
  432. sdr-base = <0x340>;
  433. /* Outbound ranges, one memory and one IO,
  434. * later cannot be changed
  435. */
  436. ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x80000000 0x00000000 0x80000000
  437. 0x01000000 0x00000000 0x00000000 0x0000000f 0x80010000 0x00000000 0x00010000>;
  438. /* Inbound 2GB range starting at 0 */
  439. dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
  440. /* This drives busses 80 to 0xbf */
  441. bus-range = <0x80 0xbf>;
  442. /* Legacy interrupts (note the weird polarity, the bridge seems
  443. * to invert PCIe legacy interrupts).
  444. * We are de-swizzling here because the numbers are actually for
  445. * port of the root complex virtual P2P bridge. But I want
  446. * to avoid putting a node for it in the tree, so the numbers
  447. * below are basically de-swizzled numbers.
  448. * The real slot is on idsel 0, so the swizzling is 1:1
  449. */
  450. interrupt-map-mask = <0x0 0x0 0x0 0x7>;
  451. interrupt-map = <
  452. 0x0 0x0 0x0 0x1 &UIC3 0x10 0x4 /* swizzled int A */
  453. 0x0 0x0 0x0 0x2 &UIC3 0x11 0x4 /* swizzled int B */
  454. 0x0 0x0 0x0 0x3 &UIC3 0x12 0x4 /* swizzled int C */
  455. 0x0 0x0 0x0 0x4 &UIC3 0x13 0x4 /* swizzled int D */>;
  456. };
  457. };
  458. };