1 From 47cf40af64c35a69ef6a193c47768ad1bda29db2 Mon Sep 17 00:00:00 2001
2 From: Miquel Raynal <miquel.raynal@bootlin.com>
3 Date: Fri, 4 Oct 2019 16:27:29 +0200
4 Subject: [PATCH] arm64: dts: marvell: Prepare the introduction of CP115
6 CP110 and CP115 are almost the same in terms of features and have a
7 very limited set of differences. Let's create an armada-cp11x.dtsi
8 file which will be used to instantiate both CP110 and CP115
11 The only changes between the two armada-cp11{0,x}.dtsi files are the
12 following naming in macros: s/CP110/CP11X/.
14 Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
15 Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
17 arch/arm64/boot/dts/marvell/armada-70x0.dtsi | 28 +-
18 arch/arm64/boot/dts/marvell/armada-80x0.dtsi | 56 +-
19 .../arm64/boot/dts/marvell/armada-common.dtsi | 4 +-
20 arch/arm64/boot/dts/marvell/armada-cp110.dtsi | 575 +----------------
21 arch/arm64/boot/dts/marvell/armada-cp11x.dtsi | 579 ++++++++++++++++++
22 5 files changed, 627 insertions(+), 615 deletions(-)
23 create mode 100644 arch/arm64/boot/dts/marvell/armada-cp11x.dtsi
25 --- a/arch/arm64/boot/dts/marvell/armada-70x0.dtsi
26 +++ b/arch/arm64/boot/dts/marvell/armada-70x0.dtsi
29 * Instantiate the CP110
31 -#define CP110_NAME cp0
32 -#define CP110_BASE f2000000
33 -#define CP110_PCIE_IO_BASE 0xf9000000
34 -#define CP110_PCIE_MEM_BASE 0xf6000000
35 -#define CP110_PCIE0_BASE f2600000
36 -#define CP110_PCIE1_BASE f2620000
37 -#define CP110_PCIE2_BASE f2640000
38 +#define CP11X_NAME cp0
39 +#define CP11X_BASE f2000000
40 +#define CP11X_PCIE_IO_BASE 0xf9000000
41 +#define CP11X_PCIE_MEM_BASE 0xf6000000
42 +#define CP11X_PCIE0_BASE f2600000
43 +#define CP11X_PCIE1_BASE f2620000
44 +#define CP11X_PCIE2_BASE f2640000
46 #include "armada-cp110.dtsi"
50 -#undef CP110_PCIE_IO_BASE
51 -#undef CP110_PCIE_MEM_BASE
52 -#undef CP110_PCIE0_BASE
53 -#undef CP110_PCIE1_BASE
54 -#undef CP110_PCIE2_BASE
57 +#undef CP11X_PCIE_IO_BASE
58 +#undef CP11X_PCIE_MEM_BASE
59 +#undef CP11X_PCIE0_BASE
60 +#undef CP11X_PCIE1_BASE
61 +#undef CP11X_PCIE2_BASE
65 --- a/arch/arm64/boot/dts/marvell/armada-80x0.dtsi
66 +++ b/arch/arm64/boot/dts/marvell/armada-80x0.dtsi
69 * Instantiate the master CP110
71 -#define CP110_NAME cp0
72 -#define CP110_BASE f2000000
73 -#define CP110_PCIE_IO_BASE 0xf9000000
74 -#define CP110_PCIE_MEM_BASE 0xf6000000
75 -#define CP110_PCIE0_BASE f2600000
76 -#define CP110_PCIE1_BASE f2620000
77 -#define CP110_PCIE2_BASE f2640000
78 +#define CP11X_NAME cp0
79 +#define CP11X_BASE f2000000
80 +#define CP11X_PCIE_IO_BASE 0xf9000000
81 +#define CP11X_PCIE_MEM_BASE 0xf6000000
82 +#define CP11X_PCIE0_BASE f2600000
83 +#define CP11X_PCIE1_BASE f2620000
84 +#define CP11X_PCIE2_BASE f2640000
86 #include "armada-cp110.dtsi"
90 -#undef CP110_PCIE_IO_BASE
91 -#undef CP110_PCIE_MEM_BASE
92 -#undef CP110_PCIE0_BASE
93 -#undef CP110_PCIE1_BASE
94 -#undef CP110_PCIE2_BASE
97 +#undef CP11X_PCIE_IO_BASE
98 +#undef CP11X_PCIE_MEM_BASE
99 +#undef CP11X_PCIE0_BASE
100 +#undef CP11X_PCIE1_BASE
101 +#undef CP11X_PCIE2_BASE
104 * Instantiate the slave CP110
106 -#define CP110_NAME cp1
107 -#define CP110_BASE f4000000
108 -#define CP110_PCIE_IO_BASE 0xfd000000
109 -#define CP110_PCIE_MEM_BASE 0xfa000000
110 -#define CP110_PCIE0_BASE f4600000
111 -#define CP110_PCIE1_BASE f4620000
112 -#define CP110_PCIE2_BASE f4640000
113 +#define CP11X_NAME cp1
114 +#define CP11X_BASE f4000000
115 +#define CP11X_PCIE_IO_BASE 0xfd000000
116 +#define CP11X_PCIE_MEM_BASE 0xfa000000
117 +#define CP11X_PCIE0_BASE f4600000
118 +#define CP11X_PCIE1_BASE f4620000
119 +#define CP11X_PCIE2_BASE f4640000
121 #include "armada-cp110.dtsi"
125 -#undef CP110_PCIE_IO_BASE
126 -#undef CP110_PCIE_MEM_BASE
127 -#undef CP110_PCIE0_BASE
128 -#undef CP110_PCIE1_BASE
129 -#undef CP110_PCIE2_BASE
132 +#undef CP11X_PCIE_IO_BASE
133 +#undef CP11X_PCIE_MEM_BASE
134 +#undef CP11X_PCIE0_BASE
135 +#undef CP11X_PCIE1_BASE
136 +#undef CP11X_PCIE2_BASE
138 /* The 80x0 has two CP blocks, but uses only one block from each. */
140 --- a/arch/arm64/boot/dts/marvell/armada-common.dtsi
141 +++ b/arch/arm64/boot/dts/marvell/armada-common.dtsi
143 /* Common definitions used by Armada 7K/8K DTs */
144 #define PASTER(x, y) x ## y
145 #define EVALUATOR(x, y) PASTER(x, y)
146 -#define CP110_LABEL(name) EVALUATOR(CP110_NAME, EVALUATOR(_, name))
147 -#define CP110_NODE_NAME(name) EVALUATOR(CP110_NAME, EVALUATOR(-, name))
148 +#define CP11X_LABEL(name) EVALUATOR(CP11X_NAME, EVALUATOR(_, name))
149 +#define CP11X_NODE_NAME(name) EVALUATOR(CP11X_NAME, EVALUATOR(-, name))
150 #define ADDRESSIFY(addr) EVALUATOR(0x, addr)
151 --- a/arch/arm64/boot/dts/marvell/armada-cp110.dtsi
152 +++ b/arch/arm64/boot/dts/marvell/armada-cp110.dtsi
154 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
156 - * Copyright (C) 2016 Marvell Technology Group Ltd.
157 + * Copyright (C) 2019 Marvell Technology Group Ltd.
159 * Device Tree file for Marvell Armada CP110.
162 -#include <dt-bindings/interrupt-controller/mvebu-icu.h>
163 -#include <dt-bindings/thermal/thermal.h>
164 +#define CP11X_TYPE cp110
166 -#include "armada-common.dtsi"
167 +#include "armada-cp11x.dtsi"
169 -#define CP110_PCIEx_IO_BASE(iface) (CP110_PCIE_IO_BASE + (iface * 0x10000))
170 -#define CP110_PCIEx_MEM_BASE(iface) (CP110_PCIE_MEM_BASE + (iface * 0x1000000))
171 -#define CP110_PCIEx_CONF_BASE(iface) (CP110_PCIEx_MEM_BASE(iface) + 0xf00000)
175 - * The contents of the node are defined below, in order to
176 - * save one indentation level
178 - CP110_NAME: CP110_NAME { };
181 - * CPs only have one sensor in the thermal IC.
183 - * The cooling maps are empty as there are no cooling devices.
186 - CP110_LABEL(thermal_ic): CP110_NODE_NAME(thermal-ic) {
187 - polling-delay-passive = <0>; /* Interrupt driven */
188 - polling-delay = <0>; /* Interrupt driven */
190 - thermal-sensors = <&CP110_LABEL(thermal) 0>;
193 - CP110_LABEL(crit): crit {
194 - temperature = <100000>; /* mC degrees */
195 - hysteresis = <2000>; /* mC degrees */
206 - #address-cells = <2>;
208 - compatible = "simple-bus";
209 - interrupt-parent = <&CP110_LABEL(icu_nsr)>;
212 - config-space@CP110_BASE {
213 - #address-cells = <1>;
215 - compatible = "simple-bus";
216 - ranges = <0x0 0x0 ADDRESSIFY(CP110_BASE) 0x2000000>;
218 - CP110_LABEL(ethernet): ethernet@0 {
219 - compatible = "marvell,armada-7k-pp22";
220 - reg = <0x0 0x100000>, <0x129000 0xb000>;
221 - clocks = <&CP110_LABEL(clk) 1 3>, <&CP110_LABEL(clk) 1 9>,
222 - <&CP110_LABEL(clk) 1 5>, <&CP110_LABEL(clk) 1 6>,
223 - <&CP110_LABEL(clk) 1 18>;
224 - clock-names = "pp_clk", "gop_clk",
225 - "mg_clk", "mg_core_clk", "axi_clk";
226 - marvell,system-controller = <&CP110_LABEL(syscon0)>;
227 - status = "disabled";
230 - CP110_LABEL(eth0): eth0 {
231 - interrupts = <39 IRQ_TYPE_LEVEL_HIGH>,
232 - <43 IRQ_TYPE_LEVEL_HIGH>,
233 - <47 IRQ_TYPE_LEVEL_HIGH>,
234 - <51 IRQ_TYPE_LEVEL_HIGH>,
235 - <55 IRQ_TYPE_LEVEL_HIGH>,
236 - <59 IRQ_TYPE_LEVEL_HIGH>,
237 - <63 IRQ_TYPE_LEVEL_HIGH>,
238 - <67 IRQ_TYPE_LEVEL_HIGH>,
239 - <71 IRQ_TYPE_LEVEL_HIGH>,
240 - <129 IRQ_TYPE_LEVEL_HIGH>;
241 - interrupt-names = "hif0", "hif1", "hif2",
242 - "hif3", "hif4", "hif5", "hif6", "hif7",
246 - status = "disabled";
249 - CP110_LABEL(eth1): eth1 {
250 - interrupts = <40 IRQ_TYPE_LEVEL_HIGH>,
251 - <44 IRQ_TYPE_LEVEL_HIGH>,
252 - <48 IRQ_TYPE_LEVEL_HIGH>,
253 - <52 IRQ_TYPE_LEVEL_HIGH>,
254 - <56 IRQ_TYPE_LEVEL_HIGH>,
255 - <60 IRQ_TYPE_LEVEL_HIGH>,
256 - <64 IRQ_TYPE_LEVEL_HIGH>,
257 - <68 IRQ_TYPE_LEVEL_HIGH>,
258 - <72 IRQ_TYPE_LEVEL_HIGH>,
259 - <128 IRQ_TYPE_LEVEL_HIGH>;
260 - interrupt-names = "hif0", "hif1", "hif2",
261 - "hif3", "hif4", "hif5", "hif6", "hif7",
265 - status = "disabled";
268 - CP110_LABEL(eth2): eth2 {
269 - interrupts = <41 IRQ_TYPE_LEVEL_HIGH>,
270 - <45 IRQ_TYPE_LEVEL_HIGH>,
271 - <49 IRQ_TYPE_LEVEL_HIGH>,
272 - <53 IRQ_TYPE_LEVEL_HIGH>,
273 - <57 IRQ_TYPE_LEVEL_HIGH>,
274 - <61 IRQ_TYPE_LEVEL_HIGH>,
275 - <65 IRQ_TYPE_LEVEL_HIGH>,
276 - <69 IRQ_TYPE_LEVEL_HIGH>,
277 - <73 IRQ_TYPE_LEVEL_HIGH>,
278 - <127 IRQ_TYPE_LEVEL_HIGH>;
279 - interrupt-names = "hif0", "hif1", "hif2",
280 - "hif3", "hif4", "hif5", "hif6", "hif7",
284 - status = "disabled";
288 - CP110_LABEL(comphy): phy@120000 {
289 - compatible = "marvell,comphy-cp110";
290 - reg = <0x120000 0x6000>;
291 - marvell,system-controller = <&CP110_LABEL(syscon0)>;
292 - clocks = <&CP110_LABEL(clk) 1 5>, <&CP110_LABEL(clk) 1 6>,
293 - <&CP110_LABEL(clk) 1 18>;
294 - clock-names = "mg_clk", "mg_core_clk", "axi_clk";
295 - #address-cells = <1>;
298 - CP110_LABEL(comphy0): phy@0 {
303 - CP110_LABEL(comphy1): phy@1 {
308 - CP110_LABEL(comphy2): phy@2 {
313 - CP110_LABEL(comphy3): phy@3 {
318 - CP110_LABEL(comphy4): phy@4 {
323 - CP110_LABEL(comphy5): phy@5 {
329 - CP110_LABEL(mdio): mdio@12a200 {
330 - #address-cells = <1>;
332 - compatible = "marvell,orion-mdio";
333 - reg = <0x12a200 0x10>;
334 - clocks = <&CP110_LABEL(clk) 1 9>, <&CP110_LABEL(clk) 1 5>,
335 - <&CP110_LABEL(clk) 1 6>, <&CP110_LABEL(clk) 1 18>;
336 - status = "disabled";
339 - CP110_LABEL(xmdio): mdio@12a600 {
340 - #address-cells = <1>;
342 - compatible = "marvell,xmdio";
343 - reg = <0x12a600 0x10>;
344 - clocks = <&CP110_LABEL(clk) 1 5>,
345 - <&CP110_LABEL(clk) 1 6>, <&CP110_LABEL(clk) 1 18>;
346 - status = "disabled";
349 - CP110_LABEL(icu): interrupt-controller@1e0000 {
350 - compatible = "marvell,cp110-icu";
351 - reg = <0x1e0000 0x440>;
352 - #address-cells = <1>;
355 - CP110_LABEL(icu_nsr): interrupt-controller@10 {
356 - compatible = "marvell,cp110-icu-nsr";
358 - #interrupt-cells = <2>;
359 - interrupt-controller;
360 - msi-parent = <&gicp>;
363 - CP110_LABEL(icu_sei): interrupt-controller@50 {
364 - compatible = "marvell,cp110-icu-sei";
366 - #interrupt-cells = <2>;
367 - interrupt-controller;
368 - msi-parent = <&sei>;
372 - CP110_LABEL(rtc): rtc@284000 {
373 - compatible = "marvell,armada-8k-rtc";
374 - reg = <0x284000 0x20>, <0x284080 0x24>;
375 - reg-names = "rtc", "rtc-soc";
376 - interrupts = <77 IRQ_TYPE_LEVEL_HIGH>;
379 - CP110_LABEL(syscon0): system-controller@440000 {
380 - compatible = "syscon", "simple-mfd";
381 - reg = <0x440000 0x2000>;
383 - CP110_LABEL(clk): clock {
384 - compatible = "marvell,cp110-clock";
385 - #clock-cells = <2>;
388 - CP110_LABEL(gpio1): gpio@100 {
389 - compatible = "marvell,armada-8k-gpio";
394 - gpio-ranges = <&CP110_LABEL(pinctrl) 0 0 32>;
395 - interrupt-controller;
396 - interrupts = <86 IRQ_TYPE_LEVEL_HIGH>,
397 - <85 IRQ_TYPE_LEVEL_HIGH>,
398 - <84 IRQ_TYPE_LEVEL_HIGH>,
399 - <83 IRQ_TYPE_LEVEL_HIGH>;
400 - #interrupt-cells = <2>;
401 - status = "disabled";
404 - CP110_LABEL(gpio2): gpio@140 {
405 - compatible = "marvell,armada-8k-gpio";
410 - gpio-ranges = <&CP110_LABEL(pinctrl) 0 32 31>;
411 - interrupt-controller;
412 - interrupts = <82 IRQ_TYPE_LEVEL_HIGH>,
413 - <81 IRQ_TYPE_LEVEL_HIGH>,
414 - <80 IRQ_TYPE_LEVEL_HIGH>,
415 - <79 IRQ_TYPE_LEVEL_HIGH>;
416 - #interrupt-cells = <2>;
417 - status = "disabled";
421 - CP110_LABEL(syscon1): system-controller@400000 {
422 - compatible = "syscon", "simple-mfd";
423 - reg = <0x400000 0x1000>;
424 - #address-cells = <1>;
427 - CP110_LABEL(thermal): thermal-sensor@70 {
428 - compatible = "marvell,armada-cp110-thermal";
430 - interrupts-extended =
431 - <&CP110_LABEL(icu_sei) 116 IRQ_TYPE_LEVEL_HIGH>;
432 - #thermal-sensor-cells = <1>;
436 - CP110_LABEL(usb3_0): usb3@500000 {
437 - compatible = "marvell,armada-8k-xhci",
439 - reg = <0x500000 0x4000>;
441 - interrupts = <106 IRQ_TYPE_LEVEL_HIGH>;
442 - clock-names = "core", "reg";
443 - clocks = <&CP110_LABEL(clk) 1 22>,
444 - <&CP110_LABEL(clk) 1 16>;
445 - status = "disabled";
448 - CP110_LABEL(usb3_1): usb3@510000 {
449 - compatible = "marvell,armada-8k-xhci",
451 - reg = <0x510000 0x4000>;
453 - interrupts = <105 IRQ_TYPE_LEVEL_HIGH>;
454 - clock-names = "core", "reg";
455 - clocks = <&CP110_LABEL(clk) 1 23>,
456 - <&CP110_LABEL(clk) 1 16>;
457 - status = "disabled";
460 - CP110_LABEL(sata0): sata@540000 {
461 - compatible = "marvell,armada-8k-ahci",
463 - reg = <0x540000 0x30000>;
465 - interrupts = <107 IRQ_TYPE_LEVEL_HIGH>;
466 - clocks = <&CP110_LABEL(clk) 1 15>,
467 - <&CP110_LABEL(clk) 1 16>;
468 - #address-cells = <1>;
470 - status = "disabled";
481 - CP110_LABEL(xor0): xor@6a0000 {
482 - compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
483 - reg = <0x6a0000 0x1000>, <0x6b0000 0x1000>;
485 - msi-parent = <&gic_v2m0>;
486 - clock-names = "core", "reg";
487 - clocks = <&CP110_LABEL(clk) 1 8>,
488 - <&CP110_LABEL(clk) 1 14>;
491 - CP110_LABEL(xor1): xor@6c0000 {
492 - compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
493 - reg = <0x6c0000 0x1000>, <0x6d0000 0x1000>;
495 - msi-parent = <&gic_v2m0>;
496 - clock-names = "core", "reg";
497 - clocks = <&CP110_LABEL(clk) 1 7>,
498 - <&CP110_LABEL(clk) 1 14>;
501 - CP110_LABEL(spi0): spi@700600 {
502 - compatible = "marvell,armada-380-spi";
503 - reg = <0x700600 0x50>;
504 - #address-cells = <0x1>;
505 - #size-cells = <0x0>;
506 - clock-names = "core", "axi";
507 - clocks = <&CP110_LABEL(clk) 1 21>,
508 - <&CP110_LABEL(clk) 1 17>;
509 - status = "disabled";
512 - CP110_LABEL(spi1): spi@700680 {
513 - compatible = "marvell,armada-380-spi";
514 - reg = <0x700680 0x50>;
515 - #address-cells = <1>;
517 - clock-names = "core", "axi";
518 - clocks = <&CP110_LABEL(clk) 1 21>,
519 - <&CP110_LABEL(clk) 1 17>;
520 - status = "disabled";
523 - CP110_LABEL(i2c0): i2c@701000 {
524 - compatible = "marvell,mv78230-i2c";
525 - reg = <0x701000 0x20>;
526 - #address-cells = <1>;
528 - interrupts = <120 IRQ_TYPE_LEVEL_HIGH>;
529 - clock-names = "core", "reg";
530 - clocks = <&CP110_LABEL(clk) 1 21>,
531 - <&CP110_LABEL(clk) 1 17>;
532 - status = "disabled";
535 - CP110_LABEL(i2c1): i2c@701100 {
536 - compatible = "marvell,mv78230-i2c";
537 - reg = <0x701100 0x20>;
538 - #address-cells = <1>;
540 - interrupts = <121 IRQ_TYPE_LEVEL_HIGH>;
541 - clock-names = "core", "reg";
542 - clocks = <&CP110_LABEL(clk) 1 21>,
543 - <&CP110_LABEL(clk) 1 17>;
544 - status = "disabled";
547 - CP110_LABEL(uart0): serial@702000 {
548 - compatible = "snps,dw-apb-uart";
549 - reg = <0x702000 0x100>;
551 - interrupts = <122 IRQ_TYPE_LEVEL_HIGH>;
552 - reg-io-width = <1>;
553 - clock-names = "baudclk", "apb_pclk";
554 - clocks = <&CP110_LABEL(clk) 1 21>,
555 - <&CP110_LABEL(clk) 1 17>;
556 - status = "disabled";
559 - CP110_LABEL(uart1): serial@702100 {
560 - compatible = "snps,dw-apb-uart";
561 - reg = <0x702100 0x100>;
563 - interrupts = <123 IRQ_TYPE_LEVEL_HIGH>;
564 - reg-io-width = <1>;
565 - clock-names = "baudclk", "apb_pclk";
566 - clocks = <&CP110_LABEL(clk) 1 21>,
567 - <&CP110_LABEL(clk) 1 17>;
568 - status = "disabled";
571 - CP110_LABEL(uart2): serial@702200 {
572 - compatible = "snps,dw-apb-uart";
573 - reg = <0x702200 0x100>;
575 - interrupts = <124 IRQ_TYPE_LEVEL_HIGH>;
576 - reg-io-width = <1>;
577 - clock-names = "baudclk", "apb_pclk";
578 - clocks = <&CP110_LABEL(clk) 1 21>,
579 - <&CP110_LABEL(clk) 1 17>;
580 - status = "disabled";
583 - CP110_LABEL(uart3): serial@702300 {
584 - compatible = "snps,dw-apb-uart";
585 - reg = <0x702300 0x100>;
587 - interrupts = <125 IRQ_TYPE_LEVEL_HIGH>;
588 - reg-io-width = <1>;
589 - clock-names = "baudclk", "apb_pclk";
590 - clocks = <&CP110_LABEL(clk) 1 21>,
591 - <&CP110_LABEL(clk) 1 17>;
592 - status = "disabled";
595 - CP110_LABEL(nand_controller): nand@720000 {
597 - * Due to the limitation of the pins available
598 - * this controller is only usable on the CPM
599 - * for A7K and on the CPS for A8K.
601 - compatible = "marvell,armada-8k-nand-controller",
602 - "marvell,armada370-nand-controller";
603 - reg = <0x720000 0x54>;
604 - #address-cells = <1>;
606 - interrupts = <115 IRQ_TYPE_LEVEL_HIGH>;
607 - clock-names = "core", "reg";
608 - clocks = <&CP110_LABEL(clk) 1 2>,
609 - <&CP110_LABEL(clk) 1 17>;
610 - marvell,system-controller = <&CP110_LABEL(syscon0)>;
611 - status = "disabled";
614 - CP110_LABEL(trng): trng@760000 {
615 - compatible = "marvell,armada-8k-rng",
616 - "inside-secure,safexcel-eip76";
617 - reg = <0x760000 0x7d>;
618 - interrupts = <95 IRQ_TYPE_LEVEL_HIGH>;
619 - clock-names = "core", "reg";
620 - clocks = <&CP110_LABEL(clk) 1 25>,
621 - <&CP110_LABEL(clk) 1 17>;
625 - CP110_LABEL(sdhci0): sdhci@780000 {
626 - compatible = "marvell,armada-cp110-sdhci";
627 - reg = <0x780000 0x300>;
628 - interrupts = <27 IRQ_TYPE_LEVEL_HIGH>;
629 - clock-names = "core", "axi";
630 - clocks = <&CP110_LABEL(clk) 1 4>, <&CP110_LABEL(clk) 1 18>;
632 - status = "disabled";
635 - CP110_LABEL(crypto): crypto@800000 {
636 - compatible = "inside-secure,safexcel-eip197b";
637 - reg = <0x800000 0x200000>;
638 - interrupts = <87 IRQ_TYPE_LEVEL_HIGH>,
639 - <88 IRQ_TYPE_LEVEL_HIGH>,
640 - <89 IRQ_TYPE_LEVEL_HIGH>,
641 - <90 IRQ_TYPE_LEVEL_HIGH>,
642 - <91 IRQ_TYPE_LEVEL_HIGH>,
643 - <92 IRQ_TYPE_LEVEL_HIGH>;
644 - interrupt-names = "mem", "ring0", "ring1",
645 - "ring2", "ring3", "eip";
646 - clock-names = "core", "reg";
647 - clocks = <&CP110_LABEL(clk) 1 26>,
648 - <&CP110_LABEL(clk) 1 17>;
653 - CP110_LABEL(pcie0): pcie@CP110_PCIE0_BASE {
654 - compatible = "marvell,armada8k-pcie", "snps,dw-pcie";
655 - reg = <0 ADDRESSIFY(CP110_PCIE0_BASE) 0 0x10000>,
656 - <0 CP110_PCIEx_CONF_BASE(0) 0 0x80000>;
657 - reg-names = "ctrl", "config";
658 - #address-cells = <3>;
660 - #interrupt-cells = <1>;
661 - device_type = "pci";
663 - msi-parent = <&gic_v2m0>;
665 - bus-range = <0 0xff>;
667 - /* downstream I/O */
668 - <0x81000000 0 CP110_PCIEx_IO_BASE(0) 0 CP110_PCIEx_IO_BASE(0) 0 0x10000
669 - /* non-prefetchable memory */
670 - 0x82000000 0 CP110_PCIEx_MEM_BASE(0) 0 CP110_PCIEx_MEM_BASE(0) 0 0xf00000>;
671 - interrupt-map-mask = <0 0 0 0>;
672 - interrupt-map = <0 0 0 0 &CP110_LABEL(icu_nsr) 22 IRQ_TYPE_LEVEL_HIGH>;
673 - interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
675 - clock-names = "core", "reg";
676 - clocks = <&CP110_LABEL(clk) 1 13>, <&CP110_LABEL(clk) 1 14>;
677 - status = "disabled";
680 - CP110_LABEL(pcie1): pcie@CP110_PCIE1_BASE {
681 - compatible = "marvell,armada8k-pcie", "snps,dw-pcie";
682 - reg = <0 ADDRESSIFY(CP110_PCIE1_BASE) 0 0x10000>,
683 - <0 CP110_PCIEx_CONF_BASE(1) 0 0x80000>;
684 - reg-names = "ctrl", "config";
685 - #address-cells = <3>;
687 - #interrupt-cells = <1>;
688 - device_type = "pci";
690 - msi-parent = <&gic_v2m0>;
692 - bus-range = <0 0xff>;
694 - /* downstream I/O */
695 - <0x81000000 0 CP110_PCIEx_IO_BASE(1) 0 CP110_PCIEx_IO_BASE(1) 0 0x10000
696 - /* non-prefetchable memory */
697 - 0x82000000 0 CP110_PCIEx_MEM_BASE(1) 0 CP110_PCIEx_MEM_BASE(1) 0 0xf00000>;
698 - interrupt-map-mask = <0 0 0 0>;
699 - interrupt-map = <0 0 0 0 &CP110_LABEL(icu_nsr) 24 IRQ_TYPE_LEVEL_HIGH>;
700 - interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
703 - clock-names = "core", "reg";
704 - clocks = <&CP110_LABEL(clk) 1 11>, <&CP110_LABEL(clk) 1 14>;
705 - status = "disabled";
708 - CP110_LABEL(pcie2): pcie@CP110_PCIE2_BASE {
709 - compatible = "marvell,armada8k-pcie", "snps,dw-pcie";
710 - reg = <0 ADDRESSIFY(CP110_PCIE2_BASE) 0 0x10000>,
711 - <0 CP110_PCIEx_CONF_BASE(2) 0 0x80000>;
712 - reg-names = "ctrl", "config";
713 - #address-cells = <3>;
715 - #interrupt-cells = <1>;
716 - device_type = "pci";
718 - msi-parent = <&gic_v2m0>;
720 - bus-range = <0 0xff>;
722 - /* downstream I/O */
723 - <0x81000000 0 CP110_PCIEx_IO_BASE(2) 0 CP110_PCIEx_IO_BASE(2) 0 0x10000
724 - /* non-prefetchable memory */
725 - 0x82000000 0 CP110_PCIEx_MEM_BASE(2) 0 CP110_PCIEx_MEM_BASE(2) 0 0xf00000>;
726 - interrupt-map-mask = <0 0 0 0>;
727 - interrupt-map = <0 0 0 0 &CP110_LABEL(icu_nsr) 23 IRQ_TYPE_LEVEL_HIGH>;
728 - interrupts = <23 IRQ_TYPE_LEVEL_HIGH>;
731 - clock-names = "core", "reg";
732 - clocks = <&CP110_LABEL(clk) 1 12>, <&CP110_LABEL(clk) 1 14>;
733 - status = "disabled";
738 +++ b/arch/arm64/boot/dts/marvell/armada-cp11x.dtsi
740 +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
742 + * Copyright (C) 2016 Marvell Technology Group Ltd.
744 + * Device Tree file for Marvell Armada CP11x.
747 +#include <dt-bindings/interrupt-controller/mvebu-icu.h>
748 +#include <dt-bindings/thermal/thermal.h>
750 +#include "armada-common.dtsi"
752 +#define CP11X_PCIEx_IO_BASE(iface) (CP11X_PCIE_IO_BASE + (iface * 0x10000))
753 +#define CP11X_PCIEx_MEM_BASE(iface) (CP11X_PCIE_MEM_BASE + (iface * 0x1000000))
754 +#define CP11X_PCIEx_CONF_BASE(iface) (CP11X_PCIEx_MEM_BASE(iface) + 0xf00000)
758 + * The contents of the node are defined below, in order to
759 + * save one indentation level
761 + CP11X_NAME: CP11X_NAME { };
764 + * CPs only have one sensor in the thermal IC.
766 + * The cooling maps are empty as there are no cooling devices.
769 + CP11X_LABEL(thermal_ic): CP11X_NODE_NAME(thermal-ic) {
770 + polling-delay-passive = <0>; /* Interrupt driven */
771 + polling-delay = <0>; /* Interrupt driven */
773 + thermal-sensors = <&CP11X_LABEL(thermal) 0>;
776 + CP11X_LABEL(crit): crit {
777 + temperature = <100000>; /* mC degrees */
778 + hysteresis = <2000>; /* mC degrees */
789 + #address-cells = <2>;
791 + compatible = "simple-bus";
792 + interrupt-parent = <&CP11X_LABEL(icu_nsr)>;
795 + config-space@CP11X_BASE {
796 + #address-cells = <1>;
798 + compatible = "simple-bus";
799 + ranges = <0x0 0x0 ADDRESSIFY(CP11X_BASE) 0x2000000>;
801 + CP11X_LABEL(ethernet): ethernet@0 {
802 + compatible = "marvell,armada-7k-pp22";
803 + reg = <0x0 0x100000>, <0x129000 0xb000>;
804 + clocks = <&CP11X_LABEL(clk) 1 3>, <&CP11X_LABEL(clk) 1 9>,
805 + <&CP11X_LABEL(clk) 1 5>, <&CP11X_LABEL(clk) 1 6>,
806 + <&CP11X_LABEL(clk) 1 18>;
807 + clock-names = "pp_clk", "gop_clk",
808 + "mg_clk", "mg_core_clk", "axi_clk";
809 + marvell,system-controller = <&CP11X_LABEL(syscon0)>;
810 + status = "disabled";
813 + CP11X_LABEL(eth0): eth0 {
814 + interrupts = <39 IRQ_TYPE_LEVEL_HIGH>,
815 + <43 IRQ_TYPE_LEVEL_HIGH>,
816 + <47 IRQ_TYPE_LEVEL_HIGH>,
817 + <51 IRQ_TYPE_LEVEL_HIGH>,
818 + <55 IRQ_TYPE_LEVEL_HIGH>,
819 + <59 IRQ_TYPE_LEVEL_HIGH>,
820 + <63 IRQ_TYPE_LEVEL_HIGH>,
821 + <67 IRQ_TYPE_LEVEL_HIGH>,
822 + <71 IRQ_TYPE_LEVEL_HIGH>,
823 + <129 IRQ_TYPE_LEVEL_HIGH>;
824 + interrupt-names = "hif0", "hif1", "hif2",
825 + "hif3", "hif4", "hif5", "hif6", "hif7",
829 + status = "disabled";
832 + CP11X_LABEL(eth1): eth1 {
833 + interrupts = <40 IRQ_TYPE_LEVEL_HIGH>,
834 + <44 IRQ_TYPE_LEVEL_HIGH>,
835 + <48 IRQ_TYPE_LEVEL_HIGH>,
836 + <52 IRQ_TYPE_LEVEL_HIGH>,
837 + <56 IRQ_TYPE_LEVEL_HIGH>,
838 + <60 IRQ_TYPE_LEVEL_HIGH>,
839 + <64 IRQ_TYPE_LEVEL_HIGH>,
840 + <68 IRQ_TYPE_LEVEL_HIGH>,
841 + <72 IRQ_TYPE_LEVEL_HIGH>,
842 + <128 IRQ_TYPE_LEVEL_HIGH>;
843 + interrupt-names = "hif0", "hif1", "hif2",
844 + "hif3", "hif4", "hif5", "hif6", "hif7",
848 + status = "disabled";
851 + CP11X_LABEL(eth2): eth2 {
852 + interrupts = <41 IRQ_TYPE_LEVEL_HIGH>,
853 + <45 IRQ_TYPE_LEVEL_HIGH>,
854 + <49 IRQ_TYPE_LEVEL_HIGH>,
855 + <53 IRQ_TYPE_LEVEL_HIGH>,
856 + <57 IRQ_TYPE_LEVEL_HIGH>,
857 + <61 IRQ_TYPE_LEVEL_HIGH>,
858 + <65 IRQ_TYPE_LEVEL_HIGH>,
859 + <69 IRQ_TYPE_LEVEL_HIGH>,
860 + <73 IRQ_TYPE_LEVEL_HIGH>,
861 + <127 IRQ_TYPE_LEVEL_HIGH>;
862 + interrupt-names = "hif0", "hif1", "hif2",
863 + "hif3", "hif4", "hif5", "hif6", "hif7",
867 + status = "disabled";
871 + CP11X_LABEL(comphy): phy@120000 {
872 + compatible = "marvell,comphy-cp110";
873 + reg = <0x120000 0x6000>;
874 + marvell,system-controller = <&CP11X_LABEL(syscon0)>;
875 + clocks = <&CP11X_LABEL(clk) 1 5>, <&CP11X_LABEL(clk) 1 6>,
876 + <&CP11X_LABEL(clk) 1 18>;
877 + clock-names = "mg_clk", "mg_core_clk", "axi_clk";
878 + #address-cells = <1>;
881 + CP11X_LABEL(comphy0): phy@0 {
886 + CP11X_LABEL(comphy1): phy@1 {
891 + CP11X_LABEL(comphy2): phy@2 {
896 + CP11X_LABEL(comphy3): phy@3 {
901 + CP11X_LABEL(comphy4): phy@4 {
906 + CP11X_LABEL(comphy5): phy@5 {
912 + CP11X_LABEL(mdio): mdio@12a200 {
913 + #address-cells = <1>;
915 + compatible = "marvell,orion-mdio";
916 + reg = <0x12a200 0x10>;
917 + clocks = <&CP11X_LABEL(clk) 1 9>, <&CP11X_LABEL(clk) 1 5>,
918 + <&CP11X_LABEL(clk) 1 6>, <&CP11X_LABEL(clk) 1 18>;
919 + status = "disabled";
922 + CP11X_LABEL(xmdio): mdio@12a600 {
923 + #address-cells = <1>;
925 + compatible = "marvell,xmdio";
926 + reg = <0x12a600 0x10>;
927 + clocks = <&CP11X_LABEL(clk) 1 5>,
928 + <&CP11X_LABEL(clk) 1 6>, <&CP11X_LABEL(clk) 1 18>;
929 + status = "disabled";
932 + CP11X_LABEL(icu): interrupt-controller@1e0000 {
933 + compatible = "marvell,cp110-icu";
934 + reg = <0x1e0000 0x440>;
935 + #address-cells = <1>;
938 + CP11X_LABEL(icu_nsr): interrupt-controller@10 {
939 + compatible = "marvell,cp110-icu-nsr";
941 + #interrupt-cells = <2>;
942 + interrupt-controller;
943 + msi-parent = <&gicp>;
946 + CP11X_LABEL(icu_sei): interrupt-controller@50 {
947 + compatible = "marvell,cp110-icu-sei";
949 + #interrupt-cells = <2>;
950 + interrupt-controller;
951 + msi-parent = <&sei>;
955 + CP11X_LABEL(rtc): rtc@284000 {
956 + compatible = "marvell,armada-8k-rtc";
957 + reg = <0x284000 0x20>, <0x284080 0x24>;
958 + reg-names = "rtc", "rtc-soc";
959 + interrupts = <77 IRQ_TYPE_LEVEL_HIGH>;
962 + CP11X_LABEL(syscon0): system-controller@440000 {
963 + compatible = "syscon", "simple-mfd";
964 + reg = <0x440000 0x2000>;
966 + CP11X_LABEL(clk): clock {
967 + compatible = "marvell,cp110-clock";
968 + #clock-cells = <2>;
971 + CP11X_LABEL(gpio1): gpio@100 {
972 + compatible = "marvell,armada-8k-gpio";
977 + gpio-ranges = <&CP11X_LABEL(pinctrl) 0 0 32>;
978 + interrupt-controller;
979 + interrupts = <86 IRQ_TYPE_LEVEL_HIGH>,
980 + <85 IRQ_TYPE_LEVEL_HIGH>,
981 + <84 IRQ_TYPE_LEVEL_HIGH>,
982 + <83 IRQ_TYPE_LEVEL_HIGH>;
983 + #interrupt-cells = <2>;
984 + status = "disabled";
987 + CP11X_LABEL(gpio2): gpio@140 {
988 + compatible = "marvell,armada-8k-gpio";
993 + gpio-ranges = <&CP11X_LABEL(pinctrl) 0 32 31>;
994 + interrupt-controller;
995 + interrupts = <82 IRQ_TYPE_LEVEL_HIGH>,
996 + <81 IRQ_TYPE_LEVEL_HIGH>,
997 + <80 IRQ_TYPE_LEVEL_HIGH>,
998 + <79 IRQ_TYPE_LEVEL_HIGH>;
999 + #interrupt-cells = <2>;
1000 + status = "disabled";
1004 + CP11X_LABEL(syscon1): system-controller@400000 {
1005 + compatible = "syscon", "simple-mfd";
1006 + reg = <0x400000 0x1000>;
1007 + #address-cells = <1>;
1008 + #size-cells = <1>;
1010 + CP11X_LABEL(thermal): thermal-sensor@70 {
1011 + compatible = "marvell,armada-cp110-thermal";
1012 + reg = <0x70 0x10>;
1013 + interrupts-extended =
1014 + <&CP11X_LABEL(icu_sei) 116 IRQ_TYPE_LEVEL_HIGH>;
1015 + #thermal-sensor-cells = <1>;
1019 + CP11X_LABEL(usb3_0): usb3@500000 {
1020 + compatible = "marvell,armada-8k-xhci",
1022 + reg = <0x500000 0x4000>;
1024 + interrupts = <106 IRQ_TYPE_LEVEL_HIGH>;
1025 + clock-names = "core", "reg";
1026 + clocks = <&CP11X_LABEL(clk) 1 22>,
1027 + <&CP11X_LABEL(clk) 1 16>;
1028 + status = "disabled";
1031 + CP11X_LABEL(usb3_1): usb3@510000 {
1032 + compatible = "marvell,armada-8k-xhci",
1034 + reg = <0x510000 0x4000>;
1036 + interrupts = <105 IRQ_TYPE_LEVEL_HIGH>;
1037 + clock-names = "core", "reg";
1038 + clocks = <&CP11X_LABEL(clk) 1 23>,
1039 + <&CP11X_LABEL(clk) 1 16>;
1040 + status = "disabled";
1043 + CP11X_LABEL(sata0): sata@540000 {
1044 + compatible = "marvell,armada-8k-ahci",
1046 + reg = <0x540000 0x30000>;
1048 + interrupts = <107 IRQ_TYPE_LEVEL_HIGH>;
1049 + clocks = <&CP11X_LABEL(clk) 1 15>,
1050 + <&CP11X_LABEL(clk) 1 16>;
1051 + #address-cells = <1>;
1052 + #size-cells = <0>;
1053 + status = "disabled";
1064 + CP11X_LABEL(xor0): xor@6a0000 {
1065 + compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
1066 + reg = <0x6a0000 0x1000>, <0x6b0000 0x1000>;
1068 + msi-parent = <&gic_v2m0>;
1069 + clock-names = "core", "reg";
1070 + clocks = <&CP11X_LABEL(clk) 1 8>,
1071 + <&CP11X_LABEL(clk) 1 14>;
1074 + CP11X_LABEL(xor1): xor@6c0000 {
1075 + compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
1076 + reg = <0x6c0000 0x1000>, <0x6d0000 0x1000>;
1078 + msi-parent = <&gic_v2m0>;
1079 + clock-names = "core", "reg";
1080 + clocks = <&CP11X_LABEL(clk) 1 7>,
1081 + <&CP11X_LABEL(clk) 1 14>;
1084 + CP11X_LABEL(spi0): spi@700600 {
1085 + compatible = "marvell,armada-380-spi";
1086 + reg = <0x700600 0x50>;
1087 + #address-cells = <0x1>;
1088 + #size-cells = <0x0>;
1089 + clock-names = "core", "axi";
1090 + clocks = <&CP11X_LABEL(clk) 1 21>,
1091 + <&CP11X_LABEL(clk) 1 17>;
1092 + status = "disabled";
1095 + CP11X_LABEL(spi1): spi@700680 {
1096 + compatible = "marvell,armada-380-spi";
1097 + reg = <0x700680 0x50>;
1098 + #address-cells = <1>;
1099 + #size-cells = <0>;
1100 + clock-names = "core", "axi";
1101 + clocks = <&CP11X_LABEL(clk) 1 21>,
1102 + <&CP11X_LABEL(clk) 1 17>;
1103 + status = "disabled";
1106 + CP11X_LABEL(i2c0): i2c@701000 {
1107 + compatible = "marvell,mv78230-i2c";
1108 + reg = <0x701000 0x20>;
1109 + #address-cells = <1>;
1110 + #size-cells = <0>;
1111 + interrupts = <120 IRQ_TYPE_LEVEL_HIGH>;
1112 + clock-names = "core", "reg";
1113 + clocks = <&CP11X_LABEL(clk) 1 21>,
1114 + <&CP11X_LABEL(clk) 1 17>;
1115 + status = "disabled";
1118 + CP11X_LABEL(i2c1): i2c@701100 {
1119 + compatible = "marvell,mv78230-i2c";
1120 + reg = <0x701100 0x20>;
1121 + #address-cells = <1>;
1122 + #size-cells = <0>;
1123 + interrupts = <121 IRQ_TYPE_LEVEL_HIGH>;
1124 + clock-names = "core", "reg";
1125 + clocks = <&CP11X_LABEL(clk) 1 21>,
1126 + <&CP11X_LABEL(clk) 1 17>;
1127 + status = "disabled";
1130 + CP11X_LABEL(uart0): serial@702000 {
1131 + compatible = "snps,dw-apb-uart";
1132 + reg = <0x702000 0x100>;
1134 + interrupts = <122 IRQ_TYPE_LEVEL_HIGH>;
1135 + reg-io-width = <1>;
1136 + clock-names = "baudclk", "apb_pclk";
1137 + clocks = <&CP11X_LABEL(clk) 1 21>,
1138 + <&CP11X_LABEL(clk) 1 17>;
1139 + status = "disabled";
1142 + CP11X_LABEL(uart1): serial@702100 {
1143 + compatible = "snps,dw-apb-uart";
1144 + reg = <0x702100 0x100>;
1146 + interrupts = <123 IRQ_TYPE_LEVEL_HIGH>;
1147 + reg-io-width = <1>;
1148 + clock-names = "baudclk", "apb_pclk";
1149 + clocks = <&CP11X_LABEL(clk) 1 21>,
1150 + <&CP11X_LABEL(clk) 1 17>;
1151 + status = "disabled";
1154 + CP11X_LABEL(uart2): serial@702200 {
1155 + compatible = "snps,dw-apb-uart";
1156 + reg = <0x702200 0x100>;
1158 + interrupts = <124 IRQ_TYPE_LEVEL_HIGH>;
1159 + reg-io-width = <1>;
1160 + clock-names = "baudclk", "apb_pclk";
1161 + clocks = <&CP11X_LABEL(clk) 1 21>,
1162 + <&CP11X_LABEL(clk) 1 17>;
1163 + status = "disabled";
1166 + CP11X_LABEL(uart3): serial@702300 {
1167 + compatible = "snps,dw-apb-uart";
1168 + reg = <0x702300 0x100>;
1170 + interrupts = <125 IRQ_TYPE_LEVEL_HIGH>;
1171 + reg-io-width = <1>;
1172 + clock-names = "baudclk", "apb_pclk";
1173 + clocks = <&CP11X_LABEL(clk) 1 21>,
1174 + <&CP11X_LABEL(clk) 1 17>;
1175 + status = "disabled";
1178 + CP11X_LABEL(nand_controller): nand@720000 {
1180 + * Due to the limitation of the pins available
1181 + * this controller is only usable on the CPM
1182 + * for A7K and on the CPS for A8K.
1184 + compatible = "marvell,armada-8k-nand-controller",
1185 + "marvell,armada370-nand-controller";
1186 + reg = <0x720000 0x54>;
1187 + #address-cells = <1>;
1188 + #size-cells = <0>;
1189 + interrupts = <115 IRQ_TYPE_LEVEL_HIGH>;
1190 + clock-names = "core", "reg";
1191 + clocks = <&CP11X_LABEL(clk) 1 2>,
1192 + <&CP11X_LABEL(clk) 1 17>;
1193 + marvell,system-controller = <&CP11X_LABEL(syscon0)>;
1194 + status = "disabled";
1197 + CP11X_LABEL(trng): trng@760000 {
1198 + compatible = "marvell,armada-8k-rng",
1199 + "inside-secure,safexcel-eip76";
1200 + reg = <0x760000 0x7d>;
1201 + interrupts = <95 IRQ_TYPE_LEVEL_HIGH>;
1202 + clock-names = "core", "reg";
1203 + clocks = <&CP11X_LABEL(clk) 1 25>,
1204 + <&CP11X_LABEL(clk) 1 17>;
1208 + CP11X_LABEL(sdhci0): sdhci@780000 {
1209 + compatible = "marvell,armada-cp110-sdhci";
1210 + reg = <0x780000 0x300>;
1211 + interrupts = <27 IRQ_TYPE_LEVEL_HIGH>;
1212 + clock-names = "core", "axi";
1213 + clocks = <&CP11X_LABEL(clk) 1 4>, <&CP11X_LABEL(clk) 1 18>;
1215 + status = "disabled";
1218 + CP11X_LABEL(crypto): crypto@800000 {
1219 + compatible = "inside-secure,safexcel-eip197b";
1220 + reg = <0x800000 0x200000>;
1221 + interrupts = <87 IRQ_TYPE_LEVEL_HIGH>,
1222 + <88 IRQ_TYPE_LEVEL_HIGH>,
1223 + <89 IRQ_TYPE_LEVEL_HIGH>,
1224 + <90 IRQ_TYPE_LEVEL_HIGH>,
1225 + <91 IRQ_TYPE_LEVEL_HIGH>,
1226 + <92 IRQ_TYPE_LEVEL_HIGH>;
1227 + interrupt-names = "mem", "ring0", "ring1",
1228 + "ring2", "ring3", "eip";
1229 + clock-names = "core", "reg";
1230 + clocks = <&CP11X_LABEL(clk) 1 26>,
1231 + <&CP11X_LABEL(clk) 1 17>;
1236 + CP11X_LABEL(pcie0): pcie@CP11X_PCIE0_BASE {
1237 + compatible = "marvell,armada8k-pcie", "snps,dw-pcie";
1238 + reg = <0 ADDRESSIFY(CP11X_PCIE0_BASE) 0 0x10000>,
1239 + <0 CP11X_PCIEx_CONF_BASE(0) 0 0x80000>;
1240 + reg-names = "ctrl", "config";
1241 + #address-cells = <3>;
1242 + #size-cells = <2>;
1243 + #interrupt-cells = <1>;
1244 + device_type = "pci";
1246 + msi-parent = <&gic_v2m0>;
1248 + bus-range = <0 0xff>;
1250 + /* downstream I/O */
1251 + <0x81000000 0 CP11X_PCIEx_IO_BASE(0) 0 CP11X_PCIEx_IO_BASE(0) 0 0x10000
1252 + /* non-prefetchable memory */
1253 + 0x82000000 0 CP11X_PCIEx_MEM_BASE(0) 0 CP11X_PCIEx_MEM_BASE(0) 0 0xf00000>;
1254 + interrupt-map-mask = <0 0 0 0>;
1255 + interrupt-map = <0 0 0 0 &CP11X_LABEL(icu_nsr) 22 IRQ_TYPE_LEVEL_HIGH>;
1256 + interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
1258 + clock-names = "core", "reg";
1259 + clocks = <&CP11X_LABEL(clk) 1 13>, <&CP11X_LABEL(clk) 1 14>;
1260 + status = "disabled";
1263 + CP11X_LABEL(pcie1): pcie@CP11X_PCIE1_BASE {
1264 + compatible = "marvell,armada8k-pcie", "snps,dw-pcie";
1265 + reg = <0 ADDRESSIFY(CP11X_PCIE1_BASE) 0 0x10000>,
1266 + <0 CP11X_PCIEx_CONF_BASE(1) 0 0x80000>;
1267 + reg-names = "ctrl", "config";
1268 + #address-cells = <3>;
1269 + #size-cells = <2>;
1270 + #interrupt-cells = <1>;
1271 + device_type = "pci";
1273 + msi-parent = <&gic_v2m0>;
1275 + bus-range = <0 0xff>;
1277 + /* downstream I/O */
1278 + <0x81000000 0 CP11X_PCIEx_IO_BASE(1) 0 CP11X_PCIEx_IO_BASE(1) 0 0x10000
1279 + /* non-prefetchable memory */
1280 + 0x82000000 0 CP11X_PCIEx_MEM_BASE(1) 0 CP11X_PCIEx_MEM_BASE(1) 0 0xf00000>;
1281 + interrupt-map-mask = <0 0 0 0>;
1282 + interrupt-map = <0 0 0 0 &CP11X_LABEL(icu_nsr) 24 IRQ_TYPE_LEVEL_HIGH>;
1283 + interrupts = <24 IRQ_TYPE_LEVEL_HIGH>;
1286 + clock-names = "core", "reg";
1287 + clocks = <&CP11X_LABEL(clk) 1 11>, <&CP11X_LABEL(clk) 1 14>;
1288 + status = "disabled";
1291 + CP11X_LABEL(pcie2): pcie@CP11X_PCIE2_BASE {
1292 + compatible = "marvell,armada8k-pcie", "snps,dw-pcie";
1293 + reg = <0 ADDRESSIFY(CP11X_PCIE2_BASE) 0 0x10000>,
1294 + <0 CP11X_PCIEx_CONF_BASE(2) 0 0x80000>;
1295 + reg-names = "ctrl", "config";
1296 + #address-cells = <3>;
1297 + #size-cells = <2>;
1298 + #interrupt-cells = <1>;
1299 + device_type = "pci";
1301 + msi-parent = <&gic_v2m0>;
1303 + bus-range = <0 0xff>;
1305 + /* downstream I/O */
1306 + <0x81000000 0 CP11X_PCIEx_IO_BASE(2) 0 CP11X_PCIEx_IO_BASE(2) 0 0x10000
1307 + /* non-prefetchable memory */
1308 + 0x82000000 0 CP11X_PCIEx_MEM_BASE(2) 0 CP11X_PCIEx_MEM_BASE(2) 0 0xf00000>;
1309 + interrupt-map-mask = <0 0 0 0>;
1310 + interrupt-map = <0 0 0 0 &CP11X_LABEL(icu_nsr) 23 IRQ_TYPE_LEVEL_HIGH>;
1311 + interrupts = <23 IRQ_TYPE_LEVEL_HIGH>;
1314 + clock-names = "core", "reg";
1315 + clocks = <&CP11X_LABEL(clk) 1 12>, <&CP11X_LABEL(clk) 1 14>;
1316 + status = "disabled";