ipq40xx: switch default to 6.6
[openwrt/openwrt.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / qcom-ipq4018-nbg6617.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/soc/qcom,tcsr.h>
9
10 / {
11 model = "ZyXEL NBG6617";
12 compatible = "zyxel,nbg6617";
13
14 chosen {
15 /*
16 * the vendor u-boot adds root and mtdparts cmdline parameters
17 * which we don't want... but we have to overwrite them or else
18 * the kernel will take them at face value.
19 */
20 bootargs-append = " mtdparts= root=31:13";
21 };
22
23 aliases {
24 led-boot = &power;
25 led-failsafe = &power;
26 led-running = &power;
27 led-upgrade = &power;
28 };
29
30 soc {
31 rng@22000 {
32 status = "okay";
33 };
34
35 mdio@90000 {
36 status = "okay";
37 };
38
39 tcsr@1949000 {
40 compatible = "qcom,tcsr";
41 reg = <0x1949000 0x100>;
42 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
43 };
44
45 tcsr@194b000 {
46 compatible = "qcom,tcsr";
47 reg = <0x194b000 0x100>;
48 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
49 };
50
51 ess_tcsr@1953000 {
52 compatible = "qcom,tcsr";
53 reg = <0x1953000 0x1000>;
54 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
55 };
56
57 tcsr@1957000 {
58 compatible = "qcom,tcsr";
59 reg = <0x1957000 0x100>;
60 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
61 };
62
63 usb2@60f8800 {
64 status = "okay";
65
66 dwc3@6000000 {
67 #address-cells = <1>;
68 #size-cells = <0>;
69
70 usb2_port1: port@1 {
71 reg = <1>;
72 #trigger-source-cells = <0>;
73 };
74 };
75 };
76
77 usb3@8af8800 {
78 status = "okay";
79
80 dwc3@8a00000 {
81 #address-cells = <1>;
82 #size-cells = <0>;
83
84 usb3_port1: port@1 {
85 reg = <1>;
86 #trigger-source-cells = <0>;
87 };
88
89 usb3_port2: port@2 {
90 reg = <2>;
91 #trigger-source-cells = <0>;
92 };
93 };
94 };
95
96 crypto@8e3a000 {
97 status = "okay";
98 };
99
100 watchdog@b017000 {
101 status = "okay";
102 };
103 };
104
105 keys {
106 compatible = "gpio-keys";
107
108 wlan {
109 label = "wlan";
110 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
111 linux,code = <KEY_RFKILL>;
112 linux,input-type = <EV_SW>;
113 };
114
115 wps {
116 label = "wps";
117 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
118 linux,code = <KEY_WPS_BUTTON>;
119 };
120
121 reset {
122 label = "reset";
123 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
124 linux,code = <KEY_RESTART>;
125 };
126 };
127
128 leds {
129 compatible = "gpio-leds";
130 pinctrl-0 = <&led_pins>;
131 pinctrl-names = "default";
132
133 power: power {
134 function = LED_FUNCTION_POWER;
135 color = <LED_COLOR_ID_GREEN>;
136 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
137 };
138
139 usb {
140 function = LED_FUNCTION_USB;
141 color = <LED_COLOR_ID_GREEN>;
142 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
143 trigger-sources = <&usb2_port1>, <&usb3_port1>, <&usb3_port2>;
144 linux,default-trigger = "usbport";
145 };
146
147 wlan2g {
148 label = "green:wlan2g";
149 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
150 };
151
152 wlan5g {
153 label = "green:wlan5g";
154 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
155 };
156
157 wps {
158 function = LED_FUNCTION_WPS;
159 color = <LED_COLOR_ID_GREEN>;
160 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
161 };
162 };
163 };
164
165 &tlmm {
166 serial_pins: serial_pinmux {
167 mux {
168 pins = "gpio60", "gpio61";
169 function = "blsp_uart0";
170 bias-disable;
171 };
172 };
173 spi_0_pins: spi_0_pinmux {
174 mux {
175 function = "blsp_spi0";
176 pins = "gpio55", "gpio56", "gpio57";
177 drive-strength = <12>;
178 bias-disable;
179 };
180
181 mux_cs {
182 function = "gpio";
183 pins = "gpio54";
184 drive-strength = <2>;
185 bias-disable;
186 output-low;
187 };
188 };
189 led_pins: led_pinmux {
190 mux {
191 pins = "gpio0", "gpio1", "gpio3", "gpio5", "gpio58";
192 drive-strength = <0x8>;
193 bias-disable;
194 output-low;
195 };
196 };
197 };
198
199 &blsp1_spi1 { /* BLSP1 QUP1 */
200 pinctrl-0 = <&spi_0_pins>;
201 pinctrl-names = "default";
202 status = "okay";
203 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
204
205 flash@0 {
206 compatible = "jedec,spi-nor";
207 reg = <0>;
208 spi-max-frequency = <50000000>;
209 status = "okay";
210 m25p,fast-read;
211
212 partitions {
213 compatible = "fixed-partitions";
214 #address-cells = <1>;
215 #size-cells = <1>;
216
217 partition0@0 {
218 label = "SBL1";
219 reg = <0x00000000 0x00040000>;
220 read-only;
221 };
222 partition1@40000 {
223 label = "MIBIB";
224 reg = <0x00040000 0x00020000>;
225 read-only;
226 };
227 partition2@60000 {
228 label = "QSEE";
229 reg = <0x00060000 0x00060000>;
230 read-only;
231 };
232 partition3@c0000 {
233 label = "CDT";
234 reg = <0x000c0000 0x00010000>;
235 read-only;
236 };
237 partition4@d0000 {
238 label = "DDRPARAMS";
239 reg = <0x000d0000 0x00010000>;
240 read-only;
241 };
242 partition5@e0000 {
243 label = "APPSBL"; /* u-boot */
244 reg = <0x000e0000 0x00080000>;
245 /* U-Boot Standalone App "zloader" is located at 0x64000 */
246 read-only;
247 };
248 partition6@160000 {
249 label = "APPSBLENV"; /* u-boot env */
250 reg = <0x00160000 0x00010000>;
251 };
252 partition7@170000 {
253 /* make a backup of this partition! */
254 label = "ART";
255 reg = <0x00170000 0x00010000>;
256 read-only;
257 };
258 partition8@180000 {
259 label = "kernel";
260 reg = <0x00180000 0x00400000>;
261 };
262 partition9@580000 {
263 label = "dualflag";
264 reg = <0x00580000 0x00010000>;
265 read-only;
266 };
267 partition10@590000 {
268 label = "header";
269 reg = <0x00590000 0x00010000>;
270 };
271 partition11@5a0000 {
272 label = "romd";
273 reg = <0x005a0000 0x00100000>;
274 read-only;
275 };
276 partition12@6a0000 {
277 label = "not_root_data";
278 /*
279 * for some strange reason, someone at ZyXEL
280 * had the "great" idea to put the rootfs_data
281 * in front of rootfs... Don't do that!
282 * As a result this one, full MebiByte remains
283 * unused.
284 */
285 reg = <0x006a0000 0x00100000>;
286 };
287 partition13@7a0000 {
288 label = "rootfs";
289 reg = <0x007a0000 0x01860000>;
290 };
291 };
292 };
293 };
294
295 &blsp1_uart1 {
296 pinctrl-0 = <&serial_pins>;
297 pinctrl-names = "default";
298 status = "okay";
299 };
300
301 &cryptobam {
302 status = "okay";
303 };
304
305 &blsp_dma {
306 status = "okay";
307 };
308
309 &gmac {
310 status = "okay";
311 };
312
313 &switch {
314 status = "okay";
315 };
316
317 &swport1 {
318 status = "okay";
319
320 label = "lan4";
321 };
322
323 &swport2 {
324 status = "okay";
325
326 label = "lan3";
327 };
328
329 &swport3 {
330 status = "okay";
331
332 label = "lan2";
333 };
334
335 &swport4 {
336 status = "okay";
337
338 label = "lan1";
339 };
340
341 &swport5 {
342 status = "okay";
343 };
344
345 &wifi0 {
346 status = "okay";
347 qcom,ath10k-calibration-variant = "ZyXEL-NBG6617";
348 };
349
350 &wifi1 {
351 status = "okay";
352 qcom,ath10k-calibration-variant = "ZyXEL-NBG6617";
353 };
354
355 &usb3_ss_phy {
356 status = "okay";
357 };
358
359 &usb3_hs_phy {
360 status = "okay";
361 };
362
363 &usb2_hs_phy {
364 status = "okay";
365 };