blob: ecf0bf153fec89685c40cd6cad0258274bd686f3 [file] [log] [blame]
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +02001/*
2 * Device Tree Include file for Marvell Armada 370 family SoC
3 *
4 * Copyright (C) 2012 Marvell
5 *
6 * Lior Amsalem <alior@marvell.com>
7 * Gregory CLEMENT <gregory.clement@free-electrons.com>
8 * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 *
10 * This file is licensed under the terms of the GNU General Public
11 * License version 2. This program is licensed "as is" without any
12 * warranty of any kind, whether express or implied.
13 *
14 * Contains definitions specific to the Armada 370 SoC that are not
15 * common to all Armada SoCs.
16 */
17
Ezequiel Garcia38149882013-07-26 10:17:56 -030018#include "armada-370-xp.dtsi"
Gregory CLEMENT74898362013-04-12 16:29:10 +020019/include/ "skeleton.dtsi"
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020020
21/ {
22 model = "Marvell Armada 370 family SoC";
23 compatible = "marvell,armada370", "marvell,armada-370-xp";
24
Thomas Petazzoni397d59f2012-09-19 22:53:01 +020025 aliases {
26 gpio0 = &gpio0;
27 gpio1 = &gpio1;
28 gpio2 = &gpio2;
29 };
30
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020031 soc {
Ezequiel Garcia5e12a612013-07-26 10:17:57 -030032 compatible = "marvell,armada370-mbus", "simple-bus";
33
Ezequiel Garcia0cd37542013-07-26 10:17:58 -030034 bootrom {
35 compatible = "marvell,bootrom";
36 reg = <MBUS_ID(0x01, 0xe0) 0 0x100000>;
37 };
38
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030039 pcie-controller {
40 compatible = "marvell,armada-370-pcie";
41 status = "disabled";
42 device_type = "pci";
43
44 #address-cells = <3>;
45 #size-cells = <2>;
46
Thomas Petazzonid4fa9942013-08-09 22:27:15 +020047 msi-parent = <&mpic>;
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030048 bus-range = <0x00 0xff>;
49
50 ranges =
51 <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000
52 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000
53 0x82000000 0x1 0 MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
54 0x81000000 0x1 0 MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO */
55 0x82000000 0x2 0 MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
56 0x81000000 0x2 0 MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO */>;
57
58 pcie@1,0 {
59 device_type = "pci";
60 assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
61 reg = <0x0800 0 0 0 0>;
62 #address-cells = <3>;
63 #size-cells = <2>;
64 #interrupt-cells = <1>;
65 ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
66 0x81000000 0 0 0x81000000 0x1 0 1 0>;
67 interrupt-map-mask = <0 0 0 0>;
68 interrupt-map = <0 0 0 0 &mpic 58>;
69 marvell,pcie-port = <0>;
70 marvell,pcie-lane = <0>;
71 clocks = <&gateclk 5>;
72 status = "disabled";
73 };
74
75 pcie@2,0 {
76 device_type = "pci";
77 assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
78 reg = <0x1000 0 0 0 0>;
79 #address-cells = <3>;
80 #size-cells = <2>;
81 #interrupt-cells = <1>;
82 ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
83 0x81000000 0 0 0x81000000 0x2 0 1 0>;
84 interrupt-map-mask = <0 0 0 0>;
85 interrupt-map = <0 0 0 0 &mpic 62>;
86 marvell,pcie-port = <1>;
87 marvell,pcie-lane = <0>;
88 clocks = <&gateclk 9>;
89 status = "disabled";
90 };
91 };
92
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020093 internal-regs {
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020094 L2: l2-cache {
95 compatible = "marvell,aurora-outer-cache";
Gregory CLEMENT489e1382013-05-20 16:13:27 +020096 reg = <0x08000 0x1000>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020097 cache-id-part = <0x100>;
Gregory CLEMENTa9ce1af2014-10-06 11:37:56 +020098 cache-unified;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020099 wt-override;
Thomas Petazzonifa1b21d2012-12-21 15:49:05 +0100100 };
Ryan Press879d68a2013-03-26 16:32:31 -0700101
Jason Coopera095b1c2013-12-12 13:59:17 +0000102 i2c0: i2c@11000 {
103 reg = <0x11000 0x20>;
104 };
105
106 i2c1: i2c@11100 {
107 reg = <0x11100 0x20>;
108 };
109
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200110 gpio0: gpio@18100 {
111 compatible = "marvell,orion-gpio";
112 reg = <0x18100 0x40>;
113 ngpios = <32>;
114 gpio-controller;
115 #gpio-cells = <2>;
116 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200117 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200118 interrupts = <82>, <83>, <84>, <85>;
Thomas Petazzoni0122eee2012-11-20 16:03:12 +0100119 };
Thomas Petazzoni0122eee2012-11-20 16:03:12 +0100120
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200121 gpio1: gpio@18140 {
122 compatible = "marvell,orion-gpio";
123 reg = <0x18140 0x40>;
124 ngpios = <32>;
125 gpio-controller;
126 #gpio-cells = <2>;
127 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200128 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200129 interrupts = <87>, <88>, <89>, <90>;
Thomas Petazzoni0122eee2012-11-20 16:03:12 +0100130 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200131
132 gpio2: gpio@18180 {
133 compatible = "marvell,orion-gpio";
134 reg = <0x18180 0x40>;
135 ngpios = <2>;
136 gpio-controller;
137 #gpio-cells = <2>;
138 interrupt-controller;
Thomas Petazzonica609852013-07-30 16:59:02 +0200139 #interrupt-cells = <2>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200140 interrupts = <91>;
Thomas Petazzoni0122eee2012-11-20 16:03:12 +0100141 };
Ezequiel Garciab2bb8062013-01-23 12:26:30 -0300142
Uwe Kleine-Königab1e8532014-11-14 21:43:33 +0100143 system-controller@18200 {
144 compatible = "marvell,armada-370-xp-system-controller";
145 reg = <0x18200 0x100>;
146 };
147
Jason Coopera095b1c2013-12-12 13:59:17 +0000148 gateclk: clock-gating-control@18220 {
149 compatible = "marvell,armada-370-gating-clock";
150 reg = <0x18220 0x4>;
151 clocks = <&coreclk 0>;
152 #clock-cells = <1>;
Ezequiel Garcia5d3b8832013-08-13 11:43:15 -0300153 };
154
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200155 coreclk: mvebu-sar@18230 {
156 compatible = "marvell,armada-370-core-clock";
157 reg = <0x18230 0x08>;
158 #clock-cells = <1>;
159 };
Ezequiel Garciab2bb8062013-01-23 12:26:30 -0300160
Jason Coopera095b1c2013-12-12 13:59:17 +0000161 thermal@18300 {
162 compatible = "marvell,armada370-thermal";
163 reg = <0x18300 0x4
164 0x18304 0x4>;
165 status = "okay";
166 };
167
Gregory CLEMENTe86ed562014-09-02 10:15:18 +0200168 sscg@18330 {
169 reg = <0x18330 0x4>;
170 };
171
Jason Coopera095b1c2013-12-12 13:59:17 +0000172 interrupt-controller@20000 {
173 reg = <0x20a00 0x1d0>, <0x21870 0x58>;
174 };
175
176 timer@20300 {
177 compatible = "marvell,armada-370-timer";
178 clocks = <&coreclk 2>;
179 };
180
Ezequiel Garcia05afeeb2014-02-10 20:00:32 -0300181 watchdog@20300 {
182 compatible = "marvell,armada-370-wdt";
183 clocks = <&coreclk 2>;
184 };
185
Gregory CLEMENTb6249d42014-04-14 15:50:32 +0200186 cpurst@20800 {
187 compatible = "marvell,armada-370-cpu-reset";
188 reg = <0x20800 0x8>;
189 };
190
Thomas Petazzoni74839832014-02-12 18:20:58 +0100191 audio_controller: audio-controller@30000 {
Thomas Petazzonia6b33452014-10-28 17:08:43 +0100192 #sound-dai-cells = <1>;
Thomas Petazzoni74839832014-02-12 18:20:58 +0100193 compatible = "marvell,armada370-audio";
194 reg = <0x30000 0x4000>;
195 interrupts = <93>;
196 clocks = <&gateclk 0>;
197 clock-names = "internal";
198 status = "disabled";
199 };
200
Jason Coopera095b1c2013-12-12 13:59:17 +0000201 usb@50000 {
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200202 clocks = <&coreclk 0>;
Jason Coopera095b1c2013-12-12 13:59:17 +0000203 };
204
205 usb@51000 {
206 clocks = <&coreclk 0>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200207 };
Ezequiel Garciab2bb8062013-01-23 12:26:30 -0300208
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200209 xor@60800 {
210 compatible = "marvell,orion-xor";
211 reg = <0x60800 0x100
212 0x60A00 0x100>;
213 status = "okay";
Thomas Petazzonia09a0b72013-04-09 23:06:33 +0200214
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200215 xor00 {
216 interrupts = <51>;
217 dmacap,memcpy;
218 dmacap,xor;
219 };
220 xor01 {
221 interrupts = <52>;
222 dmacap,memcpy;
223 dmacap,xor;
224 dmacap,memset;
225 };
226 };
Thomas Petazzonia09a0b72013-04-09 23:06:33 +0200227
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200228 xor@60900 {
229 compatible = "marvell,orion-xor";
230 reg = <0x60900 0x100
231 0x60b00 0x100>;
232 status = "okay";
Thomas Petazzonia09a0b72013-04-09 23:06:33 +0200233
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200234 xor10 {
235 interrupts = <94>;
236 dmacap,memcpy;
237 dmacap,xor;
238 };
239 xor11 {
240 interrupts = <95>;
241 dmacap,memcpy;
242 dmacap,xor;
243 dmacap,memset;
244 };
245 };
Thomas Petazzonia09a0b72013-04-09 23:06:33 +0200246 };
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200247 };
248};
Arnaud Ebalard4904a822014-11-22 00:45:56 +0100249
250&pinctrl {
251 compatible = "marvell,mv88f6710-pinctrl";
252
253 sdio_pins1: sdio-pins1 {
254 marvell,pins = "mpp9", "mpp11", "mpp12",
255 "mpp13", "mpp14", "mpp15";
256 marvell,function = "sd0";
257 };
258
259 sdio_pins2: sdio-pins2 {
260 marvell,pins = "mpp47", "mpp48", "mpp49",
261 "mpp50", "mpp51", "mpp52";
262 marvell,function = "sd0";
263 };
264
265 sdio_pins3: sdio-pins3 {
266 marvell,pins = "mpp48", "mpp49", "mpp50",
267 "mpp51", "mpp52", "mpp53";
268 marvell,function = "sd0";
269 };
270
271 i2c0_pins: i2c0-pins {
272 marvell,pins = "mpp2", "mpp3";
273 marvell,function = "i2c0";
274 };
275
276 i2s_pins1: i2s-pins1 {
277 marvell,pins = "mpp5", "mpp6", "mpp7",
278 "mpp8", "mpp9", "mpp10",
279 "mpp12", "mpp13";
280 marvell,function = "audio";
281 };
282
283 i2s_pins2: i2s-pins2 {
284 marvell,pins = "mpp49", "mpp47", "mpp50",
285 "mpp59", "mpp57", "mpp61",
286 "mpp62", "mpp60", "mpp58";
287 marvell,function = "audio";
288 };
289
290 mdio_pins: mdio-pins {
291 marvell,pins = "mpp17", "mpp18";
292 marvell,function = "ge";
293 };
294
295 ge0_rgmii_pins: ge0-rgmii-pins {
296 marvell,pins = "mpp5", "mpp6", "mpp7", "mpp8",
297 "mpp9", "mpp10", "mpp11", "mpp12",
298 "mpp13", "mpp14", "mpp15", "mpp16";
299 marvell,function = "ge0";
300 };
301
302 ge1_rgmii_pins: ge1-rgmii-pins {
303 marvell,pins = "mpp19", "mpp20", "mpp21", "mpp22",
304 "mpp23", "mpp24", "mpp25", "mpp26",
305 "mpp27", "mpp28", "mpp29", "mpp30";
306 marvell,function = "ge1";
307 };
308};