blob: 6fbd0ce215ff90075a771242a5b0b985cd942891 [file] [log] [blame]
Chris Packham3c265bb2019-02-16 11:48:58 +13001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
Stefan Roese39a230a2015-08-31 07:33:57 +02002/*
3 * Device Tree Include file for Marvell Armada XP family SoC
4 *
5 * Copyright (C) 2012 Marvell
6 *
7 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 *
Stefan Roese39a230a2015-08-31 07:33:57 +02009 * Contains definitions specific to the Armada XP MV78460 SoC that are not
10 * common to all Armada XP SoCs.
11 */
12
13#include "armada-xp.dtsi"
14
15/ {
16 model = "Marvell Armada XP MV78460 SoC";
17 compatible = "marvell,armadaxp-mv78460", "marvell,armadaxp", "marvell,armada-370-xp";
18
19 aliases {
20 gpio0 = &gpio0;
21 gpio1 = &gpio1;
22 gpio2 = &gpio2;
23 };
24
25
26 cpus {
27 #address-cells = <1>;
28 #size-cells = <0>;
29 enable-method = "marvell,armada-xp-smp";
30
31 cpu@0 {
32 device_type = "cpu";
33 compatible = "marvell,sheeva-v7";
34 reg = <0>;
35 clocks = <&cpuclk 0>;
36 clock-latency = <1000000>;
37 };
38
39 cpu@1 {
40 device_type = "cpu";
41 compatible = "marvell,sheeva-v7";
42 reg = <1>;
43 clocks = <&cpuclk 1>;
44 clock-latency = <1000000>;
45 };
46
47 cpu@2 {
48 device_type = "cpu";
49 compatible = "marvell,sheeva-v7";
50 reg = <2>;
51 clocks = <&cpuclk 2>;
52 clock-latency = <1000000>;
53 };
54
55 cpu@3 {
56 device_type = "cpu";
57 compatible = "marvell,sheeva-v7";
58 reg = <3>;
59 clocks = <&cpuclk 3>;
60 clock-latency = <1000000>;
61 };
62 };
63
64 soc {
65 /*
66 * MV78460 has 4 PCIe units Gen2.0: Two units can be
67 * configured as x4 or quad x1 lanes. Two units are
68 * x4/x1.
69 */
Stefan Roese6f139be2019-01-25 11:52:44 +010070 pciec: pcie@82000000 {
Stefan Roese39a230a2015-08-31 07:33:57 +020071 compatible = "marvell,armada-xp-pcie";
72 status = "disabled";
73 device_type = "pci";
74
75 #address-cells = <3>;
76 #size-cells = <2>;
77
78 msi-parent = <&mpic>;
79 bus-range = <0x00 0xff>;
80
81 ranges =
82 <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000 /* Port 0.0 registers */
83 0x82000000 0 0x42000 MBUS_ID(0xf0, 0x01) 0x42000 0 0x00002000 /* Port 2.0 registers */
84 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000 /* Port 0.1 registers */
85 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000 /* Port 0.2 registers */
86 0x82000000 0 0x4c000 MBUS_ID(0xf0, 0x01) 0x4c000 0 0x00002000 /* Port 0.3 registers */
87 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000 /* Port 1.0 registers */
88 0x82000000 0 0x82000 MBUS_ID(0xf0, 0x01) 0x82000 0 0x00002000 /* Port 3.0 registers */
89 0x82000000 0 0x84000 MBUS_ID(0xf0, 0x01) 0x84000 0 0x00002000 /* Port 1.1 registers */
90 0x82000000 0 0x88000 MBUS_ID(0xf0, 0x01) 0x88000 0 0x00002000 /* Port 1.2 registers */
91 0x82000000 0 0x8c000 MBUS_ID(0xf0, 0x01) 0x8c000 0 0x00002000 /* Port 1.3 registers */
92 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
93 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */
94 0x82000000 0x2 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */
95 0x81000000 0x2 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO */
96 0x82000000 0x3 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */
97 0x81000000 0x3 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO */
98 0x82000000 0x4 0 MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */
99 0x81000000 0x4 0 MBUS_ID(0x04, 0x70) 0 1 0 /* Port 0.3 IO */
100
101 0x82000000 0x5 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
102 0x81000000 0x5 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */
103 0x82000000 0x6 0 MBUS_ID(0x08, 0xd8) 0 1 0 /* Port 1.1 MEM */
104 0x81000000 0x6 0 MBUS_ID(0x08, 0xd0) 0 1 0 /* Port 1.1 IO */
105 0x82000000 0x7 0 MBUS_ID(0x08, 0xb8) 0 1 0 /* Port 1.2 MEM */
106 0x81000000 0x7 0 MBUS_ID(0x08, 0xb0) 0 1 0 /* Port 1.2 IO */
107 0x82000000 0x8 0 MBUS_ID(0x08, 0x78) 0 1 0 /* Port 1.3 MEM */
108 0x81000000 0x8 0 MBUS_ID(0x08, 0x70) 0 1 0 /* Port 1.3 IO */
109
110 0x82000000 0x9 0 MBUS_ID(0x04, 0xf8) 0 1 0 /* Port 2.0 MEM */
111 0x81000000 0x9 0 MBUS_ID(0x04, 0xf0) 0 1 0 /* Port 2.0 IO */
112
113 0x82000000 0xa 0 MBUS_ID(0x08, 0xf8) 0 1 0 /* Port 3.0 MEM */
114 0x81000000 0xa 0 MBUS_ID(0x08, 0xf0) 0 1 0 /* Port 3.0 IO */>;
115
Stefan Roese6f139be2019-01-25 11:52:44 +0100116 pcie1: pcie@1,0 {
Stefan Roese39a230a2015-08-31 07:33:57 +0200117 device_type = "pci";
118 assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
119 reg = <0x0800 0 0 0 0>;
120 #address-cells = <3>;
121 #size-cells = <2>;
122 #interrupt-cells = <1>;
123 ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
124 0x81000000 0 0 0x81000000 0x1 0 1 0>;
Stefan Roese6f139be2019-01-25 11:52:44 +0100125 bus-range = <0x00 0xff>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200126 interrupt-map-mask = <0 0 0 0>;
127 interrupt-map = <0 0 0 0 &mpic 58>;
128 marvell,pcie-port = <0>;
129 marvell,pcie-lane = <0>;
130 clocks = <&gateclk 5>;
Pali Rohár94c30f92021-12-21 12:20:19 +0100131 resets = <&systemc 0 0>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200132 status = "disabled";
133 };
134
Stefan Roese6f139be2019-01-25 11:52:44 +0100135 pcie2: pcie@2,0 {
Stefan Roese39a230a2015-08-31 07:33:57 +0200136 device_type = "pci";
137 assigned-addresses = <0x82001000 0 0x44000 0 0x2000>;
138 reg = <0x1000 0 0 0 0>;
139 #address-cells = <3>;
140 #size-cells = <2>;
141 #interrupt-cells = <1>;
142 ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
143 0x81000000 0 0 0x81000000 0x2 0 1 0>;
Stefan Roese6f139be2019-01-25 11:52:44 +0100144 bus-range = <0x00 0xff>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200145 interrupt-map-mask = <0 0 0 0>;
146 interrupt-map = <0 0 0 0 &mpic 59>;
147 marvell,pcie-port = <0>;
148 marvell,pcie-lane = <1>;
149 clocks = <&gateclk 6>;
Pali Rohár94c30f92021-12-21 12:20:19 +0100150 resets = <&systemc 0 0>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200151 status = "disabled";
152 };
153
Stefan Roese6f139be2019-01-25 11:52:44 +0100154 pcie3: pcie@3,0 {
Stefan Roese39a230a2015-08-31 07:33:57 +0200155 device_type = "pci";
156 assigned-addresses = <0x82001800 0 0x48000 0 0x2000>;
157 reg = <0x1800 0 0 0 0>;
158 #address-cells = <3>;
159 #size-cells = <2>;
160 #interrupt-cells = <1>;
161 ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
162 0x81000000 0 0 0x81000000 0x3 0 1 0>;
Stefan Roese6f139be2019-01-25 11:52:44 +0100163 bus-range = <0x00 0xff>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200164 interrupt-map-mask = <0 0 0 0>;
165 interrupt-map = <0 0 0 0 &mpic 60>;
166 marvell,pcie-port = <0>;
167 marvell,pcie-lane = <2>;
168 clocks = <&gateclk 7>;
Pali Rohár94c30f92021-12-21 12:20:19 +0100169 resets = <&systemc 0 0>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200170 status = "disabled";
171 };
172
Stefan Roese6f139be2019-01-25 11:52:44 +0100173 pcie4: pcie@4,0 {
Stefan Roese39a230a2015-08-31 07:33:57 +0200174 device_type = "pci";
175 assigned-addresses = <0x82002000 0 0x4c000 0 0x2000>;
176 reg = <0x2000 0 0 0 0>;
177 #address-cells = <3>;
178 #size-cells = <2>;
179 #interrupt-cells = <1>;
180 ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
181 0x81000000 0 0 0x81000000 0x4 0 1 0>;
Stefan Roese6f139be2019-01-25 11:52:44 +0100182 bus-range = <0x00 0xff>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200183 interrupt-map-mask = <0 0 0 0>;
184 interrupt-map = <0 0 0 0 &mpic 61>;
185 marvell,pcie-port = <0>;
186 marvell,pcie-lane = <3>;
187 clocks = <&gateclk 8>;
Pali Rohár94c30f92021-12-21 12:20:19 +0100188 resets = <&systemc 0 0>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200189 status = "disabled";
190 };
191
Stefan Roese6f139be2019-01-25 11:52:44 +0100192 pcie5: pcie@5,0 {
Stefan Roese39a230a2015-08-31 07:33:57 +0200193 device_type = "pci";
194 assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
195 reg = <0x2800 0 0 0 0>;
196 #address-cells = <3>;
197 #size-cells = <2>;
198 #interrupt-cells = <1>;
199 ranges = <0x82000000 0 0 0x82000000 0x5 0 1 0
200 0x81000000 0 0 0x81000000 0x5 0 1 0>;
Stefan Roese6f139be2019-01-25 11:52:44 +0100201 bus-range = <0x00 0xff>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200202 interrupt-map-mask = <0 0 0 0>;
203 interrupt-map = <0 0 0 0 &mpic 62>;
204 marvell,pcie-port = <1>;
205 marvell,pcie-lane = <0>;
206 clocks = <&gateclk 9>;
Pali Rohár94c30f92021-12-21 12:20:19 +0100207 resets = <&systemc 0 1>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200208 status = "disabled";
209 };
210
Stefan Roese6f139be2019-01-25 11:52:44 +0100211 pcie6: pcie@6,0 {
Stefan Roese39a230a2015-08-31 07:33:57 +0200212 device_type = "pci";
213 assigned-addresses = <0x82003000 0 0x84000 0 0x2000>;
214 reg = <0x3000 0 0 0 0>;
215 #address-cells = <3>;
216 #size-cells = <2>;
217 #interrupt-cells = <1>;
218 ranges = <0x82000000 0 0 0x82000000 0x6 0 1 0
219 0x81000000 0 0 0x81000000 0x6 0 1 0>;
Stefan Roese6f139be2019-01-25 11:52:44 +0100220 bus-range = <0x00 0xff>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200221 interrupt-map-mask = <0 0 0 0>;
222 interrupt-map = <0 0 0 0 &mpic 63>;
223 marvell,pcie-port = <1>;
224 marvell,pcie-lane = <1>;
225 clocks = <&gateclk 10>;
Pali Rohár94c30f92021-12-21 12:20:19 +0100226 resets = <&systemc 0 1>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200227 status = "disabled";
228 };
229
Stefan Roese6f139be2019-01-25 11:52:44 +0100230 pcie7: pcie@7,0 {
Stefan Roese39a230a2015-08-31 07:33:57 +0200231 device_type = "pci";
232 assigned-addresses = <0x82003800 0 0x88000 0 0x2000>;
233 reg = <0x3800 0 0 0 0>;
234 #address-cells = <3>;
235 #size-cells = <2>;
236 #interrupt-cells = <1>;
237 ranges = <0x82000000 0 0 0x82000000 0x7 0 1 0
238 0x81000000 0 0 0x81000000 0x7 0 1 0>;
Stefan Roese6f139be2019-01-25 11:52:44 +0100239 bus-range = <0x00 0xff>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200240 interrupt-map-mask = <0 0 0 0>;
241 interrupt-map = <0 0 0 0 &mpic 64>;
242 marvell,pcie-port = <1>;
243 marvell,pcie-lane = <2>;
244 clocks = <&gateclk 11>;
Pali Rohár94c30f92021-12-21 12:20:19 +0100245 resets = <&systemc 0 1>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200246 status = "disabled";
247 };
248
Stefan Roese6f139be2019-01-25 11:52:44 +0100249 pcie8: pcie@8,0 {
Stefan Roese39a230a2015-08-31 07:33:57 +0200250 device_type = "pci";
251 assigned-addresses = <0x82004000 0 0x8c000 0 0x2000>;
252 reg = <0x4000 0 0 0 0>;
253 #address-cells = <3>;
254 #size-cells = <2>;
255 #interrupt-cells = <1>;
256 ranges = <0x82000000 0 0 0x82000000 0x8 0 1 0
257 0x81000000 0 0 0x81000000 0x8 0 1 0>;
Stefan Roese6f139be2019-01-25 11:52:44 +0100258 bus-range = <0x00 0xff>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200259 interrupt-map-mask = <0 0 0 0>;
260 interrupt-map = <0 0 0 0 &mpic 65>;
261 marvell,pcie-port = <1>;
262 marvell,pcie-lane = <3>;
263 clocks = <&gateclk 12>;
Pali Rohár94c30f92021-12-21 12:20:19 +0100264 resets = <&systemc 0 1>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200265 status = "disabled";
266 };
267
Stefan Roese6f139be2019-01-25 11:52:44 +0100268 pcie9: pcie@9,0 {
Stefan Roese39a230a2015-08-31 07:33:57 +0200269 device_type = "pci";
270 assigned-addresses = <0x82004800 0 0x42000 0 0x2000>;
271 reg = <0x4800 0 0 0 0>;
272 #address-cells = <3>;
273 #size-cells = <2>;
274 #interrupt-cells = <1>;
275 ranges = <0x82000000 0 0 0x82000000 0x9 0 1 0
276 0x81000000 0 0 0x81000000 0x9 0 1 0>;
Stefan Roese6f139be2019-01-25 11:52:44 +0100277 bus-range = <0x00 0xff>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200278 interrupt-map-mask = <0 0 0 0>;
279 interrupt-map = <0 0 0 0 &mpic 99>;
280 marvell,pcie-port = <2>;
281 marvell,pcie-lane = <0>;
282 clocks = <&gateclk 26>;
Pali Rohár94c30f92021-12-21 12:20:19 +0100283 resets = <&systemc 0 2>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200284 status = "disabled";
285 };
286
Stefan Roese6f139be2019-01-25 11:52:44 +0100287 pcie10: pcie@a,0 {
Stefan Roese39a230a2015-08-31 07:33:57 +0200288 device_type = "pci";
289 assigned-addresses = <0x82005000 0 0x82000 0 0x2000>;
290 reg = <0x5000 0 0 0 0>;
291 #address-cells = <3>;
292 #size-cells = <2>;
293 #interrupt-cells = <1>;
294 ranges = <0x82000000 0 0 0x82000000 0xa 0 1 0
295 0x81000000 0 0 0x81000000 0xa 0 1 0>;
Stefan Roese6f139be2019-01-25 11:52:44 +0100296 bus-range = <0x00 0xff>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200297 interrupt-map-mask = <0 0 0 0>;
298 interrupt-map = <0 0 0 0 &mpic 103>;
299 marvell,pcie-port = <3>;
300 marvell,pcie-lane = <0>;
301 clocks = <&gateclk 27>;
Pali Rohár94c30f92021-12-21 12:20:19 +0100302 resets = <&systemc 0 3>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200303 status = "disabled";
304 };
305 };
306
307 internal-regs {
308 gpio0: gpio@18100 {
Chris Packham3c265bb2019-02-16 11:48:58 +1300309 compatible = "marvell,armada-370-gpio",
310 "marvell,orion-gpio";
311 reg = <0x18100 0x40>, <0x181c0 0x08>;
312 reg-names = "gpio", "pwm";
Stefan Roese39a230a2015-08-31 07:33:57 +0200313 ngpios = <32>;
314 gpio-controller;
315 #gpio-cells = <2>;
Chris Packham3c265bb2019-02-16 11:48:58 +1300316 #pwm-cells = <2>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200317 interrupt-controller;
318 #interrupt-cells = <2>;
319 interrupts = <82>, <83>, <84>, <85>;
Chris Packham3c265bb2019-02-16 11:48:58 +1300320 clocks = <&coreclk 0>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200321 };
322
323 gpio1: gpio@18140 {
Chris Packham3c265bb2019-02-16 11:48:58 +1300324 compatible = "marvell,armada-370-gpio",
325 "marvell,orion-gpio";
326 reg = <0x18140 0x40>, <0x181c8 0x08>;
327 reg-names = "gpio", "pwm";
Stefan Roese39a230a2015-08-31 07:33:57 +0200328 ngpios = <32>;
329 gpio-controller;
330 #gpio-cells = <2>;
Chris Packham3c265bb2019-02-16 11:48:58 +1300331 #pwm-cells = <2>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200332 interrupt-controller;
333 #interrupt-cells = <2>;
334 interrupts = <87>, <88>, <89>, <90>;
Chris Packham3c265bb2019-02-16 11:48:58 +1300335 clocks = <&coreclk 0>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200336 };
337
338 gpio2: gpio@18180 {
Chris Packham3c265bb2019-02-16 11:48:58 +1300339 compatible = "marvell,armada-370-gpio",
340 "marvell,orion-gpio";
Stefan Roese39a230a2015-08-31 07:33:57 +0200341 reg = <0x18180 0x40>;
342 ngpios = <3>;
343 gpio-controller;
344 #gpio-cells = <2>;
345 interrupt-controller;
346 #interrupt-cells = <2>;
347 interrupts = <91>;
348 };
349
350 eth3: ethernet@34000 {
351 compatible = "marvell,armada-xp-neta";
352 reg = <0x34000 0x4000>;
353 interrupts = <14>;
354 clocks = <&gateclk 1>;
355 status = "disabled";
356 };
357 };
358 };
359};
360
361&pinctrl {
362 compatible = "marvell,mv78460-pinctrl";
363};