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 <dt-bindings/gpio/gpio.h>
19 #include <dt-bindings/input/input.h>
20 #include <dt-bindings/soc/qcom,tcsr.h>
23 model = "AVM FRITZ!Box 4040";
24 compatible = "avm,fritzbox-4040", "qcom,ipq4019";
28 led-failsafe = &flash;
43 compatible = "qcom,tcsr";
44 reg = <0x1949000 0x100>;
45 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
49 compatible = "qcom,tcsr";
50 reg = <0x194b000 0x100>;
51 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
55 compatible = "qcom,tcsr";
56 reg = <0x1953000 0x1000>;
57 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
61 compatible = "qcom,tcsr";
62 reg = <0x1957000 0x100>;
63 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
71 pinctrl-0 = <&serial_pins>;
72 pinctrl-names = "default";
86 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
91 qcom,ath10k-calibration-variant = "AVM-FRITZBox-4040";
98 qca8075: ess-switch@c000000 {
106 line-name = "enable USB3 power";
107 gpios = <7 GPIO_ACTIVE_HIGH>;
118 compatible = "gpio-keys";
122 gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
123 linux,code = <KEY_RFKILL>;
128 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
129 linux,code = <KEY_WPS_BUTTON>;
134 compatible = "gpio-leds";
137 label = "fritz4040:green:wlan";
138 gpios = <&qca8075 1 GPIO_ACTIVE_HIGH>;
142 label = "fritz4040:red:info";
143 gpios = <&qca8075 3 GPIO_ACTIVE_HIGH>;
148 label = "fritz4040:green:wan";
149 gpios = <&qca8075 5 GPIO_ACTIVE_HIGH>;
153 label = "fritz4040:green:power";
154 gpios = <&qca8075 11 GPIO_ACTIVE_HIGH>;
158 label = "fritz4040:green:lan";
159 gpios = <&qca8075 13 GPIO_ACTIVE_HIGH>;
163 label = "fritz4040:amber:info";
164 gpios = <&qca8075 15 GPIO_ACTIVE_HIGH>;
170 serial_pins: serial_pinmux {
172 pins = "gpio60", "gpio61";
173 function = "blsp_uart0";
178 spi_0_pins: spi_0_pinmux {
180 function = "blsp_spi0";
181 pins = "gpio55", "gpio56", "gpio57";
182 drive-strength = <12>;
189 drive-strength = <2>;
204 &spi_0 { /* BLSP1 QUP1 */
205 pinctrl-0 = <&spi_0_pins>;
206 pinctrl-names = "default";
208 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
211 compatible = "jedec,spi-nor";
212 #address-cells = <1>;
215 spi-max-frequency = <24000000>;
220 compatible = "fixed-partitions";
221 #address-cells = <1>;
226 reg = <0x00000000 0x00040000>;
231 reg = <0x00040000 0x00020000>;
236 reg = <0x00060000 0x00060000>;
241 reg = <0x000c0000 0x00010000>;
246 reg = <0x000d0000 0x00010000>;
250 label = "APPSBLENV"; /* uboot env - empty */
251 reg = <0x000e0000 0x00010000>;
255 label = "urlader"; /* APPSBL */
256 reg = <0x000f0000 0x0002dc000>;
260 /* make a backup of this partition! */
261 label = "urlader_config";
262 reg = <0x0011dc00 0x00002400>;
267 reg = <0x00120000 0x00080000>;
272 reg = <0x001a0000 0x00080000>;
277 reg = <0x00220000 0x00080000>;
282 reg = <0x002a0000 0x01c60000>;
284 partition12@1f00000 {
286 reg = <0x01f00000 0x00100000>;