blob: 553349c07f280eadce7eb592ab93ac00497eef9c [file] [log] [blame]
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +02001/*
2 * Device Tree Include file for Marvell Armada XP 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 * Ben Dooks <ben.dooks@codethink.co.uk>
10 *
Gregory CLEMENTee2ff962015-01-26 15:16:02 +010011 * This file is dual-licensed: you can use it either under the terms
12 * of the GPL or the X11 license, at your option. Note that this dual
13 * licensing only applies to this file, and not this project as a
14 * whole.
15 *
16 * a) This file is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU General Public License as
18 * published by the Free Software Foundation; either version 2 of the
19 * License, or (at your option) any later version.
20 *
21 * This file is distributed in the hope that it will be useful
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 *
26 * Or, alternatively
27 *
28 * b) Permission is hereby granted, free of charge, to any person
29 * obtaining a copy of this software and associated documentation
30 * files (the "Software"), to deal in the Software without
31 * restriction, including without limitation the rights to use
32 * copy, modify, merge, publish, distribute, sublicense, and/or
33 * sell copies of the Software, and to permit persons to whom the
34 * Software is furnished to do so, subject to the following
35 * conditions:
36 *
37 * The above copyright notice and this permission notice shall be
38 * included in all copies or substantial portions of the Software.
39 *
40 * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
41 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
42 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
43 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
44 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
45 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
46 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
47 * OTHER DEALINGS IN THE SOFTWARE.
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020048 *
Thomas Petazzoni10b683c2012-08-02 17:13:47 +020049 * Contains definitions specific to the Armada XP SoC that are not
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020050 * common to all Armada SoCs.
51 */
52
Ezequiel Garcia38149882013-07-26 10:17:56 -030053#include "armada-370-xp.dtsi"
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020054
55/ {
56 model = "Marvell Armada XP family SoC";
57 compatible = "marvell,armadaxp", "marvell,armada-370-xp";
58
Willy Tarreaube5a9382013-06-03 18:47:36 +020059 aliases {
Thomas Petazzonibf6acf12015-03-03 15:41:01 +010060 serial2 = &uart2;
61 serial3 = &uart3;
Willy Tarreaube5a9382013-06-03 18:47:36 +020062 };
63
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020064 soc {
Ezequiel Garcia5e12a612013-07-26 10:17:57 -030065 compatible = "marvell,armadaxp-mbus", "simple-bus";
66
Ezequiel Garcia0cd37542013-07-26 10:17:58 -030067 bootrom {
68 compatible = "marvell,bootrom";
69 reg = <MBUS_ID(0x01, 0x1d) 0 0x100000>;
70 };
71
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020072 internal-regs {
Thomas Petazzoni6e6db2b2014-11-21 17:00:13 +010073 sdramc@1400 {
74 compatible = "marvell,armada-xp-sdram-controller";
75 reg = <0x1400 0x500>;
76 };
77
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020078 L2: l2-cache {
79 compatible = "marvell,aurora-system-cache";
80 reg = <0x08000 0x1000>;
81 cache-id-part = <0x100>;
Gregory CLEMENT292a3542015-03-17 17:33:54 +010082 cache-level = <2>;
Gregory CLEMENTa9ce1af2014-10-06 11:37:56 +020083 cache-unified;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +020084 wt-override;
85 };
Thomas Petazzonib18ea4d2013-04-12 16:29:07 +020086
Arnaud Ebalard547c6532014-11-22 00:46:39 +010087 spi0: spi@10600 {
Gregory CLEMENT2d295922015-05-26 11:44:44 +020088 compatible = "marvell,armada-xp-spi",
89 "marvell,orion-spi";
Arnaud Ebalard547c6532014-11-22 00:46:39 +010090 pinctrl-0 = <&spi0_pins>;
91 pinctrl-names = "default";
92 };
93
Gregory CLEMENT2d295922015-05-26 11:44:44 +020094 spi1: spi@10680 {
95 compatible = "marvell,armada-xp-spi",
96 "marvell,orion-spi";
97 };
98
99
Jason Coopera095b1c2013-12-12 13:59:17 +0000100 i2c0: i2c@11000 {
101 compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c";
102 reg = <0x11000 0x100>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200103 };
Thomas Petazzonib18ea4d2013-04-12 16:29:07 +0200104
Jason Coopera095b1c2013-12-12 13:59:17 +0000105 i2c1: i2c@11100 {
106 compatible = "marvell,mv78230-i2c", "marvell,mv64xxx-i2c";
107 reg = <0x11100 0x100>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200108 };
Thomas Petazzonib18ea4d2013-04-12 16:29:07 +0200109
Arnaud Ebalard181d9b22014-11-22 00:45:35 +0100110 uart2: serial@12200 {
Gregory CLEMENTb24212f2012-12-04 18:04:59 +0100111 compatible = "snps,dw-apb-uart";
Arnaud Ebalardd352f412014-11-22 00:46:28 +0100112 pinctrl-0 = <&uart2_pins>;
113 pinctrl-names = "default";
Gregory CLEMENT82a68262013-04-12 16:29:08 +0200114 reg = <0x12200 0x100>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200115 reg-shift = <2>;
116 interrupts = <43>;
Heikki Krogeruse3661542013-03-06 11:23:33 +0100117 reg-io-width = <1>;
Thomas Petazzoni64939dc2014-04-18 09:41:46 +0200118 clocks = <&coreclk 0>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200119 status = "disabled";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200120 };
Arnaud Ebalard181d9b22014-11-22 00:45:35 +0100121
122 uart3: serial@12300 {
Gregory CLEMENTb24212f2012-12-04 18:04:59 +0100123 compatible = "snps,dw-apb-uart";
Arnaud Ebalardd352f412014-11-22 00:46:28 +0100124 pinctrl-0 = <&uart3_pins>;
125 pinctrl-names = "default";
Gregory CLEMENT82a68262013-04-12 16:29:08 +0200126 reg = <0x12300 0x100>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200127 reg-shift = <2>;
128 interrupts = <44>;
Heikki Krogeruse3661542013-03-06 11:23:33 +0100129 reg-io-width = <1>;
Thomas Petazzoni64939dc2014-04-18 09:41:46 +0200130 clocks = <&coreclk 0>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200131 status = "disabled";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200132 };
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200133
Jason Coopera095b1c2013-12-12 13:59:17 +0000134 system-controller@18200 {
135 compatible = "marvell,armada-370-xp-system-controller";
136 reg = <0x18200 0x500>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200137 };
Gregory CLEMENT9d202782012-11-17 15:22:24 +0100138
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200139 gateclk: clock-gating-control@18220 {
140 compatible = "marvell,armada-xp-gating-clock";
141 reg = <0x18220 0x4>;
142 clocks = <&coreclk 0>;
143 #clock-cells = <1>;
144 };
Gregory CLEMENT9d202782012-11-17 15:22:24 +0100145
Jason Coopera095b1c2013-12-12 13:59:17 +0000146 coreclk: mvebu-sar@18230 {
147 compatible = "marvell,armada-xp-core-clock";
148 reg = <0x18230 0x08>;
149 #clock-cells = <1>;
150 };
151
152 thermal@182b0 {
153 compatible = "marvell,armadaxp-thermal";
154 reg = <0x182b0 0x4
155 0x184d0 0x4>;
156 status = "okay";
157 };
158
159 cpuclk: clock-complex@18700 {
160 #clock-cells = <1>;
161 compatible = "marvell,armada-xp-cpu-clock";
Nadav Haklaib7f01842015-03-17 13:53:34 +0100162 reg = <0x18700 0x24>, <0x1c054 0x10>;
Jason Coopera095b1c2013-12-12 13:59:17 +0000163 clocks = <&coreclk 1>;
164 };
165
Thomas Petazzoni24c25732015-03-03 15:41:03 +0100166 interrupt-controller@20a00 {
Jason Coopera095b1c2013-12-12 13:59:17 +0000167 reg = <0x20a00 0x2d0>, <0x21070 0x58>;
168 };
169
170 timer@20300 {
171 compatible = "marvell,armada-xp-timer";
172 clocks = <&coreclk 2>, <&refclk>;
173 clock-names = "nbclk", "fixed";
174 };
175
Ezequiel Garcia05afeeb2014-02-10 20:00:32 -0300176 watchdog@20300 {
177 compatible = "marvell,armada-xp-wdt";
178 clocks = <&coreclk 2>, <&refclk>;
179 clock-names = "nbclk", "fixed";
180 };
181
Gregory CLEMENTb6249d42014-04-14 15:50:32 +0200182 cpurst@20800 {
183 compatible = "marvell,armada-370-cpu-reset";
184 reg = <0x20800 0x20>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200185 };
Thomas Petazzoni323c1012012-09-04 15:06:43 +0200186
Thomas Petazzoni97dd8232015-07-08 16:09:21 +0200187 cpu-config@21000 {
188 compatible = "marvell,armada-xp-cpu-config";
189 reg = <0x21000 0x8>;
190 };
191
Willy Tarreaube5a9382013-06-03 18:47:36 +0200192 eth2: ethernet@30000 {
Simon Guinotea3b55f2015-06-30 16:20:21 +0200193 compatible = "marvell,armada-xp-neta";
Thomas Petazzonicf8088c2013-05-21 12:33:27 +0200194 reg = <0x30000 0x4000>;
Thomas Petazzoni323c1012012-09-04 15:06:43 +0200195 interrupts = <12>;
Thomas Petazzoni4aa935a2012-11-19 14:18:09 +0100196 clocks = <&gateclk 2>;
Thomas Petazzoni323c1012012-09-04 15:06:43 +0200197 status = "disabled";
Thomas Petazzonia1d53da2012-11-20 16:03:19 +0100198 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200199
Jason Coopera095b1c2013-12-12 13:59:17 +0000200 usb@50000 {
201 clocks = <&gateclk 18>;
202 };
203
204 usb@51000 {
205 clocks = <&gateclk 19>;
206 };
207
208 usb@52000 {
209 compatible = "marvell,orion-ehci";
210 reg = <0x52000 0x500>;
211 interrupts = <47>;
212 clocks = <&gateclk 20>;
213 status = "disabled";
214 };
215
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200216 xor@60900 {
217 compatible = "marvell,orion-xor";
218 reg = <0x60900 0x100
219 0x60b00 0x100>;
220 clocks = <&gateclk 22>;
221 status = "okay";
222
223 xor10 {
224 interrupts = <51>;
225 dmacap,memcpy;
226 dmacap,xor;
227 };
228 xor11 {
229 interrupts = <52>;
230 dmacap,memcpy;
231 dmacap,xor;
232 dmacap,memset;
233 };
Thomas Petazzonia1d53da2012-11-20 16:03:19 +0100234 };
Thomas Petazzonia1d53da2012-11-20 16:03:19 +0100235
Simon Guinotea3b55f2015-06-30 16:20:21 +0200236 ethernet@70000 {
237 compatible = "marvell,armada-xp-neta";
238 };
239
240 ethernet@74000 {
241 compatible = "marvell,armada-xp-neta";
242 };
243
Boris Brezillonb2ee6b72015-08-18 10:08:52 +0200244 crypto@90000 {
245 compatible = "marvell,armada-xp-crypto";
246 reg = <0x90000 0x10000>;
247 reg-names = "regs";
248 interrupts = <48>, <49>;
249 clocks = <&gateclk 23>, <&gateclk 23>;
250 clock-names = "cesa0", "cesa1";
251 marvell,crypto-srams = <&crypto_sram0>,
252 <&crypto_sram1>;
253 marvell,crypto-sram-size = <0x800>;
254 };
255
Marcin Wojtasebae1372016-03-14 09:38:59 +0100256 bm: bm@c0000 {
257 compatible = "marvell,armada-380-neta-bm";
258 reg = <0xc0000 0xac>;
259 clocks = <&gateclk 13>;
260 internal-mem = <&bm_bppi>;
261 status = "disabled";
262 };
263
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200264 xor@f0900 {
265 compatible = "marvell,orion-xor";
266 reg = <0xF0900 0x100
267 0xF0B00 0x100>;
268 clocks = <&gateclk 28>;
269 status = "okay";
Thomas Petazzonia1d53da2012-11-20 16:03:19 +0100270
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200271 xor00 {
272 interrupts = <94>;
273 dmacap,memcpy;
274 dmacap,xor;
275 };
276 xor01 {
277 interrupts = <95>;
278 dmacap,memcpy;
279 dmacap,xor;
280 dmacap,memset;
281 };
Thomas Petazzonia1d53da2012-11-20 16:03:19 +0100282 };
Ezequiel Garcia693a56e2013-03-26 07:16:26 -0300283 };
Boris Brezillonb2ee6b72015-08-18 10:08:52 +0200284
285 crypto_sram0: sa-sram0 {
286 compatible = "mmio-sram";
287 reg = <MBUS_ID(0x09, 0x09) 0 0x800>;
288 clocks = <&gateclk 23>;
289 #address-cells = <1>;
290 #size-cells = <1>;
291 ranges = <0 MBUS_ID(0x09, 0x09) 0 0x800>;
292 };
293
294 crypto_sram1: sa-sram1 {
295 compatible = "mmio-sram";
296 reg = <MBUS_ID(0x09, 0x05) 0 0x800>;
297 clocks = <&gateclk 23>;
298 #address-cells = <1>;
299 #size-cells = <1>;
300 ranges = <0 MBUS_ID(0x09, 0x05) 0 0x800>;
301 };
Marcin Wojtasebae1372016-03-14 09:38:59 +0100302
303 bm_bppi: bm-bppi {
304 compatible = "mmio-sram";
305 reg = <MBUS_ID(0x0c, 0x04) 0 0x100000>;
306 ranges = <0 MBUS_ID(0x0c, 0x04) 0 0x100000>;
307 #address-cells = <1>;
308 #size-cells = <1>;
309 clocks = <&gateclk 13>;
310 no-memory-wc;
311 status = "disabled";
312 };
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200313 };
Ezequiel Garciac1bbd432013-08-20 12:45:50 -0300314
315 clocks {
316 /* 25 MHz reference crystal */
317 refclk: oscillator {
318 compatible = "fixed-clock";
319 #clock-cells = <0>;
320 clock-frequency = <25000000>;
321 };
322 };
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200323};
Arnaud Ebalard4904a822014-11-22 00:45:56 +0100324
325&pinctrl {
Arnaud Ebalard70ee4e92014-11-22 17:23:30 +0100326 ge0_gmii_pins: ge0-gmii-pins {
Arnaud Ebalard4904a822014-11-22 00:45:56 +0100327 marvell,pins =
328 "mpp0", "mpp1", "mpp2", "mpp3",
329 "mpp4", "mpp5", "mpp6", "mpp7",
330 "mpp8", "mpp9", "mpp10", "mpp11",
331 "mpp12", "mpp13", "mpp14", "mpp15",
332 "mpp16", "mpp17", "mpp18", "mpp19",
333 "mpp20", "mpp21", "mpp22", "mpp23";
334 marvell,function = "ge0";
335 };
336
Arnaud Ebalard70ee4e92014-11-22 17:23:30 +0100337 ge0_rgmii_pins: ge0-rgmii-pins {
Arnaud Ebalard4904a822014-11-22 00:45:56 +0100338 marvell,pins =
339 "mpp0", "mpp1", "mpp2", "mpp3",
340 "mpp4", "mpp5", "mpp6", "mpp7",
341 "mpp8", "mpp9", "mpp10", "mpp11";
342 marvell,function = "ge0";
343 };
344
Arnaud Ebalard70ee4e92014-11-22 17:23:30 +0100345 ge1_rgmii_pins: ge1-rgmii-pins {
Arnaud Ebalard4904a822014-11-22 00:45:56 +0100346 marvell,pins =
347 "mpp12", "mpp13", "mpp14", "mpp15",
348 "mpp16", "mpp17", "mpp18", "mpp19",
349 "mpp20", "mpp21", "mpp22", "mpp23";
350 marvell,function = "ge1";
351 };
352
353 sdio_pins: sdio-pins {
354 marvell,pins = "mpp30", "mpp31", "mpp32",
355 "mpp33", "mpp34", "mpp35";
356 marvell,function = "sd0";
357 };
Arnaud Ebalardd352f412014-11-22 00:46:28 +0100358
Arnaud Ebalard547c6532014-11-22 00:46:39 +0100359 spi0_pins: spi0-pins {
360 marvell,pins = "mpp36", "mpp37",
361 "mpp38", "mpp39";
Thomas Petazzoni8c19a732015-06-11 13:56:32 +0200362 marvell,function = "spi0";
Arnaud Ebalard547c6532014-11-22 00:46:39 +0100363 };
364
Arnaud Ebalardd352f412014-11-22 00:46:28 +0100365 uart2_pins: uart2-pins {
366 marvell,pins = "mpp42", "mpp43";
367 marvell,function = "uart2";
368 };
369
370 uart3_pins: uart3-pins {
371 marvell,pins = "mpp44", "mpp45";
372 marvell,function = "uart3";
373 };
Arnaud Ebalard4904a822014-11-22 00:45:56 +0100374};