1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * dts file for AppliedMicro (APM) X-Gene Shadowcat SOC
5 * Copyright (C) 2015, Applied Micro Circuits Corporation
9 compatible = "apm,xgene-shadowcat";
10 interrupt-parent = <&gic>;
20 compatible = "apm,strega";
22 enable-method = "spin-table";
23 cpu-release-addr = <0x1 0x0000fff8>;
24 next-level-cache = <&xgene_L2_0>;
26 clocks = <&pmd0clk 0>;
30 compatible = "apm,strega";
32 enable-method = "spin-table";
33 cpu-release-addr = <0x1 0x0000fff8>;
34 next-level-cache = <&xgene_L2_0>;
36 clocks = <&pmd0clk 0>;
40 compatible = "apm,strega";
42 enable-method = "spin-table";
43 cpu-release-addr = <0x1 0x0000fff8>;
44 next-level-cache = <&xgene_L2_1>;
46 clocks = <&pmd1clk 0>;
50 compatible = "apm,strega";
52 enable-method = "spin-table";
53 cpu-release-addr = <0x1 0x0000fff8>;
54 next-level-cache = <&xgene_L2_1>;
56 clocks = <&pmd1clk 0>;
60 compatible = "apm,strega";
62 enable-method = "spin-table";
63 cpu-release-addr = <0x1 0x0000fff8>;
64 next-level-cache = <&xgene_L2_2>;
66 clocks = <&pmd2clk 0>;
70 compatible = "apm,strega";
72 enable-method = "spin-table";
73 cpu-release-addr = <0x1 0x0000fff8>;
74 next-level-cache = <&xgene_L2_2>;
76 clocks = <&pmd2clk 0>;
80 compatible = "apm,strega";
82 enable-method = "spin-table";
83 cpu-release-addr = <0x1 0x0000fff8>;
84 next-level-cache = <&xgene_L2_3>;
86 clocks = <&pmd3clk 0>;
90 compatible = "apm,strega";
92 enable-method = "spin-table";
93 cpu-release-addr = <0x1 0x0000fff8>;
94 next-level-cache = <&xgene_L2_3>;
96 clocks = <&pmd3clk 0>;
98 xgene_L2_0: l2-cache-0 {
101 xgene_L2_1: l2-cache-1 {
102 compatible = "cache";
104 xgene_L2_2: l2-cache-2 {
105 compatible = "cache";
107 xgene_L2_3: l2-cache-3 {
108 compatible = "cache";
112 gic: interrupt-controller@78090000 {
113 compatible = "arm,cortex-a15-gic";
114 #interrupt-cells = <3>;
115 #address-cells = <2>;
117 interrupt-controller;
118 interrupts = <1 9 0xf04>; /* GIC Maintenence IRQ */
119 ranges = <0 0 0 0x79000000 0x0 0x800000>; /* MSI Range */
120 reg = <0x0 0x78090000 0x0 0x10000>, /* GIC Dist */
121 <0x0 0x780a0000 0x0 0x20000>, /* GIC CPU */
122 <0x0 0x780c0000 0x0 0x10000>, /* GIC VCPU Control */
123 <0x0 0x780e0000 0x0 0x20000>; /* GIC VCPU */
125 compatible = "arm,gic-v2m-frame";
127 reg = <0x0 0x0 0x0 0x1000>;
130 compatible = "arm,gic-v2m-frame";
132 reg = <0x0 0x10000 0x0 0x1000>;
135 compatible = "arm,gic-v2m-frame";
137 reg = <0x0 0x20000 0x0 0x1000>;
140 compatible = "arm,gic-v2m-frame";
142 reg = <0x0 0x30000 0x0 0x1000>;
145 compatible = "arm,gic-v2m-frame";
147 reg = <0x0 0x40000 0x0 0x1000>;
150 compatible = "arm,gic-v2m-frame";
152 reg = <0x0 0x50000 0x0 0x1000>;
155 compatible = "arm,gic-v2m-frame";
157 reg = <0x0 0x60000 0x0 0x1000>;
160 compatible = "arm,gic-v2m-frame";
162 reg = <0x0 0x70000 0x0 0x1000>;
165 compatible = "arm,gic-v2m-frame";
167 reg = <0x0 0x80000 0x0 0x1000>;
170 compatible = "arm,gic-v2m-frame";
172 reg = <0x0 0x90000 0x0 0x1000>;
175 compatible = "arm,gic-v2m-frame";
177 reg = <0x0 0xa0000 0x0 0x1000>;
180 compatible = "arm,gic-v2m-frame";
182 reg = <0x0 0xb0000 0x0 0x1000>;
185 compatible = "arm,gic-v2m-frame";
187 reg = <0x0 0xc0000 0x0 0x1000>;
190 compatible = "arm,gic-v2m-frame";
192 reg = <0x0 0xd0000 0x0 0x1000>;
195 compatible = "arm,gic-v2m-frame";
197 reg = <0x0 0xe0000 0x0 0x1000>;
200 compatible = "arm,gic-v2m-frame";
202 reg = <0x0 0xf0000 0x0 0x1000>;
207 compatible = "arm,armv8-pmuv3";
208 interrupts = <1 12 0xff04>;
212 compatible = "arm,armv8-timer";
213 interrupts = <1 0 0xff08>, /* Secure Phys IRQ */
214 <1 13 0xff08>, /* Non-secure Phys IRQ */
215 <1 14 0xff08>, /* Virt IRQ */
216 <1 15 0xff08>; /* Hyp IRQ */
217 clock-frequency = <50000000>;
221 compatible = "simple-bus";
222 #address-cells = <2>;
227 #address-cells = <2>;
232 compatible = "fixed-clock";
234 clock-frequency = <100000000>;
235 clock-output-names = "refclk";
238 pmdpll: pmdpll@170000f0 {
239 compatible = "apm,xgene-pcppll-v2-clock";
241 clocks = <&refclk 0>;
242 reg = <0x0 0x170000f0 0x0 0x10>;
243 clock-output-names = "pmdpll";
246 pmd0clk: pmd0clk@7e200200 {
247 compatible = "apm,xgene-pmd-clock";
249 clocks = <&pmdpll 0>;
250 reg = <0x0 0x7e200200 0x0 0x10>;
251 clock-output-names = "pmd0clk";
254 pmd1clk: pmd1clk@7e200210 {
255 compatible = "apm,xgene-pmd-clock";
257 clocks = <&pmdpll 0>;
258 reg = <0x0 0x7e200210 0x0 0x10>;
259 clock-output-names = "pmd1clk";
262 pmd2clk: pmd2clk@7e200220 {
263 compatible = "apm,xgene-pmd-clock";
265 clocks = <&pmdpll 0>;
266 reg = <0x0 0x7e200220 0x0 0x10>;
267 clock-output-names = "pmd2clk";
270 pmd3clk: pmd3clk@7e200230 {
271 compatible = "apm,xgene-pmd-clock";
273 clocks = <&pmdpll 0>;
274 reg = <0x0 0x7e200230 0x0 0x10>;
275 clock-output-names = "pmd3clk";
278 socpll: socpll@17000120 {
279 compatible = "apm,xgene-socpll-v2-clock";
281 clocks = <&refclk 0>;
282 reg = <0x0 0x17000120 0x0 0x1000>;
283 clock-output-names = "socpll";
286 socplldiv2: socplldiv2 {
287 compatible = "fixed-factor-clock";
289 clocks = <&socpll 0>;
292 clock-output-names = "socplldiv2";
295 ahbclk: ahbclk@17000000 {
296 compatible = "apm,xgene-device-clock";
298 clocks = <&socplldiv2 0>;
299 reg = <0x0 0x17000000 0x0 0x2000>;
300 reg-names = "div-reg";
301 divider-offset = <0x164>;
302 divider-width = <0x5>;
303 divider-shift = <0x0>;
304 clock-output-names = "ahbclk";
307 sbapbclk: sbapbclk@1704c000 {
308 compatible = "apm,xgene-device-clock";
310 clocks = <&ahbclk 0>;
311 reg = <0x0 0x1704c000 0x0 0x2000>;
312 reg-names = "div-reg";
313 divider-offset = <0x10>;
314 divider-width = <0x2>;
315 divider-shift = <0x0>;
316 clock-output-names = "sbapbclk";
319 sdioclk: sdioclk@1f2ac000 {
320 compatible = "apm,xgene-device-clock";
322 clocks = <&socplldiv2 0>;
323 reg = <0x0 0x1f2ac000 0x0 0x1000
324 0x0 0x17000000 0x0 0x2000>;
325 reg-names = "csr-reg", "div-reg";
328 enable-offset = <0x8>;
330 divider-offset = <0x178>;
331 divider-width = <0x8>;
332 divider-shift = <0x0>;
333 clock-output-names = "sdioclk";
336 pcie0clk: pcie0clk@1f2bc000 {
337 compatible = "apm,xgene-device-clock";
339 clocks = <&socplldiv2 0>;
340 reg = <0x0 0x1f2bc000 0x0 0x1000>;
341 reg-names = "csr-reg";
342 clock-output-names = "pcie0clk";
345 pcie1clk: pcie1clk@1f2cc000 {
346 compatible = "apm,xgene-device-clock";
348 clocks = <&socplldiv2 0>;
349 reg = <0x0 0x1f2cc000 0x0 0x1000>;
350 reg-names = "csr-reg";
351 clock-output-names = "pcie1clk";
354 xge0clk: xge0clk@1f61c000 {
355 compatible = "apm,xgene-device-clock";
357 clocks = <&socplldiv2 0>;
358 reg = <0x0 0x1f61c000 0x0 0x1000>;
359 reg-names = "csr-reg";
362 clock-output-names = "xge0clk";
365 xge1clk: xge1clk@1f62c000 {
366 compatible = "apm,xgene-device-clock";
368 clocks = <&socplldiv2 0>;
369 reg = <0x0 0x1f62c000 0x0 0x1000>;
370 reg-names = "csr-reg";
373 clock-output-names = "xge1clk";
376 rngpkaclk: rngpkaclk@17000000 {
377 compatible = "apm,xgene-device-clock";
379 clocks = <&socplldiv2 0>;
380 reg = <0x0 0x17000000 0x0 0x2000>;
381 reg-names = "csr-reg";
384 enable-offset = <0x10>;
385 enable-mask = <0x10>;
386 clock-output-names = "rngpkaclk";
389 i2c4clk: i2c4clk@1704c000 {
390 compatible = "apm,xgene-device-clock";
392 clocks = <&sbapbclk 0>;
393 reg = <0x0 0x1704c000 0x0 0x1000>;
394 reg-names = "csr-reg";
397 enable-offset = <0x8>;
398 enable-mask = <0x40>;
399 clock-output-names = "i2c4clk";
403 scu: system-clk-controller@17000000 {
404 compatible = "apm,xgene-scu","syscon";
405 reg = <0x0 0x17000000 0x0 0x400>;
408 reboot: reboot@17000014 {
409 compatible = "syscon-reboot";
416 compatible = "apm,xgene-csw", "syscon";
417 reg = <0x0 0x7e200000 0x0 0x1000>;
420 mcba: mcba@7e700000 {
421 compatible = "apm,xgene-mcb", "syscon";
422 reg = <0x0 0x7e700000 0x0 0x1000>;
425 mcbb: mcbb@7e720000 {
426 compatible = "apm,xgene-mcb", "syscon";
427 reg = <0x0 0x7e720000 0x0 0x1000>;
430 efuse: efuse@1054a000 {
431 compatible = "apm,xgene-efuse", "syscon";
432 reg = <0x0 0x1054a000 0x0 0x20>;
436 compatible = "apm,xgene-edac";
437 #address-cells = <2>;
441 regmap-mcba = <&mcba>;
442 regmap-mcbb = <&mcbb>;
443 regmap-efuse = <&efuse>;
444 reg = <0x0 0x78800000 0x0 0x100>;
445 interrupts = <0x0 0x20 0x4>,
450 compatible = "apm,xgene-edac-mc";
451 reg = <0x0 0x7e800000 0x0 0x1000>;
452 memory-controller = <0>;
456 compatible = "apm,xgene-edac-mc";
457 reg = <0x0 0x7e840000 0x0 0x1000>;
458 memory-controller = <1>;
462 compatible = "apm,xgene-edac-mc";
463 reg = <0x0 0x7e880000 0x0 0x1000>;
464 memory-controller = <2>;
468 compatible = "apm,xgene-edac-mc";
469 reg = <0x0 0x7e8c0000 0x0 0x1000>;
470 memory-controller = <3>;
474 compatible = "apm,xgene-edac-pmd";
475 reg = <0x0 0x7c000000 0x0 0x200000>;
476 pmd-controller = <0>;
480 compatible = "apm,xgene-edac-pmd";
481 reg = <0x0 0x7c200000 0x0 0x200000>;
482 pmd-controller = <1>;
486 compatible = "apm,xgene-edac-pmd";
487 reg = <0x0 0x7c400000 0x0 0x200000>;
488 pmd-controller = <2>;
492 compatible = "apm,xgene-edac-pmd";
493 reg = <0x0 0x7c600000 0x0 0x200000>;
494 pmd-controller = <3>;
498 compatible = "apm,xgene-edac-l3-v2";
499 reg = <0x0 0x7e600000 0x0 0x1000>;
503 compatible = "apm,xgene-edac-soc";
504 reg = <0x0 0x7e930000 0x0 0x1000>;
509 compatible = "apm,xgene-pmu-v2";
510 #address-cells = <2>;
514 regmap-mcba = <&mcba>;
515 regmap-mcbb = <&mcbb>;
516 reg = <0x0 0x78810000 0x0 0x1000>;
517 interrupts = <0x0 0x22 0x4>;
520 compatible = "apm,xgene-pmu-l3c";
521 reg = <0x0 0x7e610000 0x0 0x1000>;
525 compatible = "apm,xgene-pmu-iob";
526 reg = <0x0 0x7e940000 0x0 0x1000>;
530 compatible = "apm,xgene-pmu-mcb";
531 reg = <0x0 0x7e710000 0x0 0x1000>;
532 enable-bit-index = <0>;
536 compatible = "apm,xgene-pmu-mcb";
537 reg = <0x0 0x7e730000 0x0 0x1000>;
538 enable-bit-index = <1>;
542 compatible = "apm,xgene-pmu-mc";
543 reg = <0x0 0x7e810000 0x0 0x1000>;
544 enable-bit-index = <0>;
548 compatible = "apm,xgene-pmu-mc";
549 reg = <0x0 0x7e850000 0x0 0x1000>;
550 enable-bit-index = <1>;
554 compatible = "apm,xgene-pmu-mc";
555 reg = <0x0 0x7e890000 0x0 0x1000>;
556 enable-bit-index = <2>;
560 compatible = "apm,xgene-pmu-mc";
561 reg = <0x0 0x7e8d0000 0x0 0x1000>;
562 enable-bit-index = <3>;
566 mailbox: mailbox@10540000 {
567 compatible = "apm,xgene-slimpro-mbox";
568 reg = <0x0 0x10540000 0x0 0x8000>;
570 interrupts = <0x0 0x0 0x4
581 compatible = "apm,xgene-slimpro-i2c";
582 mboxes = <&mailbox 0>;
586 compatible = "apm,xgene-slimpro-hwmon";
587 mboxes = <&mailbox 7>;
590 serial0: serial@10600000 {
591 device_type = "serial";
592 compatible = "ns16550";
593 reg = <0 0x10600000 0x0 0x1000>;
595 clock-frequency = <10000000>;
596 interrupt-parent = <&gic>;
597 interrupts = <0x0 0x4c 0x4>;
600 /* Do not change dwusb name, coded for backward compatibility */
601 usb0: dwusb@19000000 {
603 compatible = "snps,dwc3";
604 reg = <0x0 0x19000000 0x0 0x100000>;
605 interrupts = <0x0 0x5d 0x4>;
610 pcie0: pcie@1f2b0000 {
613 compatible = "apm,xgene-pcie", "apm,xgene2-pcie";
614 #interrupt-cells = <1>;
616 #address-cells = <3>;
617 reg = < 0x00 0x1f2b0000 0x0 0x00010000 /* Controller registers */
618 0xc0 0xd0000000 0x0 0x00040000>; /* PCI config space */
619 reg-names = "csr", "cfg";
620 ranges = <0x01000000 0x00 0x00000000 0xc0 0x10000000 0x00 0x00010000 /* io */
621 0x02000000 0x00 0x20000000 0xc1 0x20000000 0x00 0x20000000 /* mem */
622 0x43000000 0xe0 0x00000000 0xe0 0x00000000 0x20 0x00000000>; /* mem */
623 dma-ranges = <0x42000000 0x80 0x00000000 0x80 0x00000000 0x00 0x80000000
624 0x42000000 0x00 0x00000000 0x00 0x00000000 0x80 0x00000000>;
625 bus-range = <0x00 0xff>;
626 interrupt-map-mask = <0x0 0x0 0x0 0x7>;
627 interrupt-map = <0x0 0x0 0x0 0x1 &gic 0x0 0x0 0x0 0x10 0x4
628 0x0 0x0 0x0 0x2 &gic 0x0 0x0 0x0 0x11 0x4
629 0x0 0x0 0x0 0x3 &gic 0x0 0x0 0x0 0x12 0x4
630 0x0 0x0 0x0 0x4 &gic 0x0 0x0 0x0 0x13 0x4>;
632 clocks = <&pcie0clk 0>;
633 msi-parent = <&v2m0>;
636 pcie1: pcie@1f2c0000 {
639 compatible = "apm,xgene-pcie", "apm,xgene2-pcie";
640 #interrupt-cells = <1>;
642 #address-cells = <3>;
643 reg = < 0x00 0x1f2c0000 0x0 0x00010000 /* Controller registers */
644 0xa0 0xd0000000 0x0 0x00040000>; /* PCI config space */
645 reg-names = "csr", "cfg";
646 ranges = <0x01000000 0x00 0x00000000 0xa0 0x10000000 0x00 0x00010000 /* io */
647 0x02000000 0x00 0x20000000 0xa1 0x20000000 0x00 0x20000000 /* mem */
648 0x43000000 0xb0 0x00000000 0xb0 0x00000000 0x10 0x00000000>; /* mem */
649 dma-ranges = <0x42000000 0x80 0x00000000 0x80 0x00000000 0x00 0x80000000
650 0x42000000 0x00 0x00000000 0x00 0x00000000 0x80 0x00000000>;
651 bus-range = <0x00 0xff>;
652 interrupt-map-mask = <0x0 0x0 0x0 0x7>;
653 interrupt-map = <0x0 0x0 0x0 0x1 &gic 0x0 0x0 0x0 0x16 0x4
654 0x0 0x0 0x0 0x2 &gic 0x0 0x0 0x0 0x17 0x4
655 0x0 0x0 0x0 0x3 &gic 0x0 0x0 0x0 0x18 0x4
656 0x0 0x0 0x0 0x4 &gic 0x0 0x0 0x0 0x19 0x4>;
658 clocks = <&pcie1clk 0>;
659 msi-parent = <&v2m0>;
662 sata1: sata@1a000000 {
663 compatible = "apm,xgene-ahci-v2";
664 reg = <0x0 0x1a000000 0x0 0x1000>,
665 <0x0 0x1f200000 0x0 0x1000>,
666 <0x0 0x1f20d000 0x0 0x1000>,
667 <0x0 0x1f20e000 0x0 0x1000>;
668 interrupts = <0x0 0x5a 0x4>;
672 sata2: sata@1a200000 {
673 compatible = "apm,xgene-ahci-v2";
674 reg = <0x0 0x1a200000 0x0 0x1000>,
675 <0x0 0x1f210000 0x0 0x1000>,
676 <0x0 0x1f21d000 0x0 0x1000>,
677 <0x0 0x1f21e000 0x0 0x1000>;
678 interrupts = <0x0 0x5b 0x4>;
682 sata3: sata@1a400000 {
683 compatible = "apm,xgene-ahci-v2";
684 reg = <0x0 0x1a400000 0x0 0x1000>,
685 <0x0 0x1f220000 0x0 0x1000>,
686 <0x0 0x1f22d000 0x0 0x1000>,
687 <0x0 0x1f22e000 0x0 0x1000>;
688 interrupts = <0x0 0x5c 0x4>;
693 compatible = "arasan,sdhci-4.9a";
694 reg = <0x0 0x1c000000 0x0 0x100>;
695 interrupts = <0x0 0x49 0x4>;
698 clock-names = "clk_xin", "clk_ahb";
699 clocks = <&sdioclk 0>, <&ahbclk 0>;
702 gfcgpio: gpio@1f63c000 {
703 compatible = "apm,xgene-gpio";
704 reg = <0x0 0x1f63c000 0x0 0x40>;
709 dwgpio: gpio@1c024000 {
710 compatible = "snps,dw-apb-gpio";
711 reg = <0x0 0x1c024000 0x0 0x1000>;
713 #address-cells = <1>;
716 porta: gpio-controller@0 {
717 compatible = "snps,dw-apb-gpio-port";
719 snps,nr-gpios = <32>;
724 sbgpio: gpio@17001000{
725 compatible = "apm,xgene-gpio-sb";
726 reg = <0x0 0x17001000 0x0 0x400>;
729 interrupts = <0x0 0x28 0x1>,
737 interrupt-parent = <&gic>;
738 #interrupt-cells = <2>;
739 interrupt-controller;
745 mdio: mdio@1f610000 {
746 compatible = "apm,xgene-mdio-xfi";
747 #address-cells = <1>;
749 reg = <0x0 0x1f610000 0x0 0xd100>;
750 clocks = <&xge0clk 0>;
753 sgenet0: ethernet@1f610000 {
754 compatible = "apm,xgene2-sgenet";
756 reg = <0x0 0x1f610000 0x0 0xd100>,
757 <0x0 0x1f600000 0x0 0xd100>,
758 <0x0 0x20000000 0x0 0x20000>;
759 interrupts = <0 96 4>,
762 clocks = <&xge0clk 0>;
763 local-mac-address = [00 01 73 00 00 01];
764 phy-connection-type = "sgmii";
765 phy-handle = <&sgenet0phy>;
768 xgenet1: ethernet@1f620000 {
769 compatible = "apm,xgene2-xgenet";
771 reg = <0x0 0x1f620000 0x0 0x10000>,
772 <0x0 0x1f600000 0x0 0xd100>,
773 <0x0 0x20000000 0x0 0x220000>;
774 interrupts = <0 108 4>,
785 clocks = <&xge1clk 0>;
786 local-mac-address = [00 01 73 00 00 02];
787 phy-connection-type = "xgmii";
791 compatible = "apm,xgene-rng";
792 reg = <0x0 0x10520000 0x0 0x100>;
793 interrupts = <0x0 0x41 0x4>;
794 clocks = <&rngpkaclk 0>;
798 #address-cells = <1>;
800 compatible = "snps,designware-i2c";
801 reg = <0x0 0x10511000 0x0 0x1000>;
802 interrupts = <0 0x45 0x4>;
804 clocks = <&sbapbclk 0>;
809 #address-cells = <1>;
811 compatible = "snps,designware-i2c";
812 reg = <0x0 0x10640000 0x0 0x1000>;
813 interrupts = <0 0x3a 0x4>;
814 clocks = <&i2c4clk 0>;