kernel/ipq806x: Restore kernel files for v6.1
[openwrt/openwrt.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8064-ad7200-c2600.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qcom-ipq8064-v2.0-smb208.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 memory@0 {
9 reg = <0x42000000 0x1e000000>;
10 device_type = "memory";
11 };
12
13 reserved-memory {
14 ramoops@42100000 {
15 compatible = "ramoops";
16 reg = <0x42100000 0x40000>;
17 record-size = <0x4000>;
18 console-size = <0x4000>;
19 ftrace-size = <0x4000>;
20 pmsg-size = <0x4000>;
21 };
22 };
23
24 aliases {
25 mdio-gpio0 = &mdio0;
26 label-mac-device = &gmac2;
27 };
28 };
29
30 &qcom_pinmux {
31 spi_pins: spi_pins {
32 mux {
33 pins = "gpio18", "gpio19", "gpio21";
34 function = "gsbi5";
35 bias-pull-down;
36 };
37
38 data {
39 pins = "gpio18", "gpio19";
40 drive-strength = <10>;
41 };
42
43 cs {
44 pins = "gpio20";
45 function = "gpio";
46 drive-strength = <10>;
47 bias-pull-up;
48 };
49
50 clk {
51 pins = "gpio21";
52 drive-strength = <12>;
53 };
54 };
55
56 usb0_pwr_en_pin: usb0_pwr_en_pin {
57 mux {
58 pins = "gpio25";
59 function = "gpio";
60 drive-strength = <10>;
61 bias-pull-up;
62 output-high;
63 };
64 };
65
66 usb1_pwr_en_pin: usb1_pwr_en_pin {
67 mux {
68 pins = "gpio23";
69 function = "gpio";
70 drive-strength = <10>;
71 bias-pull-up;
72 output-high;
73 };
74 };
75 };
76
77 &gsbi5 {
78 qcom,mode = <GSBI_PROT_SPI>;
79 status = "okay";
80
81 spi@1a280000 {
82 status = "okay";
83
84 pinctrl-0 = <&spi_pins>;
85 pinctrl-names = "default";
86
87 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
88
89 flash@0 {
90 compatible = "jedec,spi-nor";
91 #address-cells = <1>;
92 #size-cells = <1>;
93 spi-max-frequency = <50000000>;
94 reg = <0>;
95
96 partitions {
97 compatible = "fixed-partitions";
98 #address-cells = <1>;
99 #size-cells = <1>;
100
101 partition@0 {
102 label = "SBL1";
103 reg = <0x0 0x20000>;
104 read-only;
105 };
106
107 partition@20000 {
108 label = "MIBIB";
109 reg = <0x20000 0x20000>;
110 read-only;
111 };
112
113 partition@40000 {
114 label = "SBL2";
115 reg = <0x40000 0x20000>;
116 read-only;
117 };
118
119 partition@60000 {
120 label = "SBL3";
121 reg = <0x60000 0x30000>;
122 read-only;
123 };
124
125 partition@90000 {
126 label = "DDRCONFIG";
127 reg = <0x90000 0x10000>;
128 read-only;
129 };
130
131 partition@a0000 {
132 label = "SSD";
133 reg = <0xa0000 0x10000>;
134 read-only;
135 };
136
137 partition@b0000 {
138 label = "TZ";
139 reg = <0xb0000 0x30000>;
140 read-only;
141 };
142
143 partition@e0000 {
144 label = "RPM";
145 reg = <0xe0000 0x20000>;
146 read-only;
147 };
148
149 partition@100000 {
150 label = "fs-uboot";
151 reg = <0x100000 0x70000>;
152 read-only;
153 };
154
155 partition@170000 {
156 label = "uboot-env";
157 reg = <0x170000 0x40000>;
158 read-only;
159 };
160
161 partition@1b0000 {
162 label = "radio";
163 reg = <0x1b0000 0x40000>;
164 read-only;
165
166 nvmem-layout {
167 compatible = "fixed-layout";
168 #address-cells = <1>;
169 #size-cells = <1>;
170
171 precal_radio_1000: precal@1000 {
172 reg = <0x1000 0x2f20>;
173 };
174
175 precal_radio_5000: precal@5000 {
176 reg = <0x5000 0x2f20>;
177 };
178 };
179 };
180
181 partition@1f0000 {
182 label = "os-image";
183 reg = <0x1f0000 0x400000>;
184 };
185
186 partition@5f0000 {
187 label = "rootfs";
188 reg = <0x5f0000 0x1900000>;
189 };
190
191 defaultmac: partition@1ef0000 {
192 label = "default-mac";
193 reg = <0x1ef0000 0x00200>;
194 read-only;
195
196 nvmem-layout {
197 compatible = "fixed-layout";
198 #address-cells = <1>;
199 #size-cells = <1>;
200
201 macaddr_defaultmac_8: macaddr@8 {
202 compatible = "mac-base";
203 reg = <0x8 0x6>;
204 #nvmem-cell-cells = <1>;
205 };
206 };
207 };
208
209 partition@1ef0200 {
210 label = "pin";
211 reg = <0x1ef0200 0x00200>;
212 read-only;
213 };
214
215 partition@1ef0400 {
216 label = "product-info";
217 reg = <0x1ef0400 0x0fc00>;
218 read-only;
219 };
220
221 partition@1f00000 {
222 label = "partition-table";
223 reg = <0x1f00000 0x10000>;
224 read-only;
225 };
226
227 partition@1f10000 {
228 label = "soft-version";
229 reg = <0x1f10000 0x10000>;
230 read-only;
231 };
232
233 partition@1f20000 {
234 label = "support-list";
235 reg = <0x1f20000 0x10000>;
236 read-only;
237 };
238
239 partition@1f30000 {
240 label = "profile";
241 reg = <0x1f30000 0x10000>;
242 read-only;
243 };
244
245 partition@1f40000 {
246 label = "default-config";
247 reg = <0x1f40000 0x10000>;
248 read-only;
249 };
250
251 partition@1f50000 {
252 label = "user-config";
253 reg = <0x1f50000 0x40000>;
254 read-only;
255 };
256
257 partition@1f90000 {
258 label = "qos-db";
259 reg = <0x1f90000 0x40000>;
260 read-only;
261 };
262
263 partition@1fd0000 {
264 label = "usb-config";
265 reg = <0x1fd0000 0x10000>;
266 read-only;
267 };
268
269 partition@1fe0000 {
270 label = "log";
271 reg = <0x1fe0000 0x20000>;
272 read-only;
273 };
274 };
275 };
276 };
277 };
278
279 &hs_phy_0 {
280 status = "okay";
281 };
282
283 &ss_phy_0 {
284 status = "okay";
285 };
286
287 &usb3_0 {
288 status = "okay";
289
290 pinctrl-0 = <&usb0_pwr_en_pin>;
291 pinctrl-names = "default";
292 };
293
294 &hs_phy_1 {
295 status = "okay";
296 };
297
298 &ss_phy_1 {
299 status = "okay";
300 };
301
302 &usb3_1 {
303 status = "okay";
304
305 pinctrl-0 = <&usb1_pwr_en_pin>;
306 pinctrl-names = "default";
307 };
308
309 &pcie0 {
310 status = "okay";
311
312 bridge@0,0 {
313 reg = <0x00000000 0 0 0 0>;
314 #address-cells = <3>;
315 #size-cells = <2>;
316 ranges;
317
318 wifi@1,0 {
319 compatible = "pci168c,0040";
320 reg = <0x00010000 0 0 0 0>;
321
322 nvmem-cells = <&macaddr_defaultmac_8 (-1)>, <&precal_radio_1000>;
323 nvmem-cell-names = "mac-address", "pre-calibration";
324 };
325 };
326 };
327
328 &pcie1 {
329 status = "okay";
330 max-link-speed = <1>;
331
332 bridge@0,0 {
333 reg = <0x00000000 0 0 0 0>;
334 #address-cells = <3>;
335 #size-cells = <2>;
336 ranges;
337
338 wifi@1,0 {
339 compatible = "pci168c,0040";
340 reg = <0x00010000 0 0 0 0>;
341
342 nvmem-cells = <&macaddr_defaultmac_8 0>, <&precal_radio_5000>;
343 nvmem-cell-names = "mac-address", "pre-calibration";
344 };
345 };
346 };
347
348 &mdio0 {
349 status = "okay";
350
351 pinctrl-0 = <&mdio0_pins>;
352 pinctrl-names = "default";
353
354 switch@10 {
355 compatible = "qca,qca8337";
356 #address-cells = <1>;
357 #size-cells = <0>;
358 reg = <0x10>;
359
360 ports {
361 #address-cells = <1>;
362 #size-cells = <0>;
363
364 port@0 {
365 reg = <0>;
366 label = "cpu";
367 ethernet = <&gmac1>;
368 phy-mode = "rgmii";
369 tx-internal-delay-ps = <1000>;
370 rx-internal-delay-ps = <1000>;
371
372 fixed-link {
373 speed = <1000>;
374 full-duplex;
375 };
376 };
377
378 port@1 {
379 reg = <1>;
380 label = "lan4";
381 phy-mode = "internal";
382 phy-handle = <&phy_port1>;
383 };
384
385 port@2 {
386 reg = <2>;
387 label = "lan3";
388 phy-mode = "internal";
389 phy-handle = <&phy_port2>;
390 };
391
392 port@3 {
393 reg = <3>;
394 label = "lan2";
395 phy-mode = "internal";
396 phy-handle = <&phy_port3>;
397 };
398
399 port@4 {
400 reg = <4>;
401 label = "lan1";
402 phy-mode = "internal";
403 phy-handle = <&phy_port4>;
404 };
405
406 port@5 {
407 reg = <5>;
408 label = "wan";
409 phy-mode = "internal";
410 phy-handle = <&phy_port5>;
411 };
412
413 port@6 {
414 reg = <6>;
415 label = "cpu";
416 ethernet = <&gmac2>;
417 phy-mode = "sgmii";
418 qca,sgmii-enable-pll;
419
420 fixed-link {
421 speed = <1000>;
422 full-duplex;
423 };
424 };
425 };
426
427 mdio {
428 #address-cells = <1>;
429 #size-cells = <0>;
430
431 phy_port1: phy@0 {
432 reg = <0>;
433 };
434
435 phy_port2: phy@1 {
436 reg = <1>;
437 };
438
439 phy_port3: phy@2 {
440 reg = <2>;
441 };
442
443 phy_port4: phy@3 {
444 reg = <3>;
445 };
446
447 phy_port5: phy@4 {
448 reg = <4>;
449 };
450 };
451 };
452 };
453
454 &gmac1 {
455 status = "okay";
456 phy-mode = "rgmii";
457 qcom,id = <1>;
458
459 pinctrl-0 = <&rgmii2_pins>;
460 pinctrl-names = "default";
461
462 nvmem-cells = <&macaddr_defaultmac_8 1>;
463 nvmem-cell-names = "mac-address";
464
465 fixed-link {
466 speed = <1000>;
467 full-duplex;
468 };
469 };
470
471 &gmac2 {
472 status = "okay";
473 phy-mode = "sgmii";
474 qcom,id = <2>;
475
476 nvmem-cells = <&macaddr_defaultmac_8 0>;
477 nvmem-cell-names = "mac-address";
478
479 fixed-link {
480 speed = <1000>;
481 full-duplex;
482 };
483 };
484
485 &adm_dma {
486 status = "okay";
487 };