1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
2 * Copyright (c) 2018, David Bauer <mail@david-bauer.net>
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 #include "qcom-ipq4019.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 = "ZyXEL WRE6606";
25 compatible = "zyxel,wre6606", "qcom,ipq4019";
29 led-failsafe = &power;
35 bootargs-append = " mtdparts=";
48 compatible = "qcom,tcsr";
49 reg = <0x1949000 0x100>;
50 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
54 compatible = "qcom,tcsr";
55 reg = <0x1953000 0x1000>;
56 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
60 compatible = "qcom,tcsr";
61 reg = <0x1957000 0x100>;
62 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
66 pinctrl-0 = <&serial_pins>;
67 pinctrl-names = "default";
90 compatible = "gpio-leds";
93 label = "wre6606:green:wps";
94 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
98 label = "wre6606:green:wlan5g";
99 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
103 label = "wre6606:green:power";
104 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
108 label = "wre6606:red:wlan5g";
109 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
113 label = "wre6606:red:wlan2g";
114 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
118 label = "wre6606:green:wlan2g";
119 gpios = <&tlmm 59 GPIO_ACTIVE_HIGH>;
124 compatible = "gpio-keys";
128 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
129 linux,code = <KEY_WPS_BUTTON>;
135 serial_pins: serial_pinmux {
137 pins = "gpio60", "gpio61";
138 function = "blsp_uart0";
143 spi_0_pins: spi_0_pinmux {
145 function = "blsp_spi0";
146 pins = "gpio55", "gpio56", "gpio57";
147 drive-strength = <12>;
153 drive-strength = <2>;
161 pinctrl-0 = <&spi_0_pins>;
162 pinctrl-names = "default";
164 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
167 compatible = "jedec,spi-nor";
169 spi-max-frequency = <24000000>;
172 compatible = "fixed-partitions";
173 #address-cells = <1>;
178 reg = <0x00000000 0x00040000>;
184 reg = <0x00040000 0x00020000>;
190 reg = <0x00060000 0x00060000>;
196 reg = <0x000c0000 0x00010000>;
202 reg = <0x000d0000 0x00010000>;
208 reg = <0x000e0000 0x00010000>;
214 reg = <0x000f0000 0x00080000>;
220 reg = <0x00170000 0x00010000>;
226 reg = <0x00180000 0x00ce0000>;
230 label = "manufacture";
231 reg = <0x00e60000 0x00050000>;
237 reg = <0x00eb0000 0x00150000>;
254 qcom,ath10k-calibration-variant = "ZyXEL-WRE6606";
259 qcom,ath10k-calibration-variant = "ZyXEL-WRE6606";