1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
10 bootargs = "console=ttyS0,115200n8";
14 led-boot = &led_power_amber;
15 led-failsafe = &led_power_amber;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_amber;
18 label-mac-device = ð0;
22 compatible = "gpio-keys";
26 linux,code = <KEY_WPS_BUTTON>;
27 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
33 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RFKILL>;
39 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
44 compatible = "gpio-leds";
46 pinctrl-names = "default";
47 pinctrl-0 = <&enable_gpio_11>;
49 led_power_green: power_green {
50 label = "netgear:green:power";
51 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
54 led_power_amber: power_amber {
55 label = "netgear:amber:power";
56 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
57 default-state = "keep";
61 label = "netgear:green:wan";
62 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
66 label = "netgear:amber:wan";
67 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
71 label = "netgear:green:wlan2g";
72 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
73 linux,default-trigger = "phy0tpt";
77 label = "netgear:blue:wlan5g";
78 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
79 linux,default-trigger = "phy1tpt";
83 label = "netgear:green:wps";
84 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
88 label = "netgear:amber:wps";
89 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
93 label = "netgear:green:usb";
94 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
95 trigger-sources = <&hub_port>;
96 linux,default-trigger = "usbport";
101 compatible = "mtd-concat";
102 devices = <&ubipart0 &ubipart1>;
105 compatible = "fixed-partitions";
106 #address-cells = <1>;
111 reg = <0x0 0x7700000>;
118 enable_gpio_11: pinmux_enable_gpio_11 {
119 pinctrl-single,bits = <0x8 0x0 0xff000000>;
127 compatible = "fixed-partitions";
128 #address-cells = <1>;
138 label = "u-boot-env";
139 reg = <0x40000 0x40000>;
142 art: partition@80000 {
144 reg = <0x80000 0x40000>;
150 reg = <0xc0000 0x80000>;
155 reg = <0x140000 0x200000>;
160 reg = <0x340000 0x80000>;
164 label = "traffic_meter";
165 reg = <0x3c0000 0x300000>;
170 reg = <0x6c0000 0x200000>;
173 ubipart0: partition@8c0000 {
175 reg = <0x8c0000 0x1700000>;
180 reg = <0x6c0000 0x1900000>;
181 compatible = "netgear,uimage";
185 label = "caldata_backup";
186 reg = <0x1fc0000 0x40000>;
190 ubipart1: partition@2000000 {
192 reg = <0x2000000 0x6000000>;
198 clock-frequency = <40000000>;
202 resets = <&rst 8>, <&rst 12>;
203 reset-names = "switch", "switch-analog";
211 phy0: ethernet-phy@0 {
214 qca,mib-poll-interval = <500>;
216 qca,ar8327-initvals = <
233 /* default for ar934x, except for 1000M */
234 pll-data = <0x06000000 0x00000101 0x00001616>;
236 mtd-mac-address = <&art 0x0>;
239 phy-handle = <&phy0>;
247 line-name = "netgear:ext:lna0";
248 gpios = <18 GPIO_ACTIVE_HIGH>;
254 line-name = "netgear:ext:lna1";
255 gpios = <19 GPIO_ACTIVE_HIGH>;
263 mtd-mac-address = <&art 0x0>;
271 compatible = "pci168c,0033";
272 reg = <0x0000 0 0 0 0>;
273 mtd-mac-address = <&art 0xc>;
280 line-name = "netgear:power:usb";
281 gpios = <0 GPIO_ACTIVE_HIGH>;
293 #address-cells = <1>;
298 #trigger-source-cells = <0>;