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>
10 compatible = "netgear,wndr3800", "qca,ar7161";
11 model = "Netgear WNDR3800";
14 led-status = &power_green;
18 bootargs = "console=ttyS0,115200";
22 compatible = "fixed-clock";
24 clock-output-names = "ref";
25 clock-frequency = <40000000>;
29 compatible = "reset-leds";
32 label = "netgear:green:usb";
34 trigger-sources = <&usb_ochi_port>, <&usb_echi_port>;
35 linux,default-trigger = "usbport";
40 compatible = "gpio-leds";
43 label = "netgear:orange:wps";
44 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
45 default-state = "off";
48 power_green: power_green {
49 label = "netgear:green:power";
50 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
51 default-state = "off";
55 label = "netgear:orange:power";
56 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
57 default-state = "off";
61 label = "netgear:green:wps";
62 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
63 default-state = "off";
67 label = "netgear:green:wan";
68 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
69 default-state = "off";
74 compatible = "gpio-keys-polled";
75 poll-interval = <100>;
79 linux,code = <KEY_WPS_BUTTON>;
80 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
85 linux,code = <KEY_RESTART>;
86 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
91 linux,code = <KEY_RFKILL>;
92 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
97 compatible = "realtek,rtl8366s";
98 gpio-sda = <&gpio 5 GPIO_ACTIVE_HIGH>;
99 gpio-sck = <&gpio 7 GPIO_ACTIVE_HIGH>;
102 #address-cells = <1>;
108 phy4: ethernet-phy@4 {
121 #address-cells = <1>;
125 usb_ochi_port: port@1 {
127 #trigger-source-cells = <0>;
132 #address-cells = <1>;
136 usb_echi_port: port@1 {
138 #trigger-source-cells = <0>;
155 compatible = "jedec,spi-nor";
157 spi-max-frequency = <25000000>;
160 compatible = "fixed-partitions";
161 #address-cells = <1>;
166 reg = <0x000000 0x050000>;
171 label = "u-boot-env";
172 reg = <0x050000 0x020000>;
178 reg = <0x070000 0xf80000>;
183 reg = <0xff0000 0x010000>;
193 pll-data = <0x11110000 0x00001099 0x00991099>;
195 mtd-mac-address = <&art 0x00>;
206 pll-data = <0x11110000 0x00001099 0x00991099>;
208 mtd-mac-address = <&art 0x06>;
213 phy-handle = <&phy4>;