1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
7 #include "qca955x.dtsi"
10 compatible = "zyxel,nbg6716", "qca,qca9558";
11 model = "ZyXEL NBG6716";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 compatible = "gpio-leds";
24 label = "nbg6716:white:power";
25 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
29 label = "nbg6716:white:internet";
30 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
34 label = "nbg6716:white:usb1";
35 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "usbport";
37 trigger-sources = <&hub_port1>;
41 label = "nbg6716:white:usb2";
42 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "usbport";
44 trigger-sources = <&hub_port0>;
48 label = "nbg6716:white:wifi2g";
49 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
50 linux,default-trigger = "phy1tpt";
54 label = "nbg6716:white:wifi5g";
55 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
56 linux,default-trigger = "phy0tpt";
60 label = "nbg6716:white:wps";
61 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
66 compatible = "gpio-keys";
70 linux,code = <KEY_RESTART>;
71 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
72 debounce-interval = <60>;
76 label = "WiFi button";
77 linux,code = <KEY_RFKILL>;
78 linux,input-type = <EV_SW>;
79 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
80 debounce-interval = <60>;
84 label = "USB1 eject button";
86 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
87 debounce-interval = <60>;
91 label = "USB2 eject button";
93 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
94 debounce-interval = <60>;
99 linux,code = <KEY_WPS_BUTTON>;
100 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
101 debounce-interval = <60>;
111 line-name = "nbg6716:power:usb";
125 compatible = "jedec,spi-nor";
127 spi-max-frequency = <25000000>;
130 compatible = "fixed-partitions";
131 #address-cells = <1>;
136 reg = <0x000000 0x040000>;
140 uboot_env: partition@40000 {
141 label = "u-boot-env";
142 reg = <0x040000 0x010000>;
145 art: partition@50000 {
147 reg = <0x050000 0x010000>;
153 reg = <0x060000 0xfa0000>;
163 compatible = "fixed-partitions";
164 #address-cells = <1>;
168 label = "zyxel_rfsd";
169 reg = <0x0 0x200000>;
174 reg = <0x200000 0x200000>;
179 reg = <0x400000 0x100000>;
184 reg = <0x500000 0x7b00000>;
189 reg = <0x500000 0x400000>;
194 reg = <0x900000 0x7700000>;
202 phy17: ethernet-phy@11 {
204 phy-mode = "rgmii-id";
208 compatible = "qca,ar8327";
210 qca,ar8327-initvals = <
211 0x04 0x87600000 /* PORT0 PAD MODE CTRL */
212 0x0c 0x00080080 /* PORT6 PAD MODE CTRL */
213 0x10 0x81000080 /* POWER_ON_STRIP */
214 0x50 0xffb7ffb7 /* LED_CTRL0 */
215 0x54 0xffb7ffb7 /* LED_CTRL1 */
216 0x58 0xffb7ffb7 /* LED_CTRL2 */
217 0x5c 0x03ffff00 /* LED_CTRL3 */
218 0x7c 0x0000007e /* PORT0_STATUS */
219 0x94 0x0000007e /* PORT6 STATUS */
227 phy1: ethernet-phy@1 {
237 pll-data = <0xa6000000 0x00000101 0x00001616>;
238 phy-handle = <&phy17>;
249 pll-data = <0x03000101 0x00000101 0x00001616>;
250 phy-handle = <&phy1>;
261 mtd-cal-data = <&art 0x1000>;
268 compatible = "qcom,ath10k";
270 qcom,ath10k-calibration-variant = "ZyXEL-NBG6716";
287 #trigger-source-cells = <0>;
297 #trigger-source-cells = <0>;