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,wnr1000-v2", "qca,ar7240";
11 model = "Netgear WNR1000 v2";
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-polled";
31 linux,code = <KEY_WPS_BUTTON>;
32 gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
33 debounce-interval = <60>;
38 linux,code = <KEY_RESTART>;
39 gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
40 debounce-interval = <60>;
45 linux,code = <KEY_RFKILL>;
46 gpios = <&ath9k 8 GPIO_ACTIVE_LOW>;
47 debounce-interval = <60>;
52 compatible = "gpio-leds";
54 pinctrl-names = "default";
55 pinctrl-0 = <&jtag_disable_pins &switch_led_disable_pins &clks_disable_pins>;
57 led_power_green: power_green {
58 label = "green:power";
59 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
62 led_power_amber: power_amber {
63 label = "amber:power";
64 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
65 default-state = "keep";
70 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
75 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
80 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
85 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
90 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
95 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
100 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
104 label = "amber:lan3";
105 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
109 label = "green:lan4";
110 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
114 label = "amber:lan4";
115 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
120 compatible = "gpio-leds";
124 gpios = <&ath9k 5 GPIO_ACTIVE_LOW>;
129 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
130 linux,default-trigger = "phy0tpt";
139 compatible = "jedec,spi-nor";
141 spi-max-frequency = <25000000>;
144 compatible = "fixed-partitions";
145 #address-cells = <1>;
155 label = "u-boot-env";
156 reg = <0x40000 0x10000>;
161 reg = <0x50000 0x3a0000>;
162 compatible = "openwrt,uimage", "denx,uimage";
163 openwrt,ih-magic = <0x31303031>;
164 openwrt,ih-type = <IH_TYPE_FILESYSTEM>;
167 art: partition@3f0000 {
169 reg = <0x3f0000 0x10000>;
177 mtd-mac-address = <&art 0x0>;
183 mtd-mac-address = <&art 0x6>;
190 compatible = "pci168c,002b";
191 reg = <0x0000 0 0 0 0>;
192 mtd-mac-address = <&art 0x0>;
193 mtd-mac-address-increment = <1>;