ARM: mvebu: update Ethernet compatible string for Armada XP
[linux/fpc-iii.git] / arch / arm / boot / dts / armada-370.dtsi
blob37730254e6673708adba1ca3bb841ef6e41d72ed
1 /*
2  * Device Tree Include file for Marvell Armada 370 family 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  *
10  * This file is dual-licensed: you can use it either under the terms
11  * of the GPL or the X11 license, at your option. Note that this dual
12  * licensing only applies to this file, and not this project as a
13  * whole.
14  *
15  *  a) This file is free software; you can redistribute it and/or
16  *     modify it under the terms of the GNU General Public License as
17  *     published by the Free Software Foundation; either version 2 of the
18  *     License, or (at your option) any later version.
19  *
20  *     This file is distributed in the hope that it will be useful
21  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
22  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23  *     GNU General Public License for more details.
24  *
25  * Or, alternatively
26  *
27  *  b) Permission is hereby granted, free of charge, to any person
28  *     obtaining a copy of this software and associated documentation
29  *     files (the "Software"), to deal in the Software without
30  *     restriction, including without limitation the rights to use
31  *     copy, modify, merge, publish, distribute, sublicense, and/or
32  *     sell copies of the Software, and to permit persons to whom the
33  *     Software is furnished to do so, subject to the following
34  *     conditions:
35  *
36  *     The above copyright notice and this permission notice shall be
37  *     included in all copies or substantial portions of the Software.
38  *
39  *     THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
40  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
41  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
42  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
43  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
44  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
45  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
46  *     OTHER DEALINGS IN THE SOFTWARE.
47  *
48  * Contains definitions specific to the Armada 370 SoC that are not
49  * common to all Armada SoCs.
50  */
52 #include "armada-370-xp.dtsi"
53 /include/ "skeleton.dtsi"
55 / {
56         model = "Marvell Armada 370 family SoC";
57         compatible = "marvell,armada370", "marvell,armada-370-xp";
59         aliases {
60                 gpio0 = &gpio0;
61                 gpio1 = &gpio1;
62                 gpio2 = &gpio2;
63         };
65         soc {
66                 compatible = "marvell,armada370-mbus", "simple-bus";
68                 bootrom {
69                         compatible = "marvell,bootrom";
70                         reg = <MBUS_ID(0x01, 0xe0) 0 0x100000>;
71                 };
73                 pcie-controller {
74                         compatible = "marvell,armada-370-pcie";
75                         status = "disabled";
76                         device_type = "pci";
78                         #address-cells = <3>;
79                         #size-cells = <2>;
81                         msi-parent = <&mpic>;
82                         bus-range = <0x00 0xff>;
84                         ranges =
85                                <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000
86                                 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000
87                                 0x82000000 0x1 0     MBUS_ID(0x04, 0xe8) 0       1 0 /* Port 0.0 MEM */
88                                 0x81000000 0x1 0     MBUS_ID(0x04, 0xe0) 0       1 0 /* Port 0.0 IO  */
89                                 0x82000000 0x2 0     MBUS_ID(0x08, 0xe8) 0       1 0 /* Port 1.0 MEM */
90                                 0x81000000 0x2 0     MBUS_ID(0x08, 0xe0) 0       1 0 /* Port 1.0 IO  */>;
92                         pcie@1,0 {
93                                 device_type = "pci";
94                                 assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
95                                 reg = <0x0800 0 0 0 0>;
96                                 #address-cells = <3>;
97                                 #size-cells = <2>;
98                                 #interrupt-cells = <1>;
99                                 ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
100                                           0x81000000 0 0 0x81000000 0x1 0 1 0>;
101                                 interrupt-map-mask = <0 0 0 0>;
102                                 interrupt-map = <0 0 0 0 &mpic 58>;
103                                 marvell,pcie-port = <0>;
104                                 marvell,pcie-lane = <0>;
105                                 clocks = <&gateclk 5>;
106                                 status = "disabled";
107                         };
109                         pcie@2,0 {
110                                 device_type = "pci";
111                                 assigned-addresses = <0x82002800 0 0x80000 0 0x2000>;
112                                 reg = <0x1000 0 0 0 0>;
113                                 #address-cells = <3>;
114                                 #size-cells = <2>;
115                                 #interrupt-cells = <1>;
116                                 ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
117                                           0x81000000 0 0 0x81000000 0x2 0 1 0>;
118                                 interrupt-map-mask = <0 0 0 0>;
119                                 interrupt-map = <0 0 0 0 &mpic 62>;
120                                 marvell,pcie-port = <1>;
121                                 marvell,pcie-lane = <0>;
122                                 clocks = <&gateclk 9>;
123                                 status = "disabled";
124                         };
125                 };
127                 internal-regs {
128                         L2: l2-cache {
129                                 compatible = "marvell,aurora-outer-cache";
130                                 reg = <0x08000 0x1000>;
131                                 cache-id-part = <0x100>;
132                                 cache-unified;
133                                 wt-override;
134                         };
136                         /*
137                          * Default SPI pinctrl setting, can be overwritten on
138                          * board level if a different configuration is used.
139                          */
140                         spi0: spi@10600 {
141                                 pinctrl-0 = <&spi0_pins1>;
142                                 pinctrl-names = "default";
143                         };
145                         spi1: spi@10680 {
146                                 pinctrl-0 = <&spi1_pins>;
147                                 pinctrl-names = "default";
148                         };
150                         i2c0: i2c@11000 {
151                                 reg = <0x11000 0x20>;
152                         };
154                         i2c1: i2c@11100 {
155                                 reg = <0x11100 0x20>;
156                         };
158                         gpio0: gpio@18100 {
159                                 compatible = "marvell,orion-gpio";
160                                 reg = <0x18100 0x40>;
161                                 ngpios = <32>;
162                                 gpio-controller;
163                                 #gpio-cells = <2>;
164                                 interrupt-controller;
165                                 #interrupt-cells = <2>;
166                                 interrupts = <82>, <83>, <84>, <85>;
167                         };
169                         gpio1: gpio@18140 {
170                                 compatible = "marvell,orion-gpio";
171                                 reg = <0x18140 0x40>;
172                                 ngpios = <32>;
173                                 gpio-controller;
174                                 #gpio-cells = <2>;
175                                 interrupt-controller;
176                                 #interrupt-cells = <2>;
177                                 interrupts = <87>, <88>, <89>, <90>;
178                         };
180                         gpio2: gpio@18180 {
181                                 compatible = "marvell,orion-gpio";
182                                 reg = <0x18180 0x40>;
183                                 ngpios = <2>;
184                                 gpio-controller;
185                                 #gpio-cells = <2>;
186                                 interrupt-controller;
187                                 #interrupt-cells = <2>;
188                                 interrupts = <91>;
189                         };
191                         /*
192                          * Default UART pinctrl setting without RTS/CTS, can
193                          * be overwritten on board level if a different
194                          * configuration is used.
195                          */
196                         uart0: serial@12000 {
197                                 pinctrl-0 = <&uart0_pins>;
198                                 pinctrl-names = "default";
199                         };
201                         uart1: serial@12100 {
202                                 pinctrl-0 = <&uart1_pins>;
203                                 pinctrl-names = "default";
204                         };
206                         system-controller@18200 {
207                                 compatible = "marvell,armada-370-xp-system-controller";
208                                 reg = <0x18200 0x100>;
209                         };
211                         gateclk: clock-gating-control@18220 {
212                                 compatible = "marvell,armada-370-gating-clock";
213                                 reg = <0x18220 0x4>;
214                                 clocks = <&coreclk 0>;
215                                 #clock-cells = <1>;
216                         };
218                         coreclk: mvebu-sar@18230 {
219                                 compatible = "marvell,armada-370-core-clock";
220                                 reg = <0x18230 0x08>;
221                                 #clock-cells = <1>;
222                         };
224                         thermal@18300 {
225                                 compatible = "marvell,armada370-thermal";
226                                 reg = <0x18300 0x4
227                                         0x18304 0x4>;
228                                 status = "okay";
229                         };
231                         sscg@18330 {
232                                 reg = <0x18330 0x4>;
233                         };
235                         interrupt-controller@20000 {
236                                 reg = <0x20a00 0x1d0>, <0x21870 0x58>;
237                         };
239                         timer@20300 {
240                                 compatible = "marvell,armada-370-timer";
241                                 clocks = <&coreclk 2>;
242                         };
244                         watchdog@20300 {
245                                 compatible = "marvell,armada-370-wdt";
246                                 clocks = <&coreclk 2>;
247                         };
249                         cpurst@20800 {
250                                 compatible = "marvell,armada-370-cpu-reset";
251                                 reg = <0x20800 0x8>;
252                         };
254                         audio_controller: audio-controller@30000 {
255                                 #sound-dai-cells = <1>;
256                                 compatible = "marvell,armada370-audio";
257                                 reg = <0x30000 0x4000>;
258                                 interrupts = <93>;
259                                 clocks = <&gateclk 0>;
260                                 clock-names = "internal";
261                                 status = "disabled";
262                         };
264                         usb@50000 {
265                                 clocks = <&coreclk 0>;
266                         };
268                         usb@51000 {
269                                 clocks = <&coreclk 0>;
270                         };
272                         xor@60800 {
273                                 compatible = "marvell,orion-xor";
274                                 reg = <0x60800 0x100
275                                        0x60A00 0x100>;
276                                 status = "okay";
278                                 xor00 {
279                                         interrupts = <51>;
280                                         dmacap,memcpy;
281                                         dmacap,xor;
282                                 };
283                                 xor01 {
284                                         interrupts = <52>;
285                                         dmacap,memcpy;
286                                         dmacap,xor;
287                                         dmacap,memset;
288                                 };
289                         };
291                         xor@60900 {
292                                 compatible = "marvell,orion-xor";
293                                 reg = <0x60900 0x100
294                                        0x60b00 0x100>;
295                                 status = "okay";
297                                 xor10 {
298                                         interrupts = <94>;
299                                         dmacap,memcpy;
300                                         dmacap,xor;
301                                 };
302                                 xor11 {
303                                         interrupts = <95>;
304                                         dmacap,memcpy;
305                                         dmacap,xor;
306                                         dmacap,memset;
307                                 };
308                         };
310                         ethernet@70000 {
311                                 compatible = "marvell,armada-370-neta";
312                         };
314                         ethernet@74000 {
315                                 compatible = "marvell,armada-370-neta";
316                         };
317                 };
318         };
321 &pinctrl {
322         compatible = "marvell,mv88f6710-pinctrl";
324         spi0_pins1: spi0-pins1 {
325                 marvell,pins = "mpp33", "mpp34",
326                                "mpp35", "mpp36";
327                 marvell,function = "spi0";
328         };
330         spi0_pins2: spi0_pins2 {
331                 marvell,pins = "mpp32", "mpp63",
332                                "mpp64", "mpp65";
333                 marvell,function = "spi0";
334         };
336         spi1_pins: spi1-pins {
337                 marvell,pins = "mpp49", "mpp50",
338                                "mpp51", "mpp52";
339                 marvell,function = "spi1";
340         };
342         uart0_pins: uart0-pins {
343                 marvell,pins = "mpp0", "mpp1";
344                 marvell,function = "uart0";
345         };
347         uart1_pins: uart1-pins {
348                 marvell,pins = "mpp41", "mpp42";
349                 marvell,function = "uart1";
350         };
352         sdio_pins1: sdio-pins1 {
353                 marvell,pins = "mpp9",  "mpp11", "mpp12",
354                                 "mpp13", "mpp14", "mpp15";
355                 marvell,function = "sd0";
356         };
358         sdio_pins2: sdio-pins2 {
359                 marvell,pins = "mpp47", "mpp48", "mpp49",
360                                 "mpp50", "mpp51", "mpp52";
361                 marvell,function = "sd0";
362         };
364         sdio_pins3: sdio-pins3 {
365                 marvell,pins = "mpp48", "mpp49", "mpp50",
366                                 "mpp51", "mpp52", "mpp53";
367                 marvell,function = "sd0";
368         };
370         i2c0_pins: i2c0-pins {
371                 marvell,pins = "mpp2", "mpp3";
372                 marvell,function = "i2c0";
373         };
375         i2s_pins1: i2s-pins1 {
376                 marvell,pins = "mpp5", "mpp6", "mpp7",
377                                "mpp8", "mpp9", "mpp10",
378                                "mpp12", "mpp13";
379                 marvell,function = "audio";
380         };
382         i2s_pins2: i2s-pins2 {
383                 marvell,pins = "mpp49", "mpp47", "mpp50",
384                                "mpp59", "mpp57", "mpp61",
385                                "mpp62", "mpp60", "mpp58";
386                 marvell,function = "audio";
387         };
389         mdio_pins: mdio-pins {
390                 marvell,pins = "mpp17", "mpp18";
391                 marvell,function = "ge";
392         };
394         ge0_rgmii_pins: ge0-rgmii-pins {
395                 marvell,pins = "mpp5", "mpp6", "mpp7", "mpp8",
396                                "mpp9", "mpp10", "mpp11", "mpp12",
397                                "mpp13", "mpp14", "mpp15", "mpp16";
398                 marvell,function = "ge0";
399         };
401         ge1_rgmii_pins: ge1-rgmii-pins {
402                 marvell,pins = "mpp19", "mpp20", "mpp21", "mpp22",
403                                "mpp23", "mpp24", "mpp25", "mpp26",
404                                "mpp27", "mpp28", "mpp29", "mpp30";
405                 marvell,function = "ge1";
406         };