1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Device Tree Include file for Marvell Armada 39x family of SoCs.
5 * Copyright (C) 2015 Marvell
7 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 #include <dt-bindings/interrupt-controller/arm-gic.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
13 #define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
18 model = "Marvell Armada 39x family SoC";
19 compatible = "marvell,armada390";
33 enable-method = "marvell,armada-390-smp";
37 compatible = "arm,cortex-a9";
42 compatible = "arm,cortex-a9";
48 compatible = "arm,cortex-a9-pmu";
49 interrupts-extended = <&mpic 3>;
53 compatible = "marvell,armada390-mbus", "marvell,armadaxp-mbus",
57 controller = <&mbusc>;
58 interrupt-parent = <&gic>;
59 pcie-mem-aperture = <0xe0000000 0x8000000>;
60 pcie-io-aperture = <0xe8000000 0x100000>;
63 compatible = "marvell,bootrom";
64 reg = <MBUS_ID(0x01, 0x1d) 0 0x200000>;
68 compatible = "simple-bus";
71 ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
73 L2: cache-controller@8000 {
74 compatible = "arm,pl310-cache";
75 reg = <0x8000 0x1000>;
78 arm,double-linefill-incr = <0>;
79 arm,double-linefill-wrap = <0>;
80 arm,double-linefill = <0>;
85 compatible = "arm,cortex-a9-scu";
90 compatible = "arm,cortex-a9-twd-timer";
92 interrupts = <GIC_PPI 13 (IRQ_TYPE_EDGE_RISING | GIC_CPU_MASK_SIMPLE(2))>;
93 clocks = <&coreclk 2>;
96 gic: interrupt-controller@d000 {
97 compatible = "arm,cortex-a9-gic";
98 #interrupt-cells = <3>;
100 interrupt-controller;
101 reg = <0xd000 0x1000>,
106 compatible = "marvell,mv64xxx-i2c";
107 reg = <0x11000 0x20>;
108 #address-cells = <1>;
110 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
112 clocks = <&coreclk 0>;
117 compatible = "marvell,mv64xxx-i2c";
118 reg = <0x11100 0x20>;
119 #address-cells = <1>;
121 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
123 clocks = <&coreclk 0>;
128 compatible = "marvell,mv64xxx-i2c";
129 reg = <0x11200 0x20>;
130 #address-cells = <1>;
132 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
134 clocks = <&coreclk 0>;
139 compatible = "marvell,mv64xxx-i2c";
140 reg = <0x11300 0x20>;
141 #address-cells = <1>;
143 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
145 clocks = <&coreclk 0>;
149 uart0: serial@12000 {
150 compatible = "snps,dw-apb-uart";
151 reg = <0x12000 0x100>;
153 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
155 clocks = <&coreclk 0>;
159 uart1: serial@12100 {
160 compatible = "snps,dw-apb-uart";
161 reg = <0x12100 0x100>;
163 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
165 clocks = <&coreclk 0>;
169 uart2: serial@12200 {
170 compatible = "snps,dw-apb-uart";
171 reg = <0x12200 0x100>;
173 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
175 clocks = <&coreclk 0>;
179 uart3: serial@12300 {
180 compatible = "snps,dw-apb-uart";
181 reg = <0x12300 0x100>;
183 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
185 clocks = <&coreclk 0>;
190 i2c0_pins: i2c0-pins {
191 marvell,pins = "mpp2", "mpp3";
192 marvell,function = "i2c0";
195 uart0_pins: uart0-pins {
196 marvell,pins = "mpp0", "mpp1";
197 marvell,function = "ua0";
200 uart1_pins: uart1-pins {
201 marvell,pins = "mpp19", "mpp20";
202 marvell,function = "ua1";
205 spi1_pins: spi1-pins {
206 marvell,pins = "mpp56", "mpp57", "mpp58", "mpp59";
207 marvell,function = "spi1";
210 nand_pins: nand-pins {
211 marvell,pins = "mpp22", "mpp34", "mpp23", "mpp33",
212 "mpp38", "mpp28", "mpp40", "mpp42",
213 "mpp35", "mpp36", "mpp25", "mpp30",
215 marvell,function = "dev";
220 compatible = "marvell,orion-gpio";
221 reg = <0x18100 0x40>;
225 interrupt-controller;
226 #interrupt-cells = <2>;
227 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
228 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
229 <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
230 <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
234 compatible = "marvell,orion-gpio";
235 reg = <0x18140 0x40>;
239 interrupt-controller;
240 #interrupt-cells = <2>;
241 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
242 <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
243 <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
244 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
247 system-controller@18200 {
248 compatible = "marvell,armada-390-system-controller",
249 "marvell,armada-370-xp-system-controller";
250 reg = <0x18200 0x100>;
253 gateclk: clock-gating-control@18220 {
254 compatible = "marvell,armada-390-gating-clock";
256 clocks = <&coreclk 0>;
260 coreclk: mvebu-sar@18600 {
261 compatible = "marvell,armada-390-core-clock";
262 reg = <0x18600 0x04>;
266 mbusc: mbus-controller@20000 {
267 compatible = "marvell,mbus-controller";
268 reg = <0x20000 0x100>, <0x20180 0x20>, <0x20250 0x8>;
271 mpic: interrupt-controller@20a00 {
272 compatible = "marvell,mpic";
273 reg = <0x20a00 0x2d0>, <0x21070 0x58>;
274 #interrupt-cells = <1>;
276 interrupt-controller;
278 interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>;
282 compatible = "marvell,armada-380-timer",
283 "marvell,armada-xp-timer";
284 reg = <0x20300 0x30>, <0x21040 0x30>;
285 interrupts-extended = <&gic GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
286 <&gic GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
287 <&gic GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
288 <&gic GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
291 clocks = <&coreclk 2>, <&coreclk 5>;
292 clock-names = "nbclk", "fixed";
296 compatible = "marvell,armada-380-wdt";
297 reg = <0x20300 0x34>, <0x20704 0x4>,
299 clocks = <&coreclk 2>, <&refclk>;
300 clock-names = "nbclk", "fixed";
304 compatible = "marvell,armada-370-cpu-reset";
305 reg = <0x20800 0x10>;
308 mpcore-soc-ctrl@20d20 {
309 compatible = "marvell,armada-380-mpcore-soc-ctrl";
310 reg = <0x20d20 0x6c>;
313 coherency-fabric@21010 {
314 compatible = "marvell,armada-380-coherency-fabric";
315 reg = <0x21010 0x1c>;
319 compatible = "marvell,armada-390-pmsu",
320 "marvell,armada-380-pmsu";
321 reg = <0x22000 0x1000>;
325 compatible = "marvell,armada-380-xor", "marvell,orion-xor";
328 clocks = <&gateclk 22>;
332 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
337 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
345 compatible = "marvell,armada-380-xor", "marvell,orion-xor";
348 clocks = <&gateclk 28>;
352 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
357 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
365 compatible = "marvell,armada-380-rtc";
366 reg = <0xa3800 0x20>, <0x184a0 0x0c>;
367 reg-names = "rtc", "rtc-soc";
368 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
371 nand_controller: nand-controller@d0000 {
372 compatible = "marvell,armada370-nand-controller";
373 reg = <0xd0000 0x54>;
374 #address-cells = <1>;
376 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
377 clocks = <&coredivclk 0>;
382 compatible = "marvell,armada-380-sdhci";
383 reg-names = "sdhci", "mbus", "conf-sdio3";
384 reg = <0xd8000 0x1000>,
387 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
388 clocks = <&gateclk 17>;
389 mrvl,clk-delay-cycles = <0x1F>;
393 coredivclk: clock@e4250 {
394 compatible = "marvell,armada-390-corediv-clock",
395 "marvell,armada-380-corediv-clock";
399 clock-output-names = "nand";
403 compatible = "marvell,armada380-thermal";
404 reg = <0xe4078 0x4>, <0xe4074 0x4>;
410 compatible = "marvell,armada-370-pcie";
414 #address-cells = <3>;
417 msi-parent = <&mpic>;
418 bus-range = <0x00 0xff>;
421 <0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000
422 0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000
423 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000
424 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000
425 0x82000000 0x1 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 0 MEM */
426 0x81000000 0x1 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 0 IO */
427 0x82000000 0x2 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 1 MEM */
428 0x81000000 0x2 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 1 IO */
429 0x82000000 0x3 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 2 MEM */
430 0x81000000 0x3 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 2 IO */
431 0x82000000 0x4 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 3 MEM */
432 0x81000000 0x4 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 3 IO */>;
435 * This port can be either x4 or x1. When
436 * configured in x4 by the bootloader, then
437 * pcie@4,0 is not available.
441 assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
442 reg = <0x0800 0 0 0 0>;
443 #address-cells = <3>;
445 #interrupt-cells = <1>;
446 ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
447 0x81000000 0 0 0x81000000 0x1 0 1 0>;
448 bus-range = <0x00 0xff>;
449 interrupt-map-mask = <0 0 0 0>;
450 interrupt-map = <0 0 0 0 &gic GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
451 marvell,pcie-port = <0>;
452 marvell,pcie-lane = <0>;
453 clocks = <&gateclk 8>;
460 assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
461 reg = <0x1000 0 0 0 0>;
462 #address-cells = <3>;
464 #interrupt-cells = <1>;
465 ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
466 0x81000000 0 0 0x81000000 0x2 0 1 0>;
467 bus-range = <0x00 0xff>;
468 interrupt-map-mask = <0 0 0 0>;
469 interrupt-map = <0 0 0 0 &gic GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
470 marvell,pcie-port = <1>;
471 marvell,pcie-lane = <0>;
472 clocks = <&gateclk 5>;
479 assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
480 reg = <0x1800 0 0 0 0>;
481 #address-cells = <3>;
483 #interrupt-cells = <1>;
484 ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
485 0x81000000 0 0 0x81000000 0x3 0 1 0>;
486 bus-range = <0x00 0xff>;
487 interrupt-map-mask = <0 0 0 0>;
488 interrupt-map = <0 0 0 0 &gic GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
489 marvell,pcie-port = <2>;
490 marvell,pcie-lane = <0>;
491 clocks = <&gateclk 6>;
496 * x1 port only available when pcie@1,0 is
497 * configured as a x1 port
501 assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
502 reg = <0x2000 0 0 0 0>;
503 #address-cells = <3>;
505 #interrupt-cells = <1>;
506 ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
507 0x81000000 0 0 0x81000000 0x4 0 1 0>;
508 bus-range = <0x00 0xff>;
509 interrupt-map-mask = <0 0 0 0>;
510 interrupt-map = <0 0 0 0 &gic GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
511 marvell,pcie-port = <3>;
512 marvell,pcie-lane = <0>;
513 clocks = <&gateclk 7>;
519 compatible = "marvell,armada-390-spi",
521 reg = <MBUS_ID(0xf0, 0x01) 0x10600 0x50>;
522 #address-cells = <1>;
525 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
526 clocks = <&coreclk 0>;
531 compatible = "marvell,armada-390-spi",
533 reg = <MBUS_ID(0xf0, 0x01) 0x10680 0x50>;
534 #address-cells = <1>;
537 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
538 clocks = <&coreclk 0>;
544 /* 1 GHz fixed main PLL */
546 compatible = "fixed-clock";
548 clock-frequency = <1000000000>;
551 /* 25 MHz reference crystal */
553 compatible = "fixed-clock";
555 clock-frequency = <25000000>;