Merge branch 'cleanup/blocksize-diet-part2' of git://git.kernel.org/pub/scm/linux...
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / armada-370-xp.dtsi
1 /*
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
19 /include/ "skeleton64.dtsi"
20
21 #define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
22
23 / {
24         model = "Marvell Armada 370 and XP SoC";
25         compatible = "marvell,armada-370-xp";
26
27         aliases {
28                 eth0 = &eth0;
29                 eth1 = &eth1;
30         };
31
32         cpus {
33                 #address-cells = <1>;
34                 #size-cells = <0>;
35                 cpu@0 {
36                         compatible = "marvell,sheeva-v7";
37                         device_type = "cpu";
38                         reg = <0>;
39                 };
40         };
41
42         soc {
43                 #address-cells = <2>;
44                 #size-cells = <1>;
45                 controller = <&mbusc>;
46                 interrupt-parent = <&mpic>;
47                 pcie-mem-aperture = <0xf8000000 0x7e00000>;
48                 pcie-io-aperture  = <0xffe00000 0x100000>;
49
50                 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
100                 internal-regs {
101                         compatible = "simple-bus";
102                         #address-cells = <1>;
103                         #size-cells = <1>;
104                         ranges = <0 MBUS_ID(0xf0, 0x01) 0 0x100000>;
105
106                         rtc@10300 {
107                                 compatible = "marvell,orion-rtc";
108                                 reg = <0x10300 0x20>;
109                                 interrupts = <50>;
110                         };
111
112                         spi0: spi@10600 {
113                                 compatible = "marvell,armada-370-spi", "marvell,orion-spi";
114                                 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";
121                         };
122
123                         spi1: spi@10680 {
124                                 compatible = "marvell,armada-370-spi", "marvell,orion-spi";
125                                 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";
152                         };
153
154                         uart0: serial@12000 {
155                                 compatible = "snps,dw-apb-uart";
156                                 reg = <0x12000 0x100>;
157                                 reg-shift = <2>;
158                                 interrupts = <41>;
159                                 reg-io-width = <1>;
160                                 clocks = <&coreclk 0>;
161                                 status = "disabled";
162                         };
163
164                         uart1: serial@12100 {
165                                 compatible = "snps,dw-apb-uart";
166                                 reg = <0x12100 0x100>;
167                                 reg-shift = <2>;
168                                 interrupts = <42>;
169                                 reg-io-width = <1>;
170                                 clocks = <&coreclk 0>;
171                                 status = "disabled";
172                         };
173
174                         pinctrl: pin-ctrl@18000 {
175                                 reg = <0x18000 0x38>;
176                         };
177
178                         coredivclk: corediv-clock@18740 {
179                                 compatible = "marvell,armada-370-corediv-clock";
180                                 reg = <0x18740 0xc>;
181                                 #clock-cells = <1>;
182                                 clocks = <&mainpll>;
183                                 clock-output-names = "nand";
184                         };
185
186                         mbusc: mbus-controller@20000 {
187                                 compatible = "marvell,mbus-controller";
188                                 reg = <0x20000 0x100>, <0x20180 0x20>,
189                                       <0x20250 0x8>;
190                         };
191
192                         mpic: interrupt-controller@20000 {
193                                 compatible = "marvell,mpic";
194                                 #interrupt-cells = <1>;
195                                 #size-cells = <1>;
196                                 interrupt-controller;
197                                 msi-controller;
198                         };
199
200                         coherency-fabric@20200 {
201                                 compatible = "marvell,coherency-fabric";
202                                 reg = <0x20200 0xb0>, <0x21010 0x1c>;
203                         };
204
205                         timer@20300 {
206                                 reg = <0x20300 0x30>, <0x21040 0x30>;
207                                 interrupts = <37>, <38>, <39>, <40>, <5>, <6>;
208                         };
209
210                         watchdog@20300 {
211                                 reg = <0x20300 0x34>, <0x20704 0x4>;
212                         };
213
214                         pmsu@22000 {
215                                 compatible = "marvell,armada-370-pmsu";
216                                 reg = <0x22000 0x1000>;
217                         };
218
219                         usb@50000 {
220                                 compatible = "marvell,orion-ehci";
221                                 reg = <0x50000 0x500>;
222                                 interrupts = <45>;
223                                 status = "disabled";
224                         };
225
226                         usb@51000 {
227                                 compatible = "marvell,orion-ehci";
228                                 reg = <0x51000 0x500>;
229                                 interrupts = <46>;
230                                 status = "disabled";
231                         };
232
233                         eth0: ethernet@70000 {
234                                 compatible = "marvell,armada-370-neta";
235                                 reg = <0x70000 0x4000>;
236                                 interrupts = <8>;
237                                 clocks = <&gateclk 4>;
238                                 status = "disabled";
239                         };
240
241                         mdio: mdio {
242                                 #address-cells = <1>;
243                                 #size-cells = <0>;
244                                 compatible = "marvell,orion-mdio";
245                                 reg = <0x72004 0x4>;
246                                 clocks = <&gateclk 4>;
247                         };
248
249                         eth1: ethernet@74000 {
250                                 compatible = "marvell,armada-370-neta";
251                                 reg = <0x74000 0x4000>;
252                                 interrupts = <10>;
253                                 clocks = <&gateclk 3>;
254                                 status = "disabled";
255                         };
256
257                         sata@a0000 {
258                                 compatible = "marvell,armada-370-sata";
259                                 reg = <0xa0000 0x5000>;
260                                 interrupts = <55>;
261                                 clocks = <&gateclk 15>, <&gateclk 30>;
262                                 clock-names = "0", "1";
263                                 status = "disabled";
264                         };
265
266                         nand@d0000 {
267                                 compatible = "marvell,armada370-nand";
268                                 reg = <0xd0000 0x54>;
269                                 #address-cells = <1>;
270                                 #size-cells = <1>;
271                                 interrupts = <113>;
272                                 clocks = <&coredivclk 0>;
273                                 status = "disabled";
274                         };
275
276                         mvsdio@d4000 {
277                                 compatible = "marvell,orion-sdio";
278                                 reg = <0xd4000 0x200>;
279                                 interrupts = <54>;
280                                 clocks = <&gateclk 17>;
281                                 bus-width = <4>;
282                                 cap-sdio-irq;
283                                 cap-sd-highspeed;
284                                 cap-mmc-highspeed;
285                                 status = "disabled";
286                         };
287                 };
288         };
289
290         clocks {
291                 /* 2 GHz fixed main PLL */
292                 mainpll: mainpll {
293                         compatible = "fixed-clock";
294                         #clock-cells = <0>;
295                         clock-frequency = <2000000000>;
296                 };
297         };
298  };