1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/mtd/partitions/uimage.h>
10 compatible = "netgear,wnr2000-v3", "qca,ar7241";
11 model = "Netgear WNR2000 v3";
14 bootargs = "console=ttyS0,115200n8";
18 led-boot = &led_power_amber;
19 led-failsafe = &led_power_amber;
20 led-running = &led_power_green;
21 led-upgrade = &led_power_amber;
22 label-mac-device = ð1;
26 compatible = "gpio-keys";
30 linux,code = <KEY_WPS_BUTTON>;
31 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
36 compatible = "gpio-keys-polled";
41 linux,code = <KEY_RESTART>;
42 gpios = <&ath9k 8 GPIO_ACTIVE_LOW>;
43 debounce-interval = <60>;
48 linux,code = <KEY_RFKILL>;
49 gpios = <&ath9k 9 GPIO_ACTIVE_LOW>;
50 debounce-interval = <60>;
55 compatible = "gpio-leds";
57 pinctrl-names = "default";
58 pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
62 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
67 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
72 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
77 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
82 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
87 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
92 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
97 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
101 label = "green:lan4";
102 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
106 label = "amber:lan4";
107 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
112 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
117 compatible = "gpio-leds";
119 led_power_green: power_green {
120 label = "green:power";
121 gpios = <&ath9k 3 GPIO_ACTIVE_LOW>;
124 led_power_amber: power_amber {
125 label = "amber:power";
126 gpios = <&ath9k 2 GPIO_ACTIVE_LOW>;
127 default-state = "keep";
132 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
133 linux,default-trigger = "phy0tpt";
142 compatible = "jedec,spi-nor";
144 spi-max-frequency = <25000000>;
147 compatible = "fixed-partitions";
148 #address-cells = <1>;
158 label = "u-boot-env";
159 reg = <0x40000 0x10000>;
164 reg = <0x50000 0x3a0000>;
165 compatible = "openwrt,uimage", "denx,uimage";
166 openwrt,ih-magic = <0x32303033>;
167 openwrt,ih-type = <IH_TYPE_FILESYSTEM>;
170 art: partition@3f0000 {
172 reg = <0x3f0000 0x10000>;
176 compatible = "fixed-layout";
177 #address-cells = <1>;
180 macaddr_art_0: macaddr@0 {
181 compatible = "mac-base";
183 #nvmem-cell-cells = <1>;
186 macaddr_art_6: macaddr@6 {
198 nvmem-cells = <&macaddr_art_0 0>;
199 nvmem-cell-names = "mac-address";
203 compatible = "qca,ar7241-eth", "syscon", "simple-mfd";
205 nvmem-cells = <&macaddr_art_6>;
206 nvmem-cell-names = "mac-address";
213 compatible = "pci168c,002e";
214 reg = <0x0000 0 0 0 0>;
215 nvmem-cells = <&macaddr_art_0 1>;
216 nvmem-cell-names = "mac-address";