hostapd: Fix compile against mbedtsl 3.6
[openwrt/staging/nbd.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / 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 usb2@60f8800 {
55 status = "okay";
56 };
57
58 usb3@8af8800 {
59 status = "okay";
60 };
61
62 crypto@8e3a000 {
63 status = "okay";
64 };
65
66 watchdog@b017000 {
67 status = "okay";
68 };
69 };
70
71 keys {
72 compatible = "gpio-keys";
73
74 wlan {
75 label = "wlan";
76 gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_RFKILL>;
78 };
79
80 wps {
81 label = "wps";
82 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_WPS_BUTTON>;
84 };
85 };
86
87 switch-leds {
88 compatible = "gpio-leds";
89
90 wlan {
91 function = LED_FUNCTION_WLAN;
92 color = <LED_COLOR_ID_GREEN>;
93 gpios = <&ethphy0 0 GPIO_ACTIVE_HIGH>;
94 };
95
96 panic: info_red {
97 label = "red:info";
98 gpios = <&ethphy0 1 GPIO_ACTIVE_HIGH>;
99 panic-indicator;
100 };
101
102 wan {
103 function = LED_FUNCTION_WAN;
104 color = <LED_COLOR_ID_GREEN>;
105 gpios = <&ethphy1 0 GPIO_ACTIVE_HIGH>;
106 };
107
108 power: power {
109 function = LED_FUNCTION_POWER;
110 color = <LED_COLOR_ID_GREEN>;
111 gpios = <&ethphy2 1 GPIO_ACTIVE_HIGH>;
112 };
113
114 lan {
115 function = LED_FUNCTION_LAN;
116 color = <LED_COLOR_ID_GREEN>;
117 gpios = <&ethphy3 0 GPIO_ACTIVE_HIGH>;
118 };
119
120 flash: info_amber {
121 label = "amber:info";
122 gpios = <&ethphy3 1 GPIO_ACTIVE_HIGH>;
123 };
124 };
125 };
126
127 &tlmm {
128 serial_pins: serial_pinmux {
129 mux {
130 pins = "gpio60", "gpio61";
131 function = "blsp_uart0";
132 bias-disable;
133 };
134 };
135
136 spi_0_pins: spi_0_pinmux {
137 mux {
138 function = "blsp_spi0";
139 pins = "gpio55", "gpio56", "gpio57";
140 drive-strength = <12>;
141 bias-disable;
142 };
143
144 mux_cs {
145 function = "gpio";
146 pins = "gpio54";
147 drive-strength = <2>;
148 bias-disable;
149 output-high;
150 };
151 };
152 };
153
154 &cryptobam {
155 status = "okay";
156 };
157
158 &blsp_dma {
159 status = "okay";
160 };
161
162 &blsp1_spi1 { /* BLSP1 QUP1 */
163 pinctrl-0 = <&spi_0_pins>;
164 pinctrl-names = "default";
165 status = "okay";
166 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
167
168 flash@0 {
169 compatible = "jedec,spi-nor";
170 reg = <0>;
171 spi-max-frequency = <24000000>;
172 status = "okay";
173 m25p,fast-read;
174
175 partitions {
176 compatible = "fixed-partitions";
177 #address-cells = <1>;
178 #size-cells = <1>;
179
180 partition0@0 {
181 label = "SBL1";
182 reg = <0x00000000 0x00040000>;
183 read-only;
184 };
185 partition1@40000 {
186 label = "MIBIB";
187 reg = <0x00040000 0x00020000>;
188 read-only;
189 };
190 partition2@60000 {
191 label = "QSEE";
192 reg = <0x00060000 0x00060000>;
193 read-only;
194 };
195 partition3@c0000 {
196 label = "CDT";
197 reg = <0x000c0000 0x00010000>;
198 read-only;
199 };
200 partition4@d0000 {
201 label = "DDRPARAMS";
202 reg = <0x000d0000 0x00010000>;
203 read-only;
204 };
205 partition5@e0000 {
206 label = "APPSBLENV"; /* uboot env - empty */
207 reg = <0x000e0000 0x00010000>;
208 read-only;
209 };
210 partition6@f0000 {
211 label = "urlader"; /* APPSBL */
212 reg = <0x000f0000 0x0002dc000>;
213 read-only;
214 };
215 partition7@11dc00 {
216 /* make a backup of this partition! */
217 label = "urlader_config";
218 reg = <0x0011dc00 0x00002400>;
219 read-only;
220 };
221 partition8@120000 {
222 label = "tffs1";
223 reg = <0x00120000 0x00080000>;
224 read-only;
225 };
226 partition9@1a0000 {
227 label = "tffs2";
228 reg = <0x001a0000 0x00080000>;
229 read-only;
230 };
231 partition10@220000 {
232 label = "uboot";
233 reg = <0x00220000 0x00080000>;
234 read-only;
235 };
236 partition11@2A0000 {
237 compatible = "denx,fit";
238 label = "firmware";
239 reg = <0x002a0000 0x01c60000>;
240 };
241 partition12@1f00000 {
242 label = "jffs2";
243 reg = <0x01f00000 0x00100000>;
244 };
245 };
246 };
247 };
248
249 &blsp1_uart1 {
250 pinctrl-0 = <&serial_pins>;
251 pinctrl-names = "default";
252 status = "okay";
253 };
254
255 &ethphy0 {
256 gpio-controller;
257 #gpio-cells = <2>;
258 };
259
260 &ethphy1 {
261 gpio-controller;
262 #gpio-cells = <2>;
263
264 enable-usb-power {
265 gpio-hog;
266 line-name = "enable USB3 power";
267 gpios = <1 GPIO_ACTIVE_HIGH>;
268 output-high;
269 };
270 };
271
272 &ethphy2 {
273 gpio-controller;
274 #gpio-cells = <2>;
275 };
276
277 &ethphy3 {
278 gpio-controller;
279 #gpio-cells = <2>;
280 };
281
282 &gmac {
283 status = "okay";
284 };
285
286 &switch {
287 status = "okay";
288 };
289
290 &swport1 {
291 status = "okay";
292 };
293
294 &swport2 {
295 status = "okay";
296 };
297
298 &swport3 {
299 status = "okay";
300 };
301
302 &swport4 {
303 status = "okay";
304 };
305
306 &swport5 {
307 status = "okay";
308 };
309
310 &usb3_ss_phy {
311 status = "okay";
312 };
313
314 &usb3_hs_phy {
315 status = "okay";
316 };
317
318 &usb2_hs_phy {
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 };