ipq4019: fix even more wrong reference to USB node
[openwrt/staging/nbd.git] / target / linux / ipq40xx / files-6.6 / arch / arm / boot / dts / qcom / qcom-ipq4018-fritzbox-4040.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/soc/qcom,tcsr.h>
8
9 / {
10 model = "AVM FRITZ!Box 4040";
11 compatible = "avm,fritzbox-4040";
12
13 aliases {
14 led-boot = &power;
15 led-failsafe = &flash;
16 led-running = &power;
17 led-upgrade = &flash;
18 label-mac-device = &gmac;
19 };
20
21 soc {
22 rng@22000 {
23 status = "okay";
24 };
25
26 mdio@90000 {
27 status = "okay";
28 };
29
30 tcsr@1949000 {
31 compatible = "qcom,tcsr";
32 reg = <0x1949000 0x100>;
33 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
34 };
35
36 tcsr@194b000 {
37 compatible = "qcom,tcsr";
38 reg = <0x194b000 0x100>;
39 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
40 };
41
42 ess_tcsr@1953000 {
43 compatible = "qcom,tcsr";
44 reg = <0x1953000 0x1000>;
45 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
46 };
47
48 tcsr@1957000 {
49 compatible = "qcom,tcsr";
50 reg = <0x1957000 0x100>;
51 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
52 };
53
54 crypto@8e3a000 {
55 status = "okay";
56 };
57
58 watchdog@b017000 {
59 status = "okay";
60 };
61 };
62
63 keys {
64 compatible = "gpio-keys";
65
66 wlan {
67 label = "wlan";
68 gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_RFKILL>;
70 };
71
72 wps {
73 label = "wps";
74 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_WPS_BUTTON>;
76 };
77 };
78
79 switch-leds {
80 compatible = "gpio-leds";
81
82 wlan {
83 function = LED_FUNCTION_WLAN;
84 color = <LED_COLOR_ID_GREEN>;
85 gpios = <&ethphy0 0 GPIO_ACTIVE_HIGH>;
86 };
87
88 panic: info_red {
89 label = "red:info";
90 gpios = <&ethphy0 1 GPIO_ACTIVE_HIGH>;
91 panic-indicator;
92 };
93
94 wan {
95 function = LED_FUNCTION_WAN;
96 color = <LED_COLOR_ID_GREEN>;
97 gpios = <&ethphy1 0 GPIO_ACTIVE_HIGH>;
98 };
99
100 power: power {
101 function = LED_FUNCTION_POWER;
102 color = <LED_COLOR_ID_GREEN>;
103 gpios = <&ethphy2 1 GPIO_ACTIVE_HIGH>;
104 };
105
106 lan {
107 function = LED_FUNCTION_LAN;
108 color = <LED_COLOR_ID_GREEN>;
109 gpios = <&ethphy3 0 GPIO_ACTIVE_HIGH>;
110 };
111
112 flash: info_amber {
113 label = "amber:info";
114 gpios = <&ethphy3 1 GPIO_ACTIVE_HIGH>;
115 };
116 };
117 };
118
119 &tlmm {
120 serial_pins: serial_pinmux {
121 mux {
122 pins = "gpio60", "gpio61";
123 function = "blsp_uart0";
124 bias-disable;
125 };
126 };
127
128 spi_0_pins: spi_0_pinmux {
129 mux {
130 function = "blsp_spi0";
131 pins = "gpio55", "gpio56", "gpio57";
132 drive-strength = <12>;
133 bias-disable;
134 };
135
136 mux_cs {
137 function = "gpio";
138 pins = "gpio54";
139 drive-strength = <2>;
140 bias-disable;
141 output-high;
142 };
143 };
144 };
145
146 &cryptobam {
147 status = "okay";
148 };
149
150 &blsp_dma {
151 status = "okay";
152 };
153
154 &blsp1_spi1 { /* BLSP1 QUP1 */
155 pinctrl-0 = <&spi_0_pins>;
156 pinctrl-names = "default";
157 status = "okay";
158 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
159
160 flash@0 {
161 compatible = "jedec,spi-nor";
162 reg = <0>;
163 spi-max-frequency = <24000000>;
164 status = "okay";
165 m25p,fast-read;
166
167 partitions {
168 compatible = "fixed-partitions";
169 #address-cells = <1>;
170 #size-cells = <1>;
171
172 partition0@0 {
173 label = "SBL1";
174 reg = <0x00000000 0x00040000>;
175 read-only;
176 };
177 partition1@40000 {
178 label = "MIBIB";
179 reg = <0x00040000 0x00020000>;
180 read-only;
181 };
182 partition2@60000 {
183 label = "QSEE";
184 reg = <0x00060000 0x00060000>;
185 read-only;
186 };
187 partition3@c0000 {
188 label = "CDT";
189 reg = <0x000c0000 0x00010000>;
190 read-only;
191 };
192 partition4@d0000 {
193 label = "DDRPARAMS";
194 reg = <0x000d0000 0x00010000>;
195 read-only;
196 };
197 partition5@e0000 {
198 label = "APPSBLENV"; /* uboot env - empty */
199 reg = <0x000e0000 0x00010000>;
200 read-only;
201 };
202 partition6@f0000 {
203 label = "urlader"; /* APPSBL */
204 reg = <0x000f0000 0x0002dc000>;
205 read-only;
206 };
207 partition7@11dc00 {
208 /* make a backup of this partition! */
209 label = "urlader_config";
210 reg = <0x0011dc00 0x00002400>;
211 read-only;
212 };
213 partition8@120000 {
214 label = "tffs1";
215 reg = <0x00120000 0x00080000>;
216 read-only;
217 };
218 partition9@1a0000 {
219 label = "tffs2";
220 reg = <0x001a0000 0x00080000>;
221 read-only;
222 };
223 partition10@220000 {
224 label = "uboot";
225 reg = <0x00220000 0x00080000>;
226 read-only;
227 };
228 partition11@2A0000 {
229 compatible = "denx,fit";
230 label = "firmware";
231 reg = <0x002a0000 0x01c60000>;
232 };
233 partition12@1f00000 {
234 label = "jffs2";
235 reg = <0x01f00000 0x00100000>;
236 };
237 };
238 };
239 };
240
241 &blsp1_uart1 {
242 pinctrl-0 = <&serial_pins>;
243 pinctrl-names = "default";
244 status = "okay";
245 };
246
247 &ethphy0 {
248 gpio-controller;
249 #gpio-cells = <2>;
250 };
251
252 &ethphy1 {
253 gpio-controller;
254 #gpio-cells = <2>;
255
256 enable-usb-power {
257 gpio-hog;
258 line-name = "enable USB3 power";
259 gpios = <1 GPIO_ACTIVE_HIGH>;
260 output-high;
261 };
262 };
263
264 &ethphy2 {
265 gpio-controller;
266 #gpio-cells = <2>;
267 };
268
269 &ethphy3 {
270 gpio-controller;
271 #gpio-cells = <2>;
272 };
273
274 &gmac {
275 status = "okay";
276 };
277
278 &switch {
279 status = "okay";
280 };
281
282 &swport1 {
283 status = "okay";
284 };
285
286 &swport2 {
287 status = "okay";
288 };
289
290 &swport3 {
291 status = "okay";
292 };
293
294 &swport4 {
295 status = "okay";
296 };
297
298 &swport5 {
299 status = "okay";
300 };
301
302 &usb3_ss_phy {
303 status = "okay";
304 };
305
306 &usb3_hs_phy {
307 status = "okay";
308 };
309
310 &usb3 {
311 status = "okay";
312 };
313
314 &usb2_hs_phy {
315 status = "okay";
316 };
317
318 &usb2 {
319 status = "okay";
320 };
321
322 &wifi0 {
323 status = "okay";
324 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
325 };
326
327 &wifi1 {
328 status = "okay";
329 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
330 };