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>;
111 clocks = <&coreclk 0>;
116 compatible = "marvell,mv64xxx-i2c";
117 reg = <0x11100 0x20>;
118 #address-cells = <1>;
120 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
121 clocks = <&coreclk 0>;
126 compatible = "marvell,mv64xxx-i2c";
127 reg = <0x11200 0x20>;
128 #address-cells = <1>;
130 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
131 clocks = <&coreclk 0>;
136 compatible = "marvell,mv64xxx-i2c";
137 reg = <0x11300 0x20>;
138 #address-cells = <1>;
140 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
141 clocks = <&coreclk 0>;
145 uart0: serial@12000 {
146 compatible = "snps,dw-apb-uart";
147 reg = <0x12000 0x100>;
149 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
151 clocks = <&coreclk 0>;
155 uart1: serial@12100 {
156 compatible = "snps,dw-apb-uart";
157 reg = <0x12100 0x100>;
159 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
161 clocks = <&coreclk 0>;
165 uart2: serial@12200 {
166 compatible = "snps,dw-apb-uart";
167 reg = <0x12200 0x100>;
169 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
171 clocks = <&coreclk 0>;
175 uart3: serial@12300 {
176 compatible = "snps,dw-apb-uart";
177 reg = <0x12300 0x100>;
179 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
181 clocks = <&coreclk 0>;
186 i2c0_pins: i2c0-pins {
187 marvell,pins = "mpp2", "mpp3";
188 marvell,function = "i2c0";
191 uart0_pins: uart0-pins {
192 marvell,pins = "mpp0", "mpp1";
193 marvell,function = "ua0";
196 uart1_pins: uart1-pins {
197 marvell,pins = "mpp19", "mpp20";
198 marvell,function = "ua1";
201 spi1_pins: spi1-pins {
202 marvell,pins = "mpp56", "mpp57", "mpp58", "mpp59";
203 marvell,function = "spi1";
206 nand_pins: nand-pins {
207 marvell,pins = "mpp22", "mpp34", "mpp23", "mpp33",
208 "mpp38", "mpp28", "mpp40", "mpp42",
209 "mpp35", "mpp36", "mpp25", "mpp30",
211 marvell,function = "dev";
216 compatible = "marvell,orion-gpio";
217 reg = <0x18100 0x40>;
221 interrupt-controller;
222 #interrupt-cells = <2>;
223 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
224 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
225 <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
226 <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
230 compatible = "marvell,orion-gpio";
231 reg = <0x18140 0x40>;
235 interrupt-controller;
236 #interrupt-cells = <2>;
237 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
238 <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
239 <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
240 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
243 system-controller@18200 {
244 compatible = "marvell,armada-390-system-controller",
245 "marvell,armada-370-xp-system-controller";
246 reg = <0x18200 0x100>;
249 gateclk: clock-gating-control@18220 {
250 compatible = "marvell,armada-390-gating-clock";
252 clocks = <&coreclk 0>;
256 coreclk: mvebu-sar@18600 {
257 compatible = "marvell,armada-390-core-clock";
258 reg = <0x18600 0x04>;
262 mbusc: mbus-controller@20000 {
263 compatible = "marvell,mbus-controller";
264 reg = <0x20000 0x100>, <0x20180 0x20>, <0x20250 0x8>;
267 mpic: interrupt-controller@20a00 {
268 compatible = "marvell,mpic";
269 reg = <0x20a00 0x2d0>, <0x21070 0x58>;
270 #interrupt-cells = <1>;
272 interrupt-controller;
274 interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>;
278 compatible = "marvell,armada-380-timer",
279 "marvell,armada-xp-timer";
280 reg = <0x20300 0x30>, <0x21040 0x30>;
281 interrupts-extended = <&gic GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
282 <&gic GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
283 <&gic GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
284 <&gic GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
287 clocks = <&coreclk 2>, <&coreclk 5>;
288 clock-names = "nbclk", "fixed";
292 compatible = "marvell,armada-380-wdt";
293 reg = <0x20300 0x34>, <0x20704 0x4>,
295 clocks = <&coreclk 2>, <&refclk>;
296 clock-names = "nbclk", "fixed";
300 compatible = "marvell,armada-370-cpu-reset";
301 reg = <0x20800 0x10>;
304 mpcore-soc-ctrl@20d20 {
305 compatible = "marvell,armada-380-mpcore-soc-ctrl";
306 reg = <0x20d20 0x6c>;
309 coherency-fabric@21010 {
310 compatible = "marvell,armada-380-coherency-fabric";
311 reg = <0x21010 0x1c>;
315 compatible = "marvell,armada-390-pmsu",
316 "marvell,armada-380-pmsu";
317 reg = <0x22000 0x1000>;
321 compatible = "marvell,armada-380-xor", "marvell,orion-xor";
324 clocks = <&gateclk 22>;
328 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
333 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
341 compatible = "marvell,armada-380-xor", "marvell,orion-xor";
344 clocks = <&gateclk 28>;
348 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
353 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
361 compatible = "marvell,armada-380-rtc";
362 reg = <0xa3800 0x20>, <0x184a0 0x0c>;
363 reg-names = "rtc", "rtc-soc";
364 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
367 nand_controller: nand-controller@d0000 {
368 compatible = "marvell,armada370-nand-controller";
369 reg = <0xd0000 0x54>;
370 #address-cells = <1>;
372 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
373 clocks = <&coredivclk 0>;
378 compatible = "marvell,armada-380-sdhci";
379 reg-names = "sdhci", "mbus", "conf-sdio3";
380 reg = <0xd8000 0x1000>,
383 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
384 clocks = <&gateclk 17>;
385 mrvl,clk-delay-cycles = <0x1F>;
389 coredivclk: clock@e4250 {
390 compatible = "marvell,armada-390-corediv-clock",
391 "marvell,armada-380-corediv-clock";
395 clock-output-names = "nand";
399 compatible = "marvell,armada380-thermal";
400 reg = <0xe4078 0x4>, <0xe4074 0x4>;
406 compatible = "marvell,armada-370-pcie";
410 #address-cells = <3>;
413 msi-parent = <&mpic>;
414 bus-range = <0x00 0xff>;
417 <0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000
418 0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000
419 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000
420 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000
421 0x82000000 0x1 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 0 MEM */
422 0x81000000 0x1 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 0 IO */
423 0x82000000 0x2 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 1 MEM */
424 0x81000000 0x2 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 1 IO */
425 0x82000000 0x3 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 2 MEM */
426 0x81000000 0x3 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 2 IO */
427 0x82000000 0x4 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 3 MEM */
428 0x81000000 0x4 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 3 IO */>;
431 * This port can be either x4 or x1. When
432 * configured in x4 by the bootloader, then
433 * pcie@4,0 is not available.
437 assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
438 reg = <0x0800 0 0 0 0>;
439 #address-cells = <3>;
441 #interrupt-cells = <1>;
442 ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
443 0x81000000 0 0 0x81000000 0x1 0 1 0>;
444 bus-range = <0x00 0xff>;
445 interrupt-map-mask = <0 0 0 0>;
446 interrupt-map = <0 0 0 0 &gic GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
447 marvell,pcie-port = <0>;
448 marvell,pcie-lane = <0>;
449 clocks = <&gateclk 8>;
456 assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
457 reg = <0x1000 0 0 0 0>;
458 #address-cells = <3>;
460 #interrupt-cells = <1>;
461 ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
462 0x81000000 0 0 0x81000000 0x2 0 1 0>;
463 bus-range = <0x00 0xff>;
464 interrupt-map-mask = <0 0 0 0>;
465 interrupt-map = <0 0 0 0 &gic GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
466 marvell,pcie-port = <1>;
467 marvell,pcie-lane = <0>;
468 clocks = <&gateclk 5>;
475 assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
476 reg = <0x1800 0 0 0 0>;
477 #address-cells = <3>;
479 #interrupt-cells = <1>;
480 ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
481 0x81000000 0 0 0x81000000 0x3 0 1 0>;
482 bus-range = <0x00 0xff>;
483 interrupt-map-mask = <0 0 0 0>;
484 interrupt-map = <0 0 0 0 &gic GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
485 marvell,pcie-port = <2>;
486 marvell,pcie-lane = <0>;
487 clocks = <&gateclk 6>;
492 * x1 port only available when pcie@1,0 is
493 * configured as a x1 port
497 assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
498 reg = <0x2000 0 0 0 0>;
499 #address-cells = <3>;
501 #interrupt-cells = <1>;
502 ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
503 0x81000000 0 0 0x81000000 0x4 0 1 0>;
504 bus-range = <0x00 0xff>;
505 interrupt-map-mask = <0 0 0 0>;
506 interrupt-map = <0 0 0 0 &gic GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
507 marvell,pcie-port = <3>;
508 marvell,pcie-lane = <0>;
509 clocks = <&gateclk 7>;
515 compatible = "marvell,armada-390-spi",
517 reg = <MBUS_ID(0xf0, 0x01) 0x10600 0x50>;
518 #address-cells = <1>;
521 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
522 clocks = <&coreclk 0>;
527 compatible = "marvell,armada-390-spi",
529 reg = <MBUS_ID(0xf0, 0x01) 0x10680 0x50>;
530 #address-cells = <1>;
533 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
534 clocks = <&coreclk 0>;
540 /* 1 GHz fixed main PLL */
542 compatible = "fixed-clock";
544 clock-frequency = <1000000000>;
547 /* 25 MHz reference crystal */
549 compatible = "fixed-clock";
551 clock-frequency = <25000000>;