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-ap.dk01.1.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";
28 #address-cells = <0x1>;
33 reg = <0x87000000 0x500000>;
38 reg = <0x87500000 0x600000>;
43 reg = <0x87b00000 0x500000>;
48 This also works. Maybe it could be smaller still.
51 #address-cells = <0x1>;
56 reg = <0x87e00000 0x200000>;
65 compatible = "qcom,tcsr";
66 reg = <0x194b000 0x100>;
67 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
72 compatible = "qcom,tcsr";
73 reg = <0x1953000 0x1000>;
74 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
79 compatible = "qcom,tcsr";
80 reg = <0x1949000 0x100>;
81 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
85 compatible = "qcom,tcsr";
86 reg = <0x1957000 0x100>;
87 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
91 compatible = "qcom,qca-gcnt";
99 qca8075: ess-switch@c000000 {
107 line-name = "enable USB3 power";
108 gpios = <0x7 GPIO_ACTIVE_HIGH>;
129 cryptobam: dma@8e04000 {
139 compatible = "gpio-keys";
143 gpios = <&tlmm 0x3a GPIO_ACTIVE_LOW>;
144 linux,code = <KEY_RFKILL>;
149 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
150 linux,code = <KEY_WPS_BUTTON>;
156 led-failsafe = &flash;
157 led-running = &power;
158 led-upgrade = &flash;
162 compatible = "gpio-leds";
165 label = "fritz4040:green:wlan";
166 gpios = <&qca8075 0x1 GPIO_ACTIVE_HIGH>;
170 label = "fritz4040:red:info";
171 gpios = <&qca8075 0x3 GPIO_ACTIVE_HIGH>;
176 label = "fritz4040:green:wan";
177 gpios = <&qca8075 0x5 GPIO_ACTIVE_HIGH>;
181 label = "fritz4040:green:power";
182 gpios = <&qca8075 0xb GPIO_ACTIVE_HIGH>;
186 label = "fritz4040:green:lan";
187 gpios = <&qca8075 0xd GPIO_ACTIVE_HIGH>;
191 label = "fritz4040:amber:info";
192 gpios = <&qca8075 0xf GPIO_ACTIVE_HIGH>;
197 &spi_0 { /* BLSP1 QUP1 */
205 compatible = "mx25l25635f", "jedec,spi-nor";
206 #address-cells = <1>;
209 spi-max-frequency = <24000000>;
214 compatible = "fixed-partitions";
215 #address-cells = <1>;
220 reg = <0x00000000 0x00040000>;
225 reg = <0x00040000 0x00020000>;
230 reg = <0x00060000 0x00060000>;
235 reg = <0x000c0000 0x00010000>;
240 reg = <0x000d0000 0x00010000>;
244 label = "APPSBLENV"; /* uboot env - empty */
245 reg = <0x000e0000 0x00010000>;
249 label = "urlader"; /* APPSBL */
250 reg = <0x000f0000 0x0002dc000>;
254 /* make a backup of this partition! */
255 label = "urlader_config";
256 reg = <0x0011dc00 0x00002400>;
261 reg = <0x00120000 0x00080000>;
266 reg = <0x001a0000 0x00080000>;
271 reg = <0x00220000 0x00080000>;
275 label = "image"; /* firmware */
276 reg = <0x002A0000 0x01C60000>;
278 partition12@1f00000 {
280 reg = <0x01F00000 0x00100000>;
287 /delete-node/ opp@666000000;
290 opp-hz = /bits/ 64 <710000000>;
291 clock-latency-ns = <256000>;