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 device_type = "memory";
23 reg = <0x0 0x8000000>;
27 compatible = "fixed-clock";
29 clock-output-names = "ref";
30 clock-frequency = <40000000>;
34 compatible = "reset-leds";
37 label = "netgear:green:usb";
39 trigger-sources = <&usb_ochi_port>, <&usb_echi_port>;
40 linux,default-trigger = "usbport";
45 compatible = "gpio-leds";
48 label = "netgear:orange:wps";
49 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
50 default-state = "off";
53 power_green: power_green {
54 label = "netgear:green:power";
55 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
56 default-state = "off";
60 label = "netgear:orange:power";
61 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
62 default-state = "off";
66 label = "netgear:green:wps";
67 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
68 default-state = "off";
72 label = "netgear:green:wan";
73 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
74 default-state = "off";
79 compatible = "gpio-keys-polled";
82 poll-interval = <100>;
86 linux,code = <KEY_WPS_BUTTON>;
87 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_RESTART>;
93 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
98 linux,code = <KEY_RFKILL>;
99 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
104 compatible = "realtek,rtl8366s";
105 gpio-sda = <&gpio 5 GPIO_ACTIVE_HIGH>;
106 gpio-sck = <&gpio 7 GPIO_ACTIVE_HIGH>;
113 phy4: ethernet-phy@4 {
128 usb_ochi_port: port@1 {
130 #trigger-source-cells = <0>;
137 usb_echi_port: port@1 {
139 #trigger-source-cells = <0>;
156 #address-cells = <1>;
158 compatible = "mx25l12805d";
160 spi-max-frequency = <25000000>;
163 compatible = "fixed-partitions";
164 #address-cells = <1>;
169 reg = <0x000000 0x050000>;
174 label = "u-boot-env";
175 reg = <0x050000 0x020000>;
181 reg = <0x070000 0xf80000>;
186 reg = <0xff0000 0x010000>;
196 pll-data = <0x11110000 0x00001099 0x00991099>;
198 mtd-mac-address = <&art 0x00>;
209 pll-data = <0x11110000 0x00001099 0x00991099>;
211 mtd-mac-address = <&art 0x06>;
216 phy-handle = <&phy4>;