1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
3 * Permission to use, copy, modify, and/or distribute this software for any
4 * purpose with or without fee is hereby granted, provided that the above
5 * copyright notice and this permission notice appear in all copies.
7 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 #include "qcom-ipq4019.dtsi"
18 #include "qcom-ipq4019-bus.dtsi"
19 #include <dt-bindings/gpio/gpio.h>
20 #include <dt-bindings/input/input.h>
21 #include <dt-bindings/soc/qcom,tcsr.h>
24 model = "AVM FRITZ!Box 4040";
25 compatible = "avm,fritzbox-4040", "qcom,ipq4019";
29 led-failsafe = &flash;
44 compatible = "qcom,tcsr";
45 reg = <0x1949000 0x100>;
46 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
50 compatible = "qcom,tcsr";
51 reg = <0x194b000 0x100>;
52 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
56 compatible = "qcom,tcsr";
57 reg = <0x1953000 0x1000>;
58 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
62 compatible = "qcom,tcsr";
63 reg = <0x1957000 0x100>;
64 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
72 pinctrl-0 = <&serial_pins>;
73 pinctrl-names = "default";
87 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
92 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
99 qca8075: ess-switch@c000000 {
107 line-name = "enable USB3 power";
108 gpios = <7 GPIO_ACTIVE_HIGH>;
119 compatible = "gpio-keys";
123 gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
124 linux,code = <KEY_RFKILL>;
129 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
130 linux,code = <KEY_WPS_BUTTON>;
135 compatible = "gpio-leds";
138 label = "fritz4040:green:wlan";
139 gpios = <&qca8075 1 GPIO_ACTIVE_HIGH>;
143 label = "fritz4040:red:info";
144 gpios = <&qca8075 3 GPIO_ACTIVE_HIGH>;
149 label = "fritz4040:green:wan";
150 gpios = <&qca8075 5 GPIO_ACTIVE_HIGH>;
154 label = "fritz4040:green:power";
155 gpios = <&qca8075 11 GPIO_ACTIVE_HIGH>;
159 label = "fritz4040:green:lan";
160 gpios = <&qca8075 13 GPIO_ACTIVE_HIGH>;
164 label = "fritz4040:amber:info";
165 gpios = <&qca8075 15 GPIO_ACTIVE_HIGH>;
171 serial_pins: serial_pinmux {
173 pins = "gpio60", "gpio61";
174 function = "blsp_uart0";
179 spi_0_pins: spi_0_pinmux {
181 function = "blsp_spi0";
182 pins = "gpio55", "gpio56", "gpio57";
183 drive-strength = <12>;
190 drive-strength = <2>;
205 &spi_0 { /* BLSP1 QUP1 */
206 pinctrl-0 = <&spi_0_pins>;
207 pinctrl-names = "default";
209 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
212 compatible = "jedec,spi-nor";
213 #address-cells = <1>;
216 spi-max-frequency = <24000000>;
221 compatible = "fixed-partitions";
222 #address-cells = <1>;
227 reg = <0x00000000 0x00040000>;
232 reg = <0x00040000 0x00020000>;
237 reg = <0x00060000 0x00060000>;
242 reg = <0x000c0000 0x00010000>;
247 reg = <0x000d0000 0x00010000>;
251 label = "APPSBLENV"; /* uboot env - empty */
252 reg = <0x000e0000 0x00010000>;
256 label = "urlader"; /* APPSBL */
257 reg = <0x000f0000 0x0002dc000>;
261 /* make a backup of this partition! */
262 label = "urlader_config";
263 reg = <0x0011dc00 0x00002400>;
268 reg = <0x00120000 0x00080000>;
273 reg = <0x001a0000 0x00080000>;
278 reg = <0x00220000 0x00080000>;
283 reg = <0x002a0000 0x01c60000>;
285 partition12@1f00000 {
287 reg = <0x01f00000 0x00100000>;