blob: 5dc413dd14bec2d9fc1b8b2061216788141655a6 [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 MV78260 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 MV78260 SoC";
17 compatible = "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
18
19 aliases {
20 gpio0 = &gpio0;
21 gpio1 = &gpio1;
22 gpio2 = &gpio2;
23 };
24
25 cpus {
26 #address-cells = <1>;
27 #size-cells = <0>;
28 enable-method = "marvell,armada-xp-smp";
29
30 cpu@0 {
31 device_type = "cpu";
32 compatible = "marvell,sheeva-v7";
33 reg = <0>;
34 clocks = <&cpuclk 0>;
35 clock-latency = <1000000>;
36 };
37
38 cpu@1 {
39 device_type = "cpu";
40 compatible = "marvell,sheeva-v7";
41 reg = <1>;
42 clocks = <&cpuclk 1>;
43 clock-latency = <1000000>;
44 };
45 };
46
47 soc {
48 /*
49 * MV78260 has 3 PCIe units Gen2.0: Two units can be
50 * configured as x4 or quad x1 lanes. One unit is
51 * x4 only.
52 */
Stefan Roese6f139be2019-01-25 11:52:44 +010053 pciec: pcie@82000000 {
Stefan Roese39a230a2015-08-31 07:33:57 +020054 compatible = "marvell,armada-xp-pcie";
55 status = "disabled";
56 device_type = "pci";
57
58 #address-cells = <3>;
59 #size-cells = <2>;
60
61 msi-parent = <&mpic>;
62 bus-range = <0x00 0xff>;
63
64 ranges =
65 <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000 /* Port 0.0 registers */
66 0x82000000 0 0x42000 MBUS_ID(0xf0, 0x01) 0x42000 0 0x00002000 /* Port 2.0 registers */
67 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000 /* Port 0.1 registers */
68 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000 /* Port 0.2 registers */
69 0x82000000 0 0x4c000 MBUS_ID(0xf0, 0x01) 0x4c000 0 0x00002000 /* Port 0.3 registers */
70 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000 /* Port 1.0 registers */
71 0x82000000 0 0x84000 MBUS_ID(0xf0, 0x01) 0x84000 0 0x00002000 /* Port 1.1 registers */
72 0x82000000 0 0x88000 MBUS_ID(0xf0, 0x01) 0x88000 0 0x00002000 /* Port 1.2 registers */
73 0x82000000 0 0x8c000 MBUS_ID(0xf0, 0x01) 0x8c000 0 0x00002000 /* Port 1.3 registers */
74 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
75 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */
76 0x82000000 0x2 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */
77 0x81000000 0x2 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO */
78 0x82000000 0x3 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */
79 0x81000000 0x3 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO */
80 0x82000000 0x4 0 MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */
81 0x81000000 0x4 0 MBUS_ID(0x04, 0x70) 0 1 0 /* Port 0.3 IO */
82
83 0x82000000 0x5 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
84 0x81000000 0x5 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */
85 0x82000000 0x6 0 MBUS_ID(0x08, 0xd8) 0 1 0 /* Port 1.1 MEM */
86 0x81000000 0x6 0 MBUS_ID(0x08, 0xd0) 0 1 0 /* Port 1.1 IO */
87 0x82000000 0x7 0 MBUS_ID(0x08, 0xb8) 0 1 0 /* Port 1.2 MEM */
88 0x81000000 0x7 0 MBUS_ID(0x08, 0xb0) 0 1 0 /* Port 1.2 IO */
89 0x82000000 0x8 0 MBUS_ID(0x08, 0x78) 0 1 0 /* Port 1.3 MEM */
90 0x81000000 0x8 0 MBUS_ID(0x08, 0x70) 0 1 0 /* Port 1.3 IO */
91
92 0x82000000 0x9 0 MBUS_ID(0x04, 0xf8) 0 1 0 /* Port 2.0 MEM */
93 0x81000000 0x9 0 MBUS_ID(0x04, 0xf0) 0 1 0 /* Port 2.0 IO */>;
94
Stefan Roese6f139be2019-01-25 11:52:44 +010095 pcie1: pcie@1,0 {
Stefan Roese39a230a2015-08-31 07:33:57 +020096 device_type = "pci";
97 assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
98 reg = <0x0800 0 0 0 0>;
99 #address-cells = <3>;
100 #size-cells = <2>;
101 #interrupt-cells = <1>;
102 ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
103 0x81000000 0 0 0x81000000 0x1 0 1 0>;
Stefan Roese6f139be2019-01-25 11:52:44 +0100104 bus-range = <0x00 0xff>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200105 interrupt-map-mask = <0 0 0 0>;
106 interrupt-map = <0 0 0 0 &mpic 58>;
107 marvell,pcie-port = <0>;
108 marvell,pcie-lane = <0>;
109 clocks = <&gateclk 5>;
Pali Rohár94c30f92021-12-21 12:20:19 +0100110 resets = <&systemc 0 0>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200111 status = "disabled";
112 };
113
Stefan Roese6f139be2019-01-25 11:52:44 +0100114 pcie2: pcie@2,0 {
Stefan Roese39a230a2015-08-31 07:33:57 +0200115 device_type = "pci";
116 assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
117 reg = <0x1000 0 0 0 0>;
118 #address-cells = <3>;
119 #size-cells = <2>;
120 #interrupt-cells = <1>;
121 ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
122 0x81000000 0 0 0x81000000 0x2 0 1 0>;
Stefan Roese6f139be2019-01-25 11:52:44 +0100123 bus-range = <0x00 0xff>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200124 interrupt-map-mask = <0 0 0 0>;
125 interrupt-map = <0 0 0 0 &mpic 59>;
126 marvell,pcie-port = <0>;
127 marvell,pcie-lane = <1>;
128 clocks = <&gateclk 6>;
Pali Rohár94c30f92021-12-21 12:20:19 +0100129 resets = <&systemc 0 0>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200130 status = "disabled";
131 };
132
Stefan Roese6f139be2019-01-25 11:52:44 +0100133 pcie3: pcie@3,0 {
Stefan Roese39a230a2015-08-31 07:33:57 +0200134 device_type = "pci";
135 assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
136 reg = <0x1800 0 0 0 0>;
137 #address-cells = <3>;
138 #size-cells = <2>;
139 #interrupt-cells = <1>;
140 ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
141 0x81000000 0 0 0x81000000 0x3 0 1 0>;
Stefan Roese6f139be2019-01-25 11:52:44 +0100142 bus-range = <0x00 0xff>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200143 interrupt-map-mask = <0 0 0 0>;
144 interrupt-map = <0 0 0 0 &mpic 60>;
145 marvell,pcie-port = <0>;
146 marvell,pcie-lane = <2>;
147 clocks = <&gateclk 7>;
Pali Rohár94c30f92021-12-21 12:20:19 +0100148 resets = <&systemc 0 0>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200149 status = "disabled";
150 };
151
Stefan Roese6f139be2019-01-25 11:52:44 +0100152 pcie4: pcie@4,0 {
Stefan Roese39a230a2015-08-31 07:33:57 +0200153 device_type = "pci";
154 assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
155 reg = <0x2000 0 0 0 0>;
156 #address-cells = <3>;
157 #size-cells = <2>;
158 #interrupt-cells = <1>;
159 ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
160 0x81000000 0 0 0x81000000 0x4 0 1 0>;
Stefan Roese6f139be2019-01-25 11:52:44 +0100161 bus-range = <0x00 0xff>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200162 interrupt-map-mask = <0 0 0 0>;
163 interrupt-map = <0 0 0 0 &mpic 61>;
164 marvell,pcie-port = <0>;
165 marvell,pcie-lane = <3>;
166 clocks = <&gateclk 8>;
Pali Rohár94c30f92021-12-21 12:20:19 +0100167 resets = <&systemc 0 0>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200168 status = "disabled";
169 };
170
Stefan Roese6f139be2019-01-25 11:52:44 +0100171 pcie5: pcie@5,0 {
Stefan Roese39a230a2015-08-31 07:33:57 +0200172 device_type = "pci";
173 assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
174 reg = <0x2800 0 0 0 0>;
175 #address-cells = <3>;
176 #size-cells = <2>;
177 #interrupt-cells = <1>;
178 ranges = <0x82000000 0 0 0x82000000 0x5 0 1 0
179 0x81000000 0 0 0x81000000 0x5 0 1 0>;
Stefan Roese6f139be2019-01-25 11:52:44 +0100180 bus-range = <0x00 0xff>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200181 interrupt-map-mask = <0 0 0 0>;
182 interrupt-map = <0 0 0 0 &mpic 62>;
183 marvell,pcie-port = <1>;
184 marvell,pcie-lane = <0>;
185 clocks = <&gateclk 9>;
Pali Rohár94c30f92021-12-21 12:20:19 +0100186 resets = <&systemc 0 1>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200187 status = "disabled";
188 };
189
Stefan Roese6f139be2019-01-25 11:52:44 +0100190 pcie6: pcie@6,0 {
Stefan Roese39a230a2015-08-31 07:33:57 +0200191 device_type = "pci";
192 assigned-addresses = <0x82000800 0 0x84000 0 0x2000>;
193 reg = <0x3000 0 0 0 0>;
194 #address-cells = <3>;
195 #size-cells = <2>;
196 #interrupt-cells = <1>;
197 ranges = <0x82000000 0 0 0x82000000 0x6 0 1 0
198 0x81000000 0 0 0x81000000 0x6 0 1 0>;
Stefan Roese6f139be2019-01-25 11:52:44 +0100199 bus-range = <0x00 0xff>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200200 interrupt-map-mask = <0 0 0 0>;
201 interrupt-map = <0 0 0 0 &mpic 63>;
202 marvell,pcie-port = <1>;
203 marvell,pcie-lane = <1>;
204 clocks = <&gateclk 10>;
Pali Rohár94c30f92021-12-21 12:20:19 +0100205 resets = <&systemc 0 1>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200206 status = "disabled";
207 };
208
Stefan Roese6f139be2019-01-25 11:52:44 +0100209 pcie7: pcie@7,0 {
Stefan Roese39a230a2015-08-31 07:33:57 +0200210 device_type = "pci";
211 assigned-addresses = <0x82000800 0 0x88000 0 0x2000>;
212 reg = <0x3800 0 0 0 0>;
213 #address-cells = <3>;
214 #size-cells = <2>;
215 #interrupt-cells = <1>;
216 ranges = <0x82000000 0 0 0x82000000 0x7 0 1 0
217 0x81000000 0 0 0x81000000 0x7 0 1 0>;
Stefan Roese6f139be2019-01-25 11:52:44 +0100218 bus-range = <0x00 0xff>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200219 interrupt-map-mask = <0 0 0 0>;
220 interrupt-map = <0 0 0 0 &mpic 64>;
221 marvell,pcie-port = <1>;
222 marvell,pcie-lane = <2>;
223 clocks = <&gateclk 11>;
Pali Rohár94c30f92021-12-21 12:20:19 +0100224 resets = <&systemc 0 1>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200225 status = "disabled";
226 };
227
Stefan Roese6f139be2019-01-25 11:52:44 +0100228 pcie8: pcie@8,0 {
Stefan Roese39a230a2015-08-31 07:33:57 +0200229 device_type = "pci";
230 assigned-addresses = <0x82000800 0 0x8c000 0 0x2000>;
231 reg = <0x4000 0 0 0 0>;
232 #address-cells = <3>;
233 #size-cells = <2>;
234 #interrupt-cells = <1>;
235 ranges = <0x82000000 0 0 0x82000000 0x8 0 1 0
236 0x81000000 0 0 0x81000000 0x8 0 1 0>;
Stefan Roese6f139be2019-01-25 11:52:44 +0100237 bus-range = <0x00 0xff>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200238 interrupt-map-mask = <0 0 0 0>;
239 interrupt-map = <0 0 0 0 &mpic 65>;
240 marvell,pcie-port = <1>;
241 marvell,pcie-lane = <3>;
242 clocks = <&gateclk 12>;
Pali Rohár94c30f92021-12-21 12:20:19 +0100243 resets = <&systemc 0 1>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200244 status = "disabled";
245 };
246
Stefan Roese6f139be2019-01-25 11:52:44 +0100247 pcie9: pcie@9,0 {
Stefan Roese39a230a2015-08-31 07:33:57 +0200248 device_type = "pci";
249 assigned-addresses = <0x82000800 0 0x42000 0 0x2000>;
250 reg = <0x4800 0 0 0 0>;
251 #address-cells = <3>;
252 #size-cells = <2>;
253 #interrupt-cells = <1>;
254 ranges = <0x82000000 0 0 0x82000000 0x9 0 1 0
255 0x81000000 0 0 0x81000000 0x9 0 1 0>;
Stefan Roese6f139be2019-01-25 11:52:44 +0100256 bus-range = <0x00 0xff>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200257 interrupt-map-mask = <0 0 0 0>;
258 interrupt-map = <0 0 0 0 &mpic 99>;
259 marvell,pcie-port = <2>;
260 marvell,pcie-lane = <0>;
261 clocks = <&gateclk 26>;
Pali Rohár94c30f92021-12-21 12:20:19 +0100262 resets = <&systemc 0 2>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200263 status = "disabled";
264 };
265 };
266
267 internal-regs {
268 gpio0: gpio@18100 {
Chris Packham3c265bb2019-02-16 11:48:58 +1300269 compatible = "marvell,armada-370-gpio",
270 "marvell,orion-gpio";
271 reg = <0x18100 0x40>, <0x181c0 0x08>;
272 reg-names = "gpio", "pwm";
Stefan Roese39a230a2015-08-31 07:33:57 +0200273 ngpios = <32>;
274 gpio-controller;
275 #gpio-cells = <2>;
Chris Packham3c265bb2019-02-16 11:48:58 +1300276 #pwm-cells = <2>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200277 interrupt-controller;
278 #interrupt-cells = <2>;
279 interrupts = <82>, <83>, <84>, <85>;
Chris Packham3c265bb2019-02-16 11:48:58 +1300280 clocks = <&coreclk 0>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200281 };
282
283 gpio1: gpio@18140 {
Chris Packham3c265bb2019-02-16 11:48:58 +1300284 compatible = "marvell,armada-370-gpio",
285 "marvell,orion-gpio";
286 reg = <0x18140 0x40>, <0x181c8 0x08>;
287 reg-names = "gpio", "pwm";
Stefan Roese39a230a2015-08-31 07:33:57 +0200288 ngpios = <32>;
289 gpio-controller;
290 #gpio-cells = <2>;
Chris Packham3c265bb2019-02-16 11:48:58 +1300291 #pwm-cells = <2>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200292 interrupt-controller;
293 #interrupt-cells = <2>;
294 interrupts = <87>, <88>, <89>, <90>;
Chris Packham3c265bb2019-02-16 11:48:58 +1300295 clocks = <&coreclk 0>;
Stefan Roese39a230a2015-08-31 07:33:57 +0200296 };
297
298 gpio2: gpio@18180 {
Chris Packham3c265bb2019-02-16 11:48:58 +1300299 compatible = "marvell,armada-370-gpio",
300 "marvell,orion-gpio";
Stefan Roese39a230a2015-08-31 07:33:57 +0200301 reg = <0x18180 0x40>;
302 ngpios = <3>;
303 gpio-controller;
304 #gpio-cells = <2>;
305 interrupt-controller;
306 #interrupt-cells = <2>;
307 interrupts = <91>;
308 };
309
310 eth3: ethernet@34000 {
311 compatible = "marvell,armada-xp-neta";
312 reg = <0x34000 0x4000>;
313 interrupts = <14>;
314 clocks = <&gateclk 1>;
315 status = "disabled";
316 };
317 };
318 };
319};
320
321&pinctrl {
322 compatible = "marvell,mv78260-pinctrl";
323};