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";
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>;
70 compatible = "gpio-keys";
74 gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_RFKILL>;
80 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_WPS_BUTTON>;
86 compatible = "gpio-leds";
90 gpios = <ðphy0 0 GPIO_ACTIVE_HIGH>;
95 gpios = <ðphy0 1 GPIO_ACTIVE_HIGH>;
101 gpios = <ðphy1 0 GPIO_ACTIVE_HIGH>;
105 label = "green:power";
106 gpios = <ðphy2 1 GPIO_ACTIVE_HIGH>;
111 gpios = <ðphy3 0 GPIO_ACTIVE_HIGH>;
115 label = "amber:info";
116 gpios = <ðphy3 1 GPIO_ACTIVE_HIGH>;
122 serial_pins: serial_pinmux {
124 pins = "gpio60", "gpio61";
125 function = "blsp_uart0";
130 spi_0_pins: spi_0_pinmux {
132 function = "blsp_spi0";
133 pins = "gpio55", "gpio56", "gpio57";
134 drive-strength = <12>;
141 drive-strength = <2>;
156 &blsp1_spi1 { /* BLSP1 QUP1 */
157 pinctrl-0 = <&spi_0_pins>;
158 pinctrl-names = "default";
160 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
163 compatible = "jedec,spi-nor";
165 spi-max-frequency = <24000000>;
170 compatible = "fixed-partitions";
171 #address-cells = <1>;
176 reg = <0x00000000 0x00040000>;
181 reg = <0x00040000 0x00020000>;
186 reg = <0x00060000 0x00060000>;
191 reg = <0x000c0000 0x00010000>;
196 reg = <0x000d0000 0x00010000>;
200 label = "APPSBLENV"; /* uboot env - empty */
201 reg = <0x000e0000 0x00010000>;
205 label = "urlader"; /* APPSBL */
206 reg = <0x000f0000 0x0002dc000>;
210 /* make a backup of this partition! */
211 label = "urlader_config";
212 reg = <0x0011dc00 0x00002400>;
217 reg = <0x00120000 0x00080000>;
222 reg = <0x001a0000 0x00080000>;
227 reg = <0x00220000 0x00080000>;
231 compatible = "denx,fit";
233 reg = <0x002a0000 0x01c60000>;
235 partition12@1f00000 {
237 reg = <0x01f00000 0x00100000>;
244 pinctrl-0 = <&serial_pins>;
245 pinctrl-names = "default";
260 line-name = "enable USB3 power";
261 gpios = <1 GPIO_ACTIVE_HIGH>;
290 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
295 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";