1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/soc/qcom,tcsr.h>
11 model = "ZyXEL NBG6617";
12 compatible = "zyxel,nbg6617";
16 * the vendor u-boot adds root and mtdparts cmdline parameters
17 * which we don't want... but we have to overwrite them or else
18 * the kernel will take them at face value.
20 bootargs-append = " mtdparts= root=31:13";
25 led-failsafe = &power;
40 compatible = "qcom,tcsr";
41 reg = <0x1949000 0x100>;
42 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
46 compatible = "qcom,tcsr";
47 reg = <0x194b000 0x100>;
48 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
52 compatible = "qcom,tcsr";
53 reg = <0x1953000 0x1000>;
54 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
58 compatible = "qcom,tcsr";
59 reg = <0x1957000 0x100>;
60 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
69 compatible = "gpio-keys";
73 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
74 linux,code = <KEY_RFKILL>;
75 linux,input-type = <EV_SW>;
80 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_WPS_BUTTON>;
86 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_RESTART>;
92 compatible = "gpio-leds";
93 pinctrl-0 = <&led_pins>;
94 pinctrl-names = "default";
97 function = LED_FUNCTION_POWER;
98 color = <LED_COLOR_ID_GREEN>;
99 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
103 function = LED_FUNCTION_USB;
104 color = <LED_COLOR_ID_GREEN>;
105 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
106 trigger-sources = <&usb2_port1>, <&usb3_port1>, <&usb3_port2>;
107 linux,default-trigger = "usbport";
111 label = "green:wlan2g";
112 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
116 label = "green:wlan5g";
117 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
121 function = LED_FUNCTION_WPS;
122 color = <LED_COLOR_ID_GREEN>;
123 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
133 serial_pins: serial_pinmux {
135 pins = "gpio60", "gpio61";
136 function = "blsp_uart0";
140 spi_0_pins: spi_0_pinmux {
142 function = "blsp_spi0";
143 pins = "gpio55", "gpio56", "gpio57";
144 drive-strength = <12>;
151 drive-strength = <2>;
156 led_pins: led_pinmux {
158 pins = "gpio0", "gpio1", "gpio3", "gpio5", "gpio58";
159 drive-strength = <0x8>;
166 &blsp1_spi1 { /* BLSP1 QUP1 */
167 pinctrl-0 = <&spi_0_pins>;
168 pinctrl-names = "default";
170 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
173 compatible = "jedec,spi-nor";
175 spi-max-frequency = <50000000>;
180 compatible = "fixed-partitions";
181 #address-cells = <1>;
186 reg = <0x00000000 0x00040000>;
191 reg = <0x00040000 0x00020000>;
196 reg = <0x00060000 0x00060000>;
201 reg = <0x000c0000 0x00010000>;
206 reg = <0x000d0000 0x00010000>;
210 label = "APPSBL"; /* u-boot */
211 reg = <0x000e0000 0x00080000>;
212 /* U-Boot Standalone App "zloader" is located at 0x64000 */
216 label = "APPSBLENV"; /* u-boot env */
217 reg = <0x00160000 0x00010000>;
220 /* make a backup of this partition! */
222 reg = <0x00170000 0x00010000>;
227 reg = <0x00180000 0x00400000>;
231 reg = <0x00580000 0x00010000>;
236 reg = <0x00590000 0x00010000>;
240 reg = <0x005a0000 0x00100000>;
244 label = "not_root_data";
246 * for some strange reason, someone at ZyXEL
247 * had the "great" idea to put the rootfs_data
248 * in front of rootfs... Don't do that!
249 * As a result this one, full MebiByte remains
252 reg = <0x006a0000 0x00100000>;
256 reg = <0x007a0000 0x01860000>;
263 pinctrl-0 = <&serial_pins>;
264 pinctrl-names = "default";
314 qcom,ath10k-calibration-variant = "ZyXEL-NBG6617";
319 qcom,ath10k-calibration-variant = "ZyXEL-NBG6617";
335 #address-cells = <1>;
340 #trigger-source-cells = <0>;
345 #trigger-source-cells = <0>;
357 #address-cells = <1>;
362 #trigger-source-cells = <0>;