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 "skeleton.dtsi"
11 #include <dt-bindings/interrupt-controller/arm-gic.h>
12 #include <dt-bindings/interrupt-controller/irq.h>
14 #define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
17 model = "Marvell Armada 39x family SoC";
18 compatible = "marvell,armada390";
32 enable-method = "marvell,armada-390-smp";
36 compatible = "arm,cortex-a9";
41 compatible = "arm,cortex-a9";
47 compatible = "arm,cortex-a9-pmu";
48 interrupts-extended = <&mpic 3>;
52 compatible = "marvell,armada390-mbus", "marvell,armadaxp-mbus",
56 controller = <&mbusc>;
57 interrupt-parent = <&gic>;
58 pcie-mem-aperture = <0xe0000000 0x8000000>;
59 pcie-io-aperture = <0xe8000000 0x100000>;
62 compatible = "marvell,bootrom";
63 reg = <MBUS_ID(0x01, 0x1d) 0 0x200000>;
67 compatible = "simple-bus";
70 ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
72 L2: cache-controller@8000 {
73 compatible = "arm,pl310-cache";
74 reg = <0x8000 0x1000>;
77 arm,double-linefill-incr = <0>;
78 arm,double-linefill-wrap = <0>;
79 arm,double-linefill = <0>;
84 compatible = "arm,cortex-a9-scu";
89 compatible = "arm,cortex-a9-twd-timer";
91 interrupts = <GIC_PPI 13 (IRQ_TYPE_EDGE_RISING | GIC_CPU_MASK_SIMPLE(2))>;
92 clocks = <&coreclk 2>;
95 gic: interrupt-controller@d000 {
96 compatible = "arm,cortex-a9-gic";
97 #interrupt-cells = <3>;
100 reg = <0xd000 0x1000>,
105 compatible = "marvell,mv64xxx-i2c";
106 reg = <0x11000 0x20>;
107 #address-cells = <1>;
109 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>;
122 clocks = <&coreclk 0>;
127 compatible = "marvell,mv64xxx-i2c";
128 reg = <0x11200 0x20>;
129 #address-cells = <1>;
131 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
133 clocks = <&coreclk 0>;
138 compatible = "marvell,mv64xxx-i2c";
139 reg = <0x11300 0x20>;
140 #address-cells = <1>;
142 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
144 clocks = <&coreclk 0>;
148 uart0: serial@12000 {
149 compatible = "snps,dw-apb-uart";
150 reg = <0x12000 0x100>;
152 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
154 clocks = <&coreclk 0>;
158 uart1: serial@12100 {
159 compatible = "snps,dw-apb-uart";
160 reg = <0x12100 0x100>;
162 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
164 clocks = <&coreclk 0>;
168 uart2: serial@12200 {
169 compatible = "snps,dw-apb-uart";
170 reg = <0x12200 0x100>;
172 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
174 clocks = <&coreclk 0>;
178 uart3: serial@12300 {
179 compatible = "snps,dw-apb-uart";
180 reg = <0x12300 0x100>;
182 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
184 clocks = <&coreclk 0>;
189 i2c0_pins: i2c0-pins {
190 marvell,pins = "mpp2", "mpp3";
191 marvell,function = "i2c0";
194 uart0_pins: uart0-pins {
195 marvell,pins = "mpp0", "mpp1";
196 marvell,function = "ua0";
199 uart1_pins: uart1-pins {
200 marvell,pins = "mpp19", "mpp20";
201 marvell,function = "ua1";
204 spi1_pins: spi1-pins {
205 marvell,pins = "mpp56", "mpp57", "mpp58", "mpp59";
206 marvell,function = "spi1";
209 nand_pins: nand-pins {
210 marvell,pins = "mpp22", "mpp34", "mpp23", "mpp33",
211 "mpp38", "mpp28", "mpp40", "mpp42",
212 "mpp35", "mpp36", "mpp25", "mpp30",
214 marvell,function = "dev";
219 compatible = "marvell,orion-gpio";
220 reg = <0x18100 0x40>;
224 interrupt-controller;
225 #interrupt-cells = <2>;
226 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
227 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
228 <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
229 <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
233 compatible = "marvell,orion-gpio";
234 reg = <0x18140 0x40>;
238 interrupt-controller;
239 #interrupt-cells = <2>;
240 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
241 <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
242 <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
243 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
246 system-controller@18200 {
247 compatible = "marvell,armada-390-system-controller",
248 "marvell,armada-370-xp-system-controller";
249 reg = <0x18200 0x100>;
252 gateclk: clock-gating-control@18220 {
253 compatible = "marvell,armada-390-gating-clock";
255 clocks = <&coreclk 0>;
259 coreclk: mvebu-sar@18600 {
260 compatible = "marvell,armada-390-core-clock";
261 reg = <0x18600 0x04>;
265 mbusc: mbus-controller@20000 {
266 compatible = "marvell,mbus-controller";
267 reg = <0x20000 0x100>, <0x20180 0x20>, <0x20250 0x8>;
270 mpic: interrupt-controller@20a00 {
271 compatible = "marvell,mpic";
272 reg = <0x20a00 0x2d0>, <0x21070 0x58>;
273 #interrupt-cells = <1>;
275 interrupt-controller;
277 interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>;
281 compatible = "marvell,armada-380-timer",
282 "marvell,armada-xp-timer";
283 reg = <0x20300 0x30>, <0x21040 0x30>;
284 interrupts-extended = <&gic GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
285 <&gic GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
286 <&gic GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
287 <&gic GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
290 clocks = <&coreclk 2>, <&coreclk 5>;
291 clock-names = "nbclk", "fixed";
295 compatible = "marvell,armada-380-wdt";
296 reg = <0x20300 0x34>, <0x20704 0x4>,
298 clocks = <&coreclk 2>, <&refclk>;
299 clock-names = "nbclk", "fixed";
303 compatible = "marvell,armada-370-cpu-reset";
304 reg = <0x20800 0x10>;
307 mpcore-soc-ctrl@20d20 {
308 compatible = "marvell,armada-380-mpcore-soc-ctrl";
309 reg = <0x20d20 0x6c>;
312 coherency-fabric@21010 {
313 compatible = "marvell,armada-380-coherency-fabric";
314 reg = <0x21010 0x1c>;
318 compatible = "marvell,armada-390-pmsu",
319 "marvell,armada-380-pmsu";
320 reg = <0x22000 0x1000>;
324 compatible = "marvell,armada-380-xor", "marvell,orion-xor";
327 clocks = <&gateclk 22>;
331 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
336 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
344 compatible = "marvell,armada-380-xor", "marvell,orion-xor";
347 clocks = <&gateclk 28>;
351 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
356 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
364 compatible = "marvell,armada-380-rtc";
365 reg = <0xa3800 0x20>, <0x184a0 0x0c>;
366 reg-names = "rtc", "rtc-soc";
367 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
370 nand_controller: nand-controller@d0000 {
371 compatible = "marvell,armada370-nand-controller";
372 reg = <0xd0000 0x54>;
373 #address-cells = <1>;
375 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
376 clocks = <&coredivclk 0>;
381 compatible = "marvell,armada-380-sdhci";
382 reg-names = "sdhci", "mbus", "conf-sdio3";
383 reg = <0xd8000 0x1000>,
386 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
387 clocks = <&gateclk 17>;
388 mrvl,clk-delay-cycles = <0x1F>;
392 coredivclk: clock@e4250 {
393 compatible = "marvell,armada-390-corediv-clock",
394 "marvell,armada-380-corediv-clock";
398 clock-output-names = "nand";
402 compatible = "marvell,armada380-thermal";
403 reg = <0xe4078 0x4>, <0xe4074 0x4>;
409 compatible = "marvell,armada-370-pcie";
413 #address-cells = <3>;
416 msi-parent = <&mpic>;
417 bus-range = <0x00 0xff>;
420 <0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000
421 0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000
422 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000
423 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000
424 0x82000000 0x1 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 0 MEM */
425 0x81000000 0x1 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 0 IO */
426 0x82000000 0x2 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 1 MEM */
427 0x81000000 0x2 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 1 IO */
428 0x82000000 0x3 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 2 MEM */
429 0x81000000 0x3 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 2 IO */
430 0x82000000 0x4 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 3 MEM */
431 0x81000000 0x4 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 3 IO */>;
434 * This port can be either x4 or x1. When
435 * configured in x4 by the bootloader, then
436 * pcie@4,0 is not available.
440 assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
441 reg = <0x0800 0 0 0 0>;
442 #address-cells = <3>;
444 #interrupt-cells = <1>;
445 ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
446 0x81000000 0 0 0x81000000 0x1 0 1 0>;
447 bus-range = <0x00 0xff>;
448 interrupt-map-mask = <0 0 0 0>;
449 interrupt-map = <0 0 0 0 &gic GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
450 marvell,pcie-port = <0>;
451 marvell,pcie-lane = <0>;
452 clocks = <&gateclk 8>;
459 assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
460 reg = <0x1000 0 0 0 0>;
461 #address-cells = <3>;
463 #interrupt-cells = <1>;
464 ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
465 0x81000000 0 0 0x81000000 0x2 0 1 0>;
466 bus-range = <0x00 0xff>;
467 interrupt-map-mask = <0 0 0 0>;
468 interrupt-map = <0 0 0 0 &gic GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
469 marvell,pcie-port = <1>;
470 marvell,pcie-lane = <0>;
471 clocks = <&gateclk 5>;
478 assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
479 reg = <0x1800 0 0 0 0>;
480 #address-cells = <3>;
482 #interrupt-cells = <1>;
483 ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
484 0x81000000 0 0 0x81000000 0x3 0 1 0>;
485 bus-range = <0x00 0xff>;
486 interrupt-map-mask = <0 0 0 0>;
487 interrupt-map = <0 0 0 0 &gic GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
488 marvell,pcie-port = <2>;
489 marvell,pcie-lane = <0>;
490 clocks = <&gateclk 6>;
495 * x1 port only available when pcie@1,0 is
496 * configured as a x1 port
500 assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
501 reg = <0x2000 0 0 0 0>;
502 #address-cells = <3>;
504 #interrupt-cells = <1>;
505 ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
506 0x81000000 0 0 0x81000000 0x4 0 1 0>;
507 bus-range = <0x00 0xff>;
508 interrupt-map-mask = <0 0 0 0>;
509 interrupt-map = <0 0 0 0 &gic GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
510 marvell,pcie-port = <3>;
511 marvell,pcie-lane = <0>;
512 clocks = <&gateclk 7>;
518 compatible = "marvell,armada-390-spi",
520 reg = <MBUS_ID(0xf0, 0x01) 0x10600 0x50>;
521 #address-cells = <1>;
524 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
525 clocks = <&coreclk 0>;
530 compatible = "marvell,armada-390-spi",
532 reg = <MBUS_ID(0xf0, 0x01) 0x10680 0x50>;
533 #address-cells = <1>;
536 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
537 clocks = <&coreclk 0>;
543 /* 1 GHz fixed main PLL */
545 compatible = "fixed-clock";
547 clock-frequency = <1000000000>;
550 /* 25 MHz reference crystal */
552 compatible = "fixed-clock";
554 clock-frequency = <25000000>;