blob: 3396b25b39e179cb1a444435adfa28c87385e8ed [file] [log] [blame]
Thomas Petazzonif3b42b72012-09-13 17:41:48 +02001/*
2 * Device Tree Include file for Marvell Armada XP family SoC
3 *
4 * Copyright (C) 2012 Marvell
5 *
6 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 *
8 * This file is licensed under the terms of the GNU General Public
9 * License version 2. This program is licensed "as is" without any
10 * warranty of any kind, whether express or implied.
11 *
12 * Contains definitions specific to the Armada XP MV78260 SoC that are not
13 * common to all Armada XP SoCs.
14 */
15
Ezequiel Garcia38149882013-07-26 10:17:56 -030016#include "armada-xp.dtsi"
Thomas Petazzonif3b42b72012-09-13 17:41:48 +020017
18/ {
19 model = "Marvell Armada XP MV78260 SoC";
20 compatible = "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
21
Thomas Petazzoni397d59f2012-09-19 22:53:01 +020022 aliases {
23 gpio0 = &gpio0;
24 gpio1 = &gpio1;
25 gpio2 = &gpio2;
Willy Tarreau14cfa4b2014-01-12 13:09:24 +010026 eth3 = &eth3;
Thomas Petazzoni397d59f2012-09-19 22:53:01 +020027 };
28
Gregory CLEMENT9d202782012-11-17 15:22:24 +010029 cpus {
Thomas Petazzoni1b2529d2013-04-12 16:29:06 +020030 #address-cells = <1>;
31 #size-cells = <0>;
Thomas Petazzoni23157852014-04-14 15:54:00 +020032 enable-method = "marvell,armada-xp-smp";
Gregory CLEMENT9d202782012-11-17 15:22:24 +010033
Thomas Petazzoni1b2529d2013-04-12 16:29:06 +020034 cpu@0 {
35 device_type = "cpu";
36 compatible = "marvell,sheeva-v7";
37 reg = <0>;
38 clocks = <&cpuclk 0>;
39 };
Gregory CLEMENT9d202782012-11-17 15:22:24 +010040
Thomas Petazzoni1b2529d2013-04-12 16:29:06 +020041 cpu@1 {
42 device_type = "cpu";
43 compatible = "marvell,sheeva-v7";
44 reg = <1>;
45 clocks = <&cpuclk 1>;
46 };
Gregory CLEMENT9d202782012-11-17 15:22:24 +010047 };
48
Thomas Petazzonif3b42b72012-09-13 17:41:48 +020049 soc {
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030050 /*
51 * MV78260 has 3 PCIe units Gen2.0: Two units can be
52 * configured as x4 or quad x1 lanes. One unit is
Arnaud Ebalard2163e612013-11-05 21:46:02 +010053 * x4 only.
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030054 */
55 pcie-controller {
56 compatible = "marvell,armada-xp-pcie";
57 status = "disabled";
58 device_type = "pci";
59
60 #address-cells = <3>;
61 #size-cells = <2>;
62
Thomas Petazzonid4fa9942013-08-09 22:27:15 +020063 msi-parent = <&mpic>;
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030064 bus-range = <0x00 0xff>;
65
66 ranges =
67 <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000 /* Port 0.0 registers */
68 0x82000000 0 0x42000 MBUS_ID(0xf0, 0x01) 0x42000 0 0x00002000 /* Port 2.0 registers */
69 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000 /* Port 0.1 registers */
70 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000 /* Port 0.2 registers */
71 0x82000000 0 0x4c000 MBUS_ID(0xf0, 0x01) 0x4c000 0 0x00002000 /* Port 0.3 registers */
72 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000 /* Port 1.0 registers */
Arnaud Ebalard2163e612013-11-05 21:46:02 +010073 0x82000000 0 0x84000 MBUS_ID(0xf0, 0x01) 0x84000 0 0x00002000 /* Port 1.1 registers */
74 0x82000000 0 0x88000 MBUS_ID(0xf0, 0x01) 0x88000 0 0x00002000 /* Port 1.2 registers */
75 0x82000000 0 0x8c000 MBUS_ID(0xf0, 0x01) 0x8c000 0 0x00002000 /* Port 1.3 registers */
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030076 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
77 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */
78 0x82000000 0x2 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */
79 0x81000000 0x2 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO */
80 0x82000000 0x3 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */
81 0x81000000 0x3 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO */
82 0x82000000 0x4 0 MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */
83 0x81000000 0x4 0 MBUS_ID(0x04, 0x70) 0 1 0 /* Port 0.3 IO */
Arnaud Ebalard2163e612013-11-05 21:46:02 +010084
85 0x82000000 0x5 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
86 0x81000000 0x5 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */
87 0x82000000 0x6 0 MBUS_ID(0x08, 0xd8) 0 1 0 /* Port 1.1 MEM */
88 0x81000000 0x6 0 MBUS_ID(0x08, 0xd0) 0 1 0 /* Port 1.1 IO */
89 0x82000000 0x7 0 MBUS_ID(0x08, 0xb8) 0 1 0 /* Port 1.2 MEM */
90 0x81000000 0x7 0 MBUS_ID(0x08, 0xb0) 0 1 0 /* Port 1.2 IO */
91 0x82000000 0x8 0 MBUS_ID(0x08, 0x78) 0 1 0 /* Port 1.3 MEM */
92 0x81000000 0x8 0 MBUS_ID(0x08, 0x70) 0 1 0 /* Port 1.3 IO */
93
94 0x82000000 0x9 0 MBUS_ID(0x04, 0xf8) 0 1 0 /* Port 2.0 MEM */
95 0x81000000 0x9 0 MBUS_ID(0x04, 0xf0) 0 1 0 /* Port 2.0 IO */>;
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030096
97 pcie@1,0 {
98 device_type = "pci";
99 assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
100 reg = <0x0800 0 0 0 0>;
101 #address-cells = <3>;
102 #size-cells = <2>;
103 #interrupt-cells = <1>;
104 ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
105 0x81000000 0 0 0x81000000 0x1 0 1 0>;
106 interrupt-map-mask = <0 0 0 0>;
107 interrupt-map = <0 0 0 0 &mpic 58>;
108 marvell,pcie-port = <0>;
109 marvell,pcie-lane = <0>;
110 clocks = <&gateclk 5>;
111 status = "disabled";
112 };
113
114 pcie@2,0 {
115 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>;
Arnaud Ebalard2163e612013-11-05 21:46:02 +0100121 ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
122 0x81000000 0 0 0x81000000 0x2 0 1 0>;
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -0300123 interrupt-map-mask = <0 0 0 0>;
124 interrupt-map = <0 0 0 0 &mpic 59>;
125 marvell,pcie-port = <0>;
126 marvell,pcie-lane = <1>;
127 clocks = <&gateclk 6>;
128 status = "disabled";
129 };
130
131 pcie@3,0 {
132 device_type = "pci";
133 assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
134 reg = <0x1800 0 0 0 0>;
135 #address-cells = <3>;
136 #size-cells = <2>;
137 #interrupt-cells = <1>;
138 ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
139 0x81000000 0 0 0x81000000 0x3 0 1 0>;
140 interrupt-map-mask = <0 0 0 0>;
141 interrupt-map = <0 0 0 0 &mpic 60>;
142 marvell,pcie-port = <0>;
143 marvell,pcie-lane = <2>;
144 clocks = <&gateclk 7>;
145 status = "disabled";
146 };
147
148 pcie@4,0 {
149 device_type = "pci";
150 assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
151 reg = <0x2000 0 0 0 0>;
152 #address-cells = <3>;
153 #size-cells = <2>;
154 #interrupt-cells = <1>;
155 ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
156 0x81000000 0 0 0x81000000 0x4 0 1 0>;
157 interrupt-map-mask = <0 0 0 0>;
158 interrupt-map = <0 0 0 0 &mpic 61>;
159 marvell,pcie-port = <0>;
160 marvell,pcie-lane = <3>;
161 clocks = <&gateclk 8>;
162 status = "disabled";
163 };
164
Arnaud Ebalard2163e612013-11-05 21:46:02 +0100165 pcie@5,0 {
166 device_type = "pci";
167 assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
168 reg = <0x2800 0 0 0 0>;
169 #address-cells = <3>;
170 #size-cells = <2>;
171 #interrupt-cells = <1>;
172 ranges = <0x82000000 0 0 0x82000000 0x5 0 1 0
173 0x81000000 0 0 0x81000000 0x5 0 1 0>;
174 interrupt-map-mask = <0 0 0 0>;
175 interrupt-map = <0 0 0 0 &mpic 62>;
176 marvell,pcie-port = <1>;
177 marvell,pcie-lane = <0>;
178 clocks = <&gateclk 9>;
179 status = "disabled";
180 };
181
182 pcie@6,0 {
183 device_type = "pci";
184 assigned-addresses = <0x82000800 0 0x84000 0 0x2000>;
185 reg = <0x3000 0 0 0 0>;
186 #address-cells = <3>;
187 #size-cells = <2>;
188 #interrupt-cells = <1>;
189 ranges = <0x82000000 0 0 0x82000000 0x6 0 1 0
190 0x81000000 0 0 0x81000000 0x6 0 1 0>;
191 interrupt-map-mask = <0 0 0 0>;
192 interrupt-map = <0 0 0 0 &mpic 63>;
193 marvell,pcie-port = <1>;
194 marvell,pcie-lane = <1>;
195 clocks = <&gateclk 10>;
196 status = "disabled";
197 };
198
199 pcie@7,0 {
200 device_type = "pci";
201 assigned-addresses = <0x82000800 0 0x88000 0 0x2000>;
202 reg = <0x3800 0 0 0 0>;
203 #address-cells = <3>;
204 #size-cells = <2>;
205 #interrupt-cells = <1>;
206 ranges = <0x82000000 0 0 0x82000000 0x7 0 1 0
207 0x81000000 0 0 0x81000000 0x7 0 1 0>;
208 interrupt-map-mask = <0 0 0 0>;
209 interrupt-map = <0 0 0 0 &mpic 64>;
210 marvell,pcie-port = <1>;
211 marvell,pcie-lane = <2>;
212 clocks = <&gateclk 11>;
213 status = "disabled";
214 };
215
216 pcie@8,0 {
217 device_type = "pci";
218 assigned-addresses = <0x82000800 0 0x8c000 0 0x2000>;
219 reg = <0x4000 0 0 0 0>;
220 #address-cells = <3>;
221 #size-cells = <2>;
222 #interrupt-cells = <1>;
223 ranges = <0x82000000 0 0 0x82000000 0x8 0 1 0
224 0x81000000 0 0 0x81000000 0x8 0 1 0>;
225 interrupt-map-mask = <0 0 0 0>;
226 interrupt-map = <0 0 0 0 &mpic 65>;
227 marvell,pcie-port = <1>;
228 marvell,pcie-lane = <3>;
229 clocks = <&gateclk 12>;
230 status = "disabled";
231 };
232
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -0300233 pcie@9,0 {
234 device_type = "pci";
235 assigned-addresses = <0x82000800 0 0x42000 0 0x2000>;
236 reg = <0x4800 0 0 0 0>;
237 #address-cells = <3>;
238 #size-cells = <2>;
239 #interrupt-cells = <1>;
240 ranges = <0x82000000 0 0 0x82000000 0x9 0 1 0
241 0x81000000 0 0 0x81000000 0x9 0 1 0>;
242 interrupt-map-mask = <0 0 0 0>;
243 interrupt-map = <0 0 0 0 &mpic 99>;
244 marvell,pcie-port = <2>;
245 marvell,pcie-lane = <0>;
246 clocks = <&gateclk 26>;
247 status = "disabled";
248 };
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -0300249 };
250
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200251 internal-regs {
252 pinctrl {
253 compatible = "marvell,mv78260-pinctrl";
254 reg = <0x18000 0x38>;
Thomas Petazzoni6d36e8e2012-12-21 15:49:06 +0100255
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200256 sdio_pins: sdio-pins {
257 marvell,pins = "mpp30", "mpp31", "mpp32",
258 "mpp33", "mpp34", "mpp35";
259 marvell,function = "sd0";
260 };
Thomas Petazzoni6d36e8e2012-12-21 15:49:06 +0100261 };
Thomas Petazzoni397d59f2012-09-19 22:53:01 +0200262
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200263 gpio0: gpio@18100 {
264 compatible = "marvell,orion-gpio";
265 reg = <0x18100 0x40>;
266 ngpios = <32>;
267 gpio-controller;
268 #gpio-cells = <2>;
269 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200270 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200271 interrupts = <82>, <83>, <84>, <85>;
272 };
Thomas Petazzoni397d59f2012-09-19 22:53:01 +0200273
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200274 gpio1: gpio@18140 {
275 compatible = "marvell,orion-gpio";
276 reg = <0x18140 0x40>;
277 ngpios = <32>;
278 gpio-controller;
279 #gpio-cells = <2>;
280 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200281 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200282 interrupts = <87>, <88>, <89>, <90>;
283 };
Thomas Petazzoni397d59f2012-09-19 22:53:01 +0200284
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200285 gpio2: gpio@18180 {
286 compatible = "marvell,orion-gpio";
287 reg = <0x18180 0x40>;
288 ngpios = <3>;
289 gpio-controller;
290 #gpio-cells = <2>;
291 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200292 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200293 interrupts = <91>;
294 };
Thomas Petazzoni77916512013-01-06 11:10:41 +0100295
Willy Tarreau14cfa4b2014-01-12 13:09:24 +0100296 eth3: ethernet@34000 {
Thomas Petazzoni77916512013-01-06 11:10:41 +0100297 compatible = "marvell,armada-370-neta";
Ezequiel Garciacdd8e492013-06-22 13:52:27 -0300298 reg = <0x34000 0x4000>;
Thomas Petazzoni77916512013-01-06 11:10:41 +0100299 interrupts = <14>;
300 clocks = <&gateclk 1>;
301 status = "disabled";
Thomas Petazzoni9d8f44f2013-04-09 23:06:34 +0200302 };
Thomas Petazzoni9d8f44f2013-04-09 23:06:34 +0200303 };
Thomas Petazzonif3b42b72012-09-13 17:41:48 +0200304 };
305};