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/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
10 model = "AVM FRITZ!Box 4040";
11 compatible = "avm,fritzbox-4040";
15 led-failsafe = &flash;
18 label-mac-device = &gmac;
27 compatible = "qcom,tcsr";
28 reg = <0x1949000 0x100>;
29 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
33 compatible = "qcom,tcsr";
34 reg = <0x194b000 0x100>;
35 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
39 compatible = "qcom,tcsr";
40 reg = <0x1953000 0x1000>;
41 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
45 compatible = "qcom,tcsr";
46 reg = <0x1957000 0x100>;
47 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
52 compatible = "gpio-keys";
56 gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_RFKILL>;
62 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
63 linux,code = <KEY_WPS_BUTTON>;
68 compatible = "gpio-leds";
71 function = LED_FUNCTION_WLAN;
72 color = <LED_COLOR_ID_GREEN>;
73 gpios = <ðphy0 0 GPIO_ACTIVE_HIGH>;
78 gpios = <ðphy0 1 GPIO_ACTIVE_HIGH>;
83 function = LED_FUNCTION_WAN;
84 color = <LED_COLOR_ID_GREEN>;
85 gpios = <ðphy1 0 GPIO_ACTIVE_HIGH>;
89 function = LED_FUNCTION_POWER;
90 color = <LED_COLOR_ID_GREEN>;
91 gpios = <ðphy2 1 GPIO_ACTIVE_HIGH>;
95 function = LED_FUNCTION_LAN;
96 color = <LED_COLOR_ID_GREEN>;
97 gpios = <ðphy3 0 GPIO_ACTIVE_HIGH>;
101 label = "amber:info";
102 gpios = <ðphy3 1 GPIO_ACTIVE_HIGH>;
120 serial_pins: serial_pinmux {
122 pins = "gpio60", "gpio61";
123 function = "blsp_uart0";
128 spi_0_pins: spi_0_pinmux {
130 function = "blsp_spi0";
131 pins = "gpio55", "gpio56", "gpio57";
132 drive-strength = <12>;
139 drive-strength = <2>;
154 &blsp1_spi1 { /* BLSP1 QUP1 */
155 pinctrl-0 = <&spi_0_pins>;
156 pinctrl-names = "default";
158 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
161 compatible = "jedec,spi-nor";
163 spi-max-frequency = <24000000>;
168 compatible = "fixed-partitions";
169 #address-cells = <1>;
174 reg = <0x00000000 0x00040000>;
179 reg = <0x00040000 0x00020000>;
184 reg = <0x00060000 0x00060000>;
189 reg = <0x000c0000 0x00010000>;
194 reg = <0x000d0000 0x00010000>;
198 label = "APPSBLENV"; /* uboot env - empty */
199 reg = <0x000e0000 0x00010000>;
203 label = "urlader"; /* APPSBL */
204 reg = <0x000f0000 0x0002dc000>;
208 /* make a backup of this partition! */
209 label = "urlader_config";
210 reg = <0x0011dc00 0x00002400>;
215 reg = <0x00120000 0x00080000>;
220 reg = <0x001a0000 0x00080000>;
225 reg = <0x00220000 0x00080000>;
229 compatible = "denx,fit";
231 reg = <0x002a0000 0x01c60000>;
233 partition12@1f00000 {
235 reg = <0x01f00000 0x00100000>;
242 pinctrl-0 = <&serial_pins>;
243 pinctrl-names = "default";
258 line-name = "enable USB3 power";
259 gpios = <1 GPIO_ACTIVE_HIGH>;
324 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
329 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";