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", "qcom,ipq4019";
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;
39 compatible = "qcom,tcsr";
40 reg = <0x1949000 0x100>;
41 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
45 compatible = "qcom,tcsr";
46 reg = <0x194b000 0x100>;
47 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
51 compatible = "qcom,tcsr";
52 reg = <0x1953000 0x1000>;
53 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
57 compatible = "qcom,tcsr";
58 reg = <0x1957000 0x100>;
59 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
71 #trigger-source-cells = <0>;
85 #trigger-source-cells = <0>;
90 #trigger-source-cells = <0>;
113 compatible = "gpio-keys";
117 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
118 linux,code = <KEY_RFKILL>;
119 linux,input-type = <EV_SW>;
124 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
125 linux,code = <KEY_WPS_BUTTON>;
130 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
131 linux,code = <KEY_RESTART>;
136 compatible = "gpio-leds";
137 pinctrl-0 = <&led_pins>;
138 pinctrl-names = "default";
141 label = "nbg6617:green:power";
142 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
146 label = "nbg6617:green:usb";
147 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
148 trigger-sources = <&usb2_port1>, <&usb3_port1>, <&usb3_port2>;
149 linux,default-trigger = "usbport";
153 label = "nbg6617:green:wlan2G";
154 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
158 label = "nbg6617:green:wlan5G";
159 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
163 label = "nbg6617:green:wps";
164 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
170 serial_pins: serial_pinmux {
172 pins = "gpio60", "gpio61";
173 function = "blsp_uart0";
177 spi_0_pins: spi_0_pinmux {
179 function = "blsp_spi0";
180 pins = "gpio55", "gpio56", "gpio57";
181 drive-strength = <12>;
188 drive-strength = <2>;
193 led_pins: led_pinmux {
195 pins = "gpio0", "gpio1", "gpio3", "gpio5", "gpio58";
196 drive-strength = <0x8>;
203 &blsp1_spi1 { /* BLSP1 QUP1 */
204 pinctrl-0 = <&spi_0_pins>;
205 pinctrl-names = "default";
207 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
210 compatible = "mx25l25635f", "jedec,spi-nor";
211 #address-cells = <1>;
214 spi-max-frequency = <24000000>;
219 compatible = "fixed-partitions";
220 #address-cells = <1>;
225 reg = <0x00000000 0x00040000>;
230 reg = <0x00040000 0x00020000>;
235 reg = <0x00060000 0x00060000>;
240 reg = <0x000c0000 0x00010000>;
245 reg = <0x000d0000 0x00010000>;
249 label = "APPSBL"; /* u-boot */
250 reg = <0x000e0000 0x00080000>;
251 /* U-Boot Standalone App "zloader" is located at 0x64000 */
255 label = "APPSBLENV"; /* u-boot env */
256 reg = <0x00160000 0x00010000>;
259 /* make a backup of this partition! */
261 reg = <0x00170000 0x00010000>;
266 reg = <0x00180000 0x00400000>;
270 reg = <0x00580000 0x00010000>;
275 reg = <0x00590000 0x00010000>;
279 reg = <0x005a0000 0x00100000>;
283 label = "not_root_data";
285 * for some strange reason, someone at ZyXEL
286 * had the "great" idea to put the rootfs_data
287 * in front of rootfs... Don't do that!
288 * As a result this one, full MebiByte remains
291 reg = <0x006a0000 0x00100000>;
295 reg = <0x007a0000 0x01860000>;
302 pinctrl-0 = <&serial_pins>;
303 pinctrl-names = "default";
317 qcom,ath10k-calibration-variant = "ZyXEL-NBG6617";
322 qcom,ath10k-calibration-variant = "ZyXEL-NBG6617";