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/leds/common.h>
8 #include <dt-bindings/mtd/partitions/uimage.h>
11 compatible = "netgear,wnr2000-v3", "qca,ar7241";
12 model = "Netgear WNR2000 v3";
15 bootargs = "console=ttyS0,115200n8";
19 led-boot = &led_power_amber;
20 led-failsafe = &led_power_amber;
21 led-running = &led_power_green;
22 led-upgrade = &led_power_amber;
23 label-mac-device = ð1;
27 compatible = "gpio-keys";
31 linux,code = <KEY_WPS_BUTTON>;
32 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
37 compatible = "gpio-keys-polled";
42 linux,code = <KEY_RESTART>;
43 gpios = <&ath9k 8 GPIO_ACTIVE_LOW>;
44 debounce-interval = <60>;
49 linux,code = <KEY_RFKILL>;
50 gpios = <&ath9k 9 GPIO_ACTIVE_LOW>;
51 debounce-interval = <60>;
56 compatible = "gpio-leds";
58 pinctrl-names = "default";
59 pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
62 function = LED_FUNCTION_WAN;
63 color = <LED_COLOR_ID_GREEN>;
64 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
68 function = LED_FUNCTION_WAN;
69 color = <LED_COLOR_ID_AMBER>;
70 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
75 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
80 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
85 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
90 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
95 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
100 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
104 label = "green:lan4";
105 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
109 label = "amber:lan4";
110 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
114 function = LED_FUNCTION_WPS;
115 color = <LED_COLOR_ID_GREEN>;
116 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
121 compatible = "gpio-leds";
123 led_power_green: power_green {
124 function = LED_FUNCTION_POWER;
125 color = <LED_COLOR_ID_GREEN>;
126 gpios = <&ath9k 3 GPIO_ACTIVE_LOW>;
129 led_power_amber: power_amber {
130 function = LED_FUNCTION_POWER;
131 color = <LED_COLOR_ID_AMBER>;
132 gpios = <&ath9k 2 GPIO_ACTIVE_LOW>;
133 default-state = "keep";
137 function = LED_FUNCTION_WLAN;
138 color = <LED_COLOR_ID_BLUE>;
139 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
140 linux,default-trigger = "phy0tpt";
149 compatible = "jedec,spi-nor";
151 spi-max-frequency = <25000000>;
154 compatible = "fixed-partitions";
155 #address-cells = <1>;
165 label = "u-boot-env";
166 reg = <0x40000 0x10000>;
171 reg = <0x50000 0x3a0000>;
172 compatible = "openwrt,uimage", "denx,uimage";
173 openwrt,ih-magic = <0x32303033>;
174 openwrt,ih-type = <IH_TYPE_FILESYSTEM>;
177 art: partition@3f0000 {
179 reg = <0x3f0000 0x10000>;
183 compatible = "fixed-layout";
184 #address-cells = <1>;
187 macaddr_art_0: macaddr@0 {
188 compatible = "mac-base";
190 #nvmem-cell-cells = <1>;
193 macaddr_art_6: macaddr@6 {
205 nvmem-cells = <&macaddr_art_0 0>;
206 nvmem-cell-names = "mac-address";
210 compatible = "qca,ar7241-eth", "syscon", "simple-mfd";
212 nvmem-cells = <&macaddr_art_6>;
213 nvmem-cell-names = "mac-address";
220 compatible = "pci168c,002e";
221 reg = <0x0000 0 0 0 0>;
222 nvmem-cells = <&macaddr_art_0 1>;
223 nvmem-cell-names = "mac-address";