blob: ec96f0b3634653a5976739688eca9fd791eaba0b [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 *
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 *
49 * This file contains the definitions that are common to the Armada
50 * 370 and Armada XP SoC.
51 */
52
Gregory CLEMENT74898362013-04-12 16:29:10 +020053/include/ "skeleton64.dtsi"
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020054
Ezequiel Garcia5e12a612013-07-26 10:17:57 -030055#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
56
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020057/ {
58 model = "Marvell Armada 370 and XP SoC";
Thomas Petazzoni92ece1c2012-11-09 16:29:17 +010059 compatible = "marvell,armada-370-xp";
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020060
Willy Tarreaube5a9382013-06-03 18:47:36 +020061 aliases {
Thomas Petazzonibf6acf12015-03-03 15:41:01 +010062 serial0 = &uart0;
63 serial1 = &uart1;
Willy Tarreaube5a9382013-06-03 18:47:36 +020064 };
65
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020066 cpus {
Lorenzo Pieralisi7a7ed292013-04-18 18:29:34 +010067 #address-cells = <1>;
68 #size-cells = <0>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020069 cpu@0 {
70 compatible = "marvell,sheeva-v7";
Lorenzo Pieralisi7a7ed292013-04-18 18:29:34 +010071 device_type = "cpu";
72 reg = <0>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020073 };
74 };
75
Maxime Riparda87cd072015-03-03 11:43:17 +010076 pmu {
77 compatible = "arm,cortex-a9-pmu";
78 interrupts-extended = <&mpic 3>;
79 };
80
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020081 soc {
Ezequiel Garcia5e12a612013-07-26 10:17:57 -030082 #address-cells = <2>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020083 #size-cells = <1>;
Ezequiel Garcia5e12a612013-07-26 10:17:57 -030084 controller = <&mbusc>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020085 interrupt-parent = <&mpic>;
Thomas Petazzoni46febc62014-03-04 17:36:59 +010086 pcie-mem-aperture = <0xf8000000 0x7e00000>;
87 pcie-io-aperture = <0xffe00000 0x100000>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020088
Ezequiel Garciade1af8d2013-07-26 10:17:59 -030089 devbus-bootcs {
90 compatible = "marvell,mvebu-devbus";
91 reg = <MBUS_ID(0xf0, 0x01) 0x10400 0x8>;
92 ranges = <0 MBUS_ID(0x01, 0x2f) 0 0xffffffff>;
93 #address-cells = <1>;
94 #size-cells = <1>;
95 clocks = <&coreclk 0>;
96 status = "disabled";
97 };
98
99 devbus-cs0 {
100 compatible = "marvell,mvebu-devbus";
101 reg = <MBUS_ID(0xf0, 0x01) 0x10408 0x8>;
102 ranges = <0 MBUS_ID(0x01, 0x3e) 0 0xffffffff>;
103 #address-cells = <1>;
104 #size-cells = <1>;
105 clocks = <&coreclk 0>;
106 status = "disabled";
107 };
108
109 devbus-cs1 {
110 compatible = "marvell,mvebu-devbus";
111 reg = <MBUS_ID(0xf0, 0x01) 0x10410 0x8>;
112 ranges = <0 MBUS_ID(0x01, 0x3d) 0 0xffffffff>;
113 #address-cells = <1>;
114 #size-cells = <1>;
115 clocks = <&coreclk 0>;
116 status = "disabled";
117 };
118
119 devbus-cs2 {
120 compatible = "marvell,mvebu-devbus";
121 reg = <MBUS_ID(0xf0, 0x01) 0x10418 0x8>;
122 ranges = <0 MBUS_ID(0x01, 0x3b) 0 0xffffffff>;
123 #address-cells = <1>;
124 #size-cells = <1>;
125 clocks = <&coreclk 0>;
126 status = "disabled";
127 };
128
129 devbus-cs3 {
130 compatible = "marvell,mvebu-devbus";
131 reg = <MBUS_ID(0xf0, 0x01) 0x10420 0x8>;
132 ranges = <0 MBUS_ID(0x01, 0x37) 0 0xffffffff>;
133 #address-cells = <1>;
134 #size-cells = <1>;
135 clocks = <&coreclk 0>;
136 status = "disabled";
137 };
138
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200139 internal-regs {
140 compatible = "simple-bus";
141 #address-cells = <1>;
142 #size-cells = <1>;
Ezequiel Garcia5e12a612013-07-26 10:17:57 -0300143 ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
144
Jason Coopera095b1c2013-12-12 13:59:17 +0000145 rtc@10300 {
146 compatible = "marvell,orion-rtc";
147 reg = <0x10300 0x20>;
148 interrupts = <50>;
Ezequiel Garcia5e12a612013-07-26 10:17:57 -0300149 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200150
Jason Coopera095b1c2013-12-12 13:59:17 +0000151 spi0: spi@10600 {
Greg Ungererccf8ca42014-09-08 13:30:29 +1000152 compatible = "marvell,armada-370-spi", "marvell,orion-spi";
Jason Coopera095b1c2013-12-12 13:59:17 +0000153 reg = <0x10600 0x28>;
154 #address-cells = <1>;
155 #size-cells = <0>;
156 cell-index = <0>;
157 interrupts = <30>;
158 clocks = <&coreclk 0>;
159 status = "disabled";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200160 };
Thomas Petazzonib18ea4d2013-04-12 16:29:07 +0200161
Jason Coopera095b1c2013-12-12 13:59:17 +0000162 spi1: spi@10680 {
Greg Ungererccf8ca42014-09-08 13:30:29 +1000163 compatible = "marvell,armada-370-spi", "marvell,orion-spi";
Jason Coopera095b1c2013-12-12 13:59:17 +0000164 reg = <0x10680 0x28>;
165 #address-cells = <1>;
166 #size-cells = <0>;
167 cell-index = <1>;
168 interrupts = <92>;
169 clocks = <&coreclk 0>;
170 status = "disabled";
171 };
172
173 i2c0: i2c@11000 {
174 compatible = "marvell,mv64xxx-i2c";
175 #address-cells = <1>;
176 #size-cells = <0>;
177 interrupts = <31>;
178 timeout-ms = <1000>;
179 clocks = <&coreclk 0>;
180 status = "disabled";
181 };
182
183 i2c1: i2c@11100 {
184 compatible = "marvell,mv64xxx-i2c";
185 #address-cells = <1>;
186 #size-cells = <0>;
187 interrupts = <32>;
188 timeout-ms = <1000>;
189 clocks = <&coreclk 0>;
190 status = "disabled";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200191 };
Thomas Petazzonib18ea4d2013-04-12 16:29:07 +0200192
Arnaud Ebalard181d9b22014-11-22 00:45:35 +0100193 uart0: serial@12000 {
Gregory CLEMENTb24212f2012-12-04 18:04:59 +0100194 compatible = "snps,dw-apb-uart";
Gregory CLEMENT82a68262013-04-12 16:29:08 +0200195 reg = <0x12000 0x100>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200196 reg-shift = <2>;
197 interrupts = <41>;
Heikki Krogeruse3661542013-03-06 11:23:33 +0100198 reg-io-width = <1>;
Thomas Petazzoni64939dc2014-04-18 09:41:46 +0200199 clocks = <&coreclk 0>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200200 status = "disabled";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200201 };
Arnaud Ebalard181d9b22014-11-22 00:45:35 +0100202
203 uart1: serial@12100 {
Gregory CLEMENTb24212f2012-12-04 18:04:59 +0100204 compatible = "snps,dw-apb-uart";
Gregory CLEMENT82a68262013-04-12 16:29:08 +0200205 reg = <0x12100 0x100>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200206 reg-shift = <2>;
207 interrupts = <42>;
Heikki Krogeruse3661542013-03-06 11:23:33 +0100208 reg-io-width = <1>;
Thomas Petazzoni64939dc2014-04-18 09:41:46 +0200209 clocks = <&coreclk 0>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200210 status = "disabled";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200211 };
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200212
Arnaud Ebalard4904a822014-11-22 00:45:56 +0100213 pinctrl: pin-ctrl@18000 {
214 reg = <0x18000 0x38>;
215 };
216
Ezequiel Garciaf039dfb2013-10-18 20:02:31 -0300217 coredivclk: corediv-clock@18740 {
218 compatible = "marvell,armada-370-corediv-clock";
219 reg = <0x18740 0xc>;
220 #clock-cells = <1>;
221 clocks = <&mainpll>;
222 clock-output-names = "nand";
223 };
224
Jason Coopera095b1c2013-12-12 13:59:17 +0000225 mbusc: mbus-controller@20000 {
226 compatible = "marvell,mbus-controller";
Thomas Petazzoni8b7dc9d2014-11-21 17:00:12 +0100227 reg = <0x20000 0x100>, <0x20180 0x20>,
228 <0x20250 0x8>;
Jason Coopera095b1c2013-12-12 13:59:17 +0000229 };
230
Thomas Petazzoni24c25732015-03-03 15:41:03 +0100231 mpic: interrupt-controller@20a00 {
Jason Coopera095b1c2013-12-12 13:59:17 +0000232 compatible = "marvell,mpic";
233 #interrupt-cells = <1>;
234 #size-cells = <1>;
235 interrupt-controller;
236 msi-controller;
237 };
238
239 coherency-fabric@20200 {
240 compatible = "marvell,coherency-fabric";
Kevin Hilman939ac3c2013-12-19 15:24:56 -0800241 reg = <0x20200 0xb0>, <0x21010 0x1c>;
Jason Coopera095b1c2013-12-12 13:59:17 +0000242 };
243
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200244 timer@20300 {
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200245 reg = <0x20300 0x30>, <0x21040 0x30>;
246 interrupts = <37>, <38>, <39>, <40>, <5>, <6>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200247 };
Thomas Petazzoni5b40bae2012-09-11 14:27:30 +0200248
Ezequiel Garcia05afeeb2014-02-10 20:00:32 -0300249 watchdog@20300 {
250 reg = <0x20300 0x34>, <0x20704 0x4>;
251 };
252
Gregory CLEMENTb6249d42014-04-14 15:50:32 +0200253 pmsu@22000 {
254 compatible = "marvell,armada-370-pmsu";
255 reg = <0x22000 0x1000>;
256 };
257
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200258 usb@50000 {
259 compatible = "marvell,orion-ehci";
260 reg = <0x50000 0x500>;
261 interrupts = <45>;
262 status = "disabled";
263 };
Ezequiel Garciab2bb8062013-01-23 12:26:30 -0300264
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200265 usb@51000 {
266 compatible = "marvell,orion-ehci";
267 reg = <0x51000 0x500>;
268 interrupts = <46>;
269 status = "disabled";
270 };
Ezequiel Garciab2bb8062013-01-23 12:26:30 -0300271
Jason Coopera095b1c2013-12-12 13:59:17 +0000272 eth0: ethernet@70000 {
273 compatible = "marvell,armada-370-neta";
274 reg = <0x70000 0x4000>;
275 interrupts = <8>;
276 clocks = <&gateclk 4>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200277 status = "disabled";
278 };
Ezequiel Garciad5dc0352013-02-06 10:06:21 -0300279
Andrew Lunn9ef90cb2014-11-05 20:02:00 +0100280 mdio: mdio {
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200281 #address-cells = <1>;
282 #size-cells = <0>;
Jason Coopera095b1c2013-12-12 13:59:17 +0000283 compatible = "marvell,orion-mdio";
284 reg = <0x72004 0x4>;
Thomas Petazzonia6e03dd2014-03-26 00:33:58 +0100285 clocks = <&gateclk 4>;
Jason Coopera095b1c2013-12-12 13:59:17 +0000286 };
287
288 eth1: ethernet@74000 {
289 compatible = "marvell,armada-370-neta";
290 reg = <0x74000 0x4000>;
291 interrupts = <10>;
292 clocks = <&gateclk 3>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200293 status = "disabled";
294 };
Ezequiel Garcia3d76e1f2013-04-10 16:04:01 -0300295
Jason Coopera095b1c2013-12-12 13:59:17 +0000296 sata@a0000 {
Linus Torvalds9b6d3512014-01-23 18:45:38 -0800297 compatible = "marvell,armada-370-sata";
Jason Coopera095b1c2013-12-12 13:59:17 +0000298 reg = <0xa0000 0x5000>;
299 interrupts = <55>;
300 clocks = <&gateclk 15>, <&gateclk 30>;
301 clock-names = "0", "1";
Ezequiel Garciad5dc0352013-02-06 10:06:21 -0300302 status = "disabled";
303 };
Ezequiel Garcia3d76e1f2013-04-10 16:04:01 -0300304
Ezequiel Garciacb28e252013-11-07 12:17:33 -0300305 nand@d0000 {
306 compatible = "marvell,armada370-nand";
307 reg = <0xd0000 0x54>;
308 #address-cells = <1>;
309 #size-cells = <1>;
310 interrupts = <113>;
311 clocks = <&coredivclk 0>;
312 status = "disabled";
313 };
Jason Coopera095b1c2013-12-12 13:59:17 +0000314
315 mvsdio@d4000 {
316 compatible = "marvell,orion-sdio";
317 reg = <0xd4000 0x200>;
318 interrupts = <54>;
319 clocks = <&gateclk 17>;
320 bus-width = <4>;
321 cap-sdio-irq;
322 cap-sd-highspeed;
323 cap-mmc-highspeed;
324 status = "disabled";
325 };
Ezequiel Garcia3d76e1f2013-04-10 16:04:01 -0300326 };
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200327 };
Ezequiel Garcia4675cf52013-10-18 20:02:30 -0300328
329 clocks {
330 /* 2 GHz fixed main PLL */
331 mainpll: mainpll {
332 compatible = "fixed-clock";
333 #clock-cells = <0>;
334 clock-frequency = <2000000000>;
335 };
336 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200337 };