blob: 09495e87b038beeec3acb78e82e84bbbe392f2be [file] [log] [blame]
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +02001/*
2 * Device Tree Include file for Marvell Armada 370 and Armada XP 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 CLEMENT8a88daf2015-01-26 15:15:52 +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 *
Alexandre Belloni24f0b6f2016-12-27 22:36:42 +010021 * This file is distributed in the hope that it will be useful,
Gregory CLEMENT8a88daf2015-01-26 15:15:52 +010022 * 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 *
Alexandre Belloni24f0b6f2016-12-27 22:36:42 +010026 * Or, alternatively,
Gregory CLEMENT8a88daf2015-01-26 15:15:52 +010027 *
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
Alexandre Belloni24f0b6f2016-12-27 22:36:42 +010031 * restriction, including without limitation the rights to use,
Gregory CLEMENT8a88daf2015-01-26 15:15:52 +010032 * 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 *
Alexandre Belloni24f0b6f2016-12-27 22:36:42 +010040 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
Gregory CLEMENT8a88daf2015-01-26 15:15:52 +010041 * 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
Alexandre Belloni24f0b6f2016-12-27 22:36:42 +010044 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
Gregory CLEMENT8a88daf2015-01-26 15:15:52 +010045 * 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 *
49 * This file contains the definitions that are common to the Armada
50 * 370 and Armada XP SoC.
51 */
52
Ezequiel Garcia5e12a612013-07-26 10:17:57 -030053#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
54
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020055/ {
56 model = "Marvell Armada 370 and XP SoC";
Thomas Petazzoni92ece1c2012-11-09 16:29:17 +010057 compatible = "marvell,armada-370-xp";
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020058
Willy Tarreaube5a9382013-06-03 18:47:36 +020059 aliases {
Thomas Petazzonibf6acf12015-03-03 15:41:01 +010060 serial0 = &uart0;
61 serial1 = &uart1;
Willy Tarreaube5a9382013-06-03 18:47:36 +020062 };
63
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020064 cpus {
Lorenzo Pieralisi7a7ed292013-04-18 18:29:34 +010065 #address-cells = <1>;
66 #size-cells = <0>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020067 cpu@0 {
68 compatible = "marvell,sheeva-v7";
Lorenzo Pieralisi7a7ed292013-04-18 18:29:34 +010069 device_type = "cpu";
70 reg = <0>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020071 };
72 };
73
Maxime Riparda87cd072015-03-03 11:43:17 +010074 pmu {
75 compatible = "arm,cortex-a9-pmu";
76 interrupts-extended = <&mpic 3>;
77 };
78
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020079 soc {
Ezequiel Garcia5e12a612013-07-26 10:17:57 -030080 #address-cells = <2>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020081 #size-cells = <1>;
Ezequiel Garcia5e12a612013-07-26 10:17:57 -030082 controller = <&mbusc>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020083 interrupt-parent = <&mpic>;
Thomas Petazzoni46febc62014-03-04 17:36:59 +010084 pcie-mem-aperture = <0xf8000000 0x7e00000>;
85 pcie-io-aperture = <0xffe00000 0x100000>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020086
Gregory CLEMENT11f71352016-11-04 16:27:03 +010087 devbus_bootcs: devbus-bootcs {
Ezequiel Garciade1af8d2013-07-26 10:17:59 -030088 compatible = "marvell,mvebu-devbus";
89 reg = <MBUS_ID(0xf0, 0x01) 0x10400 0x8>;
90 ranges = <0 MBUS_ID(0x01, 0x2f) 0 0xffffffff>;
91 #address-cells = <1>;
92 #size-cells = <1>;
93 clocks = <&coreclk 0>;
94 status = "disabled";
95 };
96
Gregory CLEMENT11f71352016-11-04 16:27:03 +010097 devbus_cs0: devbus-cs0 {
Ezequiel Garciade1af8d2013-07-26 10:17:59 -030098 compatible = "marvell,mvebu-devbus";
99 reg = <MBUS_ID(0xf0, 0x01) 0x10408 0x8>;
100 ranges = <0 MBUS_ID(0x01, 0x3e) 0 0xffffffff>;
101 #address-cells = <1>;
102 #size-cells = <1>;
103 clocks = <&coreclk 0>;
104 status = "disabled";
105 };
106
Gregory CLEMENT11f71352016-11-04 16:27:03 +0100107 devbus_cs1: devbus-cs1 {
Ezequiel Garciade1af8d2013-07-26 10:17:59 -0300108 compatible = "marvell,mvebu-devbus";
109 reg = <MBUS_ID(0xf0, 0x01) 0x10410 0x8>;
110 ranges = <0 MBUS_ID(0x01, 0x3d) 0 0xffffffff>;
111 #address-cells = <1>;
112 #size-cells = <1>;
113 clocks = <&coreclk 0>;
114 status = "disabled";
115 };
116
Gregory CLEMENT11f71352016-11-04 16:27:03 +0100117 devbus_cs2: devbus-cs2 {
Ezequiel Garciade1af8d2013-07-26 10:17:59 -0300118 compatible = "marvell,mvebu-devbus";
119 reg = <MBUS_ID(0xf0, 0x01) 0x10418 0x8>;
120 ranges = <0 MBUS_ID(0x01, 0x3b) 0 0xffffffff>;
121 #address-cells = <1>;
122 #size-cells = <1>;
123 clocks = <&coreclk 0>;
124 status = "disabled";
125 };
126
Gregory CLEMENT11f71352016-11-04 16:27:03 +0100127 devbus_cs3: devbus-cs3 {
Ezequiel Garciade1af8d2013-07-26 10:17:59 -0300128 compatible = "marvell,mvebu-devbus";
129 reg = <MBUS_ID(0xf0, 0x01) 0x10420 0x8>;
130 ranges = <0 MBUS_ID(0x01, 0x37) 0 0xffffffff>;
131 #address-cells = <1>;
132 #size-cells = <1>;
133 clocks = <&coreclk 0>;
134 status = "disabled";
135 };
136
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200137 internal-regs {
138 compatible = "simple-bus";
139 #address-cells = <1>;
140 #size-cells = <1>;
Ezequiel Garcia5e12a612013-07-26 10:17:57 -0300141 ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
142
Gregory CLEMENT11f71352016-11-04 16:27:03 +0100143 rtc: rtc@10300 {
Jason Coopera095b1c2013-12-12 13:59:17 +0000144 compatible = "marvell,orion-rtc";
145 reg = <0x10300 0x20>;
146 interrupts = <50>;
Ezequiel Garcia5e12a612013-07-26 10:17:57 -0300147 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200148
Jason Coopera095b1c2013-12-12 13:59:17 +0000149 i2c0: i2c@11000 {
150 compatible = "marvell,mv64xxx-i2c";
151 #address-cells = <1>;
152 #size-cells = <0>;
153 interrupts = <31>;
154 timeout-ms = <1000>;
155 clocks = <&coreclk 0>;
156 status = "disabled";
157 };
158
159 i2c1: i2c@11100 {
160 compatible = "marvell,mv64xxx-i2c";
161 #address-cells = <1>;
162 #size-cells = <0>;
163 interrupts = <32>;
164 timeout-ms = <1000>;
165 clocks = <&coreclk 0>;
166 status = "disabled";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200167 };
Thomas Petazzonib18ea4d2013-04-12 16:29:07 +0200168
Arnaud Ebalard181d9b22014-11-22 00:45:35 +0100169 uart0: serial@12000 {
Gregory CLEMENTb24212f2012-12-04 18:04:59 +0100170 compatible = "snps,dw-apb-uart";
Gregory CLEMENT82a68262013-04-12 16:29:08 +0200171 reg = <0x12000 0x100>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200172 reg-shift = <2>;
173 interrupts = <41>;
Heikki Krogeruse3661542013-03-06 11:23:33 +0100174 reg-io-width = <1>;
Thomas Petazzoni64939dc2014-04-18 09:41:46 +0200175 clocks = <&coreclk 0>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200176 status = "disabled";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200177 };
Arnaud Ebalard181d9b22014-11-22 00:45:35 +0100178
179 uart1: serial@12100 {
Gregory CLEMENTb24212f2012-12-04 18:04:59 +0100180 compatible = "snps,dw-apb-uart";
Gregory CLEMENT82a68262013-04-12 16:29:08 +0200181 reg = <0x12100 0x100>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200182 reg-shift = <2>;
183 interrupts = <42>;
Heikki Krogeruse3661542013-03-06 11:23:33 +0100184 reg-io-width = <1>;
Thomas Petazzoni64939dc2014-04-18 09:41:46 +0200185 clocks = <&coreclk 0>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200186 status = "disabled";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200187 };
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200188
Arnaud Ebalard4904a822014-11-22 00:45:56 +0100189 pinctrl: pin-ctrl@18000 {
190 reg = <0x18000 0x38>;
191 };
192
Ezequiel Garciaf039dfb2013-10-18 20:02:31 -0300193 coredivclk: corediv-clock@18740 {
194 compatible = "marvell,armada-370-corediv-clock";
195 reg = <0x18740 0xc>;
196 #clock-cells = <1>;
197 clocks = <&mainpll>;
198 clock-output-names = "nand";
199 };
200
Jason Coopera095b1c2013-12-12 13:59:17 +0000201 mbusc: mbus-controller@20000 {
202 compatible = "marvell,mbus-controller";
Thomas Petazzoni8b7dc9d2014-11-21 17:00:12 +0100203 reg = <0x20000 0x100>, <0x20180 0x20>,
204 <0x20250 0x8>;
Jason Coopera095b1c2013-12-12 13:59:17 +0000205 };
206
Thomas Petazzoni24c25732015-03-03 15:41:03 +0100207 mpic: interrupt-controller@20a00 {
Jason Coopera095b1c2013-12-12 13:59:17 +0000208 compatible = "marvell,mpic";
209 #interrupt-cells = <1>;
210 #size-cells = <1>;
211 interrupt-controller;
212 msi-controller;
213 };
214
Gregory CLEMENT11f71352016-11-04 16:27:03 +0100215 coherencyfab: coherency-fabric@20200 {
Jason Coopera095b1c2013-12-12 13:59:17 +0000216 compatible = "marvell,coherency-fabric";
Kevin Hilman939ac3c2013-12-19 15:24:56 -0800217 reg = <0x20200 0xb0>, <0x21010 0x1c>;
Jason Coopera095b1c2013-12-12 13:59:17 +0000218 };
219
Gregory CLEMENT11f71352016-11-04 16:27:03 +0100220 timer: timer@20300 {
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200221 reg = <0x20300 0x30>, <0x21040 0x30>;
222 interrupts = <37>, <38>, <39>, <40>, <5>, <6>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200223 };
Thomas Petazzoni5b40bae2012-09-11 14:27:30 +0200224
Gregory CLEMENT11f71352016-11-04 16:27:03 +0100225 watchdog: watchdog@20300 {
Ezequiel Garcia05afeeb2014-02-10 20:00:32 -0300226 reg = <0x20300 0x34>, <0x20704 0x4>;
227 };
228
Gregory CLEMENT11f71352016-11-04 16:27:03 +0100229 cpurst: cpurst@20800 {
Gregory CLEMENTe72996b2016-11-04 15:50:33 +0100230 compatible = "marvell,armada-370-cpu-reset";
231 reg = <0x20800 0x8>;
232 };
233
Gregory CLEMENT11f71352016-11-04 16:27:03 +0100234 pmsu: pmsu@22000 {
Gregory CLEMENTb6249d42014-04-14 15:50:32 +0200235 compatible = "marvell,armada-370-pmsu";
236 reg = <0x22000 0x1000>;
237 };
238
Gregory CLEMENT11f71352016-11-04 16:27:03 +0100239 usb0: usb@50000 {
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200240 compatible = "marvell,orion-ehci";
241 reg = <0x50000 0x500>;
242 interrupts = <45>;
243 status = "disabled";
244 };
Ezequiel Garciab2bb8062013-01-23 12:26:30 -0300245
Gregory CLEMENT11f71352016-11-04 16:27:03 +0100246 usb1: usb@51000 {
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200247 compatible = "marvell,orion-ehci";
248 reg = <0x51000 0x500>;
249 interrupts = <46>;
250 status = "disabled";
251 };
Ezequiel Garciab2bb8062013-01-23 12:26:30 -0300252
Jason Coopera095b1c2013-12-12 13:59:17 +0000253 eth0: ethernet@70000 {
Jason Coopera095b1c2013-12-12 13:59:17 +0000254 reg = <0x70000 0x4000>;
255 interrupts = <8>;
256 clocks = <&gateclk 4>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200257 status = "disabled";
258 };
Ezequiel Garciad5dc0352013-02-06 10:06:21 -0300259
Gregory CLEMENT1fc21292016-11-04 17:54:54 +0100260 mdio: mdio@72004 {
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200261 #address-cells = <1>;
262 #size-cells = <0>;
Jason Coopera095b1c2013-12-12 13:59:17 +0000263 compatible = "marvell,orion-mdio";
264 reg = <0x72004 0x4>;
Thomas Petazzonia6e03dd2014-03-26 00:33:58 +0100265 clocks = <&gateclk 4>;
Jason Coopera095b1c2013-12-12 13:59:17 +0000266 };
267
268 eth1: ethernet@74000 {
Jason Coopera095b1c2013-12-12 13:59:17 +0000269 reg = <0x74000 0x4000>;
270 interrupts = <10>;
271 clocks = <&gateclk 3>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200272 status = "disabled";
273 };
Ezequiel Garcia3d76e1f2013-04-10 16:04:01 -0300274
Gregory CLEMENT11f71352016-11-04 16:27:03 +0100275 sata: sata@a0000 {
Linus Torvalds9b6d3512014-01-23 18:45:38 -0800276 compatible = "marvell,armada-370-sata";
Jason Coopera095b1c2013-12-12 13:59:17 +0000277 reg = <0xa0000 0x5000>;
278 interrupts = <55>;
279 clocks = <&gateclk 15>, <&gateclk 30>;
280 clock-names = "0", "1";
Ezequiel Garciad5dc0352013-02-06 10:06:21 -0300281 status = "disabled";
282 };
Ezequiel Garcia3d76e1f2013-04-10 16:04:01 -0300283
Gregory CLEMENT11f71352016-11-04 16:27:03 +0100284 nand: nand@d0000 {
Ezequiel Garciacb28e252013-11-07 12:17:33 -0300285 compatible = "marvell,armada370-nand";
286 reg = <0xd0000 0x54>;
287 #address-cells = <1>;
288 #size-cells = <1>;
289 interrupts = <113>;
290 clocks = <&coredivclk 0>;
291 status = "disabled";
292 };
Jason Coopera095b1c2013-12-12 13:59:17 +0000293
Gregory CLEMENT11f71352016-11-04 16:27:03 +0100294 sdio: mvsdio@d4000 {
Jason Coopera095b1c2013-12-12 13:59:17 +0000295 compatible = "marvell,orion-sdio";
296 reg = <0xd4000 0x200>;
297 interrupts = <54>;
298 clocks = <&gateclk 17>;
299 bus-width = <4>;
300 cap-sdio-irq;
301 cap-sd-highspeed;
302 cap-mmc-highspeed;
303 status = "disabled";
304 };
Ezequiel Garcia3d76e1f2013-04-10 16:04:01 -0300305 };
Stefan Roese0160a4b2016-07-13 11:55:18 +0200306
307 spi0: spi@10600 {
Stefan Roese55877f52016-07-13 11:55:19 +0200308 reg = <MBUS_ID(0xf0, 0x01) 0x10600 0x28>, /* control */
309 <MBUS_ID(0x01, 0x1e) 0 0xffffffff>, /* CS0 */
310 <MBUS_ID(0x01, 0x5e) 0 0xffffffff>, /* CS1 */
311 <MBUS_ID(0x01, 0x9e) 0 0xffffffff>, /* CS2 */
312 <MBUS_ID(0x01, 0xde) 0 0xffffffff>, /* CS3 */
313 <MBUS_ID(0x01, 0x1f) 0 0xffffffff>, /* CS4 */
314 <MBUS_ID(0x01, 0x5f) 0 0xffffffff>, /* CS5 */
315 <MBUS_ID(0x01, 0x9f) 0 0xffffffff>, /* CS6 */
316 <MBUS_ID(0x01, 0xdf) 0 0xffffffff>; /* CS7 */
Stefan Roese0160a4b2016-07-13 11:55:18 +0200317 #address-cells = <1>;
318 #size-cells = <0>;
319 cell-index = <0>;
320 interrupts = <30>;
321 clocks = <&coreclk 0>;
322 status = "disabled";
323 };
324
325 spi1: spi@10680 {
Stefan Roese55877f52016-07-13 11:55:19 +0200326 reg = <MBUS_ID(0xf0, 0x01) 0x10680 0x28>, /* control */
327 <MBUS_ID(0x01, 0x1a) 0 0xffffffff>, /* CS0 */
328 <MBUS_ID(0x01, 0x5a) 0 0xffffffff>, /* CS1 */
329 <MBUS_ID(0x01, 0x9a) 0 0xffffffff>, /* CS2 */
330 <MBUS_ID(0x01, 0xda) 0 0xffffffff>, /* CS3 */
331 <MBUS_ID(0x01, 0x1b) 0 0xffffffff>, /* CS4 */
332 <MBUS_ID(0x01, 0x5b) 0 0xffffffff>, /* CS5 */
333 <MBUS_ID(0x01, 0x9b) 0 0xffffffff>, /* CS6 */
334 <MBUS_ID(0x01, 0xdb) 0 0xffffffff>; /* CS7 */
Stefan Roese0160a4b2016-07-13 11:55:18 +0200335 #address-cells = <1>;
336 #size-cells = <0>;
337 cell-index = <1>;
338 interrupts = <92>;
339 clocks = <&coreclk 0>;
340 status = "disabled";
341 };
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200342 };
Ezequiel Garcia4675cf52013-10-18 20:02:30 -0300343
344 clocks {
345 /* 2 GHz fixed main PLL */
346 mainpll: mainpll {
347 compatible = "fixed-clock";
348 #clock-cells = <0>;
349 clock-frequency = <2000000000>;
350 };
351 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200352 };