Merge branch 'clockevents/fixes' of git://git.linaro.org/people/daniel.lezcano/linux...
[linux-drm-fsl-dcu.git] / arch / arm / boot / dts / armada-xp-mv78260.dtsi
1 /*
2  * Device Tree Include file for Marvell Armada XP family SoC
3  *
4  * Copyright (C) 2012 Marvell
5  *
6  * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7  *
8  * This file is licensed under the terms of the GNU General Public
9  * License version 2.  This program is licensed "as is" without any
10  * warranty of any kind, whether express or implied.
11  *
12  * Contains definitions specific to the Armada XP MV78260 SoC that are not
13  * common to all Armada XP SoCs.
14  */
15
16 #include "armada-xp.dtsi"
17
18 / {
19         model = "Marvell Armada XP MV78260 SoC";
20         compatible = "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
21
22         aliases {
23                 gpio0 = &gpio0;
24                 gpio1 = &gpio1;
25                 gpio2 = &gpio2;
26         };
27
28         cpus {
29                 #address-cells = <1>;
30                 #size-cells = <0>;
31
32                 cpu@0 {
33                         device_type = "cpu";
34                         compatible = "marvell,sheeva-v7";
35                         reg = <0>;
36                         clocks = <&cpuclk 0>;
37                 };
38
39                 cpu@1 {
40                         device_type = "cpu";
41                         compatible = "marvell,sheeva-v7";
42                         reg = <1>;
43                         clocks = <&cpuclk 1>;
44                 };
45         };
46
47         soc {
48                 /*
49                  * MV78260 has 3 PCIe units Gen2.0: Two units can be
50                  * configured as x4 or quad x1 lanes. One unit is
51                  * x4 only.
52                  */
53                 pcie-controller {
54                         compatible = "marvell,armada-xp-pcie";
55                         status = "disabled";
56                         device_type = "pci";
57
58                         #address-cells = <3>;
59                         #size-cells = <2>;
60
61                         msi-parent = <&mpic>;
62                         bus-range = <0x00 0xff>;
63
64                         ranges =
65                                <0x82000000 0 0x40000 MBUS_ID(0xf0, 0x01) 0x40000 0 0x00002000   /* Port 0.0 registers */
66                                 0x82000000 0 0x42000 MBUS_ID(0xf0, 0x01) 0x42000 0 0x00002000   /* Port 2.0 registers */
67                                 0x82000000 0 0x44000 MBUS_ID(0xf0, 0x01) 0x44000 0 0x00002000   /* Port 0.1 registers */
68                                 0x82000000 0 0x48000 MBUS_ID(0xf0, 0x01) 0x48000 0 0x00002000   /* Port 0.2 registers */
69                                 0x82000000 0 0x4c000 MBUS_ID(0xf0, 0x01) 0x4c000 0 0x00002000   /* Port 0.3 registers */
70                                 0x82000000 0 0x80000 MBUS_ID(0xf0, 0x01) 0x80000 0 0x00002000   /* Port 1.0 registers */
71                                 0x82000000 0 0x84000 MBUS_ID(0xf0, 0x01) 0x84000 0 0x00002000   /* Port 1.1 registers */
72                                 0x82000000 0 0x88000 MBUS_ID(0xf0, 0x01) 0x88000 0 0x00002000   /* Port 1.2 registers */
73                                 0x82000000 0 0x8c000 MBUS_ID(0xf0, 0x01) 0x8c000 0 0x00002000   /* Port 1.3 registers */
74                                 0x82000000 0x1 0     MBUS_ID(0x04, 0xe8) 0 1 0 /* Port 0.0 MEM */
75                                 0x81000000 0x1 0     MBUS_ID(0x04, 0xe0) 0 1 0 /* Port 0.0 IO  */
76                                 0x82000000 0x2 0     MBUS_ID(0x04, 0xd8) 0 1 0 /* Port 0.1 MEM */
77                                 0x81000000 0x2 0     MBUS_ID(0x04, 0xd0) 0 1 0 /* Port 0.1 IO  */
78                                 0x82000000 0x3 0     MBUS_ID(0x04, 0xb8) 0 1 0 /* Port 0.2 MEM */
79                                 0x81000000 0x3 0     MBUS_ID(0x04, 0xb0) 0 1 0 /* Port 0.2 IO  */
80                                 0x82000000 0x4 0     MBUS_ID(0x04, 0x78) 0 1 0 /* Port 0.3 MEM */
81                                 0x81000000 0x4 0     MBUS_ID(0x04, 0x70) 0 1 0 /* Port 0.3 IO  */
82
83                                 0x82000000 0x5 0     MBUS_ID(0x08, 0xe8) 0 1 0 /* Port 1.0 MEM */
84                                 0x81000000 0x5 0     MBUS_ID(0x08, 0xe0) 0 1 0 /* Port 1.0 IO  */
85                                 0x82000000 0x6 0     MBUS_ID(0x08, 0xd8) 0 1 0 /* Port 1.1 MEM */
86                                 0x81000000 0x6 0     MBUS_ID(0x08, 0xd0) 0 1 0 /* Port 1.1 IO  */
87                                 0x82000000 0x7 0     MBUS_ID(0x08, 0xb8) 0 1 0 /* Port 1.2 MEM */
88                                 0x81000000 0x7 0     MBUS_ID(0x08, 0xb0) 0 1 0 /* Port 1.2 IO  */
89                                 0x82000000 0x8 0     MBUS_ID(0x08, 0x78) 0 1 0 /* Port 1.3 MEM */
90                                 0x81000000 0x8 0     MBUS_ID(0x08, 0x70) 0 1 0 /* Port 1.3 IO  */
91
92                                 0x82000000 0x9 0     MBUS_ID(0x04, 0xf8) 0 1 0 /* Port 2.0 MEM */
93                                 0x81000000 0x9 0     MBUS_ID(0x04, 0xf0) 0 1 0 /* Port 2.0 IO  */>;
94
95                         pcie@1,0 {
96                                 device_type = "pci";
97                                 assigned-addresses = <0x82000800 0 0x40000 0 0x2000>;
98                                 reg = <0x0800 0 0 0 0>;
99                                 #address-cells = <3>;
100                                 #size-cells = <2>;
101                                 #interrupt-cells = <1>;
102                                 ranges = <0x82000000 0 0 0x82000000 0x1 0 1 0
103                                           0x81000000 0 0 0x81000000 0x1 0 1 0>;
104                                 interrupt-map-mask = <0 0 0 0>;
105                                 interrupt-map = <0 0 0 0 &mpic 58>;
106                                 marvell,pcie-port = <0>;
107                                 marvell,pcie-lane = <0>;
108                                 clocks = <&gateclk 5>;
109                                 status = "disabled";
110                         };
111
112                         pcie@2,0 {
113                                 device_type = "pci";
114                                 assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
115                                 reg = <0x1000 0 0 0 0>;
116                                 #address-cells = <3>;
117                                 #size-cells = <2>;
118                                 #interrupt-cells = <1>;
119                                 ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
120                                           0x81000000 0 0 0x81000000 0x2 0 1 0>;
121                                 interrupt-map-mask = <0 0 0 0>;
122                                 interrupt-map = <0 0 0 0 &mpic 59>;
123                                 marvell,pcie-port = <0>;
124                                 marvell,pcie-lane = <1>;
125                                 clocks = <&gateclk 6>;
126                                 status = "disabled";
127                         };
128
129                         pcie@3,0 {
130                                 device_type = "pci";
131                                 assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
132                                 reg = <0x1800 0 0 0 0>;
133                                 #address-cells = <3>;
134                                 #size-cells = <2>;
135                                 #interrupt-cells = <1>;
136                                 ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
137                                           0x81000000 0 0 0x81000000 0x3 0 1 0>;
138                                 interrupt-map-mask = <0 0 0 0>;
139                                 interrupt-map = <0 0 0 0 &mpic 60>;
140                                 marvell,pcie-port = <0>;
141                                 marvell,pcie-lane = <2>;
142                                 clocks = <&gateclk 7>;
143                                 status = "disabled";
144                         };
145
146                         pcie@4,0 {
147                                 device_type = "pci";
148                                 assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
149                                 reg = <0x2000 0 0 0 0>;
150                                 #address-cells = <3>;
151                                 #size-cells = <2>;
152                                 #interrupt-cells = <1>;
153                                 ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
154                                           0x81000000 0 0 0x81000000 0x4 0 1 0>;
155                                 interrupt-map-mask = <0 0 0 0>;
156                                 interrupt-map = <0 0 0 0 &mpic 61>;
157                                 marvell,pcie-port = <0>;
158                                 marvell,pcie-lane = <3>;
159                                 clocks = <&gateclk 8>;
160                                 status = "disabled";
161                         };
162
163                         pcie@5,0 {
164                                 device_type = "pci";
165                                 assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
166                                 reg = <0x2800 0 0 0 0>;
167                                 #address-cells = <3>;
168                                 #size-cells = <2>;
169                                 #interrupt-cells = <1>;
170                                 ranges = <0x82000000 0 0 0x82000000 0x5 0 1 0
171                                           0x81000000 0 0 0x81000000 0x5 0 1 0>;
172                                 interrupt-map-mask = <0 0 0 0>;
173                                 interrupt-map = <0 0 0 0 &mpic 62>;
174                                 marvell,pcie-port = <1>;
175                                 marvell,pcie-lane = <0>;
176                                 clocks = <&gateclk 9>;
177                                 status = "disabled";
178                         };
179
180                         pcie@6,0 {
181                                 device_type = "pci";
182                                 assigned-addresses = <0x82000800 0 0x84000 0 0x2000>;
183                                 reg = <0x3000 0 0 0 0>;
184                                 #address-cells = <3>;
185                                 #size-cells = <2>;
186                                 #interrupt-cells = <1>;
187                                 ranges = <0x82000000 0 0 0x82000000 0x6 0 1 0
188                                           0x81000000 0 0 0x81000000 0x6 0 1 0>;
189                                 interrupt-map-mask = <0 0 0 0>;
190                                 interrupt-map = <0 0 0 0 &mpic 63>;
191                                 marvell,pcie-port = <1>;
192                                 marvell,pcie-lane = <1>;
193                                 clocks = <&gateclk 10>;
194                                 status = "disabled";
195                         };
196
197                         pcie@7,0 {
198                                 device_type = "pci";
199                                 assigned-addresses = <0x82000800 0 0x88000 0 0x2000>;
200                                 reg = <0x3800 0 0 0 0>;
201                                 #address-cells = <3>;
202                                 #size-cells = <2>;
203                                 #interrupt-cells = <1>;
204                                 ranges = <0x82000000 0 0 0x82000000 0x7 0 1 0
205                                           0x81000000 0 0 0x81000000 0x7 0 1 0>;
206                                 interrupt-map-mask = <0 0 0 0>;
207                                 interrupt-map = <0 0 0 0 &mpic 64>;
208                                 marvell,pcie-port = <1>;
209                                 marvell,pcie-lane = <2>;
210                                 clocks = <&gateclk 11>;
211                                 status = "disabled";
212                         };
213
214                         pcie@8,0 {
215                                 device_type = "pci";
216                                 assigned-addresses = <0x82000800 0 0x8c000 0 0x2000>;
217                                 reg = <0x4000 0 0 0 0>;
218                                 #address-cells = <3>;
219                                 #size-cells = <2>;
220                                 #interrupt-cells = <1>;
221                                 ranges = <0x82000000 0 0 0x82000000 0x8 0 1 0
222                                           0x81000000 0 0 0x81000000 0x8 0 1 0>;
223                                 interrupt-map-mask = <0 0 0 0>;
224                                 interrupt-map = <0 0 0 0 &mpic 65>;
225                                 marvell,pcie-port = <1>;
226                                 marvell,pcie-lane = <3>;
227                                 clocks = <&gateclk 12>;
228                                 status = "disabled";
229                         };
230
231                         pcie@9,0 {
232                                 device_type = "pci";
233                                 assigned-addresses = <0x82000800 0 0x42000 0 0x2000>;
234                                 reg = <0x4800 0 0 0 0>;
235                                 #address-cells = <3>;
236                                 #size-cells = <2>;
237                                 #interrupt-cells = <1>;
238                                 ranges = <0x82000000 0 0 0x82000000 0x9 0 1 0
239                                           0x81000000 0 0 0x81000000 0x9 0 1 0>;
240                                 interrupt-map-mask = <0 0 0 0>;
241                                 interrupt-map = <0 0 0 0 &mpic 99>;
242                                 marvell,pcie-port = <2>;
243                                 marvell,pcie-lane = <0>;
244                                 clocks = <&gateclk 26>;
245                                 status = "disabled";
246                         };
247                 };
248
249                 internal-regs {
250                         pinctrl {
251                                 compatible = "marvell,mv78260-pinctrl";
252                                 reg = <0x18000 0x38>;
253
254                                 sdio_pins: sdio-pins {
255                                         marvell,pins = "mpp30", "mpp31", "mpp32",
256                                                        "mpp33", "mpp34", "mpp35";
257                                         marvell,function = "sd0";
258                                 };
259                         };
260
261                         gpio0: gpio@18100 {
262                                 compatible = "marvell,orion-gpio";
263                                 reg = <0x18100 0x40>;
264                                 ngpios = <32>;
265                                 gpio-controller;
266                                 #gpio-cells = <2>;
267                                 interrupt-controller;
268                                 #interrupt-cells = <2>;
269                                 interrupts = <82>, <83>, <84>, <85>;
270                         };
271
272                         gpio1: gpio@18140 {
273                                 compatible = "marvell,orion-gpio";
274                                 reg = <0x18140 0x40>;
275                                 ngpios = <32>;
276                                 gpio-controller;
277                                 #gpio-cells = <2>;
278                                 interrupt-controller;
279                                 #interrupt-cells = <2>;
280                                 interrupts = <87>, <88>, <89>, <90>;
281                         };
282
283                         gpio2: gpio@18180 {
284                                 compatible = "marvell,orion-gpio";
285                                 reg = <0x18180 0x40>;
286                                 ngpios = <3>;
287                                 gpio-controller;
288                                 #gpio-cells = <2>;
289                                 interrupt-controller;
290                                 #interrupt-cells = <2>;
291                                 interrupts = <91>;
292                         };
293
294                         ethernet@34000 {
295                                 compatible = "marvell,armada-370-neta";
296                                 reg = <0x34000 0x4000>;
297                                 interrupts = <14>;
298                                 clocks = <&gateclk 1>;
299                                 status = "disabled";
300                         };
301                 };
302         };
303 };