blob: 83286ec9702cf695e8470fe7ff82ef845210f781 [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 *
11 * This file is licensed under the terms of the GNU General Public
12 * License version 2. This program is licensed "as is" without any
13 * warranty of any kind, whether express or implied.
14 *
15 * This file contains the definitions that are common to the Armada
16 * 370 and Armada XP SoC.
17 */
18
Gregory CLEMENT74898362013-04-12 16:29:10 +020019/include/ "skeleton64.dtsi"
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020020
Ezequiel Garcia5e12a612013-07-26 10:17:57 -030021#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
22
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020023/ {
24 model = "Marvell Armada 370 and XP SoC";
Thomas Petazzoni92ece1c2012-11-09 16:29:17 +010025 compatible = "marvell,armada-370-xp";
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020026
Willy Tarreaube5a9382013-06-03 18:47:36 +020027 aliases {
28 eth0 = &eth0;
29 eth1 = &eth1;
30 };
31
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020032 cpus {
Lorenzo Pieralisi7a7ed292013-04-18 18:29:34 +010033 #address-cells = <1>;
34 #size-cells = <0>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020035 cpu@0 {
36 compatible = "marvell,sheeva-v7";
Lorenzo Pieralisi7a7ed292013-04-18 18:29:34 +010037 device_type = "cpu";
38 reg = <0>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020039 };
40 };
41
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020042 soc {
Ezequiel Garcia5e12a612013-07-26 10:17:57 -030043 #address-cells = <2>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020044 #size-cells = <1>;
Ezequiel Garcia5e12a612013-07-26 10:17:57 -030045 controller = <&mbusc>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020046 interrupt-parent = <&mpic>;
Thomas Petazzoni46febc62014-03-04 17:36:59 +010047 pcie-mem-aperture = <0xf8000000 0x7e00000>;
48 pcie-io-aperture = <0xffe00000 0x100000>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +020049
Ezequiel Garciade1af8d2013-07-26 10:17:59 -030050 devbus-bootcs {
51 compatible = "marvell,mvebu-devbus";
52 reg = <MBUS_ID(0xf0, 0x01) 0x10400 0x8>;
53 ranges = <0 MBUS_ID(0x01, 0x2f) 0 0xffffffff>;
54 #address-cells = <1>;
55 #size-cells = <1>;
56 clocks = <&coreclk 0>;
57 status = "disabled";
58 };
59
60 devbus-cs0 {
61 compatible = "marvell,mvebu-devbus";
62 reg = <MBUS_ID(0xf0, 0x01) 0x10408 0x8>;
63 ranges = <0 MBUS_ID(0x01, 0x3e) 0 0xffffffff>;
64 #address-cells = <1>;
65 #size-cells = <1>;
66 clocks = <&coreclk 0>;
67 status = "disabled";
68 };
69
70 devbus-cs1 {
71 compatible = "marvell,mvebu-devbus";
72 reg = <MBUS_ID(0xf0, 0x01) 0x10410 0x8>;
73 ranges = <0 MBUS_ID(0x01, 0x3d) 0 0xffffffff>;
74 #address-cells = <1>;
75 #size-cells = <1>;
76 clocks = <&coreclk 0>;
77 status = "disabled";
78 };
79
80 devbus-cs2 {
81 compatible = "marvell,mvebu-devbus";
82 reg = <MBUS_ID(0xf0, 0x01) 0x10418 0x8>;
83 ranges = <0 MBUS_ID(0x01, 0x3b) 0 0xffffffff>;
84 #address-cells = <1>;
85 #size-cells = <1>;
86 clocks = <&coreclk 0>;
87 status = "disabled";
88 };
89
90 devbus-cs3 {
91 compatible = "marvell,mvebu-devbus";
92 reg = <MBUS_ID(0xf0, 0x01) 0x10420 0x8>;
93 ranges = <0 MBUS_ID(0x01, 0x37) 0 0xffffffff>;
94 #address-cells = <1>;
95 #size-cells = <1>;
96 clocks = <&coreclk 0>;
97 status = "disabled";
98 };
99
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200100 internal-regs {
101 compatible = "simple-bus";
102 #address-cells = <1>;
103 #size-cells = <1>;
Ezequiel Garcia5e12a612013-07-26 10:17:57 -0300104 ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
105
Jason Coopera095b1c2013-12-12 13:59:17 +0000106 rtc@10300 {
107 compatible = "marvell,orion-rtc";
108 reg = <0x10300 0x20>;
109 interrupts = <50>;
Ezequiel Garcia5e12a612013-07-26 10:17:57 -0300110 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200111
Jason Coopera095b1c2013-12-12 13:59:17 +0000112 spi0: spi@10600 {
Greg Ungererccf8ca42014-09-08 13:30:29 +1000113 compatible = "marvell,armada-370-spi", "marvell,orion-spi";
Jason Coopera095b1c2013-12-12 13:59:17 +0000114 reg = <0x10600 0x28>;
115 #address-cells = <1>;
116 #size-cells = <0>;
117 cell-index = <0>;
118 interrupts = <30>;
119 clocks = <&coreclk 0>;
120 status = "disabled";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200121 };
Thomas Petazzonib18ea4d2013-04-12 16:29:07 +0200122
Jason Coopera095b1c2013-12-12 13:59:17 +0000123 spi1: spi@10680 {
Greg Ungererccf8ca42014-09-08 13:30:29 +1000124 compatible = "marvell,armada-370-spi", "marvell,orion-spi";
Jason Coopera095b1c2013-12-12 13:59:17 +0000125 reg = <0x10680 0x28>;
126 #address-cells = <1>;
127 #size-cells = <0>;
128 cell-index = <1>;
129 interrupts = <92>;
130 clocks = <&coreclk 0>;
131 status = "disabled";
132 };
133
134 i2c0: i2c@11000 {
135 compatible = "marvell,mv64xxx-i2c";
136 #address-cells = <1>;
137 #size-cells = <0>;
138 interrupts = <31>;
139 timeout-ms = <1000>;
140 clocks = <&coreclk 0>;
141 status = "disabled";
142 };
143
144 i2c1: i2c@11100 {
145 compatible = "marvell,mv64xxx-i2c";
146 #address-cells = <1>;
147 #size-cells = <0>;
148 interrupts = <32>;
149 timeout-ms = <1000>;
150 clocks = <&coreclk 0>;
151 status = "disabled";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200152 };
Thomas Petazzonib18ea4d2013-04-12 16:29:07 +0200153
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200154 serial@12000 {
Gregory CLEMENTb24212f2012-12-04 18:04:59 +0100155 compatible = "snps,dw-apb-uart";
Gregory CLEMENT82a68262013-04-12 16:29:08 +0200156 reg = <0x12000 0x100>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200157 reg-shift = <2>;
158 interrupts = <41>;
Heikki Krogeruse3661542013-03-06 11:23:33 +0100159 reg-io-width = <1>;
Thomas Petazzoni64939dc2014-04-18 09:41:46 +0200160 clocks = <&coreclk 0>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200161 status = "disabled";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200162 };
163 serial@12100 {
Gregory CLEMENTb24212f2012-12-04 18:04:59 +0100164 compatible = "snps,dw-apb-uart";
Gregory CLEMENT82a68262013-04-12 16:29:08 +0200165 reg = <0x12100 0x100>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200166 reg-shift = <2>;
167 interrupts = <42>;
Heikki Krogeruse3661542013-03-06 11:23:33 +0100168 reg-io-width = <1>;
Thomas Petazzoni64939dc2014-04-18 09:41:46 +0200169 clocks = <&coreclk 0>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200170 status = "disabled";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200171 };
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200172
Ezequiel Garciaf039dfb2013-10-18 20:02:31 -0300173 coredivclk: corediv-clock@18740 {
174 compatible = "marvell,armada-370-corediv-clock";
175 reg = <0x18740 0xc>;
176 #clock-cells = <1>;
177 clocks = <&mainpll>;
178 clock-output-names = "nand";
179 };
180
Jason Coopera095b1c2013-12-12 13:59:17 +0000181 mbusc: mbus-controller@20000 {
182 compatible = "marvell,mbus-controller";
183 reg = <0x20000 0x100>, <0x20180 0x20>;
184 };
185
186 mpic: interrupt-controller@20000 {
187 compatible = "marvell,mpic";
188 #interrupt-cells = <1>;
189 #size-cells = <1>;
190 interrupt-controller;
191 msi-controller;
192 };
193
194 coherency-fabric@20200 {
195 compatible = "marvell,coherency-fabric";
Kevin Hilman939ac3c2013-12-19 15:24:56 -0800196 reg = <0x20200 0xb0>, <0x21010 0x1c>;
Jason Coopera095b1c2013-12-12 13:59:17 +0000197 };
198
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200199 timer@20300 {
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200200 reg = <0x20300 0x30>, <0x21040 0x30>;
201 interrupts = <37>, <38>, <39>, <40>, <5>, <6>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200202 };
Thomas Petazzoni5b40bae2012-09-11 14:27:30 +0200203
Ezequiel Garcia05afeeb2014-02-10 20:00:32 -0300204 watchdog@20300 {
205 reg = <0x20300 0x34>, <0x20704 0x4>;
206 };
207
Gregory CLEMENTb6249d42014-04-14 15:50:32 +0200208 pmsu@22000 {
209 compatible = "marvell,armada-370-pmsu";
210 reg = <0x22000 0x1000>;
211 };
212
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200213 usb@50000 {
214 compatible = "marvell,orion-ehci";
215 reg = <0x50000 0x500>;
216 interrupts = <45>;
217 status = "disabled";
218 };
Ezequiel Garciab2bb8062013-01-23 12:26:30 -0300219
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200220 usb@51000 {
221 compatible = "marvell,orion-ehci";
222 reg = <0x51000 0x500>;
223 interrupts = <46>;
224 status = "disabled";
225 };
Ezequiel Garciab2bb8062013-01-23 12:26:30 -0300226
Jason Coopera095b1c2013-12-12 13:59:17 +0000227 eth0: ethernet@70000 {
228 compatible = "marvell,armada-370-neta";
229 reg = <0x70000 0x4000>;
230 interrupts = <8>;
231 clocks = <&gateclk 4>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200232 status = "disabled";
233 };
Ezequiel Garciad5dc0352013-02-06 10:06:21 -0300234
Jason Coopera095b1c2013-12-12 13:59:17 +0000235 mdio {
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200236 #address-cells = <1>;
237 #size-cells = <0>;
Jason Coopera095b1c2013-12-12 13:59:17 +0000238 compatible = "marvell,orion-mdio";
239 reg = <0x72004 0x4>;
Thomas Petazzonia6e03dd2014-03-26 00:33:58 +0100240 clocks = <&gateclk 4>;
Jason Coopera095b1c2013-12-12 13:59:17 +0000241 };
242
243 eth1: ethernet@74000 {
244 compatible = "marvell,armada-370-neta";
245 reg = <0x74000 0x4000>;
246 interrupts = <10>;
247 clocks = <&gateclk 3>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200248 status = "disabled";
249 };
Ezequiel Garcia3d76e1f2013-04-10 16:04:01 -0300250
Jason Coopera095b1c2013-12-12 13:59:17 +0000251 sata@a0000 {
Linus Torvalds9b6d3512014-01-23 18:45:38 -0800252 compatible = "marvell,armada-370-sata";
Jason Coopera095b1c2013-12-12 13:59:17 +0000253 reg = <0xa0000 0x5000>;
254 interrupts = <55>;
255 clocks = <&gateclk 15>, <&gateclk 30>;
256 clock-names = "0", "1";
Ezequiel Garciad5dc0352013-02-06 10:06:21 -0300257 status = "disabled";
258 };
Ezequiel Garcia3d76e1f2013-04-10 16:04:01 -0300259
Ezequiel Garciacb28e252013-11-07 12:17:33 -0300260 nand@d0000 {
261 compatible = "marvell,armada370-nand";
262 reg = <0xd0000 0x54>;
263 #address-cells = <1>;
264 #size-cells = <1>;
265 interrupts = <113>;
266 clocks = <&coredivclk 0>;
267 status = "disabled";
268 };
Jason Coopera095b1c2013-12-12 13:59:17 +0000269
270 mvsdio@d4000 {
271 compatible = "marvell,orion-sdio";
272 reg = <0xd4000 0x200>;
273 interrupts = <54>;
274 clocks = <&gateclk 17>;
275 bus-width = <4>;
276 cap-sdio-irq;
277 cap-sd-highspeed;
278 cap-mmc-highspeed;
279 status = "disabled";
280 };
Ezequiel Garcia3d76e1f2013-04-10 16:04:01 -0300281 };
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200282 };
Ezequiel Garcia4675cf52013-10-18 20:02:30 -0300283
284 clocks {
285 /* 2 GHz fixed main PLL */
286 mainpll: mainpll {
287 compatible = "fixed-clock";
288 #clock-cells = <0>;
289 clock-frequency = <2000000000>;
290 };
291 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200292 };