3494b2bde2f28e8070263c353f978dfb71b21d73
[openwrt/openwrt.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 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 compatible = "nvmem-cells";
166 #address-cells = <1>;
167 #size-cells = <1>;
168
169 precal_radio_1000: precal@1000 {
170 reg = <0x1000 0x2f20>;
171 };
172
173 precal_radio_5000: precal@5000 {
174 reg = <0x5000 0x2f20>;
175 };
176 };
177
178 partition@1f0000 {
179 label = "os-image";
180 reg = <0x1f0000 0x400000>;
181 };
182
183 partition@5f0000 {
184 label = "rootfs";
185 reg = <0x5f0000 0x1900000>;
186 };
187
188 defaultmac: partition@1ef0000 {
189 label = "default-mac";
190 reg = <0x1ef0000 0x00200>;
191 read-only;
192 };
193
194 partition@1ef0200 {
195 label = "pin";
196 reg = <0x1ef0200 0x00200>;
197 read-only;
198 };
199
200 partition@1ef0400 {
201 label = "product-info";
202 reg = <0x1ef0400 0x0fc00>;
203 read-only;
204 };
205
206 partition@1f00000 {
207 label = "partition-table";
208 reg = <0x1f00000 0x10000>;
209 read-only;
210 };
211
212 partition@1f10000 {
213 label = "soft-version";
214 reg = <0x1f10000 0x10000>;
215 read-only;
216 };
217
218 partition@1f20000 {
219 label = "support-list";
220 reg = <0x1f20000 0x10000>;
221 read-only;
222 };
223
224 partition@1f30000 {
225 label = "profile";
226 reg = <0x1f30000 0x10000>;
227 read-only;
228 };
229
230 partition@1f40000 {
231 label = "default-config";
232 reg = <0x1f40000 0x10000>;
233 read-only;
234 };
235
236 partition@1f50000 {
237 label = "user-config";
238 reg = <0x1f50000 0x40000>;
239 read-only;
240 };
241
242 partition@1f90000 {
243 label = "qos-db";
244 reg = <0x1f90000 0x40000>;
245 read-only;
246 };
247
248 partition@1fd0000 {
249 label = "usb-config";
250 reg = <0x1fd0000 0x10000>;
251 read-only;
252 };
253
254 partition@1fe0000 {
255 label = "log";
256 reg = <0x1fe0000 0x20000>;
257 read-only;
258 };
259 };
260 };
261 };
262 };
263
264 &hs_phy_0 {
265 status = "okay";
266 };
267
268 &ss_phy_0 {
269 status = "okay";
270 };
271
272 &usb3_0 {
273 status = "okay";
274
275 pinctrl-0 = <&usb0_pwr_en_pin>;
276 pinctrl-names = "default";
277 };
278
279 &hs_phy_1 {
280 status = "okay";
281 };
282
283 &ss_phy_1 {
284 status = "okay";
285 };
286
287 &usb3_1 {
288 status = "okay";
289
290 pinctrl-0 = <&usb1_pwr_en_pin>;
291 pinctrl-names = "default";
292 };
293
294 &pcie0 {
295 status = "okay";
296
297 bridge@0,0 {
298 reg = <0x00000000 0 0 0 0>;
299 #address-cells = <3>;
300 #size-cells = <2>;
301 ranges;
302
303 wifi@1,0 {
304 compatible = "pci168c,0040";
305 reg = <0x00010000 0 0 0 0>;
306
307 nvmem-cells = <&macaddr_defaultmac_8>, <&precal_radio_1000>;
308 nvmem-cell-names = "mac-address", "pre-calibration";
309 mac-address-increment = <(-1)>;
310 };
311 };
312 };
313
314 &pcie1 {
315 status = "okay";
316 max-link-speed = <1>;
317
318 bridge@0,0 {
319 reg = <0x00000000 0 0 0 0>;
320 #address-cells = <3>;
321 #size-cells = <2>;
322 ranges;
323
324 wifi@1,0 {
325 compatible = "pci168c,0040";
326 reg = <0x00010000 0 0 0 0>;
327
328 nvmem-cells = <&macaddr_defaultmac_8>, <&precal_radio_5000>;
329 nvmem-cell-names = "mac-address", "pre-calibration";
330 };
331 };
332 };
333
334 &mdio0 {
335 status = "okay";
336
337 pinctrl-0 = <&mdio0_pins>;
338 pinctrl-names = "default";
339
340 phy0: ethernet-phy@0 {
341 reg = <0>;
342 qca,ar8327-initvals = <
343 0x00004 0x7600000 /* PAD0_MODE */
344 0x00008 0x1000000 /* PAD5_MODE */
345 0x0000c 0x80 /* PAD6_MODE */
346 0x000e4 0x6a545 /* MAC_POWER_SEL */
347 0x000e0 0xc74164de /* SGMII_CTRL */
348 0x0007c 0x4e /* PORT0_STATUS */
349 0x00094 0x4e /* PORT6_STATUS */
350 >;
351 };
352
353 phy4: ethernet-phy@4 {
354 reg = <4>;
355 };
356 };
357
358 &gmac1 {
359 status = "okay";
360 phy-mode = "rgmii";
361 qcom,id = <1>;
362
363 pinctrl-0 = <&rgmii2_pins>;
364 pinctrl-names = "default";
365
366 nvmem-cells = <&macaddr_defaultmac_8>;
367 nvmem-cell-names = "mac-address";
368 mac-address-increment = <1>;
369
370 fixed-link {
371 speed = <1000>;
372 full-duplex;
373 };
374 };
375
376 &gmac2 {
377 status = "okay";
378 phy-mode = "sgmii";
379 qcom,id = <2>;
380
381 nvmem-cells = <&macaddr_defaultmac_8>;
382 nvmem-cell-names = "mac-address";
383
384 fixed-link {
385 speed = <1000>;
386 full-duplex;
387 };
388 };
389
390 &adm_dma {
391 status = "okay";
392 };
393
394 &defaultmac {
395 compatible = "nvmem-cells";
396 #address-cells = <1>;
397 #size-cells = <1>;
398
399 macaddr_defaultmac_8: macaddr@8 {
400 reg = <0x8 0x6>;
401 };
402 };