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/input/linux-event-codes.h>
21 #include <dt-bindings/soc/qcom,tcsr.h>
24 model = "ZyXEL NBG6617";
25 compatible = "zyxel,nbg6617", "qcom,ipq4019";
29 * the vendor u-boot adds root and mtdparts cmdline parameters
30 * which we don't want... but we have to overwrite them or else
31 * the kernel will take them at face value.
33 bootargs-append = " mtdparts= root=31:13";
38 led-failsafe = &power;
53 compatible = "qcom,tcsr";
54 reg = <0x1949000 0x100>;
55 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
59 compatible = "qcom,tcsr";
60 reg = <0x194b000 0x100>;
61 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
65 compatible = "qcom,tcsr";
66 reg = <0x1953000 0x1000>;
67 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
71 compatible = "qcom,tcsr";
72 reg = <0x1957000 0x100>;
73 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
81 pinctrl-0 = <&serial_pins>;
82 pinctrl-names = "default";
108 compatible = "gpio-keys";
112 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
113 linux,code = <KEY_RFKILL>;
114 linux,input-type = <EV_SW>;
119 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
120 linux,code = <KEY_WPS_BUTTON>;
125 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
126 linux,code = <KEY_RESTART>;
131 compatible = "gpio-leds";
132 pinctrl-0 = <&led_pins>;
133 pinctrl-names = "default";
136 label = "nbg6617:green:power";
137 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
141 label = "nbg6617:green:usb";
142 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
146 label = "nbg6617:green:wlan2G";
147 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
151 label = "nbg6617:green:wlan5G";
152 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
156 label = "nbg6617:green:wps";
157 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
163 serial_pins: serial_pinmux {
165 pins = "gpio60", "gpio61";
166 function = "blsp_uart0";
170 spi_0_pins: spi_0_pinmux {
172 function = "blsp_spi0";
173 pins = "gpio55", "gpio56", "gpio57";
174 drive-strength = <12>;
181 drive-strength = <2>;
186 led_pins: led_pinmux {
188 pins = "gpio0", "gpio1", "gpio3", "gpio5", "gpio58";
189 drive-strength = <0x8>;
196 &blsp1_spi1 { /* BLSP1 QUP1 */
197 pinctrl-0 = <&spi_0_pins>;
198 pinctrl-names = "default";
200 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
203 compatible = "mx25l25635f", "jedec,spi-nor";
204 #address-cells = <1>;
207 spi-max-frequency = <24000000>;
212 compatible = "fixed-partitions";
213 #address-cells = <1>;
218 reg = <0x00000000 0x00040000>;
223 reg = <0x00040000 0x00020000>;
228 reg = <0x00060000 0x00060000>;
233 reg = <0x000c0000 0x00010000>;
238 reg = <0x000d0000 0x00010000>;
242 label = "APPSBL"; /* u-boot */
243 reg = <0x000e0000 0x00080000>;
244 /* U-Boot Standalone App "zloader" is located at 0x64000 */
248 label = "APPSBLENV"; /* u-boot env */
249 reg = <0x00160000 0x00010000>;
252 /* make a backup of this partition! */
254 reg = <0x00170000 0x00010000>;
259 reg = <0x00180000 0x00400000>;
263 reg = <0x00580000 0x00010000>;
268 reg = <0x00590000 0x00010000>;
272 reg = <0x005a0000 0x00100000>;
276 label = "not_root_data";
278 * for some strange reason, someone at ZyXEL
279 * had the "great" idea to put the rootfs_data
280 * in front of rootfs... Don't do that!
281 * As a result this one, full MebiByte remains
284 reg = <0x006a0000 0x00100000>;
288 reg = <0x007a0000 0x01860000>;
304 qcom,ath10k-calibration-variant = "ZyXEL-NBG6617";
309 qcom,ath10k-calibration-variant = "ZyXEL-NBG6617";