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>;
72 #trigger-source-cells = <0>;
86 #trigger-source-cells = <0>;
91 #trigger-source-cells = <0>;
106 compatible = "gpio-keys";
110 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
111 linux,code = <KEY_RFKILL>;
112 linux,input-type = <EV_SW>;
117 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
118 linux,code = <KEY_WPS_BUTTON>;
123 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
124 linux,code = <KEY_RESTART>;
129 compatible = "gpio-leds";
130 pinctrl-0 = <&led_pins>;
131 pinctrl-names = "default";
134 function = LED_FUNCTION_POWER;
135 color = <LED_COLOR_ID_GREEN>;
136 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
140 function = LED_FUNCTION_USB;
141 color = <LED_COLOR_ID_GREEN>;
142 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
143 trigger-sources = <&usb2_port1>, <&usb3_port1>, <&usb3_port2>;
144 linux,default-trigger = "usbport";
148 label = "green:wlan2g";
149 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
153 label = "green:wlan5g";
154 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
158 function = LED_FUNCTION_WPS;
159 color = <LED_COLOR_ID_GREEN>;
160 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
166 serial_pins: serial_pinmux {
168 pins = "gpio60", "gpio61";
169 function = "blsp_uart0";
173 spi_0_pins: spi_0_pinmux {
175 function = "blsp_spi0";
176 pins = "gpio55", "gpio56", "gpio57";
177 drive-strength = <12>;
184 drive-strength = <2>;
189 led_pins: led_pinmux {
191 pins = "gpio0", "gpio1", "gpio3", "gpio5", "gpio58";
192 drive-strength = <0x8>;
199 &blsp1_spi1 { /* BLSP1 QUP1 */
200 pinctrl-0 = <&spi_0_pins>;
201 pinctrl-names = "default";
203 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
206 compatible = "jedec,spi-nor";
208 spi-max-frequency = <50000000>;
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>;
296 pinctrl-0 = <&serial_pins>;
297 pinctrl-names = "default";
347 qcom,ath10k-calibration-variant = "ZyXEL-NBG6617";
352 qcom,ath10k-calibration-variant = "ZyXEL-NBG6617";