blob: cf7ac4a90c686dc141ebe29889ea92df101ca888 [file] [log] [blame]
Chris Packham06db9d22018-12-10 20:07:51 +13001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Stefan Roeseac5efba2015-08-31 07:33:57 +02002/*
3 * Device Tree Include file for Marvell Armada 38x family of SoCs.
4 *
5 * Copyright (C) 2014 Marvell
6 *
7 * Lior Amsalem <alior@marvell.com>
8 * Gregory CLEMENT <gregory.clement@free-electrons.com>
9 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Stefan Roeseac5efba2015-08-31 07:33:57 +020010 */
11
Stefan Roeseac5efba2015-08-31 07:33:57 +020012#include <dt-bindings/interrupt-controller/arm-gic.h>
13#include <dt-bindings/interrupt-controller/irq.h>
14
15#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
16
17/ {
Pali Rohár08bb0562022-07-27 14:47:36 +020018 #address-cells = <1>;
19 #size-cells = <1>;
20
Stefan Roeseac5efba2015-08-31 07:33:57 +020021 model = "Marvell Armada 38x family SoC";
22 compatible = "marvell,armada380";
23
24 aliases {
25 gpio0 = &gpio0;
26 gpio1 = &gpio1;
27 serial0 = &uart0;
28 serial1 = &uart1;
29 };
30
31 pmu {
32 compatible = "arm,cortex-a9-pmu";
33 interrupts-extended = <&mpic 3>;
34 };
35
36 soc {
37 compatible = "marvell,armada380-mbus", "simple-bus";
38 #address-cells = <2>;
39 #size-cells = <1>;
40 controller = <&mbusc>;
41 interrupt-parent = <&gic>;
42 pcie-mem-aperture = <0xe0000000 0x8000000>;
43 pcie-io-aperture = <0xe8000000 0x100000>;
44
45 bootrom {
46 compatible = "marvell,bootrom";
47 reg = <MBUS_ID(0x01, 0x1d) 0 0x200000>;
48 };
49
Chris Packham06db9d22018-12-10 20:07:51 +130050 devbus_bootcs: devbus-bootcs {
Stefan Roeseac5efba2015-08-31 07:33:57 +020051 compatible = "marvell,mvebu-devbus";
52 reg = <MBUS_ID(0xf0, 0x01) 0x10400 0x8>;
53 ranges = <0 MBUS_ID(0x01, 0x2f) 0 0xffffffff>;
54 #address-cells = <1>;
55 #size-cells = <1>;
56 clocks = <&coreclk 0>;
57 status = "disabled";
58 };
59
Chris Packham06db9d22018-12-10 20:07:51 +130060 devbus_cs0: devbus-cs0 {
Stefan Roeseac5efba2015-08-31 07:33:57 +020061 compatible = "marvell,mvebu-devbus";
62 reg = <MBUS_ID(0xf0, 0x01) 0x10408 0x8>;
63 ranges = <0 MBUS_ID(0x01, 0x3e) 0 0xffffffff>;
64 #address-cells = <1>;
65 #size-cells = <1>;
66 clocks = <&coreclk 0>;
67 status = "disabled";
68 };
69
Chris Packham06db9d22018-12-10 20:07:51 +130070 devbus_cs1: devbus-cs1 {
Stefan Roeseac5efba2015-08-31 07:33:57 +020071 compatible = "marvell,mvebu-devbus";
72 reg = <MBUS_ID(0xf0, 0x01) 0x10410 0x8>;
73 ranges = <0 MBUS_ID(0x01, 0x3d) 0 0xffffffff>;
74 #address-cells = <1>;
75 #size-cells = <1>;
76 clocks = <&coreclk 0>;
77 status = "disabled";
78 };
79
Chris Packham06db9d22018-12-10 20:07:51 +130080 devbus_cs2: devbus-cs2 {
Stefan Roeseac5efba2015-08-31 07:33:57 +020081 compatible = "marvell,mvebu-devbus";
82 reg = <MBUS_ID(0xf0, 0x01) 0x10418 0x8>;
83 ranges = <0 MBUS_ID(0x01, 0x3b) 0 0xffffffff>;
84 #address-cells = <1>;
85 #size-cells = <1>;
86 clocks = <&coreclk 0>;
87 status = "disabled";
88 };
89
Chris Packham06db9d22018-12-10 20:07:51 +130090 devbus_cs3: devbus-cs3 {
Stefan Roeseac5efba2015-08-31 07:33:57 +020091 compatible = "marvell,mvebu-devbus";
92 reg = <MBUS_ID(0xf0, 0x01) 0x10420 0x8>;
93 ranges = <0 MBUS_ID(0x01, 0x37) 0 0xffffffff>;
94 #address-cells = <1>;
95 #size-cells = <1>;
96 clocks = <&coreclk 0>;
97 status = "disabled";
98 };
99
100 internal-regs {
101 compatible = "simple-bus";
Stefan Roeseac5efba2015-08-31 07:33:57 +0200102 #address-cells = <1>;
103 #size-cells = <1>;
104 ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
105
Pali Rohár08bb0562022-07-27 14:47:36 +0200106 sdramc: sdramc@1400 {
107 compatible = "marvell,armada-xp-sdram-controller";
108 reg = <0x1400 0x500>;
109 };
110
Stefan Roeseac5efba2015-08-31 07:33:57 +0200111 L2: cache-controller@8000 {
112 compatible = "arm,pl310-cache";
113 reg = <0x8000 0x1000>;
114 cache-unified;
115 cache-level = <2>;
Chris Packham06db9d22018-12-10 20:07:51 +1300116 arm,double-linefill-incr = <0>;
117 arm,double-linefill-wrap = <0>;
118 arm,double-linefill = <0>;
119 prefetch-data = <1>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200120 };
121
122 scu@c000 {
123 compatible = "arm,cortex-a9-scu";
124 reg = <0xc000 0x58>;
125 };
126
Chris Packham06db9d22018-12-10 20:07:51 +1300127 timer@c200 {
128 compatible = "arm,cortex-a9-global-timer";
129 reg = <0xc200 0x20>;
130 interrupts = <GIC_PPI 11 (IRQ_TYPE_EDGE_RISING | GIC_CPU_MASK_SIMPLE(2))>;
131 clocks = <&coreclk 2>;
132 };
133
Stefan Roeseac5efba2015-08-31 07:33:57 +0200134 timer@c600 {
135 compatible = "arm,cortex-a9-twd-timer";
136 reg = <0xc600 0x20>;
137 interrupts = <GIC_PPI 13 (IRQ_TYPE_EDGE_RISING | GIC_CPU_MASK_SIMPLE(2))>;
138 clocks = <&coreclk 2>;
139 };
140
141 gic: interrupt-controller@d000 {
142 compatible = "arm,cortex-a9-gic";
143 #interrupt-cells = <3>;
144 #size-cells = <0>;
145 interrupt-controller;
146 reg = <0xd000 0x1000>,
147 <0xc100 0x100>;
148 };
149
Stefan Roeseac5efba2015-08-31 07:33:57 +0200150 i2c0: i2c@11000 {
Chris Packham06db9d22018-12-10 20:07:51 +1300151 compatible = "marvell,mv78230-a0-i2c", "marvell,mv64xxx-i2c";
Stefan Roeseac5efba2015-08-31 07:33:57 +0200152 reg = <0x11000 0x20>;
153 #address-cells = <1>;
154 #size-cells = <0>;
155 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200156 clocks = <&coreclk 0>;
157 status = "disabled";
158 };
159
160 i2c1: i2c@11100 {
Chris Packham06db9d22018-12-10 20:07:51 +1300161 compatible = "marvell,mv78230-a0-i2c", "marvell,mv64xxx-i2c";
Stefan Roeseac5efba2015-08-31 07:33:57 +0200162 reg = <0x11100 0x20>;
163 #address-cells = <1>;
164 #size-cells = <0>;
165 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200166 clocks = <&coreclk 0>;
167 status = "disabled";
168 };
169
170 uart0: serial@12000 {
Pali Rohár08bb0562022-07-27 14:47:36 +0200171 compatible = "marvell,armada-38x-uart", "ns16550a";
Stefan Roeseac5efba2015-08-31 07:33:57 +0200172 reg = <0x12000 0x100>;
173 reg-shift = <2>;
174 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
175 reg-io-width = <1>;
176 clocks = <&coreclk 0>;
177 status = "disabled";
178 };
179
180 uart1: serial@12100 {
Pali Rohár08bb0562022-07-27 14:47:36 +0200181 compatible = "marvell,armada-38x-uart", "ns16550a";
Stefan Roeseac5efba2015-08-31 07:33:57 +0200182 reg = <0x12100 0x100>;
183 reg-shift = <2>;
184 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
185 reg-io-width = <1>;
186 clocks = <&coreclk 0>;
187 status = "disabled";
188 };
189
190 pinctrl: pinctrl@18000 {
191 reg = <0x18000 0x20>;
192
193 ge0_rgmii_pins: ge-rgmii-pins-0 {
194 marvell,pins = "mpp6", "mpp7", "mpp8",
195 "mpp9", "mpp10", "mpp11",
196 "mpp12", "mpp13", "mpp14",
197 "mpp15", "mpp16", "mpp17";
198 marvell,function = "ge0";
199 };
200
201 ge1_rgmii_pins: ge-rgmii-pins-1 {
202 marvell,pins = "mpp21", "mpp27", "mpp28",
203 "mpp29", "mpp30", "mpp31",
204 "mpp32", "mpp37", "mpp38",
205 "mpp39", "mpp40", "mpp41";
206 marvell,function = "ge1";
207 };
208
209 i2c0_pins: i2c-pins-0 {
210 marvell,pins = "mpp2", "mpp3";
211 marvell,function = "i2c0";
212 };
213
214 mdio_pins: mdio-pins {
215 marvell,pins = "mpp4", "mpp5";
216 marvell,function = "ge";
217 };
218
219 ref_clk0_pins: ref-clk-pins-0 {
220 marvell,pins = "mpp45";
221 marvell,function = "ref";
222 };
223
224 ref_clk1_pins: ref-clk-pins-1 {
225 marvell,pins = "mpp46";
226 marvell,function = "ref";
227 };
228
229 spi0_pins: spi-pins-0 {
230 marvell,pins = "mpp22", "mpp23", "mpp24",
231 "mpp25";
232 marvell,function = "spi0";
233 };
234
235 spi1_pins: spi-pins-1 {
236 marvell,pins = "mpp56", "mpp57", "mpp58",
237 "mpp59";
238 marvell,function = "spi1";
239 };
240
Chris Packham06db9d22018-12-10 20:07:51 +1300241 nand_pins: nand-pins {
242 marvell,pins = "mpp22", "mpp34", "mpp23",
243 "mpp33", "mpp38", "mpp28",
244 "mpp40", "mpp42", "mpp35",
245 "mpp36", "mpp25", "mpp30",
246 "mpp32";
247 marvell,function = "dev";
248 };
249
250 nand_rb: nand-rb {
251 marvell,pins = "mpp41";
252 marvell,function = "nand";
253 };
254
Stefan Roeseac5efba2015-08-31 07:33:57 +0200255 uart0_pins: uart-pins-0 {
256 marvell,pins = "mpp0", "mpp1";
257 marvell,function = "ua0";
258 };
259
260 uart1_pins: uart-pins-1 {
261 marvell,pins = "mpp19", "mpp20";
262 marvell,function = "ua1";
263 };
264
265 sdhci_pins: sdhci-pins {
266 marvell,pins = "mpp48", "mpp49", "mpp50",
267 "mpp52", "mpp53", "mpp54",
268 "mpp55", "mpp57", "mpp58",
269 "mpp59";
270 marvell,function = "sd0";
271 };
272
273 sata0_pins: sata-pins-0 {
274 marvell,pins = "mpp20";
275 marvell,function = "sata0";
276 };
277
278 sata1_pins: sata-pins-1 {
279 marvell,pins = "mpp19";
280 marvell,function = "sata1";
281 };
282
283 sata2_pins: sata-pins-2 {
284 marvell,pins = "mpp47";
285 marvell,function = "sata2";
286 };
287
288 sata3_pins: sata-pins-3 {
289 marvell,pins = "mpp44";
290 marvell,function = "sata3";
291 };
292 };
293
294 gpio0: gpio@18100 {
Chris Packham06db9d22018-12-10 20:07:51 +1300295 compatible = "marvell,armada-370-gpio",
296 "marvell,orion-gpio";
297 reg = <0x18100 0x40>, <0x181c0 0x08>;
298 reg-names = "gpio", "pwm";
Stefan Roeseac5efba2015-08-31 07:33:57 +0200299 ngpios = <32>;
300 gpio-controller;
Pali Rohár556cf392022-07-25 13:56:10 +0200301 gpio-ranges = <&pinctrl 0 0 32>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200302 #gpio-cells = <2>;
Chris Packham06db9d22018-12-10 20:07:51 +1300303 #pwm-cells = <2>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200304 interrupt-controller;
305 #interrupt-cells = <2>;
306 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
307 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
308 <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
309 <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
Chris Packham06db9d22018-12-10 20:07:51 +1300310 clocks = <&coreclk 0>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200311 };
312
313 gpio1: gpio@18140 {
Chris Packham06db9d22018-12-10 20:07:51 +1300314 compatible = "marvell,armada-370-gpio",
315 "marvell,orion-gpio";
316 reg = <0x18140 0x40>, <0x181c8 0x08>;
317 reg-names = "gpio", "pwm";
Stefan Roeseac5efba2015-08-31 07:33:57 +0200318 ngpios = <28>;
319 gpio-controller;
Pali Rohár556cf392022-07-25 13:56:10 +0200320 gpio-ranges = <&pinctrl 0 32 28>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200321 #gpio-cells = <2>;
Chris Packham06db9d22018-12-10 20:07:51 +1300322 #pwm-cells = <2>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200323 interrupt-controller;
324 #interrupt-cells = <2>;
325 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
326 <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
327 <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
328 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
Chris Packham06db9d22018-12-10 20:07:51 +1300329 clocks = <&coreclk 0>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200330 };
331
Chris Packham06db9d22018-12-10 20:07:51 +1300332 systemc: system-controller@18200 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200333 compatible = "marvell,armada-380-system-controller",
334 "marvell,armada-370-xp-system-controller";
335 reg = <0x18200 0x100>;
Pali Rohár4669df32021-12-21 12:20:18 +0100336 #reset-cells = <2>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200337 };
338
339 gateclk: clock-gating-control@18220 {
340 compatible = "marvell,armada-380-gating-clock";
341 reg = <0x18220 0x4>;
342 clocks = <&coreclk 0>;
343 #clock-cells = <1>;
344 };
345
Pali Rohár08bb0562022-07-27 14:47:36 +0200346 comphy: phy@18300 {
347 compatible = "marvell,armada-380-comphy";
348 reg-names = "comphy", "conf";
349 reg = <0x18300 0x100>, <0x18460 4>;
350 #address-cells = <1>;
351 #size-cells = <0>;
352
353 comphy0: phy@0 {
354 reg = <0>;
355 #phy-cells = <1>;
356 };
357
358 comphy1: phy@1 {
359 reg = <1>;
360 #phy-cells = <1>;
361 };
362
363 comphy2: phy@2 {
364 reg = <2>;
365 #phy-cells = <1>;
366 };
367
368 comphy3: phy@3 {
369 reg = <3>;
370 #phy-cells = <1>;
371 };
372
373 comphy4: phy@4 {
374 reg = <4>;
375 #phy-cells = <1>;
376 };
377
378 comphy5: phy@5 {
379 reg = <5>;
380 #phy-cells = <1>;
381 };
382 };
383
Stefan Roeseac5efba2015-08-31 07:33:57 +0200384 coreclk: mvebu-sar@18600 {
385 compatible = "marvell,armada-380-core-clock";
386 reg = <0x18600 0x04>;
387 #clock-cells = <1>;
388 };
389
390 mbusc: mbus-controller@20000 {
391 compatible = "marvell,mbus-controller";
Chris Packham06db9d22018-12-10 20:07:51 +1300392 reg = <0x20000 0x100>, <0x20180 0x20>,
393 <0x20250 0x8>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200394 };
395
396 mpic: interrupt-controller@20a00 {
397 compatible = "marvell,mpic";
398 reg = <0x20a00 0x2d0>, <0x21070 0x58>;
399 #interrupt-cells = <1>;
400 #size-cells = <1>;
401 interrupt-controller;
402 msi-controller;
403 interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>;
404 };
405
Chris Packham06db9d22018-12-10 20:07:51 +1300406 timer: timer@20300 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200407 compatible = "marvell,armada-380-timer",
408 "marvell,armada-xp-timer";
409 reg = <0x20300 0x30>, <0x21040 0x30>;
410 interrupts-extended = <&gic GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
411 <&gic GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
412 <&gic GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
413 <&gic GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
414 <&mpic 5>,
415 <&mpic 6>;
416 clocks = <&coreclk 2>, <&refclk>;
417 clock-names = "nbclk", "fixed";
418 };
419
Chris Packham06db9d22018-12-10 20:07:51 +1300420 watchdog: watchdog@20300 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200421 compatible = "marvell,armada-380-wdt";
422 reg = <0x20300 0x34>, <0x20704 0x4>, <0x18260 0x4>;
423 clocks = <&coreclk 2>, <&refclk>;
424 clock-names = "nbclk", "fixed";
Pali Rohár08bb0562022-07-27 14:47:36 +0200425 interrupts-extended = <&gic GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>,
426 <&gic GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200427 };
428
Chris Packham06db9d22018-12-10 20:07:51 +1300429 cpurst: cpurst@20800 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200430 compatible = "marvell,armada-370-cpu-reset";
431 reg = <0x20800 0x10>;
432 };
433
434 mpcore-soc-ctrl@20d20 {
435 compatible = "marvell,armada-380-mpcore-soc-ctrl";
436 reg = <0x20d20 0x6c>;
437 };
438
Chris Packham06db9d22018-12-10 20:07:51 +1300439 coherencyfab: coherency-fabric@21010 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200440 compatible = "marvell,armada-380-coherency-fabric";
441 reg = <0x21010 0x1c>;
442 };
443
Chris Packham06db9d22018-12-10 20:07:51 +1300444 pmsu: pmsu@22000 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200445 compatible = "marvell,armada-380-pmsu";
446 reg = <0x22000 0x1000>;
447 };
448
Chris Packham06db9d22018-12-10 20:07:51 +1300449 /*
450 * As a special exception to the "order by
451 * register address" rule, the eth0 node is
452 * placed here to ensure that it gets
453 * registered as the first interface, since
454 * the network subsystem doesn't allow naming
455 * interfaces using DT aliases. Without this,
456 * the ordering of interfaces is different
457 * from the one used in U-Boot and the
458 * labeling of interfaces on the boards, which
459 * is very confusing for users.
460 */
461 eth0: ethernet@70000 {
462 compatible = "marvell,armada-370-neta";
463 reg = <0x70000 0x4000>;
464 interrupts-extended = <&mpic 8>;
465 clocks = <&gateclk 4>;
466 tx-csum-limit = <9800>;
467 status = "disabled";
468 };
469
Stefan Roeseac5efba2015-08-31 07:33:57 +0200470 eth1: ethernet@30000 {
471 compatible = "marvell,armada-370-neta";
472 reg = <0x30000 0x4000>;
473 interrupts-extended = <&mpic 10>;
474 clocks = <&gateclk 3>;
475 status = "disabled";
476 };
477
478 eth2: ethernet@34000 {
479 compatible = "marvell,armada-370-neta";
480 reg = <0x34000 0x4000>;
481 interrupts-extended = <&mpic 12>;
482 clocks = <&gateclk 2>;
483 status = "disabled";
484 };
485
Chris Packham06db9d22018-12-10 20:07:51 +1300486 usb0: usb@58000 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200487 compatible = "marvell,orion-ehci";
488 reg = <0x58000 0x500>;
489 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
490 clocks = <&gateclk 18>;
491 status = "disabled";
492 };
493
Chris Packham06db9d22018-12-10 20:07:51 +1300494 xor0: xor@60800 {
495 compatible = "marvell,armada-380-xor", "marvell,orion-xor";
Stefan Roeseac5efba2015-08-31 07:33:57 +0200496 reg = <0x60800 0x100
497 0x60a00 0x100>;
498 clocks = <&gateclk 22>;
499 status = "okay";
500
501 xor00 {
502 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
503 dmacap,memcpy;
504 dmacap,xor;
505 };
506 xor01 {
507 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
508 dmacap,memcpy;
509 dmacap,xor;
510 dmacap,memset;
511 };
512 };
513
Chris Packham06db9d22018-12-10 20:07:51 +1300514 xor1: xor@60900 {
515 compatible = "marvell,armada-380-xor", "marvell,orion-xor";
Stefan Roeseac5efba2015-08-31 07:33:57 +0200516 reg = <0x60900 0x100
517 0x60b00 0x100>;
518 clocks = <&gateclk 28>;
519 status = "okay";
520
521 xor10 {
522 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
523 dmacap,memcpy;
524 dmacap,xor;
525 };
526 xor11 {
527 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
528 dmacap,memcpy;
529 dmacap,xor;
530 dmacap,memset;
531 };
532 };
533
Stefan Roeseac5efba2015-08-31 07:33:57 +0200534 mdio: mdio@72004 {
535 #address-cells = <1>;
536 #size-cells = <0>;
537 compatible = "marvell,orion-mdio";
538 reg = <0x72004 0x4>;
539 clocks = <&gateclk 4>;
540 };
541
Chris Packham06db9d22018-12-10 20:07:51 +1300542 cesa: crypto@90000 {
543 compatible = "marvell,armada-38x-crypto";
544 reg = <0x90000 0x10000>;
545 reg-names = "regs";
546 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
547 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
548 clocks = <&gateclk 23>, <&gateclk 21>,
549 <&gateclk 14>, <&gateclk 16>;
550 clock-names = "cesa0", "cesa1",
551 "cesaz0", "cesaz1";
552 marvell,crypto-srams = <&crypto_sram0>,
553 <&crypto_sram1>;
554 marvell,crypto-sram-size = <0x800>;
555 };
556
557 rtc: rtc@a3800 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200558 compatible = "marvell,armada-380-rtc";
559 reg = <0xa3800 0x20>, <0x184a0 0x0c>;
560 reg-names = "rtc", "rtc-soc";
561 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
562 };
563
Chris Packham06db9d22018-12-10 20:07:51 +1300564 ahci0: sata@a8000 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200565 compatible = "marvell,armada-380-ahci";
566 reg = <0xa8000 0x2000>;
567 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
568 clocks = <&gateclk 15>;
569 status = "disabled";
570 };
571
Chris Packham06db9d22018-12-10 20:07:51 +1300572 bm: bm@c8000 {
573 compatible = "marvell,armada-380-neta-bm";
574 reg = <0xc8000 0xac>;
575 clocks = <&gateclk 13>;
576 internal-mem = <&bm_bppi>;
577 status = "disabled";
578 };
579
580 ahci1: sata@e0000 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200581 compatible = "marvell,armada-380-ahci";
582 reg = <0xe0000 0x2000>;
583 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
584 clocks = <&gateclk 30>;
585 status = "disabled";
586 };
587
588 coredivclk: clock@e4250 {
589 compatible = "marvell,armada-380-corediv-clock";
590 reg = <0xe4250 0xc>;
591 #clock-cells = <1>;
592 clocks = <&mainpll>;
593 clock-output-names = "nand";
594 };
595
Chris Packham06db9d22018-12-10 20:07:51 +1300596 thermal: thermal@e8078 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200597 compatible = "marvell,armada380-thermal";
Chris Packham06db9d22018-12-10 20:07:51 +1300598 reg = <0xe4078 0x4>, <0xe4070 0x8>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200599 status = "okay";
600 };
601
Chris Packham06db9d22018-12-10 20:07:51 +1300602 nand_controller: nand-controller@d0000 {
Pali Rohárc96bc1d2022-07-27 14:47:35 +0200603 compatible = "marvell,armada370-nand-controller";
Stefan Roeseac5efba2015-08-31 07:33:57 +0200604 reg = <0xd0000 0x54>;
605 #address-cells = <1>;
Chris Packham06db9d22018-12-10 20:07:51 +1300606 #size-cells = <0>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200607 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
608 clocks = <&coredivclk 0>;
609 status = "disabled";
610 };
611
Chris Packham06db9d22018-12-10 20:07:51 +1300612 sdhci: sdhci@d8000 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200613 compatible = "marvell,armada-380-sdhci";
614 reg-names = "sdhci", "mbus", "conf-sdio3";
615 reg = <0xd8000 0x1000>,
616 <0xdc000 0x100>,
617 <0x18454 0x4>;
618 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
619 clocks = <&gateclk 17>;
620 mrvl,clk-delay-cycles = <0x1F>;
621 status = "disabled";
622 };
623
Chris Packham06db9d22018-12-10 20:07:51 +1300624 usb3_0: usb3@f0000 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200625 compatible = "marvell,armada-380-xhci";
626 reg = <0xf0000 0x4000>,<0xf4000 0x4000>;
627 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
628 clocks = <&gateclk 9>;
629 status = "disabled";
630 };
631
Chris Packham06db9d22018-12-10 20:07:51 +1300632 usb3_1: usb3@f8000 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200633 compatible = "marvell,armada-380-xhci";
634 reg = <0xf8000 0x4000>,<0xfc000 0x4000>;
635 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
636 clocks = <&gateclk 10>;
637 status = "disabled";
638 };
639 };
Chris Packham06db9d22018-12-10 20:07:51 +1300640
641 crypto_sram0: sa-sram0 {
642 compatible = "mmio-sram";
643 reg = <MBUS_ID(0x09, 0x19) 0 0x800>;
644 clocks = <&gateclk 23>;
645 #address-cells = <1>;
646 #size-cells = <1>;
647 ranges = <0 MBUS_ID(0x09, 0x19) 0 0x800>;
648 };
649
650 crypto_sram1: sa-sram1 {
651 compatible = "mmio-sram";
652 reg = <MBUS_ID(0x09, 0x15) 0 0x800>;
653 clocks = <&gateclk 21>;
654 #address-cells = <1>;
655 #size-cells = <1>;
656 ranges = <0 MBUS_ID(0x09, 0x15) 0 0x800>;
657 };
658
659 bm_bppi: bm-bppi {
660 compatible = "mmio-sram";
661 reg = <MBUS_ID(0x0c, 0x04) 0 0x100000>;
662 ranges = <0 MBUS_ID(0x0c, 0x04) 0 0x100000>;
663 #address-cells = <1>;
664 #size-cells = <1>;
665 clocks = <&gateclk 13>;
666 no-memory-wc;
667 status = "disabled";
668 };
669
670 spi0: spi@10600 {
671 compatible = "marvell,armada-380-spi",
672 "marvell,orion-spi";
673 reg = <MBUS_ID(0xf0, 0x01) 0x10600 0x50>;
674 #address-cells = <1>;
675 #size-cells = <0>;
676 cell-index = <0>;
677 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
678 clocks = <&coreclk 0>;
679 status = "disabled";
680 };
681
682 spi1: spi@10680 {
683 compatible = "marvell,armada-380-spi",
684 "marvell,orion-spi";
685 reg = <MBUS_ID(0xf0, 0x01) 0x10680 0x50>;
686 #address-cells = <1>;
687 #size-cells = <0>;
688 cell-index = <1>;
689 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
690 clocks = <&coreclk 0>;
691 status = "disabled";
692 };
Stefan Roeseac5efba2015-08-31 07:33:57 +0200693 };
694
695 clocks {
Chris Packham06db9d22018-12-10 20:07:51 +1300696 /* 1 GHz fixed main PLL */
Stefan Roeseac5efba2015-08-31 07:33:57 +0200697 mainpll: mainpll {
698 compatible = "fixed-clock";
699 #clock-cells = <0>;
700 clock-frequency = <1000000000>;
701 };
702
703 /* 25 MHz reference crystal */
704 refclk: oscillator {
705 compatible = "fixed-clock";
706 #clock-cells = <0>;
707 clock-frequency = <25000000>;
708 };
709 };
710};