blob: 00d6a798c705b9b04408a8d28af70cd7b7cc6868 [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>;
Ezequiel Garcia14fd8ed2013-07-26 10:18:00 -030047 pcie-mem-aperture = <0xe0000000 0x8000000>;
48 pcie-io-aperture = <0xe8000000 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
106 mbusc: mbus-controller@20000 {
107 compatible = "marvell,mbus-controller";
108 reg = <0x20000 0x100>, <0x20180 0x20>;
109 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200110
111 mpic: interrupt-controller@20000 {
Gregory CLEMENT82a68262013-04-12 16:29:08 +0200112 compatible = "marvell,mpic";
113 #interrupt-cells = <1>;
114 #size-cells = <1>;
115 interrupt-controller;
Thomas Petazzoni86178f82013-08-09 22:27:13 +0200116 msi-controller;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200117 };
Thomas Petazzonib18ea4d2013-04-12 16:29:07 +0200118
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200119 coherency-fabric@20200 {
Gregory CLEMENT82a68262013-04-12 16:29:08 +0200120 compatible = "marvell,coherency-fabric";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200121 reg = <0x20200 0xb0>, <0x21810 0x1c>;
122 };
Thomas Petazzonib18ea4d2013-04-12 16:29:07 +0200123
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200124 serial@12000 {
Gregory CLEMENTb24212f2012-12-04 18:04:59 +0100125 compatible = "snps,dw-apb-uart";
Gregory CLEMENT82a68262013-04-12 16:29:08 +0200126 reg = <0x12000 0x100>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200127 reg-shift = <2>;
128 interrupts = <41>;
Heikki Krogeruse3661542013-03-06 11:23:33 +0100129 reg-io-width = <1>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200130 status = "disabled";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200131 };
132 serial@12100 {
Gregory CLEMENTb24212f2012-12-04 18:04:59 +0100133 compatible = "snps,dw-apb-uart";
Gregory CLEMENT82a68262013-04-12 16:29:08 +0200134 reg = <0x12100 0x100>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200135 reg-shift = <2>;
136 interrupts = <42>;
Heikki Krogeruse3661542013-03-06 11:23:33 +0100137 reg-io-width = <1>;
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200138 status = "disabled";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200139 };
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200140
Ezequiel Garciaf039dfb2013-10-18 20:02:31 -0300141 coredivclk: corediv-clock@18740 {
142 compatible = "marvell,armada-370-corediv-clock";
143 reg = <0x18740 0xc>;
144 #clock-cells = <1>;
145 clocks = <&mainpll>;
146 clock-output-names = "nand";
147 };
148
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200149 timer@20300 {
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200150 reg = <0x20300 0x30>, <0x21040 0x30>;
151 interrupts = <37>, <38>, <39>, <40>, <5>, <6>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200152 };
Thomas Petazzoni5b40bae2012-09-11 14:27:30 +0200153
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200154 sata@a0000 {
155 compatible = "marvell,orion-sata";
Thomas Petazzoni911492d2013-05-21 12:33:26 +0200156 reg = <0xa0000 0x5000>;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200157 interrupts = <55>;
158 clocks = <&gateclk 15>, <&gateclk 30>;
159 clock-names = "0", "1";
160 status = "disabled";
161 };
Gregory CLEMENTa6a6de12012-10-26 14:30:47 +0200162
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200163 mdio {
164 #address-cells = <1>;
165 #size-cells = <0>;
166 compatible = "marvell,orion-mdio";
167 reg = <0x72004 0x4>;
168 };
Thomas Petazzoni323c1012012-09-04 15:06:43 +0200169
Willy Tarreaube5a9382013-06-03 18:47:36 +0200170 eth0: ethernet@70000 {
Thomas Petazzoni323c1012012-09-04 15:06:43 +0200171 compatible = "marvell,armada-370-neta";
Thomas Petazzonicf8088c2013-05-21 12:33:27 +0200172 reg = <0x70000 0x4000>;
Thomas Petazzoni323c1012012-09-04 15:06:43 +0200173 interrupts = <8>;
Thomas Petazzoni4aa935a2012-11-19 14:18:09 +0100174 clocks = <&gateclk 4>;
Thomas Petazzoni323c1012012-09-04 15:06:43 +0200175 status = "disabled";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200176 };
Thomas Petazzoni323c1012012-09-04 15:06:43 +0200177
Willy Tarreaube5a9382013-06-03 18:47:36 +0200178 eth1: ethernet@74000 {
Thomas Petazzoni323c1012012-09-04 15:06:43 +0200179 compatible = "marvell,armada-370-neta";
Thomas Petazzonicf8088c2013-05-21 12:33:27 +0200180 reg = <0x74000 0x4000>;
Thomas Petazzoni323c1012012-09-04 15:06:43 +0200181 interrupts = <10>;
Thomas Petazzoni4aa935a2012-11-19 14:18:09 +0100182 clocks = <&gateclk 3>;
Thomas Petazzoni323c1012012-09-04 15:06:43 +0200183 status = "disabled";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200184 };
Nobuhiro Iwamatsu539eb5b2012-10-30 19:41:23 +0900185
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200186 i2c0: i2c@11000 {
187 compatible = "marvell,mv64xxx-i2c";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200188 #address-cells = <1>;
189 #size-cells = <0>;
190 interrupts = <31>;
191 timeout-ms = <1000>;
192 clocks = <&coreclk 0>;
193 status = "disabled";
194 };
Nobuhiro Iwamatsu539eb5b2012-10-30 19:41:23 +0900195
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200196 i2c1: i2c@11100 {
197 compatible = "marvell,mv64xxx-i2c";
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200198 #address-cells = <1>;
199 #size-cells = <0>;
200 interrupts = <32>;
201 timeout-ms = <1000>;
202 clocks = <&coreclk 0>;
203 status = "disabled";
204 };
Gregory CLEMENT0db98542012-12-12 10:06:24 +0100205
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200206 rtc@10300 {
207 compatible = "marvell,orion-rtc";
208 reg = <0x10300 0x20>;
209 interrupts = <50>;
210 };
Thomas Petazzoni42bb5312012-12-21 15:49:04 +0100211
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200212 mvsdio@d4000 {
213 compatible = "marvell,orion-sdio";
214 reg = <0xd4000 0x200>;
215 interrupts = <54>;
216 clocks = <&gateclk 17>;
Simon Baatzd87b5fb2013-05-13 23:18:58 +0200217 bus-width = <4>;
218 cap-sdio-irq;
219 cap-sd-highspeed;
220 cap-mmc-highspeed;
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200221 status = "disabled";
222 };
Ezequiel Garciab2bb8062013-01-23 12:26:30 -0300223
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200224 usb@50000 {
225 compatible = "marvell,orion-ehci";
226 reg = <0x50000 0x500>;
227 interrupts = <45>;
228 status = "disabled";
229 };
Ezequiel Garciab2bb8062013-01-23 12:26:30 -0300230
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200231 usb@51000 {
232 compatible = "marvell,orion-ehci";
233 reg = <0x51000 0x500>;
234 interrupts = <46>;
235 status = "disabled";
236 };
Ezequiel Garciab2bb8062013-01-23 12:26:30 -0300237
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200238 spi0: spi@10600 {
239 compatible = "marvell,orion-spi";
240 reg = <0x10600 0x28>;
241 #address-cells = <1>;
242 #size-cells = <0>;
243 cell-index = <0>;
244 interrupts = <30>;
245 clocks = <&coreclk 0>;
246 status = "disabled";
247 };
Ezequiel Garciad5dc0352013-02-06 10:06:21 -0300248
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200249 spi1: spi@10680 {
250 compatible = "marvell,orion-spi";
251 reg = <0x10680 0x28>;
252 #address-cells = <1>;
253 #size-cells = <0>;
254 cell-index = <1>;
255 interrupts = <92>;
256 clocks = <&coreclk 0>;
257 status = "disabled";
258 };
Ezequiel Garcia3d76e1f2013-04-10 16:04:01 -0300259
Ezequiel Garcia3d76e1f2013-04-10 16:04:01 -0300260 };
Thomas Petazzoni9ae6f742012-06-13 19:01:28 +0200261 };
Ezequiel Garcia4675cf52013-10-18 20:02:30 -0300262
263 clocks {
264 /* 2 GHz fixed main PLL */
265 mainpll: mainpll {
266 compatible = "fixed-clock";
267 #clock-cells = <0>;
268 clock-frequency = <2000000000>;
269 };
270 };
Gregory CLEMENT467f54b2013-04-12 16:29:09 +0200271 };