blob: 66609684d41b59ef701530fd2076553ffc4e9b6b [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;
26 };
27
Gregory CLEMENT9d202782012-11-17 15:22:24 +010028 cpus {
Thomas Petazzoni1b2529d2013-04-12 16:29:06 +020029 #address-cells = <1>;
30 #size-cells = <0>;
Gregory CLEMENT9d202782012-11-17 15:22:24 +010031
Thomas Petazzoni1b2529d2013-04-12 16:29:06 +020032 cpu@0 {
33 device_type = "cpu";
34 compatible = "marvell,sheeva-v7";
35 reg = <0>;
36 clocks = <&cpuclk 0>;
37 };
Gregory CLEMENT9d202782012-11-17 15:22:24 +010038
Thomas Petazzoni1b2529d2013-04-12 16:29:06 +020039 cpu@1 {
40 device_type = "cpu";
41 compatible = "marvell,sheeva-v7";
42 reg = <1>;
43 clocks = <&cpuclk 1>;
44 };
Gregory CLEMENT9d202782012-11-17 15:22:24 +010045 };
46
Thomas Petazzonif3b42b72012-09-13 17:41:48 +020047 soc {
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030048 /*
49 * MV78260 has 3 PCIe units Gen2.0: Two units can be
50 * configured as x4 or quad x1 lanes. One unit is
Arnaud Ebalard2163e612013-11-05 21:46:02 +010051 * x4 only.
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030052 */
53 pcie-controller {
54 compatible = "marvell,armada-xp-pcie";
55 status = "disabled";
56 device_type = "pci";
57
58 #address-cells = <3>;
59 #size-cells = <2>;
60
Thomas Petazzonid4fa9942013-08-09 22:27:15 +020061 msi-parent = <&mpic>;
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030062 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 */
Arnaud Ebalard2163e612013-11-05 21:46:02 +010071 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 */
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030074 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 */
Arnaud Ebalard2163e612013-11-05 21:46:02 +010082
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 */>;
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030094
95 pcie@1,0 {
96 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>;
104 interrupt-map-mask = <0 0 0 0>;
105 interrupt-map = <0 0 0 0 &mpic 58>;
106 marvell,pcie-port = <0>;
107 marvell,pcie-lane = <0>;
108 clocks = <&gateclk 5>;
109 status = "disabled";
110 };
111
112 pcie@2,0 {
113 device_type = "pci";
114 assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
115 reg = <0x1000 0 0 0 0>;
116 #address-cells = <3>;
117 #size-cells = <2>;
118 #interrupt-cells = <1>;
Arnaud Ebalard2163e612013-11-05 21:46:02 +0100119 ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
120 0x81000000 0 0 0x81000000 0x2 0 1 0>;
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -0300121 interrupt-map-mask = <0 0 0 0>;
122 interrupt-map = <0 0 0 0 &mpic 59>;
123 marvell,pcie-port = <0>;
124 marvell,pcie-lane = <1>;
125 clocks = <&gateclk 6>;
126 status = "disabled";
127 };
128
129 pcie@3,0 {
130 device_type = "pci";
131 assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
132 reg = <0x1800 0 0 0 0>;
133 #address-cells = <3>;
134 #size-cells = <2>;
135 #interrupt-cells = <1>;
136 ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
137 0x81000000 0 0 0x81000000 0x3 0 1 0>;
138 interrupt-map-mask = <0 0 0 0>;
139 interrupt-map = <0 0 0 0 &mpic 60>;
140 marvell,pcie-port = <0>;
141 marvell,pcie-lane = <2>;
142 clocks = <&gateclk 7>;
143 status = "disabled";
144 };
145
146 pcie@4,0 {
147 device_type = "pci";
148 assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
149 reg = <0x2000 0 0 0 0>;
150 #address-cells = <3>;
151 #size-cells = <2>;
152 #interrupt-cells = <1>;
153 ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
154 0x81000000 0 0 0x81000000 0x4 0 1 0>;
155 interrupt-map-mask = <0 0 0 0>;
156 interrupt-map = <0 0 0 0 &mpic 61>;
157 marvell,pcie-port = <0>;
158 marvell,pcie-lane = <3>;
159 clocks = <&gateclk 8>;
160 status = "disabled";
161 };
162
Arnaud Ebalard2163e612013-11-05 21:46:02 +0100163 pcie@5,0 {
164 device_type = "pci";
165 assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
166 reg = <0x2800 0 0 0 0>;
167 #address-cells = <3>;
168 #size-cells = <2>;
169 #interrupt-cells = <1>;
170 ranges = <0x82000000 0 0 0x82000000 0x5 0 1 0
171 0x81000000 0 0 0x81000000 0x5 0 1 0>;
172 interrupt-map-mask = <0 0 0 0>;
173 interrupt-map = <0 0 0 0 &mpic 62>;
174 marvell,pcie-port = <1>;
175 marvell,pcie-lane = <0>;
176 clocks = <&gateclk 9>;
177 status = "disabled";
178 };
179
180 pcie@6,0 {
181 device_type = "pci";
182 assigned-addresses = <0x82000800 0 0x84000 0 0x2000>;
183 reg = <0x3000 0 0 0 0>;
184 #address-cells = <3>;
185 #size-cells = <2>;
186 #interrupt-cells = <1>;
187 ranges = <0x82000000 0 0 0x82000000 0x6 0 1 0
188 0x81000000 0 0 0x81000000 0x6 0 1 0>;
189 interrupt-map-mask = <0 0 0 0>;
190 interrupt-map = <0 0 0 0 &mpic 63>;
191 marvell,pcie-port = <1>;
192 marvell,pcie-lane = <1>;
193 clocks = <&gateclk 10>;
194 status = "disabled";
195 };
196
197 pcie@7,0 {
198 device_type = "pci";
199 assigned-addresses = <0x82000800 0 0x88000 0 0x2000>;
200 reg = <0x3800 0 0 0 0>;
201 #address-cells = <3>;
202 #size-cells = <2>;
203 #interrupt-cells = <1>;
204 ranges = <0x82000000 0 0 0x82000000 0x7 0 1 0
205 0x81000000 0 0 0x81000000 0x7 0 1 0>;
206 interrupt-map-mask = <0 0 0 0>;
207 interrupt-map = <0 0 0 0 &mpic 64>;
208 marvell,pcie-port = <1>;
209 marvell,pcie-lane = <2>;
210 clocks = <&gateclk 11>;
211 status = "disabled";
212 };
213
214 pcie@8,0 {
215 device_type = "pci";
216 assigned-addresses = <0x82000800 0 0x8c000 0 0x2000>;
217 reg = <0x4000 0 0 0 0>;
218 #address-cells = <3>;
219 #size-cells = <2>;
220 #interrupt-cells = <1>;
221 ranges = <0x82000000 0 0 0x82000000 0x8 0 1 0
222 0x81000000 0 0 0x81000000 0x8 0 1 0>;
223 interrupt-map-mask = <0 0 0 0>;
224 interrupt-map = <0 0 0 0 &mpic 65>;
225 marvell,pcie-port = <1>;
226 marvell,pcie-lane = <3>;
227 clocks = <&gateclk 12>;
228 status = "disabled";
229 };
230
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -0300231 pcie@9,0 {
232 device_type = "pci";
233 assigned-addresses = <0x82000800 0 0x42000 0 0x2000>;
234 reg = <0x4800 0 0 0 0>;
235 #address-cells = <3>;
236 #size-cells = <2>;
237 #interrupt-cells = <1>;
238 ranges = <0x82000000 0 0 0x82000000 0x9 0 1 0
239 0x81000000 0 0 0x81000000 0x9 0 1 0>;
240 interrupt-map-mask = <0 0 0 0>;
241 interrupt-map = <0 0 0 0 &mpic 99>;
242 marvell,pcie-port = <2>;
243 marvell,pcie-lane = <0>;
244 clocks = <&gateclk 26>;
245 status = "disabled";
246 };
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -0300247 };
248
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200249 internal-regs {
250 pinctrl {
251 compatible = "marvell,mv78260-pinctrl";
252 reg = <0x18000 0x38>;
Thomas Petazzoni6d36e8e2012-12-21 15:49:06 +0100253
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200254 sdio_pins: sdio-pins {
255 marvell,pins = "mpp30", "mpp31", "mpp32",
256 "mpp33", "mpp34", "mpp35";
257 marvell,function = "sd0";
258 };
Thomas Petazzoni6d36e8e2012-12-21 15:49:06 +0100259 };
Thomas Petazzoni397d59f2012-09-19 22:53:01 +0200260
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200261 gpio0: gpio@18100 {
262 compatible = "marvell,orion-gpio";
263 reg = <0x18100 0x40>;
264 ngpios = <32>;
265 gpio-controller;
266 #gpio-cells = <2>;
267 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200268 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200269 interrupts = <82>, <83>, <84>, <85>;
270 };
Thomas Petazzoni397d59f2012-09-19 22:53:01 +0200271
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200272 gpio1: gpio@18140 {
273 compatible = "marvell,orion-gpio";
274 reg = <0x18140 0x40>;
275 ngpios = <32>;
276 gpio-controller;
277 #gpio-cells = <2>;
278 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200279 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200280 interrupts = <87>, <88>, <89>, <90>;
281 };
Thomas Petazzoni397d59f2012-09-19 22:53:01 +0200282
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200283 gpio2: gpio@18180 {
284 compatible = "marvell,orion-gpio";
285 reg = <0x18180 0x40>;
286 ngpios = <3>;
287 gpio-controller;
288 #gpio-cells = <2>;
289 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200290 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200291 interrupts = <91>;
292 };
Thomas Petazzoni77916512013-01-06 11:10:41 +0100293
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200294 ethernet@34000 {
Thomas Petazzoni77916512013-01-06 11:10:41 +0100295 compatible = "marvell,armada-370-neta";
Ezequiel Garciacdd8e492013-06-22 13:52:27 -0300296 reg = <0x34000 0x4000>;
Thomas Petazzoni77916512013-01-06 11:10:41 +0100297 interrupts = <14>;
298 clocks = <&gateclk 1>;
299 status = "disabled";
Thomas Petazzoni9d8f44f2013-04-09 23:06:34 +0200300 };
Thomas Petazzoni9d8f44f2013-04-09 23:06:34 +0200301 };
Thomas Petazzonif3b42b72012-09-13 17:41:48 +0200302 };
303};