hostapd: bump to 2024-09-06 (wip)
[openwrt/staging/xback.git] / target / linux / ipq40xx / files-6.6 / arch / arm / boot / dts / qcom / qcom-ipq4019-fritzbox-7530.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 7530";
11 compatible = "avm,fritzbox-7530";
12
13 chosen {
14 bootargs-append = " coherent_pool=4M";
15 };
16
17 aliases {
18 led-boot = &power_green;
19 led-failsafe = &info_red;
20 led-running = &power_green;
21 led-upgrade = &info_red;
22 };
23
24 soc {
25 tcsr@1949000 {
26 compatible = "qcom,tcsr";
27 reg = <0x1949000 0x100>;
28 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
29 };
30
31 tcsr@194b000 {
32 compatible = "qcom,tcsr";
33 reg = <0x194b000 0x100>;
34 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
35 };
36
37 ess_tcsr@1953000 {
38 compatible = "qcom,tcsr";
39 reg = <0x1953000 0x1000>;
40 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
41 };
42
43 tcsr@1957000 {
44 compatible = "qcom,tcsr";
45 reg = <0x1957000 0x100>;
46 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
47 };
48 };
49
50 keys {
51 compatible = "gpio-keys";
52
53 wlan {
54 label = "wlan";
55 gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RFKILL>;
57 };
58
59 wps {
60 label = "wps";
61 gpios = <&tlmm 41 GPIO_ACTIVE_LOW>;
62 linux,code = <KEY_WPS_BUTTON>;
63 };
64
65 dect {
66 label = "dect";
67 gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_PHONE>;
69 };
70 };
71
72 leds {
73 compatible = "gpio-leds";
74
75 info_red: info_red {
76 label = "red:info";
77 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
78 };
79
80 info {
81 label = "green:info";
82 gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
83 };
84
85 wlan {
86 function = LED_FUNCTION_WLAN;
87 color = <LED_COLOR_ID_GREEN>;
88 gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
89 };
90
91 fon {
92 label = "green:fon";
93 gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
94 };
95
96 power_green: power {
97 function = LED_FUNCTION_POWER;
98 color = <LED_COLOR_ID_GREEN>;
99 gpios = <&tlmm 39 GPIO_ACTIVE_LOW>;
100 };
101
102 wps {
103 function = LED_FUNCTION_WPS;
104 color = <LED_COLOR_ID_GREEN>;
105 gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
106 };
107 };
108 };
109
110 &watchdog {
111 status = "okay";
112 };
113
114 &prng {
115 status = "okay";
116 };
117
118 &crypto {
119 status = "okay";
120 };
121
122 &tlmm {
123 serial_0_pins: serial_pinmux {
124 mux {
125 pins = "gpio16", "gpio17";
126 function = "blsp_uart0";
127 bias-disable;
128 };
129 };
130
131 nand_pins: nand_pins {
132 pullups {
133 pins = "gpio53", "gpio58", "gpio59";
134 function = "qpic";
135 bias-pull-up;
136 };
137
138 pulldowns {
139 pins = "gpio54", "gpio55", "gpio56",
140 "gpio57", "gpio60", "gpio61",
141 "gpio62", "gpio63", "gpio64",
142 "gpio65", "gpio66", "gpio67",
143 "gpio68", "gpio69";
144 function = "qpic";
145 bias-pull-down;
146 };
147 };
148
149 usb-power {
150 line-name = "enable USB3 power";
151 gpios = <49 GPIO_ACTIVE_HIGH>;
152 gpio-hog;
153 output-high;
154 };
155 };
156
157 &nand {
158 pinctrl-0 = <&nand_pins>;
159 pinctrl-names = "default";
160 status = "okay";
161
162 nand@0 {
163 /delete-property/ nand-ecc-strength;
164 /delete-property/ nand-ecc-step-size;
165
166 partitions {
167 compatible = "fixed-partitions";
168 #address-cells = <1>;
169 #size-cells = <1>;
170
171 partition@0 {
172 label = "SBL1";
173 reg = <0x000000 0x80000>;
174 read-only;
175 };
176
177 partition@80000 {
178 label = "MIBIB";
179 reg = <0x080000 0x80000>;
180 read-only;
181 };
182
183 partition@100000 {
184 label = "QSEE";
185 reg = <0x100000 0x80000>;
186 read-only;
187 };
188
189 partition@180000 {
190 label = "CDT";
191 reg = <0x180000 0x40000>;
192 read-only;
193 };
194
195 partition@1c0000 {
196 label = "QSEE_B";
197 reg = <0x1c0000 0x80000>;
198 read-only;
199 };
200
201 partition@240000 {
202 label = "urlader0";
203 reg = <0x240000 0x40000>;
204 read-only;
205 };
206
207 partition@280000 {
208 label = "urlader1";
209 reg = <0x280000 0x40000>;
210 read-only;
211 };
212
213 partition@2c0000 {
214 label = "nand-tffs";
215 reg = <0x2c0000 0x840000>;
216 read-only;
217 };
218
219 partition@b00000 {
220 /* 'kernel1' in AVM firmware */
221 label = "uboot0";
222 reg = <0xb00000 0x400000>;
223 };
224
225 partition@f00000 {
226 /* 'kernel2' in AVM firmware */
227 label = "uboot1";
228 reg = <0xf00000 0x400000>;
229 };
230
231 partition@1300000 {
232 label = "ubi";
233 reg = <0x1300000 0x6d00000>;
234 };
235 };
236 };
237 };
238
239 &cryptobam {
240 status = "okay";
241 };
242
243 &blsp_dma {
244 status = "okay";
245 };
246
247 &blsp1_uart1 {
248 pinctrl-0 = <&serial_0_pins>;
249 pinctrl-names = "default";
250 status = "okay";
251 };
252
253 &usb3_ss_phy {
254 status = "okay";
255 };
256
257 &usb3_hs_phy {
258 status = "okay";
259 };
260
261 &usb3 {
262 status = "okay";
263 };
264
265 &qpic_bam {
266 status = "okay";
267 };
268
269 &mdio {
270 status = "okay";
271 };
272
273 &gmac {
274 status = "okay";
275 };
276
277 &switch {
278 status = "okay";
279 };
280
281 &swport1 {
282 status = "okay";
283 };
284
285 &swport2 {
286 status = "okay";
287 };
288
289 &swport3 {
290 status = "okay";
291 };
292
293 &swport4 {
294 status = "okay";
295 };
296
297 &wifi0 {
298 status = "okay";
299 qcom,ath10k-calibration-variant = "AVM-FRITZBox-7530";
300 };
301
302 &wifi1 {
303 status = "okay";
304 qcom,ath10k-calibration-variant = "AVM-FRITZBox-7530";
305 };
306
307 &pcie0 {
308 status = "okay";
309
310 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
311 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
312
313 bridge@0,0 {
314 reg = <0x00000000 0 0 0 0>;
315 #address-cells = <3>;
316 #size-cells = <2>;
317 ranges;
318
319 dsl@1,0 {
320 compatible = "intel,vrx518";
321 status = "okay";
322 reg = <0x00010000 0 0 0 0>;
323 };
324 };
325 };