1 // SPDX-License-Identifier: (GPL-2.0+ OR X11)
3 * Copyright (C) 2016 Marvell Technology Group Ltd.
7 * Device Tree file for Marvell Armada CP110.
10 #include <dt-bindings/interrupt-controller/mvebu-icu.h>
12 #include "armada-common.dtsi"
14 #define CP110_PCIEx_IO_BASE(iface) (CP110_PCIE_IO_BASE + (iface * 0x10000))
15 #define CP110_PCIEx_MEM_BASE(iface) (CP110_PCIE_MEM_BASE + (iface * 0x1000000))
16 #define CP110_PCIEx_CONF_BASE(iface) (CP110_PCIEx_MEM_BASE(iface) + 0xf00000)
20 * The contents of the node are defined below, in order to
21 * save one indentation level
23 CP110_NAME: CP110_NAME { };
29 compatible = "simple-bus";
30 interrupt-parent = <&CP110_LABEL(icu)>;
33 config-space@CP110_BASE {
36 compatible = "simple-bus";
37 ranges = <0x0 0x0 ADDRESSIFY(CP110_BASE) 0x2000000>;
39 CP110_LABEL(ethernet): ethernet@0 {
40 compatible = "marvell,armada-7k-pp22";
41 reg = <0x0 0x100000>, <0x129000 0xb000>;
42 clocks = <&CP110_LABEL(clk) 1 3>, <&CP110_LABEL(clk) 1 9>,
43 <&CP110_LABEL(clk) 1 5>, <&CP110_LABEL(clk) 1 18>;
44 clock-names = "pp_clk", "gop_clk",
46 marvell,system-controller = <&CP110_LABEL(syscon0)>;
50 CP110_LABEL(eth0): eth0 {
51 interrupts = <ICU_GRP_NSR 39 IRQ_TYPE_LEVEL_HIGH>,
52 <ICU_GRP_NSR 43 IRQ_TYPE_LEVEL_HIGH>,
53 <ICU_GRP_NSR 47 IRQ_TYPE_LEVEL_HIGH>,
54 <ICU_GRP_NSR 51 IRQ_TYPE_LEVEL_HIGH>,
55 <ICU_GRP_NSR 55 IRQ_TYPE_LEVEL_HIGH>,
56 <ICU_GRP_NSR 129 IRQ_TYPE_LEVEL_HIGH>;
57 interrupt-names = "tx-cpu0", "tx-cpu1", "tx-cpu2",
58 "tx-cpu3", "rx-shared", "link";
64 CP110_LABEL(eth1): eth1 {
65 interrupts = <ICU_GRP_NSR 40 IRQ_TYPE_LEVEL_HIGH>,
66 <ICU_GRP_NSR 44 IRQ_TYPE_LEVEL_HIGH>,
67 <ICU_GRP_NSR 48 IRQ_TYPE_LEVEL_HIGH>,
68 <ICU_GRP_NSR 52 IRQ_TYPE_LEVEL_HIGH>,
69 <ICU_GRP_NSR 56 IRQ_TYPE_LEVEL_HIGH>,
70 <ICU_GRP_NSR 128 IRQ_TYPE_LEVEL_HIGH>;
71 interrupt-names = "tx-cpu0", "tx-cpu1", "tx-cpu2",
72 "tx-cpu3", "rx-shared", "link";
78 CP110_LABEL(eth2): eth2 {
79 interrupts = <ICU_GRP_NSR 41 IRQ_TYPE_LEVEL_HIGH>,
80 <ICU_GRP_NSR 45 IRQ_TYPE_LEVEL_HIGH>,
81 <ICU_GRP_NSR 49 IRQ_TYPE_LEVEL_HIGH>,
82 <ICU_GRP_NSR 53 IRQ_TYPE_LEVEL_HIGH>,
83 <ICU_GRP_NSR 57 IRQ_TYPE_LEVEL_HIGH>,
84 <ICU_GRP_NSR 127 IRQ_TYPE_LEVEL_HIGH>;
85 interrupt-names = "tx-cpu0", "tx-cpu1", "tx-cpu2",
86 "tx-cpu3", "rx-shared", "link";
93 CP110_LABEL(comphy): phy@120000 {
94 compatible = "marvell,comphy-cp110";
95 reg = <0x120000 0x6000>;
96 marvell,system-controller = <&CP110_LABEL(syscon0)>;
100 CP110_LABEL(comphy0): phy@0 {
105 CP110_LABEL(comphy1): phy@1 {
110 CP110_LABEL(comphy2): phy@2 {
115 CP110_LABEL(comphy3): phy@3 {
120 CP110_LABEL(comphy4): phy@4 {
125 CP110_LABEL(comphy5): phy@5 {
131 CP110_LABEL(mdio): mdio@12a200 {
132 #address-cells = <1>;
134 compatible = "marvell,orion-mdio";
135 reg = <0x12a200 0x10>;
136 clocks = <&CP110_LABEL(clk) 1 9>, <&CP110_LABEL(clk) 1 5>,
137 <&CP110_LABEL(clk) 1 6>, <&CP110_LABEL(clk) 1 18>;
141 CP110_LABEL(xmdio): mdio@12a600 {
142 #address-cells = <1>;
144 compatible = "marvell,xmdio";
145 reg = <0x12a600 0x10>;
149 CP110_LABEL(icu): interrupt-controller@1e0000 {
150 compatible = "marvell,cp110-icu";
151 reg = <0x1e0000 0x10>;
152 #interrupt-cells = <3>;
153 interrupt-controller;
154 msi-parent = <&gicp>;
157 CP110_LABEL(rtc): rtc@284000 {
158 compatible = "marvell,armada-8k-rtc";
159 reg = <0x284000 0x20>, <0x284080 0x24>;
160 reg-names = "rtc", "rtc-soc";
161 interrupts = <ICU_GRP_NSR 77 IRQ_TYPE_LEVEL_HIGH>;
164 CP110_LABEL(thermal): thermal@400078 {
165 compatible = "marvell,armada-cp110-thermal";
166 reg = <0x400078 0x4>,
170 CP110_LABEL(syscon0): system-controller@440000 {
171 compatible = "syscon", "simple-mfd";
172 reg = <0x440000 0x2000>;
174 CP110_LABEL(clk): clock {
175 compatible = "marvell,cp110-clock";
179 CP110_LABEL(gpio1): gpio@100 {
180 compatible = "marvell,armada-8k-gpio";
185 gpio-ranges = <&CP110_LABEL(pinctrl) 0 0 32>;
186 interrupt-controller;
187 interrupts = <ICU_GRP_NSR 86 IRQ_TYPE_LEVEL_HIGH>,
188 <ICU_GRP_NSR 85 IRQ_TYPE_LEVEL_HIGH>,
189 <ICU_GRP_NSR 84 IRQ_TYPE_LEVEL_HIGH>,
190 <ICU_GRP_NSR 83 IRQ_TYPE_LEVEL_HIGH>;
194 CP110_LABEL(gpio2): gpio@140 {
195 compatible = "marvell,armada-8k-gpio";
200 gpio-ranges = <&CP110_LABEL(pinctrl) 0 32 31>;
201 interrupt-controller;
202 interrupts = <ICU_GRP_NSR 82 IRQ_TYPE_LEVEL_HIGH>,
203 <ICU_GRP_NSR 81 IRQ_TYPE_LEVEL_HIGH>,
204 <ICU_GRP_NSR 80 IRQ_TYPE_LEVEL_HIGH>,
205 <ICU_GRP_NSR 79 IRQ_TYPE_LEVEL_HIGH>;
210 CP110_LABEL(usb3_0): usb3@500000 {
211 compatible = "marvell,armada-8k-xhci",
213 reg = <0x500000 0x4000>;
215 interrupts = <ICU_GRP_NSR 106 IRQ_TYPE_LEVEL_HIGH>;
216 clocks = <&CP110_LABEL(clk) 1 22>;
220 CP110_LABEL(usb3_1): usb3@510000 {
221 compatible = "marvell,armada-8k-xhci",
223 reg = <0x510000 0x4000>;
225 interrupts = <ICU_GRP_NSR 105 IRQ_TYPE_LEVEL_HIGH>;
226 clocks = <&CP110_LABEL(clk) 1 23>;
230 CP110_LABEL(sata0): sata@540000 {
231 compatible = "marvell,armada-8k-ahci",
233 reg = <0x540000 0x30000>;
234 interrupts = <ICU_GRP_NSR 107 IRQ_TYPE_LEVEL_HIGH>;
235 clocks = <&CP110_LABEL(clk) 1 15>;
239 CP110_LABEL(xor0): xor@6a0000 {
240 compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
241 reg = <0x6a0000 0x1000>, <0x6b0000 0x1000>;
243 msi-parent = <&gic_v2m0>;
244 clocks = <&CP110_LABEL(clk) 1 8>;
247 CP110_LABEL(xor1): xor@6c0000 {
248 compatible = "marvell,armada-7k-xor", "marvell,xor-v2";
249 reg = <0x6c0000 0x1000>, <0x6d0000 0x1000>;
251 msi-parent = <&gic_v2m0>;
252 clocks = <&CP110_LABEL(clk) 1 7>;
255 CP110_LABEL(spi0): spi@700600 {
256 compatible = "marvell,armada-380-spi";
257 reg = <0x700600 0x50>;
258 #address-cells = <0x1>;
260 clocks = <&CP110_LABEL(clk) 1 21>;
264 CP110_LABEL(spi1): spi@700680 {
265 compatible = "marvell,armada-380-spi";
266 reg = <0x700680 0x50>;
267 #address-cells = <1>;
269 clocks = <&CP110_LABEL(clk) 1 21>;
273 CP110_LABEL(i2c0): i2c@701000 {
274 compatible = "marvell,mv78230-i2c";
275 reg = <0x701000 0x20>;
276 #address-cells = <1>;
278 interrupts = <ICU_GRP_NSR 120 IRQ_TYPE_LEVEL_HIGH>;
279 clocks = <&CP110_LABEL(clk) 1 21>;
283 CP110_LABEL(i2c1): i2c@701100 {
284 compatible = "marvell,mv78230-i2c";
285 reg = <0x701100 0x20>;
286 #address-cells = <1>;
288 interrupts = <ICU_GRP_NSR 121 IRQ_TYPE_LEVEL_HIGH>;
289 clocks = <&CP110_LABEL(clk) 1 21>;
293 CP110_LABEL(nand): nand@720000 {
295 * Due to the limitation of the pins available
296 * this controller is only usable on the CPM
297 * for A7K and on the CPS for A8K.
299 compatible = "marvell,armada-8k-nand",
300 "marvell,armada370-nand";
301 reg = <0x720000 0x54>;
302 #address-cells = <1>;
304 interrupts = <ICU_GRP_NSR 115 IRQ_TYPE_LEVEL_HIGH>;
305 clocks = <&CP110_LABEL(clk) 1 2>;
306 marvell,system-controller = <&CP110_LABEL(syscon0)>;
310 CP110_LABEL(trng): trng@760000 {
311 compatible = "marvell,armada-8k-rng",
312 "inside-secure,safexcel-eip76";
313 reg = <0x760000 0x7d>;
314 interrupts = <ICU_GRP_NSR 95 IRQ_TYPE_LEVEL_HIGH>;
315 clocks = <&CP110_LABEL(clk) 1 25>;
319 CP110_LABEL(sdhci0): sdhci@780000 {
320 compatible = "marvell,armada-cp110-sdhci";
321 reg = <0x780000 0x300>;
322 interrupts = <ICU_GRP_NSR 27 IRQ_TYPE_LEVEL_HIGH>;
323 clock-names = "core", "axi";
324 clocks = <&CP110_LABEL(clk) 1 4>, <&CP110_LABEL(clk) 1 18>;
329 CP110_LABEL(crypto): crypto@800000 {
330 compatible = "inside-secure,safexcel-eip197";
331 reg = <0x800000 0x200000>;
332 interrupts = <ICU_GRP_NSR 87 IRQ_TYPE_LEVEL_HIGH>,
333 <ICU_GRP_NSR 88 IRQ_TYPE_LEVEL_HIGH>,
334 <ICU_GRP_NSR 89 IRQ_TYPE_LEVEL_HIGH>,
335 <ICU_GRP_NSR 90 IRQ_TYPE_LEVEL_HIGH>,
336 <ICU_GRP_NSR 91 IRQ_TYPE_LEVEL_HIGH>,
337 <ICU_GRP_NSR 92 IRQ_TYPE_LEVEL_HIGH>;
338 interrupt-names = "mem", "ring0", "ring1",
339 "ring2", "ring3", "eip";
340 clocks = <&CP110_LABEL(clk) 1 26>;
345 CP110_LABEL(pcie0): pcie@CP110_PCIE0_BASE {
346 compatible = "marvell,armada8k-pcie", "snps,dw-pcie";
347 reg = <0 ADDRESSIFY(CP110_PCIE0_BASE) 0 0x10000>,
348 <0 CP110_PCIEx_CONF_BASE(0) 0 0x80000>;
349 reg-names = "ctrl", "config";
350 #address-cells = <3>;
352 #interrupt-cells = <1>;
355 msi-parent = <&gic_v2m0>;
357 bus-range = <0 0xff>;
360 <0x81000000 0 CP110_PCIEx_IO_BASE(0) 0 CP110_PCIEx_IO_BASE(0) 0 0x10000
361 /* non-prefetchable memory */
362 0x82000000 0 CP110_PCIEx_MEM_BASE(0) 0 CP110_PCIEx_MEM_BASE(0) 0 0xf00000>;
363 interrupt-map-mask = <0 0 0 0>;
364 interrupt-map = <0 0 0 0 &CP110_LABEL(icu) ICU_GRP_NSR 22 IRQ_TYPE_LEVEL_HIGH>;
365 interrupts = <ICU_GRP_NSR 22 IRQ_TYPE_LEVEL_HIGH>;
367 clocks = <&CP110_LABEL(clk) 1 13>;
371 CP110_LABEL(pcie1): pcie@CP110_PCIE1_BASE {
372 compatible = "marvell,armada8k-pcie", "snps,dw-pcie";
373 reg = <0 ADDRESSIFY(CP110_PCIE1_BASE) 0 0x10000>,
374 <0 CP110_PCIEx_CONF_BASE(1) 0 0x80000>;
375 reg-names = "ctrl", "config";
376 #address-cells = <3>;
378 #interrupt-cells = <1>;
381 msi-parent = <&gic_v2m0>;
383 bus-range = <0 0xff>;
386 <0x81000000 0 CP110_PCIEx_IO_BASE(1) 0 CP110_PCIEx_IO_BASE(1) 0 0x10000
387 /* non-prefetchable memory */
388 0x82000000 0 CP110_PCIEx_MEM_BASE(1) 0 CP110_PCIEx_MEM_BASE(1) 0 0xf00000>;
389 interrupt-map-mask = <0 0 0 0>;
390 interrupt-map = <0 0 0 0 &CP110_LABEL(icu) ICU_GRP_NSR 24 IRQ_TYPE_LEVEL_HIGH>;
391 interrupts = <ICU_GRP_NSR 24 IRQ_TYPE_LEVEL_HIGH>;
394 clocks = <&CP110_LABEL(clk) 1 11>;
398 CP110_LABEL(pcie2): pcie@CP110_PCIE2_BASE {
399 compatible = "marvell,armada8k-pcie", "snps,dw-pcie";
400 reg = <0 ADDRESSIFY(CP110_PCIE2_BASE) 0 0x10000>,
401 <0 CP110_PCIEx_CONF_BASE(2) 0 0x80000>;
402 reg-names = "ctrl", "config";
403 #address-cells = <3>;
405 #interrupt-cells = <1>;
408 msi-parent = <&gic_v2m0>;
410 bus-range = <0 0xff>;
413 <0x81000000 0 CP110_PCIEx_IO_BASE(2) 0 CP110_PCIEx_IO_BASE(2) 0 0x10000
414 /* non-prefetchable memory */
415 0x82000000 0 CP110_PCIEx_MEM_BASE(2) 0 CP110_PCIEx_MEM_BASE(2) 0 0xf00000>;
416 interrupt-map-mask = <0 0 0 0>;
417 interrupt-map = <0 0 0 0 &CP110_LABEL(icu) ICU_GRP_NSR 23 IRQ_TYPE_LEVEL_HIGH>;
418 interrupts = <ICU_GRP_NSR 23 IRQ_TYPE_LEVEL_HIGH>;
421 clocks = <&CP110_LABEL(clk) 1 12>;