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,wndr4300", "qca,ar9344";
11 model = "Netgear WNDR4300";
14 bootargs = "console=ttyS0,115200n8";
18 led-boot = &power_amber;
19 led-failsafe = &power_amber;
20 led-running = &power_green;
21 led-upgrade = &power_amber;
22 label-mac-device = ð0;
26 compatible = "gpio-keys";
30 linux,code = <KEY_WPS_BUTTON>;
31 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
37 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RFKILL>;
43 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
48 compatible = "gpio-leds";
50 pinctrl-names = "default";
51 pinctrl-0 = <&enable_gpio_11>;
53 power_green: power_green {
54 label = "netgear:green:power";
55 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
58 power_amber: power_amber {
59 label = "netgear:amber:power";
60 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
61 default-state = "keep";
65 label = "netgear:green:wan";
66 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
70 label = "netgear:amber:wan";
71 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
75 label = "netgear:green:wlan2g";
76 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
77 linux,default-trigger = "phy0tpt";
81 label = "netgear:blue:wlan5g";
82 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
83 linux,default-trigger = "phy1tpt";
87 label = "netgear:green:wps";
88 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
92 label = "netgear:amber:wps";
93 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
97 label = "netgear:green:usb";
98 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
99 trigger-sources = <&hub_port>;
100 linux,default-trigger = "usbport";
106 enable_gpio_11: pinmux_enable_gpio_11 {
107 pinctrl-single,bits = <0x8 0x0 0xff000000>;
115 compatible = "fixed-partitions";
116 #address-cells = <1>;
126 label = "u-boot-env";
127 reg = <0x40000 0x40000>;
130 art: partition@80000 {
132 reg = <0x80000 0x40000>;
138 reg = <0xc0000 0x80000>;
143 reg = <0x140000 0x200000>;
148 reg = <0x340000 0x80000>;
152 label = "traffic_meter";
153 reg = <0x3c0000 0x300000>;
158 reg = <0x6c0000 0x200000>;
163 reg = <0x8c0000 0x1700000>;
168 reg = <0x6c0000 0x1900000>;
169 compatible = "netgear,uimage";
173 label = "caldata_backup";
174 reg = <0x1fc0000 0x40000>;
180 reg = <0x2000000 0x6000000>;
187 clock-frequency = <40000000>;
191 resets = <&rst 8>, <&rst 12>;
192 reset-names = "switch", "switch-analog";
200 phy0: ethernet-phy@0 {
203 qca,mib-poll-interval = <500>;
205 qca,ar8327-initvals = <
222 /* default for ar934x, except for 1000M */
223 pll-data = <0x06000000 0x00000101 0x00001616>;
225 mtd-mac-address = <&art 0x0>;
228 phy-handle = <&phy0>;
236 line-name = "netgear:ext:lna0";
237 gpios = <18 GPIO_ACTIVE_HIGH>;
243 line-name = "netgear:ext:lna1";
244 gpios = <19 GPIO_ACTIVE_HIGH>;
252 mtd-mac-address = <&art 0x0>;
260 compatible = "pci168c,0033";
261 reg = <0x0000 0 0 0 0>;
262 mtd-mac-address = <&art 0xc>;
269 line-name = "netgear:power:usb";
270 gpios = <0 GPIO_ACTIVE_HIGH>;
282 #address-cells = <1>;
287 #trigger-source-cells = <0>;