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