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/input/linux-event-codes.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
10 model = "ZyXEL NBG6617";
11 compatible = "zyxel,nbg6617";
15 * the vendor u-boot adds root and mtdparts cmdline parameters
16 * which we don't want... but we have to overwrite them or else
17 * the kernel will take them at face value.
19 bootargs-append = " mtdparts= root=31:13";
24 led-failsafe = &power;
43 compatible = "qcom,tcsr";
44 reg = <0x1949000 0x100>;
45 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
49 compatible = "qcom,tcsr";
50 reg = <0x194b000 0x100>;
51 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
55 compatible = "qcom,tcsr";
56 reg = <0x1953000 0x1000>;
57 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
61 compatible = "qcom,tcsr";
62 reg = <0x1957000 0x100>;
63 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
75 #trigger-source-cells = <0>;
89 #trigger-source-cells = <0>;
94 #trigger-source-cells = <0>;
117 compatible = "gpio-keys";
121 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
122 linux,code = <KEY_RFKILL>;
123 linux,input-type = <EV_SW>;
128 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
129 linux,code = <KEY_WPS_BUTTON>;
134 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
135 linux,code = <KEY_RESTART>;
140 compatible = "gpio-leds";
141 pinctrl-0 = <&led_pins>;
142 pinctrl-names = "default";
145 label = "green:power";
146 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
151 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
152 trigger-sources = <&usb2_port1>, <&usb3_port1>, <&usb3_port2>;
153 linux,default-trigger = "usbport";
157 label = "green:wlan2g";
158 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
162 label = "green:wlan5g";
163 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
168 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
174 serial_pins: serial_pinmux {
176 pins = "gpio60", "gpio61";
177 function = "blsp_uart0";
181 spi_0_pins: spi_0_pinmux {
183 function = "blsp_spi0";
184 pins = "gpio55", "gpio56", "gpio57";
185 drive-strength = <12>;
192 drive-strength = <2>;
197 led_pins: led_pinmux {
199 pins = "gpio0", "gpio1", "gpio3", "gpio5", "gpio58";
200 drive-strength = <0x8>;
207 &blsp1_spi1 { /* BLSP1 QUP1 */
208 pinctrl-0 = <&spi_0_pins>;
209 pinctrl-names = "default";
211 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
214 compatible = "mx25l25635f", "jedec,spi-nor";
216 spi-max-frequency = <24000000>;
221 compatible = "fixed-partitions";
222 #address-cells = <1>;
227 reg = <0x00000000 0x00040000>;
232 reg = <0x00040000 0x00020000>;
237 reg = <0x00060000 0x00060000>;
242 reg = <0x000c0000 0x00010000>;
247 reg = <0x000d0000 0x00010000>;
251 label = "APPSBL"; /* u-boot */
252 reg = <0x000e0000 0x00080000>;
253 /* U-Boot Standalone App "zloader" is located at 0x64000 */
257 label = "APPSBLENV"; /* u-boot env */
258 reg = <0x00160000 0x00010000>;
261 /* make a backup of this partition! */
263 reg = <0x00170000 0x00010000>;
268 reg = <0x00180000 0x00400000>;
272 reg = <0x00580000 0x00010000>;
277 reg = <0x00590000 0x00010000>;
281 reg = <0x005a0000 0x00100000>;
285 label = "not_root_data";
287 * for some strange reason, someone at ZyXEL
288 * had the "great" idea to put the rootfs_data
289 * in front of rootfs... Don't do that!
290 * As a result this one, full MebiByte remains
293 reg = <0x006a0000 0x00100000>;
297 reg = <0x007a0000 0x01860000>;
304 pinctrl-0 = <&serial_pins>;
305 pinctrl-names = "default";
319 qcom,ath10k-calibration-variant = "ZyXEL-NBG6617";
324 qcom,ath10k-calibration-variant = "ZyXEL-NBG6617";