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";
19 led-failsafe = &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";
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 phy0: ethernet-phy@0 {
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 = <&phy0>;
248 pll-data = <0x03000101 0x00000101 0x00001616>;
249 phy-handle = <&phy1>;
268 compatible = "qcom,ath10k";
270 qcom,ath10k-calibration-variant = "ZyXEL-NBG6716";
287 #trigger-source-cells = <0>;
297 #trigger-source-cells = <0>;