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