blob: 2845b010be7d508e85c84e6da0913301af6c762f [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
12#include "skeleton.dtsi"
13#include <dt-bindings/interrupt-controller/arm-gic.h>
14#include <dt-bindings/interrupt-controller/irq.h>
15
16#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
17
18/ {
19 model = "Marvell Armada 38x family SoC";
20 compatible = "marvell,armada380";
21
22 aliases {
23 gpio0 = &gpio0;
24 gpio1 = &gpio1;
25 serial0 = &uart0;
26 serial1 = &uart1;
27 };
28
29 pmu {
30 compatible = "arm,cortex-a9-pmu";
31 interrupts-extended = <&mpic 3>;
32 };
33
34 soc {
35 compatible = "marvell,armada380-mbus", "simple-bus";
Stefan Roese49e7d772015-11-20 13:51:57 +010036 u-boot,dm-pre-reloc;
Stefan Roeseac5efba2015-08-31 07:33:57 +020037 #address-cells = <2>;
38 #size-cells = <1>;
39 controller = <&mbusc>;
40 interrupt-parent = <&gic>;
41 pcie-mem-aperture = <0xe0000000 0x8000000>;
42 pcie-io-aperture = <0xe8000000 0x100000>;
43
44 bootrom {
45 compatible = "marvell,bootrom";
46 reg = <MBUS_ID(0x01, 0x1d) 0 0x200000>;
47 };
48
Chris Packham06db9d22018-12-10 20:07:51 +130049 devbus_bootcs: devbus-bootcs {
Stefan Roeseac5efba2015-08-31 07:33:57 +020050 compatible = "marvell,mvebu-devbus";
51 reg = <MBUS_ID(0xf0, 0x01) 0x10400 0x8>;
52 ranges = <0 MBUS_ID(0x01, 0x2f) 0 0xffffffff>;
53 #address-cells = <1>;
54 #size-cells = <1>;
55 clocks = <&coreclk 0>;
56 status = "disabled";
57 };
58
Chris Packham06db9d22018-12-10 20:07:51 +130059 devbus_cs0: devbus-cs0 {
Stefan Roeseac5efba2015-08-31 07:33:57 +020060 compatible = "marvell,mvebu-devbus";
61 reg = <MBUS_ID(0xf0, 0x01) 0x10408 0x8>;
62 ranges = <0 MBUS_ID(0x01, 0x3e) 0 0xffffffff>;
63 #address-cells = <1>;
64 #size-cells = <1>;
65 clocks = <&coreclk 0>;
66 status = "disabled";
67 };
68
Chris Packham06db9d22018-12-10 20:07:51 +130069 devbus_cs1: devbus-cs1 {
Stefan Roeseac5efba2015-08-31 07:33:57 +020070 compatible = "marvell,mvebu-devbus";
71 reg = <MBUS_ID(0xf0, 0x01) 0x10410 0x8>;
72 ranges = <0 MBUS_ID(0x01, 0x3d) 0 0xffffffff>;
73 #address-cells = <1>;
74 #size-cells = <1>;
75 clocks = <&coreclk 0>;
76 status = "disabled";
77 };
78
Chris Packham06db9d22018-12-10 20:07:51 +130079 devbus_cs2: devbus-cs2 {
Stefan Roeseac5efba2015-08-31 07:33:57 +020080 compatible = "marvell,mvebu-devbus";
81 reg = <MBUS_ID(0xf0, 0x01) 0x10418 0x8>;
82 ranges = <0 MBUS_ID(0x01, 0x3b) 0 0xffffffff>;
83 #address-cells = <1>;
84 #size-cells = <1>;
85 clocks = <&coreclk 0>;
86 status = "disabled";
87 };
88
Chris Packham06db9d22018-12-10 20:07:51 +130089 devbus_cs3: devbus-cs3 {
Stefan Roeseac5efba2015-08-31 07:33:57 +020090 compatible = "marvell,mvebu-devbus";
91 reg = <MBUS_ID(0xf0, 0x01) 0x10420 0x8>;
92 ranges = <0 MBUS_ID(0x01, 0x37) 0 0xffffffff>;
93 #address-cells = <1>;
94 #size-cells = <1>;
95 clocks = <&coreclk 0>;
96 status = "disabled";
97 };
98
99 internal-regs {
100 compatible = "simple-bus";
Stefan Roese49e7d772015-11-20 13:51:57 +0100101 u-boot,dm-pre-reloc;
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
106 L2: cache-controller@8000 {
107 compatible = "arm,pl310-cache";
108 reg = <0x8000 0x1000>;
109 cache-unified;
110 cache-level = <2>;
Chris Packham06db9d22018-12-10 20:07:51 +1300111 arm,double-linefill-incr = <0>;
112 arm,double-linefill-wrap = <0>;
113 arm,double-linefill = <0>;
114 prefetch-data = <1>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200115 };
116
117 scu@c000 {
118 compatible = "arm,cortex-a9-scu";
119 reg = <0xc000 0x58>;
120 };
121
Chris Packham06db9d22018-12-10 20:07:51 +1300122 timer@c200 {
123 compatible = "arm,cortex-a9-global-timer";
124 reg = <0xc200 0x20>;
125 interrupts = <GIC_PPI 11 (IRQ_TYPE_EDGE_RISING | GIC_CPU_MASK_SIMPLE(2))>;
126 clocks = <&coreclk 2>;
127 };
128
Stefan Roeseac5efba2015-08-31 07:33:57 +0200129 timer@c600 {
130 compatible = "arm,cortex-a9-twd-timer";
131 reg = <0xc600 0x20>;
132 interrupts = <GIC_PPI 13 (IRQ_TYPE_EDGE_RISING | GIC_CPU_MASK_SIMPLE(2))>;
133 clocks = <&coreclk 2>;
134 };
135
136 gic: interrupt-controller@d000 {
137 compatible = "arm,cortex-a9-gic";
138 #interrupt-cells = <3>;
139 #size-cells = <0>;
140 interrupt-controller;
141 reg = <0xd000 0x1000>,
142 <0xc100 0x100>;
143 };
144
Stefan Roeseac5efba2015-08-31 07:33:57 +0200145 i2c0: i2c@11000 {
Chris Packham06db9d22018-12-10 20:07:51 +1300146 compatible = "marvell,mv78230-a0-i2c", "marvell,mv64xxx-i2c";
Stefan Roeseac5efba2015-08-31 07:33:57 +0200147 reg = <0x11000 0x20>;
148 #address-cells = <1>;
149 #size-cells = <0>;
150 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
151 timeout-ms = <1000>;
152 clocks = <&coreclk 0>;
153 status = "disabled";
154 };
155
156 i2c1: i2c@11100 {
Chris Packham06db9d22018-12-10 20:07:51 +1300157 compatible = "marvell,mv78230-a0-i2c", "marvell,mv64xxx-i2c";
Stefan Roeseac5efba2015-08-31 07:33:57 +0200158 reg = <0x11100 0x20>;
159 #address-cells = <1>;
160 #size-cells = <0>;
161 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
162 timeout-ms = <1000>;
163 clocks = <&coreclk 0>;
164 status = "disabled";
165 };
166
167 uart0: serial@12000 {
168 compatible = "snps,dw-apb-uart";
169 reg = <0x12000 0x100>;
170 reg-shift = <2>;
171 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
172 reg-io-width = <1>;
173 clocks = <&coreclk 0>;
174 status = "disabled";
175 };
176
177 uart1: serial@12100 {
178 compatible = "snps,dw-apb-uart";
179 reg = <0x12100 0x100>;
180 reg-shift = <2>;
181 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
182 reg-io-width = <1>;
183 clocks = <&coreclk 0>;
184 status = "disabled";
185 };
186
187 pinctrl: pinctrl@18000 {
188 reg = <0x18000 0x20>;
189
190 ge0_rgmii_pins: ge-rgmii-pins-0 {
191 marvell,pins = "mpp6", "mpp7", "mpp8",
192 "mpp9", "mpp10", "mpp11",
193 "mpp12", "mpp13", "mpp14",
194 "mpp15", "mpp16", "mpp17";
195 marvell,function = "ge0";
196 };
197
198 ge1_rgmii_pins: ge-rgmii-pins-1 {
199 marvell,pins = "mpp21", "mpp27", "mpp28",
200 "mpp29", "mpp30", "mpp31",
201 "mpp32", "mpp37", "mpp38",
202 "mpp39", "mpp40", "mpp41";
203 marvell,function = "ge1";
204 };
205
206 i2c0_pins: i2c-pins-0 {
207 marvell,pins = "mpp2", "mpp3";
208 marvell,function = "i2c0";
209 };
210
211 mdio_pins: mdio-pins {
212 marvell,pins = "mpp4", "mpp5";
213 marvell,function = "ge";
214 };
215
216 ref_clk0_pins: ref-clk-pins-0 {
217 marvell,pins = "mpp45";
218 marvell,function = "ref";
219 };
220
221 ref_clk1_pins: ref-clk-pins-1 {
222 marvell,pins = "mpp46";
223 marvell,function = "ref";
224 };
225
226 spi0_pins: spi-pins-0 {
227 marvell,pins = "mpp22", "mpp23", "mpp24",
228 "mpp25";
229 marvell,function = "spi0";
230 };
231
232 spi1_pins: spi-pins-1 {
233 marvell,pins = "mpp56", "mpp57", "mpp58",
234 "mpp59";
235 marvell,function = "spi1";
236 };
237
Chris Packham06db9d22018-12-10 20:07:51 +1300238 nand_pins: nand-pins {
239 marvell,pins = "mpp22", "mpp34", "mpp23",
240 "mpp33", "mpp38", "mpp28",
241 "mpp40", "mpp42", "mpp35",
242 "mpp36", "mpp25", "mpp30",
243 "mpp32";
244 marvell,function = "dev";
245 };
246
247 nand_rb: nand-rb {
248 marvell,pins = "mpp41";
249 marvell,function = "nand";
250 };
251
Stefan Roeseac5efba2015-08-31 07:33:57 +0200252 uart0_pins: uart-pins-0 {
253 marvell,pins = "mpp0", "mpp1";
254 marvell,function = "ua0";
255 };
256
257 uart1_pins: uart-pins-1 {
258 marvell,pins = "mpp19", "mpp20";
259 marvell,function = "ua1";
260 };
261
262 sdhci_pins: sdhci-pins {
263 marvell,pins = "mpp48", "mpp49", "mpp50",
264 "mpp52", "mpp53", "mpp54",
265 "mpp55", "mpp57", "mpp58",
266 "mpp59";
267 marvell,function = "sd0";
268 };
269
270 sata0_pins: sata-pins-0 {
271 marvell,pins = "mpp20";
272 marvell,function = "sata0";
273 };
274
275 sata1_pins: sata-pins-1 {
276 marvell,pins = "mpp19";
277 marvell,function = "sata1";
278 };
279
280 sata2_pins: sata-pins-2 {
281 marvell,pins = "mpp47";
282 marvell,function = "sata2";
283 };
284
285 sata3_pins: sata-pins-3 {
286 marvell,pins = "mpp44";
287 marvell,function = "sata3";
288 };
289 };
290
291 gpio0: gpio@18100 {
Chris Packham06db9d22018-12-10 20:07:51 +1300292 compatible = "marvell,armada-370-gpio",
293 "marvell,orion-gpio";
294 reg = <0x18100 0x40>, <0x181c0 0x08>;
295 reg-names = "gpio", "pwm";
Stefan Roeseac5efba2015-08-31 07:33:57 +0200296 ngpios = <32>;
297 gpio-controller;
Pali Rohár556cf392022-07-25 13:56:10 +0200298 gpio-ranges = <&pinctrl 0 0 32>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200299 #gpio-cells = <2>;
Chris Packham06db9d22018-12-10 20:07:51 +1300300 #pwm-cells = <2>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200301 interrupt-controller;
302 #interrupt-cells = <2>;
303 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
304 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>,
305 <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>,
306 <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
Chris Packham06db9d22018-12-10 20:07:51 +1300307 clocks = <&coreclk 0>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200308 };
309
310 gpio1: gpio@18140 {
Chris Packham06db9d22018-12-10 20:07:51 +1300311 compatible = "marvell,armada-370-gpio",
312 "marvell,orion-gpio";
313 reg = <0x18140 0x40>, <0x181c8 0x08>;
314 reg-names = "gpio", "pwm";
Stefan Roeseac5efba2015-08-31 07:33:57 +0200315 ngpios = <28>;
316 gpio-controller;
Pali Rohár556cf392022-07-25 13:56:10 +0200317 gpio-ranges = <&pinctrl 0 32 28>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200318 #gpio-cells = <2>;
Chris Packham06db9d22018-12-10 20:07:51 +1300319 #pwm-cells = <2>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200320 interrupt-controller;
321 #interrupt-cells = <2>;
322 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
323 <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
324 <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
325 <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
Chris Packham06db9d22018-12-10 20:07:51 +1300326 clocks = <&coreclk 0>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200327 };
328
Chris Packham06db9d22018-12-10 20:07:51 +1300329 systemc: system-controller@18200 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200330 compatible = "marvell,armada-380-system-controller",
331 "marvell,armada-370-xp-system-controller";
332 reg = <0x18200 0x100>;
Pali Rohár4669df32021-12-21 12:20:18 +0100333 #reset-cells = <2>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200334 };
335
336 gateclk: clock-gating-control@18220 {
337 compatible = "marvell,armada-380-gating-clock";
338 reg = <0x18220 0x4>;
339 clocks = <&coreclk 0>;
340 #clock-cells = <1>;
341 };
342
343 coreclk: mvebu-sar@18600 {
344 compatible = "marvell,armada-380-core-clock";
345 reg = <0x18600 0x04>;
346 #clock-cells = <1>;
347 };
348
349 mbusc: mbus-controller@20000 {
350 compatible = "marvell,mbus-controller";
Chris Packham06db9d22018-12-10 20:07:51 +1300351 reg = <0x20000 0x100>, <0x20180 0x20>,
352 <0x20250 0x8>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200353 };
354
355 mpic: interrupt-controller@20a00 {
356 compatible = "marvell,mpic";
357 reg = <0x20a00 0x2d0>, <0x21070 0x58>;
358 #interrupt-cells = <1>;
359 #size-cells = <1>;
360 interrupt-controller;
361 msi-controller;
362 interrupts = <GIC_PPI 15 IRQ_TYPE_LEVEL_HIGH>;
363 };
364
Chris Packham06db9d22018-12-10 20:07:51 +1300365 timer: timer@20300 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200366 compatible = "marvell,armada-380-timer",
367 "marvell,armada-xp-timer";
368 reg = <0x20300 0x30>, <0x21040 0x30>;
369 interrupts-extended = <&gic GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
370 <&gic GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
371 <&gic GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
372 <&gic GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
373 <&mpic 5>,
374 <&mpic 6>;
375 clocks = <&coreclk 2>, <&refclk>;
376 clock-names = "nbclk", "fixed";
377 };
378
Chris Packham06db9d22018-12-10 20:07:51 +1300379 watchdog: watchdog@20300 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200380 compatible = "marvell,armada-380-wdt";
381 reg = <0x20300 0x34>, <0x20704 0x4>, <0x18260 0x4>;
382 clocks = <&coreclk 2>, <&refclk>;
383 clock-names = "nbclk", "fixed";
384 };
385
Chris Packham06db9d22018-12-10 20:07:51 +1300386 cpurst: cpurst@20800 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200387 compatible = "marvell,armada-370-cpu-reset";
388 reg = <0x20800 0x10>;
389 };
390
391 mpcore-soc-ctrl@20d20 {
392 compatible = "marvell,armada-380-mpcore-soc-ctrl";
393 reg = <0x20d20 0x6c>;
394 };
395
Chris Packham06db9d22018-12-10 20:07:51 +1300396 coherencyfab: coherency-fabric@21010 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200397 compatible = "marvell,armada-380-coherency-fabric";
398 reg = <0x21010 0x1c>;
399 };
400
Chris Packham06db9d22018-12-10 20:07:51 +1300401 pmsu: pmsu@22000 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200402 compatible = "marvell,armada-380-pmsu";
403 reg = <0x22000 0x1000>;
404 };
405
Chris Packham06db9d22018-12-10 20:07:51 +1300406 /*
407 * As a special exception to the "order by
408 * register address" rule, the eth0 node is
409 * placed here to ensure that it gets
410 * registered as the first interface, since
411 * the network subsystem doesn't allow naming
412 * interfaces using DT aliases. Without this,
413 * the ordering of interfaces is different
414 * from the one used in U-Boot and the
415 * labeling of interfaces on the boards, which
416 * is very confusing for users.
417 */
418 eth0: ethernet@70000 {
419 compatible = "marvell,armada-370-neta";
420 reg = <0x70000 0x4000>;
421 interrupts-extended = <&mpic 8>;
422 clocks = <&gateclk 4>;
423 tx-csum-limit = <9800>;
424 status = "disabled";
425 };
426
Stefan Roeseac5efba2015-08-31 07:33:57 +0200427 eth1: ethernet@30000 {
428 compatible = "marvell,armada-370-neta";
429 reg = <0x30000 0x4000>;
430 interrupts-extended = <&mpic 10>;
431 clocks = <&gateclk 3>;
432 status = "disabled";
433 };
434
435 eth2: ethernet@34000 {
436 compatible = "marvell,armada-370-neta";
437 reg = <0x34000 0x4000>;
438 interrupts-extended = <&mpic 12>;
439 clocks = <&gateclk 2>;
440 status = "disabled";
441 };
442
Chris Packham06db9d22018-12-10 20:07:51 +1300443 usb0: usb@58000 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200444 compatible = "marvell,orion-ehci";
445 reg = <0x58000 0x500>;
446 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
447 clocks = <&gateclk 18>;
448 status = "disabled";
449 };
450
Chris Packham06db9d22018-12-10 20:07:51 +1300451 xor0: xor@60800 {
452 compatible = "marvell,armada-380-xor", "marvell,orion-xor";
Stefan Roeseac5efba2015-08-31 07:33:57 +0200453 reg = <0x60800 0x100
454 0x60a00 0x100>;
455 clocks = <&gateclk 22>;
456 status = "okay";
457
458 xor00 {
459 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
460 dmacap,memcpy;
461 dmacap,xor;
462 };
463 xor01 {
464 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
465 dmacap,memcpy;
466 dmacap,xor;
467 dmacap,memset;
468 };
469 };
470
Chris Packham06db9d22018-12-10 20:07:51 +1300471 xor1: xor@60900 {
472 compatible = "marvell,armada-380-xor", "marvell,orion-xor";
Stefan Roeseac5efba2015-08-31 07:33:57 +0200473 reg = <0x60900 0x100
474 0x60b00 0x100>;
475 clocks = <&gateclk 28>;
476 status = "okay";
477
478 xor10 {
479 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
480 dmacap,memcpy;
481 dmacap,xor;
482 };
483 xor11 {
484 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
485 dmacap,memcpy;
486 dmacap,xor;
487 dmacap,memset;
488 };
489 };
490
Stefan Roeseac5efba2015-08-31 07:33:57 +0200491 mdio: mdio@72004 {
492 #address-cells = <1>;
493 #size-cells = <0>;
494 compatible = "marvell,orion-mdio";
495 reg = <0x72004 0x4>;
496 clocks = <&gateclk 4>;
497 };
498
Chris Packham06db9d22018-12-10 20:07:51 +1300499 cesa: crypto@90000 {
500 compatible = "marvell,armada-38x-crypto";
501 reg = <0x90000 0x10000>;
502 reg-names = "regs";
503 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
504 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
505 clocks = <&gateclk 23>, <&gateclk 21>,
506 <&gateclk 14>, <&gateclk 16>;
507 clock-names = "cesa0", "cesa1",
508 "cesaz0", "cesaz1";
509 marvell,crypto-srams = <&crypto_sram0>,
510 <&crypto_sram1>;
511 marvell,crypto-sram-size = <0x800>;
512 };
513
514 rtc: rtc@a3800 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200515 compatible = "marvell,armada-380-rtc";
516 reg = <0xa3800 0x20>, <0x184a0 0x0c>;
517 reg-names = "rtc", "rtc-soc";
518 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
519 };
520
Chris Packham06db9d22018-12-10 20:07:51 +1300521 ahci0: sata@a8000 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200522 compatible = "marvell,armada-380-ahci";
523 reg = <0xa8000 0x2000>;
524 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
525 clocks = <&gateclk 15>;
526 status = "disabled";
527 };
528
Chris Packham06db9d22018-12-10 20:07:51 +1300529 bm: bm@c8000 {
530 compatible = "marvell,armada-380-neta-bm";
531 reg = <0xc8000 0xac>;
532 clocks = <&gateclk 13>;
533 internal-mem = <&bm_bppi>;
534 status = "disabled";
535 };
536
537 ahci1: sata@e0000 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200538 compatible = "marvell,armada-380-ahci";
539 reg = <0xe0000 0x2000>;
540 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
541 clocks = <&gateclk 30>;
542 status = "disabled";
543 };
544
545 coredivclk: clock@e4250 {
546 compatible = "marvell,armada-380-corediv-clock";
547 reg = <0xe4250 0xc>;
548 #clock-cells = <1>;
549 clocks = <&mainpll>;
550 clock-output-names = "nand";
551 };
552
Chris Packham06db9d22018-12-10 20:07:51 +1300553 thermal: thermal@e8078 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200554 compatible = "marvell,armada380-thermal";
Chris Packham06db9d22018-12-10 20:07:51 +1300555 reg = <0xe4078 0x4>, <0xe4070 0x8>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200556 status = "okay";
557 };
558
Chris Packham06db9d22018-12-10 20:07:51 +1300559 nand_controller: nand-controller@d0000 {
Pali Rohárc96bc1d2022-07-27 14:47:35 +0200560 compatible = "marvell,armada370-nand-controller";
Stefan Roeseac5efba2015-08-31 07:33:57 +0200561 reg = <0xd0000 0x54>;
562 #address-cells = <1>;
Chris Packham06db9d22018-12-10 20:07:51 +1300563 #size-cells = <0>;
Stefan Roeseac5efba2015-08-31 07:33:57 +0200564 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
565 clocks = <&coredivclk 0>;
566 status = "disabled";
567 };
568
Chris Packham06db9d22018-12-10 20:07:51 +1300569 sdhci: sdhci@d8000 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200570 compatible = "marvell,armada-380-sdhci";
571 reg-names = "sdhci", "mbus", "conf-sdio3";
572 reg = <0xd8000 0x1000>,
573 <0xdc000 0x100>,
574 <0x18454 0x4>;
575 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
576 clocks = <&gateclk 17>;
577 mrvl,clk-delay-cycles = <0x1F>;
578 status = "disabled";
579 };
580
Chris Packham06db9d22018-12-10 20:07:51 +1300581 usb3_0: usb3@f0000 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200582 compatible = "marvell,armada-380-xhci";
583 reg = <0xf0000 0x4000>,<0xf4000 0x4000>;
584 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
585 clocks = <&gateclk 9>;
586 status = "disabled";
587 };
588
Chris Packham06db9d22018-12-10 20:07:51 +1300589 usb3_1: usb3@f8000 {
Stefan Roeseac5efba2015-08-31 07:33:57 +0200590 compatible = "marvell,armada-380-xhci";
591 reg = <0xf8000 0x4000>,<0xfc000 0x4000>;
592 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
593 clocks = <&gateclk 10>;
594 status = "disabled";
595 };
596 };
Chris Packham06db9d22018-12-10 20:07:51 +1300597
598 crypto_sram0: sa-sram0 {
599 compatible = "mmio-sram";
600 reg = <MBUS_ID(0x09, 0x19) 0 0x800>;
601 clocks = <&gateclk 23>;
602 #address-cells = <1>;
603 #size-cells = <1>;
604 ranges = <0 MBUS_ID(0x09, 0x19) 0 0x800>;
605 };
606
607 crypto_sram1: sa-sram1 {
608 compatible = "mmio-sram";
609 reg = <MBUS_ID(0x09, 0x15) 0 0x800>;
610 clocks = <&gateclk 21>;
611 #address-cells = <1>;
612 #size-cells = <1>;
613 ranges = <0 MBUS_ID(0x09, 0x15) 0 0x800>;
614 };
615
616 bm_bppi: bm-bppi {
617 compatible = "mmio-sram";
618 reg = <MBUS_ID(0x0c, 0x04) 0 0x100000>;
619 ranges = <0 MBUS_ID(0x0c, 0x04) 0 0x100000>;
620 #address-cells = <1>;
621 #size-cells = <1>;
622 clocks = <&gateclk 13>;
623 no-memory-wc;
624 status = "disabled";
625 };
626
627 spi0: spi@10600 {
628 compatible = "marvell,armada-380-spi",
629 "marvell,orion-spi";
630 reg = <MBUS_ID(0xf0, 0x01) 0x10600 0x50>;
631 #address-cells = <1>;
632 #size-cells = <0>;
633 cell-index = <0>;
634 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
635 clocks = <&coreclk 0>;
636 status = "disabled";
637 };
638
639 spi1: spi@10680 {
640 compatible = "marvell,armada-380-spi",
641 "marvell,orion-spi";
642 reg = <MBUS_ID(0xf0, 0x01) 0x10680 0x50>;
643 #address-cells = <1>;
644 #size-cells = <0>;
645 cell-index = <1>;
646 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
647 clocks = <&coreclk 0>;
648 status = "disabled";
649 };
Stefan Roeseac5efba2015-08-31 07:33:57 +0200650 };
651
652 clocks {
Chris Packham06db9d22018-12-10 20:07:51 +1300653 /* 1 GHz fixed main PLL */
Stefan Roeseac5efba2015-08-31 07:33:57 +0200654 mainpll: mainpll {
655 compatible = "fixed-clock";
656 #clock-cells = <0>;
657 clock-frequency = <1000000000>;
658 };
659
660 /* 25 MHz reference crystal */
661 refclk: oscillator {
662 compatible = "fixed-clock";
663 #clock-cells = <0>;
664 clock-frequency = <25000000>;
665 };
666 };
667};