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,wnr1000-v2", "qca,ar7240";
12 model = "Netgear WNR1000 v2";
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-polled";
32 linux,code = <KEY_WPS_BUTTON>;
33 gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
34 debounce-interval = <60>;
39 linux,code = <KEY_RESTART>;
40 gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
41 debounce-interval = <60>;
46 linux,code = <KEY_RFKILL>;
47 gpios = <&ath9k 8 GPIO_ACTIVE_LOW>;
48 debounce-interval = <60>;
53 compatible = "gpio-leds";
55 pinctrl-names = "default";
56 pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
58 led_power_green: power_green {
59 function = LED_FUNCTION_POWER;
60 color = <LED_COLOR_ID_GREEN>;
61 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
64 led_power_amber: power_amber {
65 function = LED_FUNCTION_POWER;
66 color = <LED_COLOR_ID_AMBER>;
67 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
68 default-state = "keep";
72 function = LED_FUNCTION_WAN;
73 color = <LED_COLOR_ID_GREEN>;
74 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
78 function = LED_FUNCTION_WAN;
79 color = <LED_COLOR_ID_AMBER>;
80 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
85 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
90 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
95 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
100 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
104 label = "green:lan3";
105 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
109 label = "amber:lan3";
110 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
114 label = "green:lan4";
115 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
119 label = "amber:lan4";
120 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
125 compatible = "gpio-leds";
128 function = LED_FUNCTION_WPS;
129 color = <LED_COLOR_ID_GREEN>;
130 gpios = <&ath9k 5 GPIO_ACTIVE_LOW>;
134 function = LED_FUNCTION_WLAN;
135 color = <LED_COLOR_ID_BLUE>;
136 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
137 linux,default-trigger = "phy0tpt";
146 compatible = "jedec,spi-nor";
148 spi-max-frequency = <25000000>;
151 compatible = "fixed-partitions";
152 #address-cells = <1>;
162 label = "u-boot-env";
163 reg = <0x40000 0x10000>;
168 reg = <0x50000 0x3a0000>;
169 compatible = "openwrt,uimage", "denx,uimage";
170 openwrt,ih-magic = <0x31303031>;
171 openwrt,ih-type = <IH_TYPE_FILESYSTEM>;
174 art: partition@3f0000 {
176 reg = <0x3f0000 0x10000>;
180 compatible = "fixed-layout";
181 #address-cells = <1>;
184 macaddr_art_0: macaddr@0 {
185 compatible = "mac-base";
187 #nvmem-cell-cells = <1>;
190 macaddr_art_6: macaddr@6 {
200 nvmem-cells = <&macaddr_art_0 0>;
201 nvmem-cell-names = "mac-address";
207 nvmem-cells = <&macaddr_art_6>;
208 nvmem-cell-names = "mac-address";
215 compatible = "pci168c,002b";
216 reg = <0x0000 0 0 0 0>;
217 nvmem-cells = <&macaddr_art_0 1>;
218 nvmem-cell-names = "mac-address";