ipq806x: 5.15: replace dtsi patches with upstream version
[openwrt/staging/ansuel.git] / target / linux / ipq806x / files-5.15 / 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 aliases {
14 mdio-gpio0 = &mdio0;
15 label-mac-device = &gmac2;
16 };
17 };
18
19 &qcom_pinmux {
20 spi_pins: spi_pins {
21 mux {
22 pins = "gpio18", "gpio19", "gpio21";
23 function = "gsbi5";
24 bias-pull-down;
25 };
26
27 data {
28 pins = "gpio18", "gpio19";
29 drive-strength = <10>;
30 };
31
32 cs {
33 pins = "gpio20";
34 function = "gpio";
35 drive-strength = <10>;
36 bias-pull-up;
37 };
38
39 clk {
40 pins = "gpio21";
41 drive-strength = <12>;
42 };
43 };
44
45 usb0_pwr_en_pin: usb0_pwr_en_pin {
46 mux {
47 pins = "gpio25";
48 function = "gpio";
49 drive-strength = <10>;
50 bias-pull-up;
51 output-high;
52 };
53 };
54
55 usb1_pwr_en_pin: usb1_pwr_en_pin {
56 mux {
57 pins = "gpio23";
58 function = "gpio";
59 drive-strength = <10>;
60 bias-pull-up;
61 output-high;
62 };
63 };
64 };
65
66 &gsbi5 {
67 qcom,mode = <GSBI_PROT_SPI>;
68 status = "okay";
69
70 spi@1a280000 {
71 status = "okay";
72
73 pinctrl-0 = <&spi_pins>;
74 pinctrl-names = "default";
75
76 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
77
78 flash@0 {
79 compatible = "jedec,spi-nor";
80 #address-cells = <1>;
81 #size-cells = <1>;
82 spi-max-frequency = <50000000>;
83 reg = <0>;
84
85 partitions {
86 compatible = "fixed-partitions";
87 #address-cells = <1>;
88 #size-cells = <1>;
89
90 partition@0 {
91 label = "SBL1";
92 reg = <0x0 0x20000>;
93 read-only;
94 };
95
96 partition@20000 {
97 label = "MIBIB";
98 reg = <0x20000 0x20000>;
99 read-only;
100 };
101
102 partition@40000 {
103 label = "SBL2";
104 reg = <0x40000 0x20000>;
105 read-only;
106 };
107
108 partition@60000 {
109 label = "SBL3";
110 reg = <0x60000 0x30000>;
111 read-only;
112 };
113
114 partition@90000 {
115 label = "DDRCONFIG";
116 reg = <0x90000 0x10000>;
117 read-only;
118 };
119
120 partition@a0000 {
121 label = "SSD";
122 reg = <0xa0000 0x10000>;
123 read-only;
124 };
125
126 partition@b0000 {
127 label = "TZ";
128 reg = <0xb0000 0x30000>;
129 read-only;
130 };
131
132 partition@e0000 {
133 label = "RPM";
134 reg = <0xe0000 0x20000>;
135 read-only;
136 };
137
138 partition@100000 {
139 label = "fs-uboot";
140 reg = <0x100000 0x70000>;
141 read-only;
142 };
143
144 partition@170000 {
145 label = "uboot-env";
146 reg = <0x170000 0x40000>;
147 read-only;
148 };
149
150 partition@1b0000 {
151 label = "radio";
152 reg = <0x1b0000 0x40000>;
153 read-only;
154 compatible = "nvmem-cells";
155 #address-cells = <1>;
156 #size-cells = <1>;
157
158 precal_radio_1000: precal@1000 {
159 reg = <0x1000 0x2f20>;
160 };
161
162 precal_radio_5000: precal@5000 {
163 reg = <0x5000 0x2f20>;
164 };
165 };
166
167 partition@1f0000 {
168 label = "os-image";
169 reg = <0x1f0000 0x400000>;
170 };
171
172 partition@5f0000 {
173 label = "rootfs";
174 reg = <0x5f0000 0x1900000>;
175 };
176
177 defaultmac: partition@1ef0000 {
178 label = "default-mac";
179 reg = <0x1ef0000 0x00200>;
180 read-only;
181 };
182
183 partition@1ef0200 {
184 label = "pin";
185 reg = <0x1ef0200 0x00200>;
186 read-only;
187 };
188
189 partition@1ef0400 {
190 label = "product-info";
191 reg = <0x1ef0400 0x0fc00>;
192 read-only;
193 };
194
195 partition@1f00000 {
196 label = "partition-table";
197 reg = <0x1f00000 0x10000>;
198 read-only;
199 };
200
201 partition@1f10000 {
202 label = "soft-version";
203 reg = <0x1f10000 0x10000>;
204 read-only;
205 };
206
207 partition@1f20000 {
208 label = "support-list";
209 reg = <0x1f20000 0x10000>;
210 read-only;
211 };
212
213 partition@1f30000 {
214 label = "profile";
215 reg = <0x1f30000 0x10000>;
216 read-only;
217 };
218
219 partition@1f40000 {
220 label = "default-config";
221 reg = <0x1f40000 0x10000>;
222 read-only;
223 };
224
225 partition@1f50000 {
226 label = "user-config";
227 reg = <0x1f50000 0x40000>;
228 read-only;
229 };
230
231 partition@1f90000 {
232 label = "qos-db";
233 reg = <0x1f90000 0x40000>;
234 read-only;
235 };
236
237 partition@1fd0000 {
238 label = "usb-config";
239 reg = <0x1fd0000 0x10000>;
240 read-only;
241 };
242
243 partition@1fe0000 {
244 label = "log";
245 reg = <0x1fe0000 0x20000>;
246 read-only;
247 };
248 };
249 };
250 };
251 };
252
253 &usb3_0 {
254 status = "okay";
255
256 pinctrl-0 = <&usb0_pwr_en_pin>;
257 pinctrl-names = "default";
258 };
259
260 &usb3_1 {
261 status = "okay";
262
263 pinctrl-0 = <&usb1_pwr_en_pin>;
264 pinctrl-names = "default";
265 };
266
267 &pcie0 {
268 status = "okay";
269
270 bridge@0,0 {
271 reg = <0x00000000 0 0 0 0>;
272 #address-cells = <3>;
273 #size-cells = <2>;
274 ranges;
275
276 wifi@1,0 {
277 compatible = "pci168c,0040";
278 reg = <0x00010000 0 0 0 0>;
279
280 nvmem-cells = <&macaddr_defaultmac_8>, <&precal_radio_1000>;
281 nvmem-cell-names = "mac-address", "pre-calibration";
282 mac-address-increment = <(-1)>;
283 };
284 };
285 };
286
287 &pcie1 {
288 status = "okay";
289 max-link-speed = <1>;
290
291 bridge@0,0 {
292 reg = <0x00000000 0 0 0 0>;
293 #address-cells = <3>;
294 #size-cells = <2>;
295 ranges;
296
297 wifi@1,0 {
298 compatible = "pci168c,0040";
299 reg = <0x00010000 0 0 0 0>;
300
301 nvmem-cells = <&macaddr_defaultmac_8>, <&precal_radio_5000>;
302 nvmem-cell-names = "mac-address", "pre-calibration";
303 };
304 };
305 };
306
307 &mdio0 {
308 status = "okay";
309
310 pinctrl-0 = <&mdio0_pins>;
311 pinctrl-names = "default";
312
313 phy0: ethernet-phy@0 {
314 reg = <0>;
315 qca,ar8327-initvals = <
316 0x00004 0x7600000 /* PAD0_MODE */
317 0x00008 0x1000000 /* PAD5_MODE */
318 0x0000c 0x80 /* PAD6_MODE */
319 0x000e4 0x6a545 /* MAC_POWER_SEL */
320 0x000e0 0xc74164de /* SGMII_CTRL */
321 0x0007c 0x4e /* PORT0_STATUS */
322 0x00094 0x4e /* PORT6_STATUS */
323 >;
324 };
325
326 phy4: ethernet-phy@4 {
327 reg = <4>;
328 };
329 };
330
331 &gmac1 {
332 status = "okay";
333 phy-mode = "rgmii";
334 qcom,id = <1>;
335
336 pinctrl-0 = <&rgmii2_pins>;
337 pinctrl-names = "default";
338
339 nvmem-cells = <&macaddr_defaultmac_8>;
340 nvmem-cell-names = "mac-address";
341 mac-address-increment = <1>;
342
343 fixed-link {
344 speed = <1000>;
345 full-duplex;
346 };
347 };
348
349 &gmac2 {
350 status = "okay";
351 phy-mode = "sgmii";
352 qcom,id = <2>;
353
354 nvmem-cells = <&macaddr_defaultmac_8>;
355 nvmem-cell-names = "mac-address";
356
357 fixed-link {
358 speed = <1000>;
359 full-duplex;
360 };
361 };
362
363 &adm_dma {
364 status = "okay";
365 };
366
367 &defaultmac {
368 compatible = "nvmem-cells";
369 #address-cells = <1>;
370 #size-cells = <1>;
371
372 macaddr_defaultmac_8: macaddr@8 {
373 reg = <0x8 0x6>;
374 };
375 };