arm: mvebu: a38x: serdes: Move non-serdes PCIe code to pci_mvebu.c
[platform/kernel/u-boot.git] / arch / arm / dts / armada-xp-mv78260.dtsi
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Device Tree Include file for Marvell Armada XP family SoC
4  *
5  * Copyright (C) 2012 Marvell
6  *
7  * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8  *
9  * Contains definitions specific to the Armada XP MV78260 SoC that are not
10  * common to all Armada XP SoCs.
11  */
12
13 #include "armada-xp.dtsi"
14
15 / {
16         model = "Marvell Armada XP MV78260 SoC";
17         compatible = "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
18
19         aliases {
20                 gpio0 = &gpio0;
21                 gpio1 = &gpio1;
22                 gpio2 = &gpio2;
23         };
24
25         cpus {
26                 #address-cells = <1>;
27                 #size-cells = <0>;
28                 enable-method = "marvell,armada-xp-smp";
29
30                 cpu@0 {
31                         device_type = "cpu";
32                         compatible = "marvell,sheeva-v7";
33                         reg = <0>;
34                         clocks = <&cpuclk 0>;
35                         clock-latency = <1000000>;
36                 };
37
38                 cpu@1 {
39                         device_type = "cpu";
40                         compatible = "marvell,sheeva-v7";
41                         reg = <1>;
42                         clocks = <&cpuclk 1>;
43                         clock-latency = <1000000>;
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                 pciec: pcie@82000000 {
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                         pcie1: 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                                 bus-range = <0x00 0xff>;
105                                 interrupt-map-mask = <0 0 0 0>;
106                                 interrupt-map = <0 0 0 0 &mpic 58>;
107                                 marvell,pcie-port = <0>;
108                                 marvell,pcie-lane = <0>;
109                                 clocks = <&gateclk 5>;
110                                 resets = <&systemc 0 0>;
111                                 status = "disabled";
112                         };
113
114                         pcie2: pcie@2,0 {
115                                 device_type = "pci";
116                                 assigned-addresses = <0x82000800 0 0x44000 0 0x2000>;
117                                 reg = <0x1000 0 0 0 0>;
118                                 #address-cells = <3>;
119                                 #size-cells = <2>;
120                                 #interrupt-cells = <1>;
121                                 ranges = <0x82000000 0 0 0x82000000 0x2 0 1 0
122                                           0x81000000 0 0 0x81000000 0x2 0 1 0>;
123                                 bus-range = <0x00 0xff>;
124                                 interrupt-map-mask = <0 0 0 0>;
125                                 interrupt-map = <0 0 0 0 &mpic 59>;
126                                 marvell,pcie-port = <0>;
127                                 marvell,pcie-lane = <1>;
128                                 clocks = <&gateclk 6>;
129                                 resets = <&systemc 0 0>;
130                                 status = "disabled";
131                         };
132
133                         pcie3: pcie@3,0 {
134                                 device_type = "pci";
135                                 assigned-addresses = <0x82000800 0 0x48000 0 0x2000>;
136                                 reg = <0x1800 0 0 0 0>;
137                                 #address-cells = <3>;
138                                 #size-cells = <2>;
139                                 #interrupt-cells = <1>;
140                                 ranges = <0x82000000 0 0 0x82000000 0x3 0 1 0
141                                           0x81000000 0 0 0x81000000 0x3 0 1 0>;
142                                 bus-range = <0x00 0xff>;
143                                 interrupt-map-mask = <0 0 0 0>;
144                                 interrupt-map = <0 0 0 0 &mpic 60>;
145                                 marvell,pcie-port = <0>;
146                                 marvell,pcie-lane = <2>;
147                                 clocks = <&gateclk 7>;
148                                 resets = <&systemc 0 0>;
149                                 status = "disabled";
150                         };
151
152                         pcie4: pcie@4,0 {
153                                 device_type = "pci";
154                                 assigned-addresses = <0x82000800 0 0x4c000 0 0x2000>;
155                                 reg = <0x2000 0 0 0 0>;
156                                 #address-cells = <3>;
157                                 #size-cells = <2>;
158                                 #interrupt-cells = <1>;
159                                 ranges = <0x82000000 0 0 0x82000000 0x4 0 1 0
160                                           0x81000000 0 0 0x81000000 0x4 0 1 0>;
161                                 bus-range = <0x00 0xff>;
162                                 interrupt-map-mask = <0 0 0 0>;
163                                 interrupt-map = <0 0 0 0 &mpic 61>;
164                                 marvell,pcie-port = <0>;
165                                 marvell,pcie-lane = <3>;
166                                 clocks = <&gateclk 8>;
167                                 resets = <&systemc 0 0>;
168                                 status = "disabled";
169                         };
170
171                         pcie5: pcie@5,0 {
172                                 device_type = "pci";
173                                 assigned-addresses = <0x82000800 0 0x80000 0 0x2000>;
174                                 reg = <0x2800 0 0 0 0>;
175                                 #address-cells = <3>;
176                                 #size-cells = <2>;
177                                 #interrupt-cells = <1>;
178                                 ranges = <0x82000000 0 0 0x82000000 0x5 0 1 0
179                                           0x81000000 0 0 0x81000000 0x5 0 1 0>;
180                                 bus-range = <0x00 0xff>;
181                                 interrupt-map-mask = <0 0 0 0>;
182                                 interrupt-map = <0 0 0 0 &mpic 62>;
183                                 marvell,pcie-port = <1>;
184                                 marvell,pcie-lane = <0>;
185                                 clocks = <&gateclk 9>;
186                                 resets = <&systemc 0 1>;
187                                 status = "disabled";
188                         };
189
190                         pcie6: pcie@6,0 {
191                                 device_type = "pci";
192                                 assigned-addresses = <0x82000800 0 0x84000 0 0x2000>;
193                                 reg = <0x3000 0 0 0 0>;
194                                 #address-cells = <3>;
195                                 #size-cells = <2>;
196                                 #interrupt-cells = <1>;
197                                 ranges = <0x82000000 0 0 0x82000000 0x6 0 1 0
198                                           0x81000000 0 0 0x81000000 0x6 0 1 0>;
199                                 bus-range = <0x00 0xff>;
200                                 interrupt-map-mask = <0 0 0 0>;
201                                 interrupt-map = <0 0 0 0 &mpic 63>;
202                                 marvell,pcie-port = <1>;
203                                 marvell,pcie-lane = <1>;
204                                 clocks = <&gateclk 10>;
205                                 resets = <&systemc 0 1>;
206                                 status = "disabled";
207                         };
208
209                         pcie7: pcie@7,0 {
210                                 device_type = "pci";
211                                 assigned-addresses = <0x82000800 0 0x88000 0 0x2000>;
212                                 reg = <0x3800 0 0 0 0>;
213                                 #address-cells = <3>;
214                                 #size-cells = <2>;
215                                 #interrupt-cells = <1>;
216                                 ranges = <0x82000000 0 0 0x82000000 0x7 0 1 0
217                                           0x81000000 0 0 0x81000000 0x7 0 1 0>;
218                                 bus-range = <0x00 0xff>;
219                                 interrupt-map-mask = <0 0 0 0>;
220                                 interrupt-map = <0 0 0 0 &mpic 64>;
221                                 marvell,pcie-port = <1>;
222                                 marvell,pcie-lane = <2>;
223                                 clocks = <&gateclk 11>;
224                                 resets = <&systemc 0 1>;
225                                 status = "disabled";
226                         };
227
228                         pcie8: pcie@8,0 {
229                                 device_type = "pci";
230                                 assigned-addresses = <0x82000800 0 0x8c000 0 0x2000>;
231                                 reg = <0x4000 0 0 0 0>;
232                                 #address-cells = <3>;
233                                 #size-cells = <2>;
234                                 #interrupt-cells = <1>;
235                                 ranges = <0x82000000 0 0 0x82000000 0x8 0 1 0
236                                           0x81000000 0 0 0x81000000 0x8 0 1 0>;
237                                 bus-range = <0x00 0xff>;
238                                 interrupt-map-mask = <0 0 0 0>;
239                                 interrupt-map = <0 0 0 0 &mpic 65>;
240                                 marvell,pcie-port = <1>;
241                                 marvell,pcie-lane = <3>;
242                                 clocks = <&gateclk 12>;
243                                 resets = <&systemc 0 1>;
244                                 status = "disabled";
245                         };
246
247                         pcie9: pcie@9,0 {
248                                 device_type = "pci";
249                                 assigned-addresses = <0x82000800 0 0x42000 0 0x2000>;
250                                 reg = <0x4800 0 0 0 0>;
251                                 #address-cells = <3>;
252                                 #size-cells = <2>;
253                                 #interrupt-cells = <1>;
254                                 ranges = <0x82000000 0 0 0x82000000 0x9 0 1 0
255                                           0x81000000 0 0 0x81000000 0x9 0 1 0>;
256                                 bus-range = <0x00 0xff>;
257                                 interrupt-map-mask = <0 0 0 0>;
258                                 interrupt-map = <0 0 0 0 &mpic 99>;
259                                 marvell,pcie-port = <2>;
260                                 marvell,pcie-lane = <0>;
261                                 clocks = <&gateclk 26>;
262                                 resets = <&systemc 0 2>;
263                                 status = "disabled";
264                         };
265                 };
266
267                 internal-regs {
268                         gpio0: gpio@18100 {
269                                 compatible = "marvell,armada-370-gpio",
270                                              "marvell,orion-gpio";
271                                 reg = <0x18100 0x40>, <0x181c0 0x08>;
272                                 reg-names = "gpio", "pwm";
273                                 ngpios = <32>;
274                                 gpio-controller;
275                                 #gpio-cells = <2>;
276                                 #pwm-cells = <2>;
277                                 interrupt-controller;
278                                 #interrupt-cells = <2>;
279                                 interrupts = <82>, <83>, <84>, <85>;
280                                 clocks = <&coreclk 0>;
281                         };
282
283                         gpio1: gpio@18140 {
284                                 compatible = "marvell,armada-370-gpio",
285                                              "marvell,orion-gpio";
286                                 reg = <0x18140 0x40>, <0x181c8 0x08>;
287                                 reg-names = "gpio", "pwm";
288                                 ngpios = <32>;
289                                 gpio-controller;
290                                 #gpio-cells = <2>;
291                                 #pwm-cells = <2>;
292                                 interrupt-controller;
293                                 #interrupt-cells = <2>;
294                                 interrupts = <87>, <88>, <89>, <90>;
295                                 clocks = <&coreclk 0>;
296                         };
297
298                         gpio2: gpio@18180 {
299                                 compatible = "marvell,armada-370-gpio",
300                                              "marvell,orion-gpio";
301                                 reg = <0x18180 0x40>;
302                                 ngpios = <3>;
303                                 gpio-controller;
304                                 #gpio-cells = <2>;
305                                 interrupt-controller;
306                                 #interrupt-cells = <2>;
307                                 interrupts = <91>;
308                         };
309
310                         eth3: ethernet@34000 {
311                                 compatible = "marvell,armada-xp-neta";
312                                 reg = <0x34000 0x4000>;
313                                 interrupts = <14>;
314                                 clocks = <&gateclk 1>;
315                                 status = "disabled";
316                         };
317                 };
318         };
319 };
320
321 &pinctrl {
322         compatible = "marvell,mv78260-pinctrl";
323 };