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;
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>;
105 compatible = "gpio-keys";
109 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
110 linux,code = <KEY_RFKILL>;
111 linux,input-type = <EV_SW>;
116 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
117 linux,code = <KEY_WPS_BUTTON>;
122 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
123 linux,code = <KEY_RESTART>;
128 compatible = "gpio-leds";
129 pinctrl-0 = <&led_pins>;
130 pinctrl-names = "default";
133 label = "green:power";
134 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
139 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
140 trigger-sources = <&usb2_port1>, <&usb3_port1>, <&usb3_port2>;
141 linux,default-trigger = "usbport";
145 label = "green:wlan2g";
146 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
150 label = "green:wlan5g";
151 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
156 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
162 serial_pins: serial_pinmux {
164 pins = "gpio60", "gpio61";
165 function = "blsp_uart0";
169 spi_0_pins: spi_0_pinmux {
171 function = "blsp_spi0";
172 pins = "gpio55", "gpio56", "gpio57";
173 drive-strength = <12>;
180 drive-strength = <2>;
185 led_pins: led_pinmux {
187 pins = "gpio0", "gpio1", "gpio3", "gpio5", "gpio58";
188 drive-strength = <0x8>;
195 &blsp1_spi1 { /* BLSP1 QUP1 */
196 pinctrl-0 = <&spi_0_pins>;
197 pinctrl-names = "default";
199 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
202 compatible = "jedec,spi-nor";
204 spi-max-frequency = <50000000>;
209 compatible = "fixed-partitions";
210 #address-cells = <1>;
215 reg = <0x00000000 0x00040000>;
220 reg = <0x00040000 0x00020000>;
225 reg = <0x00060000 0x00060000>;
230 reg = <0x000c0000 0x00010000>;
235 reg = <0x000d0000 0x00010000>;
239 label = "APPSBL"; /* u-boot */
240 reg = <0x000e0000 0x00080000>;
241 /* U-Boot Standalone App "zloader" is located at 0x64000 */
245 label = "APPSBLENV"; /* u-boot env */
246 reg = <0x00160000 0x00010000>;
249 /* make a backup of this partition! */
251 reg = <0x00170000 0x00010000>;
256 reg = <0x00180000 0x00400000>;
260 reg = <0x00580000 0x00010000>;
265 reg = <0x00590000 0x00010000>;
269 reg = <0x005a0000 0x00100000>;
273 label = "not_root_data";
275 * for some strange reason, someone at ZyXEL
276 * had the "great" idea to put the rootfs_data
277 * in front of rootfs... Don't do that!
278 * As a result this one, full MebiByte remains
281 reg = <0x006a0000 0x00100000>;
285 reg = <0x007a0000 0x01860000>;
292 pinctrl-0 = <&serial_pins>;
293 pinctrl-names = "default";
343 qcom,ath10k-calibration-variant = "ZyXEL-NBG6617";
348 qcom,ath10k-calibration-variant = "ZyXEL-NBG6617";