1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/soc/qcom,tcsr.h>
9 model = "AVM FRITZ!Box 4040";
10 compatible = "avm,fritzbox-4040", "qcom,ipq4019";
14 led-failsafe = &flash;
29 compatible = "qcom,tcsr";
30 reg = <0x1949000 0x100>;
31 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
35 compatible = "qcom,tcsr";
36 reg = <0x194b000 0x100>;
37 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
41 compatible = "qcom,tcsr";
42 reg = <0x1953000 0x1000>;
43 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
47 compatible = "qcom,tcsr";
48 reg = <0x1957000 0x100>;
49 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
68 qca8075: ess-switch@c000000 {
76 line-name = "enable USB3 power";
77 gpios = <7 GPIO_ACTIVE_HIGH>;
88 compatible = "gpio-keys";
92 gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
93 linux,code = <KEY_RFKILL>;
98 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
99 linux,code = <KEY_WPS_BUTTON>;
104 compatible = "gpio-leds";
107 label = "fritz4040:green:wlan";
108 gpios = <&qca8075 1 GPIO_ACTIVE_HIGH>;
112 label = "fritz4040:red:info";
113 gpios = <&qca8075 3 GPIO_ACTIVE_HIGH>;
118 label = "fritz4040:green:wan";
119 gpios = <&qca8075 5 GPIO_ACTIVE_HIGH>;
123 label = "fritz4040:green:power";
124 gpios = <&qca8075 11 GPIO_ACTIVE_HIGH>;
128 label = "fritz4040:green:lan";
129 gpios = <&qca8075 13 GPIO_ACTIVE_HIGH>;
133 label = "fritz4040:amber:info";
134 gpios = <&qca8075 15 GPIO_ACTIVE_HIGH>;
140 serial_pins: serial_pinmux {
142 pins = "gpio60", "gpio61";
143 function = "blsp_uart0";
148 spi_0_pins: spi_0_pinmux {
150 function = "blsp_spi0";
151 pins = "gpio55", "gpio56", "gpio57";
152 drive-strength = <12>;
159 drive-strength = <2>;
174 &blsp1_spi1 { /* BLSP1 QUP1 */
175 pinctrl-0 = <&spi_0_pins>;
176 pinctrl-names = "default";
178 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
181 compatible = "jedec,spi-nor";
182 #address-cells = <1>;
185 spi-max-frequency = <24000000>;
190 compatible = "fixed-partitions";
191 #address-cells = <1>;
196 reg = <0x00000000 0x00040000>;
201 reg = <0x00040000 0x00020000>;
206 reg = <0x00060000 0x00060000>;
211 reg = <0x000c0000 0x00010000>;
216 reg = <0x000d0000 0x00010000>;
220 label = "APPSBLENV"; /* uboot env - empty */
221 reg = <0x000e0000 0x00010000>;
225 label = "urlader"; /* APPSBL */
226 reg = <0x000f0000 0x0002dc000>;
230 /* make a backup of this partition! */
231 label = "urlader_config";
232 reg = <0x0011dc00 0x00002400>;
237 reg = <0x00120000 0x00080000>;
242 reg = <0x001a0000 0x00080000>;
247 reg = <0x00220000 0x00080000>;
251 compatible = "denx,fit";
253 reg = <0x002a0000 0x01c60000>;
255 partition12@1f00000 {
257 reg = <0x01f00000 0x00100000>;
264 pinctrl-0 = <&serial_pins>;
265 pinctrl-names = "default";
283 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
288 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";