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;
33 compatible = "qcom,tcsr";
34 reg = <0x1949000 0x100>;
35 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
39 compatible = "qcom,tcsr";
40 reg = <0x194b000 0x100>;
41 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
45 compatible = "qcom,tcsr";
46 reg = <0x1953000 0x1000>;
47 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
51 compatible = "qcom,tcsr";
52 reg = <0x1957000 0x100>;
53 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
72 qca8075: ess-switch@c000000 {
80 line-name = "enable USB3 power";
81 gpios = <7 GPIO_ACTIVE_HIGH>;
92 compatible = "gpio-keys";
96 gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
97 linux,code = <KEY_RFKILL>;
102 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
103 linux,code = <KEY_WPS_BUTTON>;
108 compatible = "gpio-leds";
111 label = "fritz4040:green:wlan";
112 gpios = <&qca8075 1 GPIO_ACTIVE_HIGH>;
116 label = "fritz4040:red:info";
117 gpios = <&qca8075 3 GPIO_ACTIVE_HIGH>;
122 label = "fritz4040:green:wan";
123 gpios = <&qca8075 5 GPIO_ACTIVE_HIGH>;
127 label = "fritz4040:green:power";
128 gpios = <&qca8075 11 GPIO_ACTIVE_HIGH>;
132 label = "fritz4040:green:lan";
133 gpios = <&qca8075 13 GPIO_ACTIVE_HIGH>;
137 label = "fritz4040:amber:info";
138 gpios = <&qca8075 15 GPIO_ACTIVE_HIGH>;
144 serial_pins: serial_pinmux {
146 pins = "gpio60", "gpio61";
147 function = "blsp_uart0";
152 spi_0_pins: spi_0_pinmux {
154 function = "blsp_spi0";
155 pins = "gpio55", "gpio56", "gpio57";
156 drive-strength = <12>;
163 drive-strength = <2>;
178 &blsp1_spi1 { /* BLSP1 QUP1 */
179 pinctrl-0 = <&spi_0_pins>;
180 pinctrl-names = "default";
182 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
185 compatible = "jedec,spi-nor";
187 spi-max-frequency = <24000000>;
192 compatible = "fixed-partitions";
193 #address-cells = <1>;
198 reg = <0x00000000 0x00040000>;
203 reg = <0x00040000 0x00020000>;
208 reg = <0x00060000 0x00060000>;
213 reg = <0x000c0000 0x00010000>;
218 reg = <0x000d0000 0x00010000>;
222 label = "APPSBLENV"; /* uboot env - empty */
223 reg = <0x000e0000 0x00010000>;
227 label = "urlader"; /* APPSBL */
228 reg = <0x000f0000 0x0002dc000>;
232 /* make a backup of this partition! */
233 label = "urlader_config";
234 reg = <0x0011dc00 0x00002400>;
239 reg = <0x00120000 0x00080000>;
244 reg = <0x001a0000 0x00080000>;
249 reg = <0x00220000 0x00080000>;
253 compatible = "denx,fit";
255 reg = <0x002a0000 0x01c60000>;
257 partition12@1f00000 {
259 reg = <0x01f00000 0x00100000>;
266 pinctrl-0 = <&serial_pins>;
267 pinctrl-names = "default";
285 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
290 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";