blob: 3e7ce2c9e644ef930245d887ea3ac98505f86e89 [file] [log] [blame]
Simon Glass281aea42015-02-07 11:51:41 -07001/*
2 * Device Tree Source for AMCC Glacier (460GT)
3 *
4 * Copyright 2008-2010 DENX Software Engineering, Stefan Roese <sr@denx.de>
5 *
6 * SPDX-License-Identifier: GPL-2.0
7 */
8
9/dts-v1/;
10
11/ {
12 #address-cells = <2>;
13 #size-cells = <1>;
14 model = "amcc,glacier";
15 compatible = "amcc,glacier";
16 dcr-parent = <&{/cpus/cpu@0}>;
17
18 aliases {
19 ethernet0 = &EMAC0;
20 ethernet1 = &EMAC1;
21 ethernet2 = &EMAC2;
22 ethernet3 = &EMAC3;
23 serial0 = &UART0;
24 serial1 = &UART1;
25 };
26
27 chosen {
28 stdout-path = &UART0;
29 };
30
31 cpus {
32 #address-cells = <1>;
33 #size-cells = <0>;
34
35 cpu@0 {
36 device_type = "cpu";
37 model = "PowerPC,460GT";
38 reg = <0x00000000>;
39 clock-frequency = <0>; /* Filled in by U-Boot */
40 timebase-frequency = <0>; /* Filled in by U-Boot */
41 i-cache-line-size = <32>;
42 d-cache-line-size = <32>;
43 i-cache-size = <32768>;
44 d-cache-size = <32768>;
45 dcr-controller;
46 dcr-access-method = "native";
47 next-level-cache = <&L2C0>;
48 };
49 };
50
51 memory {
52 device_type = "memory";
53 reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by U-Boot */
54 };
55
56 UIC0: interrupt-controller0 {
57 compatible = "ibm,uic-460gt","ibm,uic";
58 interrupt-controller;
59 cell-index = <0>;
60 dcr-reg = <0x0c0 0x009>;
61 #address-cells = <0>;
62 #size-cells = <0>;
63 #interrupt-cells = <2>;
64 };
65
66 UIC1: interrupt-controller1 {
67 compatible = "ibm,uic-460gt","ibm,uic";
68 interrupt-controller;
69 cell-index = <1>;
70 dcr-reg = <0x0d0 0x009>;
71 #address-cells = <0>;
72 #size-cells = <0>;
73 #interrupt-cells = <2>;
74 interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
75 interrupt-parent = <&UIC0>;
76 };
77
78 UIC2: interrupt-controller2 {
79 compatible = "ibm,uic-460gt","ibm,uic";
80 interrupt-controller;
81 cell-index = <2>;
82 dcr-reg = <0x0e0 0x009>;
83 #address-cells = <0>;
84 #size-cells = <0>;
85 #interrupt-cells = <2>;
86 interrupts = <0xa 0x4 0xb 0x4>; /* cascade */
87 interrupt-parent = <&UIC0>;
88 };
89
90 UIC3: interrupt-controller3 {
91 compatible = "ibm,uic-460gt","ibm,uic";
92 interrupt-controller;
93 cell-index = <3>;
94 dcr-reg = <0x0f0 0x009>;
95 #address-cells = <0>;
96 #size-cells = <0>;
97 #interrupt-cells = <2>;
98 interrupts = <0x10 0x4 0x11 0x4>; /* cascade */
99 interrupt-parent = <&UIC0>;
100 };
101
102 SDR0: sdr {
103 compatible = "ibm,sdr-460gt";
104 dcr-reg = <0x00e 0x002>;
105 };
106
107 CPR0: cpr {
108 compatible = "ibm,cpr-460gt";
109 dcr-reg = <0x00c 0x002>;
110 };
111
112 L2C0: l2c {
113 compatible = "ibm,l2-cache-460gt", "ibm,l2-cache";
114 dcr-reg = <0x020 0x008 /* Internal SRAM DCR's */
115 0x030 0x008>; /* L2 cache DCR's */
116 cache-line-size = <32>; /* 32 bytes */
117 cache-size = <262144>; /* L2, 256K */
118 interrupt-parent = <&UIC1>;
119 interrupts = <11 1>;
120 };
121
122 plb {
123 compatible = "ibm,plb-460gt", "ibm,plb4";
124 #address-cells = <2>;
125 #size-cells = <1>;
126 ranges;
127 clock-frequency = <0>; /* Filled in by U-Boot */
128
129 SDRAM0: sdram {
130 compatible = "ibm,sdram-460gt", "ibm,sdram-405gp";
131 dcr-reg = <0x010 0x002>;
132 };
133
134 CRYPTO: crypto@180000 {
135 compatible = "amcc,ppc460gt-crypto", "amcc,ppc460ex-crypto",
136 "amcc,ppc4xx-crypto";
137 reg = <4 0x00180000 0x80400>;
138 interrupt-parent = <&UIC0>;
139 interrupts = <0x1d 0x4>;
140 };
141
142 HWRNG: hwrng@110000 {
143 compatible = "amcc,ppc460ex-rng", "ppc4xx-rng";
144 reg = <4 0x00110000 0x50>;
145 };
146
147 MAL0: mcmal {
148 compatible = "ibm,mcmal-460gt", "ibm,mcmal2";
149 dcr-reg = <0x180 0x062>;
150 num-tx-chans = <4>;
151 num-rx-chans = <32>;
152 #address-cells = <0>;
153 #size-cells = <0>;
154 interrupt-parent = <&UIC2>;
155 interrupts = < /*TXEOB*/ 0x6 0x4
156 /*RXEOB*/ 0x7 0x4
157 /*SERR*/ 0x3 0x4
158 /*TXDE*/ 0x4 0x4
159 /*RXDE*/ 0x5 0x4>;
160 desc-base-addr-high = <0x8>;
161 };
162
163 POB0: opb {
164 compatible = "ibm,opb-460gt", "ibm,opb";
165 #address-cells = <1>;
166 #size-cells = <1>;
167 ranges = <0xb0000000 0x00000004 0xb0000000 0x50000000>;
168 clock-frequency = <0>; /* Filled in by U-Boot */
169
170 EBC0: ebc {
171 compatible = "ibm,ebc-460gt", "ibm,ebc";
172 dcr-reg = <0x012 0x002>;
173 #address-cells = <2>;
174 #size-cells = <1>;
175 clock-frequency = <0>; /* Filled in by U-Boot */
176 /* ranges property is supplied by U-Boot */
177 interrupts = <0x6 0x4>;
178 interrupt-parent = <&UIC1>;
179
180 nor_flash@0,0 {
181 compatible = "amd,s29gl512n", "cfi-flash";
182 bank-width = <2>;
183 reg = <0x00000000 0x00000000 0x04000000>;
184 #address-cells = <1>;
185 #size-cells = <1>;
186 partition@0 {
187 label = "kernel";
188 reg = <0x00000000 0x001e0000>;
189 };
190 partition@1e0000 {
191 label = "dtb";
192 reg = <0x001e0000 0x00020000>;
193 };
194 partition@200000 {
195 label = "ramdisk";
196 reg = <0x00200000 0x01400000>;
197 };
198 partition@1600000 {
199 label = "jffs2";
200 reg = <0x01600000 0x00400000>;
201 };
202 partition@1a00000 {
203 label = "user";
204 reg = <0x01a00000 0x02560000>;
205 };
206 partition@3f60000 {
207 label = "env";
208 reg = <0x03f60000 0x00040000>;
209 };
210 partition@3fa0000 {
211 label = "u-boot";
212 reg = <0x03fa0000 0x00060000>;
213 };
214 };
215
216 ndfc@3,0 {
217 compatible = "ibm,ndfc";
218 reg = <0x00000003 0x00000000 0x00002000>;
219 ccr = <0x00001000>;
220 bank-settings = <0x80002222>;
221 #address-cells = <1>;
222 #size-cells = <1>;
223
224 nand {
225 #address-cells = <1>;
226 #size-cells = <1>;
227
228 partition@0 {
229 label = "u-boot";
230 reg = <0x00000000 0x00100000>;
231 };
232 partition@100000 {
233 label = "user";
234 reg = <0x00000000 0x03f00000>;
235 };
236 };
237 };
238 };
239
240 UART0: serial@ef600300 {
241 device_type = "serial";
242 reg-shift = <0>;
243 compatible = "ns16550";
244 reg = <0xef600300 0x00000008>;
245 virtual-reg = <0xef600300>;
246 clock-frequency = <0>; /* Filled in by U-Boot */
247 current-speed = <0>; /* Filled in by U-Boot */
248 interrupt-parent = <&UIC1>;
249 interrupts = <0x1 0x4>;
250 };
251
252 UART1: serial@ef600400 {
253 device_type = "serial";
254 compatible = "ns16550";
255 reg = <0xef600400 0x00000008>;
256 virtual-reg = <0xef600400>;
257 clock-frequency = <0>; /* Filled in by U-Boot */
258 current-speed = <0>; /* Filled in by U-Boot */
259 interrupt-parent = <&UIC0>;
260 interrupts = <0x1 0x4>;
261 };
262
263 UART2: serial@ef600500 {
264 device_type = "serial";
265 compatible = "ns16550";
266 reg = <0xef600500 0x00000008>;
267 virtual-reg = <0xef600500>;
268 clock-frequency = <0>; /* Filled in by U-Boot */
269 current-speed = <0>; /* Filled in by U-Boot */
270 interrupt-parent = <&UIC1>;
271 interrupts = <28 0x4>;
272 };
273
274 UART3: serial@ef600600 {
275 device_type = "serial";
276 compatible = "ns16550";
277 reg = <0xef600600 0x00000008>;
278 virtual-reg = <0xef600600>;
279 clock-frequency = <0>; /* Filled in by U-Boot */
280 current-speed = <0>; /* Filled in by U-Boot */
281 interrupt-parent = <&UIC1>;
282 interrupts = <29 0x4>;
283 };
284
285 IIC0: i2c@ef600700 {
286 compatible = "ibm,iic-460gt", "ibm,iic";
287 reg = <0xef600700 0x00000014>;
288 interrupt-parent = <&UIC0>;
289 interrupts = <0x2 0x4>;
290 #address-cells = <1>;
291 #size-cells = <0>;
292 rtc@68 {
293 compatible = "stm,m41t80";
294 reg = <0x68>;
295 interrupt-parent = <&UIC2>;
296 interrupts = <0x19 0x8>;
297 };
298 sttm@48 {
299 compatible = "ad,ad7414";
300 reg = <0x48>;
301 interrupt-parent = <&UIC1>;
302 interrupts = <0x14 0x8>;
303 };
304 };
305
306 IIC1: i2c@ef600800 {
307 compatible = "ibm,iic-460gt", "ibm,iic";
308 reg = <0xef600800 0x00000014>;
309 interrupt-parent = <&UIC0>;
310 interrupts = <0x3 0x4>;
311 };
312
313 ZMII0: emac-zmii@ef600d00 {
314 compatible = "ibm,zmii-460gt", "ibm,zmii";
315 reg = <0xef600d00 0x0000000c>;
316 };
317
318 RGMII0: emac-rgmii@ef601500 {
319 compatible = "ibm,rgmii-460gt", "ibm,rgmii";
320 reg = <0xef601500 0x00000008>;
321 has-mdio;
322 };
323
324 RGMII1: emac-rgmii@ef601600 {
325 compatible = "ibm,rgmii-460gt", "ibm,rgmii";
326 reg = <0xef601600 0x00000008>;
327 has-mdio;
328 };
329
330 TAH0: emac-tah@ef601350 {
331 compatible = "ibm,tah-460gt", "ibm,tah";
332 reg = <0xef601350 0x00000030>;
333 };
334
335 TAH1: emac-tah@ef601450 {
336 compatible = "ibm,tah-460gt", "ibm,tah";
337 reg = <0xef601450 0x00000030>;
338 };
339
340 EMAC0: ethernet@ef600e00 {
341 device_type = "network";
342 compatible = "ibm,emac-460gt", "ibm,emac4sync";
343 interrupt-parent = <&EMAC0>;
344 interrupts = <0x0 0x1>;
345 #interrupt-cells = <1>;
346 #address-cells = <0>;
347 #size-cells = <0>;
348 interrupt-map = </*Status*/ 0x0 &UIC2 0x10 0x4
349 /*Wake*/ 0x1 &UIC2 0x14 0x4>;
350 reg = <0xef600e00 0x000000c4>;
351 local-mac-address = [000000000000]; /* Filled in by U-Boot */
352 mal-device = <&MAL0>;
353 mal-tx-channel = <0>;
354 mal-rx-channel = <0>;
355 cell-index = <0>;
356 max-frame-size = <9000>;
357 rx-fifo-size = <4096>;
358 tx-fifo-size = <2048>;
359 rx-fifo-size-gige = <16384>;
360 phy-mode = "rgmii";
361 phy-map = <0x00000000>;
362 rgmii-device = <&RGMII0>;
363 rgmii-channel = <0>;
364 tah-device = <&TAH0>;
365 tah-channel = <0>;
366 has-inverted-stacr-oc;
367 has-new-stacr-staopc;
368 };
369
370 EMAC1: ethernet@ef600f00 {
371 device_type = "network";
372 compatible = "ibm,emac-460gt", "ibm,emac4sync";
373 interrupt-parent = <&EMAC1>;
374 interrupts = <0x0 0x1>;
375 #interrupt-cells = <1>;
376 #address-cells = <0>;
377 #size-cells = <0>;
378 interrupt-map = </*Status*/ 0x0 &UIC2 0x11 0x4
379 /*Wake*/ 0x1 &UIC2 0x15 0x4>;
380 reg = <0xef600f00 0x000000c4>;
381 local-mac-address = [000000000000]; /* Filled in by U-Boot */
382 mal-device = <&MAL0>;
383 mal-tx-channel = <1>;
384 mal-rx-channel = <8>;
385 cell-index = <1>;
386 max-frame-size = <9000>;
387 rx-fifo-size = <4096>;
388 tx-fifo-size = <2048>;
389 rx-fifo-size-gige = <16384>;
390 phy-mode = "rgmii";
391 phy-map = <0x00000000>;
392 rgmii-device = <&RGMII0>;
393 rgmii-channel = <1>;
394 tah-device = <&TAH1>;
395 tah-channel = <1>;
396 has-inverted-stacr-oc;
397 has-new-stacr-staopc;
398 mdio-device = <&EMAC0>;
399 };
400
401 EMAC2: ethernet@ef601100 {
402 device_type = "network";
403 compatible = "ibm,emac-460gt", "ibm,emac4sync";
404 interrupt-parent = <&EMAC2>;
405 interrupts = <0x0 0x1>;
406 #interrupt-cells = <1>;
407 #address-cells = <0>;
408 #size-cells = <0>;
409 interrupt-map = </*Status*/ 0x0 &UIC2 0x12 0x4
410 /*Wake*/ 0x1 &UIC2 0x16 0x4>;
411 reg = <0xef601100 0x000000c4>;
412 local-mac-address = [000000000000]; /* Filled in by U-Boot */
413 mal-device = <&MAL0>;
414 mal-tx-channel = <2>;
415 mal-rx-channel = <16>;
416 cell-index = <2>;
417 max-frame-size = <9000>;
418 rx-fifo-size = <4096>;
419 tx-fifo-size = <2048>;
420 rx-fifo-size-gige = <16384>;
421 tx-fifo-size-gige = <16384>; /* emac2&3 only */
422 phy-mode = "rgmii";
423 phy-map = <0x00000000>;
424 rgmii-device = <&RGMII1>;
425 rgmii-channel = <0>;
426 has-inverted-stacr-oc;
427 has-new-stacr-staopc;
428 mdio-device = <&EMAC0>;
429 };
430
431 EMAC3: ethernet@ef601200 {
432 device_type = "network";
433 compatible = "ibm,emac-460gt", "ibm,emac4sync";
434 interrupt-parent = <&EMAC3>;
435 interrupts = <0x0 0x1>;
436 #interrupt-cells = <1>;
437 #address-cells = <0>;
438 #size-cells = <0>;
439 interrupt-map = </*Status*/ 0x0 &UIC2 0x13 0x4
440 /*Wake*/ 0x1 &UIC2 0x17 0x4>;
441 reg = <0xef601200 0x000000c4>;
442 local-mac-address = [000000000000]; /* Filled in by U-Boot */
443 mal-device = <&MAL0>;
444 mal-tx-channel = <3>;
445 mal-rx-channel = <24>;
446 cell-index = <3>;
447 max-frame-size = <9000>;
448 rx-fifo-size = <4096>;
449 tx-fifo-size = <2048>;
450 rx-fifo-size-gige = <16384>;
451 tx-fifo-size-gige = <16384>; /* emac2&3 only */
452 phy-mode = "rgmii";
453 phy-map = <0x00000000>;
454 rgmii-device = <&RGMII1>;
455 rgmii-channel = <1>;
456 has-inverted-stacr-oc;
457 has-new-stacr-staopc;
458 mdio-device = <&EMAC0>;
459 };
460 };
461
462 PCIX0: pci@c0ec00000 {
463 device_type = "pci";
464 #interrupt-cells = <1>;
465 #size-cells = <2>;
466 #address-cells = <3>;
467 compatible = "ibm,plb-pcix-460gt", "ibm,plb-pcix";
468 primary;
469 large-inbound-windows;
470 enable-msi-hole;
471 reg = <0x0000000c 0x0ec00000 0x00000008 /* Config space access */
472 0x00000000 0x00000000 0x00000000 /* no IACK cycles */
473 0x0000000c 0x0ed00000 0x00000004 /* Special cycles */
474 0x0000000c 0x0ec80000 0x00000100 /* Internal registers */
475 0x0000000c 0x0ec80100 0x000000fc>; /* Internal messaging registers */
476
477 /* Outbound ranges, one memory and one IO,
478 * later cannot be changed
479 */
480 ranges = <0x02000000 0x00000000 0x80000000 0x0000000d 0x80000000 0x00000000 0x80000000
481 0x02000000 0x00000000 0x00000000 0x0000000c 0x0ee00000 0x00000000 0x00100000
482 0x01000000 0x00000000 0x00000000 0x0000000c 0x08000000 0x00000000 0x00010000>;
483
484 /* Inbound 2GB range starting at 0 */
485 dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
486
487 /* This drives busses 0 to 0x3f */
488 bus-range = <0x0 0x3f>;
489
490 /* All PCI interrupts are routed to ext IRQ 2 -> UIC1-0 */
491 interrupt-map-mask = <0x0 0x0 0x0 0x0>;
492 interrupt-map = < 0x0 0x0 0x0 0x0 &UIC1 0x0 0x8 >;
493 };
494
495 PCIE0: pciex@d00000000 {
496 device_type = "pci";
497 #interrupt-cells = <1>;
498 #size-cells = <2>;
499 #address-cells = <3>;
500 compatible = "ibm,plb-pciex-460ex", "ibm,plb-pciex";
501 primary;
502 port = <0x0>; /* port number */
503 reg = <0x0000000d 0x00000000 0x20000000 /* Config space access */
504 0x0000000c 0x08010000 0x00001000>; /* Registers */
505 dcr-reg = <0x100 0x020>;
506 sdr-base = <0x300>;
507
508 /* Outbound ranges, one memory and one IO,
509 * later cannot be changed
510 */
511 ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x00000000 0x00000000 0x80000000
512 0x02000000 0x00000000 0x00000000 0x0000000f 0x00000000 0x00000000 0x00100000
513 0x01000000 0x00000000 0x00000000 0x0000000f 0x80000000 0x00000000 0x00010000>;
514
515 /* Inbound 2GB range starting at 0 */
516 dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
517
518 /* This drives busses 40 to 0x7f */
519 bus-range = <0x40 0x7f>;
520
521 /* Legacy interrupts (note the weird polarity, the bridge seems
522 * to invert PCIe legacy interrupts).
523 * We are de-swizzling here because the numbers are actually for
524 * port of the root complex virtual P2P bridge. But I want
525 * to avoid putting a node for it in the tree, so the numbers
526 * below are basically de-swizzled numbers.
527 * The real slot is on idsel 0, so the swizzling is 1:1
528 */
529 interrupt-map-mask = <0x0 0x0 0x0 0x7>;
530 interrupt-map = <
531 0x0 0x0 0x0 0x1 &UIC3 0xc 0x4 /* swizzled int A */
532 0x0 0x0 0x0 0x2 &UIC3 0xd 0x4 /* swizzled int B */
533 0x0 0x0 0x0 0x3 &UIC3 0xe 0x4 /* swizzled int C */
534 0x0 0x0 0x0 0x4 &UIC3 0xf 0x4 /* swizzled int D */>;
535 };
536
537 PCIE1: pciex@d20000000 {
538 device_type = "pci";
539 #interrupt-cells = <1>;
540 #size-cells = <2>;
541 #address-cells = <3>;
542 compatible = "ibm,plb-pciex-460ex", "ibm,plb-pciex";
543 primary;
544 port = <0x1>; /* port number */
545 reg = <0x0000000d 0x20000000 0x20000000 /* Config space access */
546 0x0000000c 0x08011000 0x00001000>; /* Registers */
547 dcr-reg = <0x120 0x020>;
548 sdr-base = <0x340>;
549
550 /* Outbound ranges, one memory and one IO,
551 * later cannot be changed
552 */
553 ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x80000000 0x00000000 0x80000000
554 0x02000000 0x00000000 0x00000000 0x0000000f 0x00100000 0x00000000 0x00100000
555 0x01000000 0x00000000 0x00000000 0x0000000f 0x80010000 0x00000000 0x00010000>;
556
557 /* Inbound 2GB range starting at 0 */
558 dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
559
560 /* This drives busses 80 to 0xbf */
561 bus-range = <0x80 0xbf>;
562
563 /* Legacy interrupts (note the weird polarity, the bridge seems
564 * to invert PCIe legacy interrupts).
565 * We are de-swizzling here because the numbers are actually for
566 * port of the root complex virtual P2P bridge. But I want
567 * to avoid putting a node for it in the tree, so the numbers
568 * below are basically de-swizzled numbers.
569 * The real slot is on idsel 0, so the swizzling is 1:1
570 */
571 interrupt-map-mask = <0x0 0x0 0x0 0x7>;
572 interrupt-map = <
573 0x0 0x0 0x0 0x1 &UIC3 0x10 0x4 /* swizzled int A */
574 0x0 0x0 0x0 0x2 &UIC3 0x11 0x4 /* swizzled int B */
575 0x0 0x0 0x0 0x3 &UIC3 0x12 0x4 /* swizzled int C */
576 0x0 0x0 0x0 0x4 &UIC3 0x13 0x4 /* swizzled int D */>;
577 };
578 };
579};