1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Device Tree Include file for Marvell Armada 38x family of SoCs.
5 * Copyright (C) 2014 Marvell
7 * Lior Amsalem <alior@marvell.com>
8 * Gregory CLEMENT <gregory.clement@free-electrons.com>
9 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
12 #include <dt-bindings/interrupt-controller/arm-gic.h>
13 #include <dt-bindings/interrupt-controller/irq.h>
15 #define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
21 model = "Marvell Armada 38x family SoC";
22 compatible = "marvell,armada380";
32 compatible = "arm,cortex-a9-pmu";
33 interrupts-extended = <&mpic 3>;
37 compatible = "marvell,armada380-mbus", "simple-bus";
41 controller = <&mbusc>;
42 interrupt-parent = <&gic>;
43 pcie-mem-aperture = <0xe0000000 0x8000000>;
44 pcie-io-aperture = <0xe8000000 0x100000>;
47 compatible = "marvell,bootrom";
48 reg = <MBUS_ID(0x01, 0x1d) 0 0x200000>;
51 devbus_bootcs: devbus-bootcs {
52 compatible = "marvell,mvebu-devbus";
53 reg = <MBUS_ID(0xf0, 0x01) 0x10400 0x8>;
54 ranges = <0 MBUS_ID(0x01, 0x2f) 0 0xffffffff>;
57 clocks = <&coreclk 0>;
61 devbus_cs0: devbus-cs0 {
62 compatible = "marvell,mvebu-devbus";
63 reg = <MBUS_ID(0xf0, 0x01) 0x10408 0x8>;
64 ranges = <0 MBUS_ID(0x01, 0x3e) 0 0xffffffff>;
67 clocks = <&coreclk 0>;
71 devbus_cs1: devbus-cs1 {
72 compatible = "marvell,mvebu-devbus";
73 reg = <MBUS_ID(0xf0, 0x01) 0x10410 0x8>;
74 ranges = <0 MBUS_ID(0x01, 0x3d) 0 0xffffffff>;
77 clocks = <&coreclk 0>;
81 devbus_cs2: devbus-cs2 {
82 compatible = "marvell,mvebu-devbus";
83 reg = <MBUS_ID(0xf0, 0x01) 0x10418 0x8>;
84 ranges = <0 MBUS_ID(0x01, 0x3b) 0 0xffffffff>;
87 clocks = <&coreclk 0>;
91 devbus_cs3: devbus-cs3 {
92 compatible = "marvell,mvebu-devbus";
93 reg = <MBUS_ID(0xf0, 0x01) 0x10420 0x8>;
94 ranges = <0 MBUS_ID(0x01, 0x37) 0 0xffffffff>;
97 clocks = <&coreclk 0>;
102 compatible = "simple-bus";
104 #address-cells = <1>;
106 ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
108 sdramc: sdramc@1400 {
109 compatible = "marvell,armada-xp-sdram-controller";
110 reg = <0x1400 0x500>;
113 L2: cache-controller@8000 {
114 compatible = "arm,pl310-cache";
115 reg = <0x8000 0x1000>;
118 arm,double-linefill-incr = <0>;
119 arm,double-linefill-wrap = <0>;
120 arm,double-linefill = <0>;
125 compatible = "arm,cortex-a9-scu";
130 compatible = "arm,cortex-a9-global-timer";
132 interrupts = <GIC_PPI 11 (IRQ_TYPE_EDGE_RISING | GIC_CPU_MASK_SIMPLE(2))>;
133 clocks = <&coreclk 2>;
137 compatible = "arm,cortex-a9-twd-timer";
139 interrupts = <GIC_PPI 13 (IRQ_TYPE_EDGE_RISING | GIC_CPU_MASK_SIMPLE(2))>;
140 clocks = <&coreclk 2>;
143 gic: interrupt-controller@d000 {
144 compatible = "arm,cortex-a9-gic";
145 #interrupt-cells = <3>;
147 interrupt-controller;
148 reg = <0xd000 0x1000>,
153 compatible = "marvell,mv78230-a0-i2c", "marvell,mv64xxx-i2c";
154 reg = <0x11000 0x20>;
155 #address-cells = <1>;
157 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
158 clocks = <&coreclk 0>;
163 compatible = "marvell,mv78230-a0-i2c", "marvell,mv64xxx-i2c";
164 reg = <0x11100 0x20>;
165 #address-cells = <1>;
167 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
168 clocks = <&coreclk 0>;
172 uart0: serial@12000 {
173 compatible = "marvell,armada-38x-uart", "ns16550a";
174 reg = <0x12000 0x100>;
176 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
178 clocks = <&coreclk 0>;
182 uart1: serial@12100 {
183 compatible = "marvell,armada-38x-uart", "ns16550a";
184 reg = <0x12100 0x100>;
186 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
188 clocks = <&coreclk 0>;
192 pinctrl: pinctrl@18000 {
193 reg = <0x18000 0x20>;
195 ge0_rgmii_pins: ge-rgmii-pins-0 {
196 marvell,pins = "mpp6", "mpp7", "mpp8",
197 "mpp9", "mpp10", "mpp11",
198 "mpp12", "mpp13", "mpp14",
199 "mpp15", "mpp16", "mpp17";
200 marvell,function = "ge0";
203 ge1_rgmii_pins: ge-rgmii-pins-1 {
204 marvell,pins = "mpp21", "mpp27", "mpp28",
205 "mpp29", "mpp30", "mpp31",
206 "mpp32", "mpp37", "mpp38",
207 "mpp39", "mpp40", "mpp41";
208 marvell,function = "ge1";
211 i2c0_pins: i2c-pins-0 {
212 marvell,pins = "mpp2", "mpp3";
213 marvell,function = "i2c0";
216 mdio_pins: mdio-pins {
217 marvell,pins = "mpp4", "mpp5";
218 marvell,function = "ge";
221 ref_clk0_pins: ref-clk-pins-0 {
222 marvell,pins = "mpp45";
223 marvell,function = "ref";
226 ref_clk1_pins: ref-clk-pins-1 {
227 marvell,pins = "mpp46";
228 marvell,function = "ref";
231 spi0_pins: spi-pins-0 {
232 marvell,pins = "mpp22", "mpp23", "mpp24",
234 marvell,function = "spi0";
237 spi1_pins: spi-pins-1 {
238 marvell,pins = "mpp56", "mpp57", "mpp58",
240 marvell,function = "spi1";
243 nand_pins: nand-pins {
244 marvell,pins = "mpp22", "mpp34", "mpp23",
245 "mpp33", "mpp38", "mpp28",
246 "mpp40", "mpp42", "mpp35",
247 "mpp36", "mpp25", "mpp30",
249 marvell,function = "dev";
253 marvell,pins = "mpp41";
254 marvell,function = "nand";
257 uart0_pins: uart-pins-0 {
258 marvell,pins = "mpp0", "mpp1";
259 marvell,function = "ua0";
262 uart1_pins: uart-pins-1 {
263 marvell,pins = "mpp19", "mpp20";
264 marvell,function = "ua1";
267 sdhci_pins: sdhci-pins {
268 marvell,pins = "mpp48", "mpp49", "mpp50",
269 "mpp52", "mpp53", "mpp54",
270 "mpp55", "mpp57", "mpp58",
272 marvell,function = "sd0";
275 sata0_pins: sata-pins-0 {
276 marvell,pins = "mpp20";
277 marvell,function = "sata0";
280 sata1_pins: sata-pins-1 {
281 marvell,pins = "mpp19";
282 marvell,function = "sata1";
285 sata2_pins: sata-pins-2 {
286 marvell,pins = "mpp47";
287 marvell,function = "sata2";
290 sata3_pins: sata-pins-3 {
291 marvell,pins = "mpp44";
292 marvell,function = "sata3";
297 compatible = "marvell,armada-370-gpio",
298 "marvell,orion-gpio";
299 reg = <0x18100 0x40>, <0x181c0 0x08>;
300 reg-names = "gpio", "pwm";
303 gpio-ranges = <&pinctrl 0 0 32>;
306 interrupt-controller;
307 #interrupt-cells = <2>;
308 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
309 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
310 <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
311 <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
312 clocks = <&coreclk 0>;
316 compatible = "marvell,armada-370-gpio",
317 "marvell,orion-gpio";
318 reg = <0x18140 0x40>, <0x181c8 0x08>;
319 reg-names = "gpio", "pwm";
322 gpio-ranges = <&pinctrl 0 32 28>;
325 interrupt-controller;
326 #interrupt-cells = <2>;
327 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
328 <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
329 <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
330 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
331 clocks = <&coreclk 0>;
334 systemc: system-controller@18200 {
335 compatible = "marvell,armada-380-system-controller",
336 "marvell,armada-370-xp-system-controller";
337 reg = <0x18200 0x100>;
341 gateclk: clock-gating-control@18220 {
342 compatible = "marvell,armada-380-gating-clock";
344 clocks = <&coreclk 0>;
349 compatible = "marvell,armada-380-comphy";
350 reg-names = "comphy", "conf";
351 reg = <0x18300 0x100>, <0x18460 4>;
352 #address-cells = <1>;
386 coreclk: mvebu-sar@18600 {
387 compatible = "marvell,armada-380-core-clock";
388 reg = <0x18600 0x04>;
392 mbusc: mbus-controller@20000 {
393 compatible = "marvell,mbus-controller";
394 reg = <0x20000 0x100>, <0x20180 0x20>,
398 mpic: interrupt-controller@20a00 {
399 compatible = "marvell,mpic";
400 reg = <0x20a00 0x2d0>, <0x21070 0x58>;
401 #interrupt-cells = <1>;
403 interrupt-controller;
405 interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>;
409 compatible = "marvell,armada-380-timer",
410 "marvell,armada-xp-timer";
411 reg = <0x20300 0x30>, <0x21040 0x30>;
412 interrupts-extended = <&gic GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
413 <&gic GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
414 <&gic GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
415 <&gic GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
418 clocks = <&coreclk 2>, <&refclk>;
419 clock-names = "nbclk", "fixed";
422 watchdog: watchdog@20300 {
423 compatible = "marvell,armada-380-wdt";
424 reg = <0x20300 0x34>, <0x20704 0x4>, <0x18260 0x4>;
425 clocks = <&coreclk 2>, <&refclk>;
426 clock-names = "nbclk", "fixed";
427 interrupts-extended = <&gic GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>,
428 <&gic GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
431 cpurst: cpurst@20800 {
432 compatible = "marvell,armada-370-cpu-reset";
433 reg = <0x20800 0x10>;
436 mpcore-soc-ctrl@20d20 {
437 compatible = "marvell,armada-380-mpcore-soc-ctrl";
438 reg = <0x20d20 0x6c>;
441 coherencyfab: coherency-fabric@21010 {
442 compatible = "marvell,armada-380-coherency-fabric";
443 reg = <0x21010 0x1c>;
447 compatible = "marvell,armada-380-pmsu";
448 reg = <0x22000 0x1000>;
452 * As a special exception to the "order by
453 * register address" rule, the eth0 node is
454 * placed here to ensure that it gets
455 * registered as the first interface, since
456 * the network subsystem doesn't allow naming
457 * interfaces using DT aliases. Without this,
458 * the ordering of interfaces is different
459 * from the one used in U-Boot and the
460 * labeling of interfaces on the boards, which
461 * is very confusing for users.
463 eth0: ethernet@70000 {
464 compatible = "marvell,armada-370-neta";
465 reg = <0x70000 0x4000>;
466 interrupts-extended = <&mpic 8>;
467 clocks = <&gateclk 4>;
468 tx-csum-limit = <9800>;
472 eth1: ethernet@30000 {
473 compatible = "marvell,armada-370-neta";
474 reg = <0x30000 0x4000>;
475 interrupts-extended = <&mpic 10>;
476 clocks = <&gateclk 3>;
480 eth2: ethernet@34000 {
481 compatible = "marvell,armada-370-neta";
482 reg = <0x34000 0x4000>;
483 interrupts-extended = <&mpic 12>;
484 clocks = <&gateclk 2>;
489 compatible = "marvell,orion-ehci";
490 reg = <0x58000 0x500>;
491 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
492 clocks = <&gateclk 18>;
497 compatible = "marvell,armada-380-xor", "marvell,orion-xor";
500 clocks = <&gateclk 22>;
504 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
509 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
517 compatible = "marvell,armada-380-xor", "marvell,orion-xor";
520 clocks = <&gateclk 28>;
524 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
529 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
537 #address-cells = <1>;
539 compatible = "marvell,orion-mdio";
541 clocks = <&gateclk 4>;
545 compatible = "marvell,armada-38x-crypto";
546 reg = <0x90000 0x10000>;
548 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
549 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
550 clocks = <&gateclk 23>, <&gateclk 21>,
551 <&gateclk 14>, <&gateclk 16>;
552 clock-names = "cesa0", "cesa1",
554 marvell,crypto-srams = <&crypto_sram0>,
556 marvell,crypto-sram-size = <0x800>;
560 compatible = "marvell,armada-380-rtc";
561 reg = <0xa3800 0x20>, <0x184a0 0x0c>;
562 reg-names = "rtc", "rtc-soc";
563 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
567 compatible = "marvell,armada-380-ahci";
568 reg = <0xa8000 0x2000>;
569 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
570 clocks = <&gateclk 15>;
575 compatible = "marvell,armada-380-neta-bm";
576 reg = <0xc8000 0xac>;
577 clocks = <&gateclk 13>;
578 internal-mem = <&bm_bppi>;
583 compatible = "marvell,armada-380-ahci";
584 reg = <0xe0000 0x2000>;
585 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
586 clocks = <&gateclk 30>;
590 coredivclk: clock@e4250 {
591 compatible = "marvell,armada-380-corediv-clock";
595 clock-output-names = "nand";
598 thermal: thermal@e8078 {
599 compatible = "marvell,armada380-thermal";
600 reg = <0xe4078 0x4>, <0xe4070 0x8>;
604 nand_controller: nand-controller@d0000 {
605 compatible = "marvell,armada370-nand-controller";
606 reg = <0xd0000 0x54>;
607 #address-cells = <1>;
609 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
610 clocks = <&coredivclk 0>;
615 compatible = "marvell,armada-380-sdhci";
616 reg-names = "sdhci", "mbus", "conf-sdio3";
617 reg = <0xd8000 0x1000>,
620 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
621 clocks = <&gateclk 17>;
622 mrvl,clk-delay-cycles = <0x1F>;
627 compatible = "marvell,armada-380-xhci";
628 reg = <0xf0000 0x4000>,<0xf4000 0x4000>;
629 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
630 clocks = <&gateclk 9>;
635 compatible = "marvell,armada-380-xhci";
636 reg = <0xf8000 0x4000>,<0xfc000 0x4000>;
637 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
638 clocks = <&gateclk 10>;
643 crypto_sram0: sa-sram0 {
644 compatible = "mmio-sram";
645 reg = <MBUS_ID(0x09, 0x19) 0 0x800>;
646 clocks = <&gateclk 23>;
647 #address-cells = <1>;
649 ranges = <0 MBUS_ID(0x09, 0x19) 0 0x800>;
652 crypto_sram1: sa-sram1 {
653 compatible = "mmio-sram";
654 reg = <MBUS_ID(0x09, 0x15) 0 0x800>;
655 clocks = <&gateclk 21>;
656 #address-cells = <1>;
658 ranges = <0 MBUS_ID(0x09, 0x15) 0 0x800>;
662 compatible = "mmio-sram";
663 reg = <MBUS_ID(0x0c, 0x04) 0 0x100000>;
664 ranges = <0 MBUS_ID(0x0c, 0x04) 0 0x100000>;
665 #address-cells = <1>;
667 clocks = <&gateclk 13>;
673 compatible = "marvell,armada-380-spi",
675 reg = <MBUS_ID(0xf0, 0x01) 0x10600 0x50>;
676 #address-cells = <1>;
679 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
680 clocks = <&coreclk 0>;
685 compatible = "marvell,armada-380-spi",
687 reg = <MBUS_ID(0xf0, 0x01) 0x10680 0x50>;
688 #address-cells = <1>;
691 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
692 clocks = <&coreclk 0>;
698 /* 1 GHz fixed main PLL */
700 compatible = "fixed-clock";
702 clock-frequency = <1000000000>;
705 /* 25 MHz reference crystal */
707 compatible = "fixed-clock";
709 clock-frequency = <25000000>;