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/input/linux-event-codes.h>
22 #include <dt-bindings/soc/qcom,tcsr.h>
25 model = "ZyXEL NBG6617";
26 compatible = "zyxel,nbg6617", "qcom,ipq4019";
30 * the vendor u-boot adds root and mtdparts cmdline parameters
31 * which we don't want... but we have to overwrite them or else
32 * the kernel will take them at face value.
34 bootargs-append = " mtdparts= root=31:13";
39 led-failsafe = &power;
54 compatible = "qcom,tcsr";
55 reg = <0x1949000 0x100>;
56 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
60 compatible = "qcom,tcsr";
61 reg = <0x194b000 0x100>;
62 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
66 compatible = "qcom,tcsr";
67 reg = <0x1953000 0x1000>;
68 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
72 compatible = "qcom,tcsr";
73 reg = <0x1957000 0x100>;
74 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
82 pinctrl-0 = <&serial_pins>;
83 pinctrl-names = "default";
109 compatible = "gpio-keys";
113 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
114 linux,code = <KEY_RFKILL>;
115 linux,input-type = <EV_SW>;
120 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
121 linux,code = <KEY_WPS_BUTTON>;
126 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
127 linux,code = <KEY_RESTART>;
132 compatible = "gpio-leds";
133 pinctrl-0 = <&led_pins>;
134 pinctrl-names = "default";
137 label = "nbg6617:green:power";
138 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
142 label = "nbg6617:green:usb";
143 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
147 label = "nbg6617:green:wlan2G";
148 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
152 label = "nbg6617:green:wlan5G";
153 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
157 label = "nbg6617:green:wps";
158 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
164 serial_pins: serial_pinmux {
166 pins = "gpio60", "gpio61";
167 function = "blsp_uart0";
171 spi_0_pins: spi_0_pinmux {
173 function = "blsp_spi0";
174 pins = "gpio55", "gpio56", "gpio57";
175 drive-strength = <12>;
182 drive-strength = <2>;
187 led_pins: led_pinmux {
189 pins = "gpio0", "gpio1", "gpio3", "gpio5", "gpio58";
190 drive-strength = <0x8>;
197 &spi_0 { /* BLSP1 QUP1 */
198 pinctrl-0 = <&spi_0_pins>;
199 pinctrl-names = "default";
201 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
204 compatible = "mx25l25635f", "jedec,spi-nor";
205 #address-cells = <1>;
208 spi-max-frequency = <24000000>;
213 compatible = "fixed-partitions";
214 #address-cells = <1>;
219 reg = <0x00000000 0x00040000>;
224 reg = <0x00040000 0x00020000>;
229 reg = <0x00060000 0x00060000>;
234 reg = <0x000c0000 0x00010000>;
239 reg = <0x000d0000 0x00010000>;
243 label = "APPSBL"; /* u-boot */
244 reg = <0x000e0000 0x00080000>;
245 /* U-Boot Standalone App "zloader" is located at 0x64000 */
249 label = "APPSBLENV"; /* u-boot env */
250 reg = <0x00160000 0x00010000>;
253 /* make a backup of this partition! */
255 reg = <0x00170000 0x00010000>;
260 reg = <0x00180000 0x00400000>;
264 reg = <0x00580000 0x00010000>;
269 reg = <0x00590000 0x00010000>;
273 reg = <0x005a0000 0x00100000>;
277 label = "not_root_data";
279 * for some strange reason, someone at ZyXEL
280 * had the "great" idea to put the rootfs_data
281 * in front of rootfs... Don't do that!
282 * As a result this one, full MebiByte remains
285 reg = <0x006a0000 0x00100000>;
289 reg = <0x007a0000 0x01860000>;