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 "qca9557.dtsi"
10 compatible = "zyxel,nbg6716", "qca,qca9558";
11 model = "ZyXEL NBG6716";
14 bootargs = "console=ttyS0,115200n8";
18 led-boot = &led_power;
19 led-failsafe = &led_power;
20 led-running = &led_power;
21 led-upgrade = &led_power;
25 compatible = "gpio-leds";
28 label = "nbg6716:white:power";
29 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
33 label = "nbg6716:white:internet";
34 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
38 label = "nbg6716:white:usb1";
39 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
40 linux,default-trigger = "usbport";
41 trigger-sources = <&hub_port0>;
45 label = "nbg6716:white:usb2";
46 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
47 linux,default-trigger = "usbport";
48 trigger-sources = <&hub_port1>;
52 label = "nbg6716:white:wifi2";
53 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy1tpt";
58 label = "nbg6716:white:wifi5";
59 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
60 linux,default-trigger = "phy0tpt";
64 label = "nbg6716:white:wps";
65 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
70 compatible = "gpio-keys";
74 linux,code = <KEY_RESTART>;
75 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
76 debounce-interval = <60>;
80 label = "WiFi button";
81 linux,code = <KEY_RFKILL>;
82 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
83 debounce-interval = <60>;
87 label = "USB1 eject button";
88 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
89 debounce-interval = <60>;
93 label = "USB2 eject button";
94 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
95 debounce-interval = <60>;
100 linux,code = <KEY_WPS_BUTTON>;
101 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
102 debounce-interval = <60>;
112 line-name = "nbg6716:power:usb";
126 compatible = "jedec,spi-nor";
128 spi-max-frequency = <25000000>;
131 compatible = "fixed-partitions";
132 #address-cells = <1>;
137 reg = <0x000000 0x040000>;
141 uboot_env: partition@40000 {
142 label = "u-boot-env";
143 reg = <0x040000 0x010000>;
146 art: partition@50000 {
148 reg = <0x050000 0x010000>;
154 reg = <0x060000 0xfa0000>;
164 compatible = "fixed-partitions";
165 #address-cells = <1>;
169 label = "zyxel_rfsd";
170 reg = <0x0 0x200000>;
175 reg = <0x200000 0x200000>;
180 reg = <0x400000 0x100000>;
185 reg = <0x500000 0x7b00000>;
190 reg = <0x500000 0x400000>;
195 reg = <0x900000 0x7700000>;
203 phy0: ethernet-phy@0 {
205 phy-mode = "rgmii-id";
209 compatible = "qca,ar8327";
211 qca,ar8327-initvals = <
212 0x04 0x87600000 /* PORT0 PAD MODE CTRL */
213 0x0c 0x00080080 /* PORT6 PAD MODE CTRL */
214 0x10 0x81000080 /* POWER_ON_STRIP */
215 0x50 0xffb7ffb7 /* LED_CTRL0 */
216 0x54 0xffb7ffb7 /* LED_CTRL1 */
217 0x58 0xffb7ffb7 /* LED_CTRL2 */
218 0x5c 0x03ffff00 /* LED_CTRL3 */
219 0x7c 0x0000007e /* PORT0_STATUS */
220 0x94 0x0000007e /* PORT6 STATUS */
228 phy1: ethernet-phy@1 {
238 pll-data = <0xa6000000 0x00000101 0x00001616>;
239 phy-handle = <&phy0>;
249 pll-data = <0x03000101 0x00000101 0x00001616>;
250 phy-handle = <&phy1>;
269 compatible = "qcom,ath10k";
271 qcom,ath10k-calibration-variant = "ZyXEL-NBG6716";
288 #trigger-source-cells = <0>;
298 #trigger-source-cells = <0>;