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;
17 label-mac-device = &gmac0;
34 compatible = "qcom,tcsr";
35 reg = <0x1949000 0x100>;
36 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
40 compatible = "qcom,tcsr";
41 reg = <0x194b000 0x100>;
42 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
46 compatible = "qcom,tcsr";
47 reg = <0x1953000 0x1000>;
48 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
52 compatible = "qcom,tcsr";
53 reg = <0x1957000 0x100>;
54 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
73 qca8075: ess-switch@c000000 {
81 line-name = "enable USB3 power";
82 gpios = <7 GPIO_ACTIVE_HIGH>;
93 compatible = "gpio-keys";
97 gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
98 linux,code = <KEY_RFKILL>;
103 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
104 linux,code = <KEY_WPS_BUTTON>;
109 compatible = "gpio-leds";
112 label = "green:wlan";
113 gpios = <&qca8075 1 GPIO_ACTIVE_HIGH>;
118 gpios = <&qca8075 3 GPIO_ACTIVE_HIGH>;
124 gpios = <&qca8075 5 GPIO_ACTIVE_HIGH>;
128 label = "green:power";
129 gpios = <&qca8075 11 GPIO_ACTIVE_HIGH>;
134 gpios = <&qca8075 13 GPIO_ACTIVE_HIGH>;
138 label = "amber:info";
139 gpios = <&qca8075 15 GPIO_ACTIVE_HIGH>;
145 serial_pins: serial_pinmux {
147 pins = "gpio60", "gpio61";
148 function = "blsp_uart0";
153 spi_0_pins: spi_0_pinmux {
155 function = "blsp_spi0";
156 pins = "gpio55", "gpio56", "gpio57";
157 drive-strength = <12>;
164 drive-strength = <2>;
179 &blsp1_spi1 { /* BLSP1 QUP1 */
180 pinctrl-0 = <&spi_0_pins>;
181 pinctrl-names = "default";
183 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
186 compatible = "jedec,spi-nor";
188 spi-max-frequency = <24000000>;
193 compatible = "fixed-partitions";
194 #address-cells = <1>;
199 reg = <0x00000000 0x00040000>;
204 reg = <0x00040000 0x00020000>;
209 reg = <0x00060000 0x00060000>;
214 reg = <0x000c0000 0x00010000>;
219 reg = <0x000d0000 0x00010000>;
223 label = "APPSBLENV"; /* uboot env - empty */
224 reg = <0x000e0000 0x00010000>;
228 label = "urlader"; /* APPSBL */
229 reg = <0x000f0000 0x0002dc000>;
233 /* make a backup of this partition! */
234 label = "urlader_config";
235 reg = <0x0011dc00 0x00002400>;
240 reg = <0x00120000 0x00080000>;
245 reg = <0x001a0000 0x00080000>;
250 reg = <0x00220000 0x00080000>;
254 compatible = "denx,fit";
256 reg = <0x002a0000 0x01c60000>;
258 partition12@1f00000 {
260 reg = <0x01f00000 0x00100000>;
267 pinctrl-0 = <&serial_pins>;
268 pinctrl-names = "default";
286 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
291 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";