blob: 9480cf891f8cd0ce475d87cf2eed904a6a740eb7 [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>;
Gregory CLEMENT9d202782012-11-17 15:22:24 +010032
Thomas Petazzoni1b2529d2013-04-12 16:29:06 +020033 cpu@0 {
34 device_type = "cpu";
35 compatible = "marvell,sheeva-v7";
36 reg = <0>;
37 clocks = <&cpuclk 0>;
38 };
Gregory CLEMENT9d202782012-11-17 15:22:24 +010039
Thomas Petazzoni1b2529d2013-04-12 16:29:06 +020040 cpu@1 {
41 device_type = "cpu";
42 compatible = "marvell,sheeva-v7";
43 reg = <1>;
44 clocks = <&cpuclk 1>;
45 };
Gregory CLEMENT9d202782012-11-17 15:22:24 +010046 };
47
Thomas Petazzonif3b42b72012-09-13 17:41:48 +020048 soc {
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030049 /*
50 * MV78260 has 3 PCIe units Gen2.0: Two units can be
51 * configured as x4 or quad x1 lanes. One unit is
Arnaud Ebalard2163e612013-11-05 21:46:02 +010052 * x4 only.
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030053 */
54 pcie-controller {
55 compatible = "marvell,armada-xp-pcie";
56 status = "disabled";
57 device_type = "pci";
58
59 #address-cells = <3>;
60 #size-cells = <2>;
61
Thomas Petazzonid4fa9942013-08-09 22:27:15 +020062 msi-parent = <&mpic>;
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030063 bus-range = <0x00 0xff>;
64
65 ranges =
66 <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000 /* Port 0.0 registers */
67 0x82000000 0 0x42000 MBUS_ID(0xf0, 0x01) 0x42000 0 0x00002000 /* Port 2.0 registers */
68 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000 /* Port 0.1 registers */
69 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000 /* Port 0.2 registers */
70 0x82000000 0 0x4c000 MBUS_ID(0xf0, 0x01) 0x4c000 0 0x00002000 /* Port 0.3 registers */
71 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000 /* Port 1.0 registers */
Arnaud Ebalard2163e612013-11-05 21:46:02 +010072 0x82000000 0 0x84000 MBUS_ID(0xf0, 0x01) 0x84000 0 0x00002000 /* Port 1.1 registers */
73 0x82000000 0 0x88000 MBUS_ID(0xf0, 0x01) 0x88000 0 0x00002000 /* Port 1.2 registers */
74 0x82000000 0 0x8c000 MBUS_ID(0xf0, 0x01) 0x8c000 0 0x00002000 /* Port 1.3 registers */
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030075 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
76 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */
77 0x82000000 0x2 0 MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */
78 0x81000000 0x2 0 MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO */
79 0x82000000 0x3 0 MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */
80 0x81000000 0x3 0 MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO */
81 0x82000000 0x4 0 MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */
82 0x81000000 0x4 0 MBUS_ID(0x04, 0x70) 0 1 0 /* Port 0.3 IO */
Arnaud Ebalard2163e612013-11-05 21:46:02 +010083
84 0x82000000 0x5 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
85 0x81000000 0x5 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */
86 0x82000000 0x6 0 MBUS_ID(0x08, 0xd8) 0 1 0 /* Port 1.1 MEM */
87 0x81000000 0x6 0 MBUS_ID(0x08, 0xd0) 0 1 0 /* Port 1.1 IO */
88 0x82000000 0x7 0 MBUS_ID(0x08, 0xb8) 0 1 0 /* Port 1.2 MEM */
89 0x81000000 0x7 0 MBUS_ID(0x08, 0xb0) 0 1 0 /* Port 1.2 IO */
90 0x82000000 0x8 0 MBUS_ID(0x08, 0x78) 0 1 0 /* Port 1.3 MEM */
91 0x81000000 0x8 0 MBUS_ID(0x08, 0x70) 0 1 0 /* Port 1.3 IO */
92
93 0x82000000 0x9 0 MBUS_ID(0x04, 0xf8) 0 1 0 /* Port 2.0 MEM */
94 0x81000000 0x9 0 MBUS_ID(0x04, 0xf0) 0 1 0 /* Port 2.0 IO */>;
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030095
96 pcie@1,0 {
97 device_type = "pci";
98 assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
99 reg = <0x0800 0 0 0 0>;
100 #address-cells = <3>;
101 #size-cells = <2>;
102 #interrupt-cells = <1>;
103 ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
104 0x81000000 0 0 0x81000000 0x1 0 1 0>;
105 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>;
110 status = "disabled";
111 };
112
113 pcie@2,0 {
114 device_type = "pci";
115 assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
116 reg = <0x1000 0 0 0 0>;
117 #address-cells = <3>;
118 #size-cells = <2>;
119 #interrupt-cells = <1>;
Arnaud Ebalard2163e612013-11-05 21:46:02 +0100120 ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
121 0x81000000 0 0 0x81000000 0x2 0 1 0>;
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -0300122 interrupt-map-mask = <0 0 0 0>;
123 interrupt-map = <0 0 0 0 &mpic 59>;
124 marvell,pcie-port = <0>;
125 marvell,pcie-lane = <1>;
126 clocks = <&gateclk 6>;
127 status = "disabled";
128 };
129
130 pcie@3,0 {
131 device_type = "pci";
132 assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
133 reg = <0x1800 0 0 0 0>;
134 #address-cells = <3>;
135 #size-cells = <2>;
136 #interrupt-cells = <1>;
137 ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
138 0x81000000 0 0 0x81000000 0x3 0 1 0>;
139 interrupt-map-mask = <0 0 0 0>;
140 interrupt-map = <0 0 0 0 &mpic 60>;
141 marvell,pcie-port = <0>;
142 marvell,pcie-lane = <2>;
143 clocks = <&gateclk 7>;
144 status = "disabled";
145 };
146
147 pcie@4,0 {
148 device_type = "pci";
149 assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
150 reg = <0x2000 0 0 0 0>;
151 #address-cells = <3>;
152 #size-cells = <2>;
153 #interrupt-cells = <1>;
154 ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
155 0x81000000 0 0 0x81000000 0x4 0 1 0>;
156 interrupt-map-mask = <0 0 0 0>;
157 interrupt-map = <0 0 0 0 &mpic 61>;
158 marvell,pcie-port = <0>;
159 marvell,pcie-lane = <3>;
160 clocks = <&gateclk 8>;
161 status = "disabled";
162 };
163
Arnaud Ebalard2163e612013-11-05 21:46:02 +0100164 pcie@5,0 {
165 device_type = "pci";
166 assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
167 reg = <0x2800 0 0 0 0>;
168 #address-cells = <3>;
169 #size-cells = <2>;
170 #interrupt-cells = <1>;
171 ranges = <0x82000000 0 0 0x82000000 0x5 0 1 0
172 0x81000000 0 0 0x81000000 0x5 0 1 0>;
173 interrupt-map-mask = <0 0 0 0>;
174 interrupt-map = <0 0 0 0 &mpic 62>;
175 marvell,pcie-port = <1>;
176 marvell,pcie-lane = <0>;
177 clocks = <&gateclk 9>;
178 status = "disabled";
179 };
180
181 pcie@6,0 {
182 device_type = "pci";
183 assigned-addresses = <0x82000800 0 0x84000 0 0x2000>;
184 reg = <0x3000 0 0 0 0>;
185 #address-cells = <3>;
186 #size-cells = <2>;
187 #interrupt-cells = <1>;
188 ranges = <0x82000000 0 0 0x82000000 0x6 0 1 0
189 0x81000000 0 0 0x81000000 0x6 0 1 0>;
190 interrupt-map-mask = <0 0 0 0>;
191 interrupt-map = <0 0 0 0 &mpic 63>;
192 marvell,pcie-port = <1>;
193 marvell,pcie-lane = <1>;
194 clocks = <&gateclk 10>;
195 status = "disabled";
196 };
197
198 pcie@7,0 {
199 device_type = "pci";
200 assigned-addresses = <0x82000800 0 0x88000 0 0x2000>;
201 reg = <0x3800 0 0 0 0>;
202 #address-cells = <3>;
203 #size-cells = <2>;
204 #interrupt-cells = <1>;
205 ranges = <0x82000000 0 0 0x82000000 0x7 0 1 0
206 0x81000000 0 0 0x81000000 0x7 0 1 0>;
207 interrupt-map-mask = <0 0 0 0>;
208 interrupt-map = <0 0 0 0 &mpic 64>;
209 marvell,pcie-port = <1>;
210 marvell,pcie-lane = <2>;
211 clocks = <&gateclk 11>;
212 status = "disabled";
213 };
214
215 pcie@8,0 {
216 device_type = "pci";
217 assigned-addresses = <0x82000800 0 0x8c000 0 0x2000>;
218 reg = <0x4000 0 0 0 0>;
219 #address-cells = <3>;
220 #size-cells = <2>;
221 #interrupt-cells = <1>;
222 ranges = <0x82000000 0 0 0x82000000 0x8 0 1 0
223 0x81000000 0 0 0x81000000 0x8 0 1 0>;
224 interrupt-map-mask = <0 0 0 0>;
225 interrupt-map = <0 0 0 0 &mpic 65>;
226 marvell,pcie-port = <1>;
227 marvell,pcie-lane = <3>;
228 clocks = <&gateclk 12>;
229 status = "disabled";
230 };
231
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -0300232 pcie@9,0 {
233 device_type = "pci";
234 assigned-addresses = <0x82000800 0 0x42000 0 0x2000>;
235 reg = <0x4800 0 0 0 0>;
236 #address-cells = <3>;
237 #size-cells = <2>;
238 #interrupt-cells = <1>;
239 ranges = <0x82000000 0 0 0x82000000 0x9 0 1 0
240 0x81000000 0 0 0x81000000 0x9 0 1 0>;
241 interrupt-map-mask = <0 0 0 0>;
242 interrupt-map = <0 0 0 0 &mpic 99>;
243 marvell,pcie-port = <2>;
244 marvell,pcie-lane = <0>;
245 clocks = <&gateclk 26>;
246 status = "disabled";
247 };
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -0300248 };
249
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200250 internal-regs {
251 pinctrl {
252 compatible = "marvell,mv78260-pinctrl";
253 reg = <0x18000 0x38>;
Thomas Petazzoni6d36e8e2012-12-21 15:49:06 +0100254
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200255 sdio_pins: sdio-pins {
256 marvell,pins = "mpp30", "mpp31", "mpp32",
257 "mpp33", "mpp34", "mpp35";
258 marvell,function = "sd0";
259 };
Thomas Petazzoni6d36e8e2012-12-21 15:49:06 +0100260 };
Thomas Petazzoni397d59f2012-09-19 22:53:01 +0200261
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200262 gpio0: gpio@18100 {
263 compatible = "marvell,orion-gpio";
264 reg = <0x18100 0x40>;
265 ngpios = <32>;
266 gpio-controller;
267 #gpio-cells = <2>;
268 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200269 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200270 interrupts = <82>, <83>, <84>, <85>;
271 };
Thomas Petazzoni397d59f2012-09-19 22:53:01 +0200272
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200273 gpio1: gpio@18140 {
274 compatible = "marvell,orion-gpio";
275 reg = <0x18140 0x40>;
276 ngpios = <32>;
277 gpio-controller;
278 #gpio-cells = <2>;
279 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200280 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200281 interrupts = <87>, <88>, <89>, <90>;
282 };
Thomas Petazzoni397d59f2012-09-19 22:53:01 +0200283
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200284 gpio2: gpio@18180 {
285 compatible = "marvell,orion-gpio";
286 reg = <0x18180 0x40>;
287 ngpios = <3>;
288 gpio-controller;
289 #gpio-cells = <2>;
290 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200291 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200292 interrupts = <91>;
293 };
Thomas Petazzoni77916512013-01-06 11:10:41 +0100294
Willy Tarreau14cfa4b2014-01-12 13:09:24 +0100295 eth3: ethernet@34000 {
Thomas Petazzoni77916512013-01-06 11:10:41 +0100296 compatible = "marvell,armada-370-neta";
Ezequiel Garciacdd8e492013-06-22 13:52:27 -0300297 reg = <0x34000 0x4000>;
Thomas Petazzoni77916512013-01-06 11:10:41 +0100298 interrupts = <14>;
299 clocks = <&gateclk 1>;
300 status = "disabled";
Thomas Petazzoni9d8f44f2013-04-09 23:06:34 +0200301 };
Thomas Petazzoni9d8f44f2013-04-09 23:06:34 +0200302 };
Thomas Petazzonif3b42b72012-09-13 17:41:48 +0200303 };
304};