1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
10 compatible = "buffalo,whr-g301n", "qca,ar7240";
11 model = "Buffalo WHR-G301N";
20 compatible = "gpio-keys";
25 linux,input-type = <EV_SW>;
26 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
33 linux,input-type = <EV_SW>;
34 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
35 debounce-interval = <60>;
40 linux,code = <KEY_RESTART>;
41 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
42 debounce-interval = <60>;
47 linux,code = <KEY_WPS_BUTTON>;
48 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
49 debounce-interval = <60>;
54 compatible = "gpio-leds";
55 pinctrl-names = "default";
56 pinctrl-0 = <&switch_led_pins>;
59 label = "whr-g301n:orange:security";
60 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
64 label = "whr-g301n:red:diag";
65 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
69 label = "whr-g301n:green:router";
70 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
74 label = "whr-g301n:green:lan1";
75 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
79 label = "whr-g301n:green:lan2";
80 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
84 label = "whr-g301n:green:lan3";
85 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
89 label = "whr-g301n:green:lan4";
90 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
94 label = "whr-g301n:green:wan";
95 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
100 compatible = "gpio-leds";
103 label = "whr-g301n:green:wlan";
104 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
105 linux,default-trigger = "phy0tpt";
115 compatible = "jedec,spi-nor";
117 spi-max-frequency = <25000000>;
120 compatible = "fixed-partitions";
121 #address-cells = <1>;
131 reg = <0x3e000 0x2000>;
132 label = "u-boot-env";
137 compatible = "denx,uimage";
138 reg = <0x40000 0x3a0000>;
143 reg = <0x3e0000 0x10000>;
144 label = "user_property";
148 art: partition@3f0000 {
149 reg = <0x3f0000 0x10000>;
160 mtd-mac-address = <&art 0x120c>;
166 mtd-mac-address = <&art 0x120c>;
167 mtd-mac-address-increment = <1>;
174 compatible = "pci168c,002a";
175 reg = <0x0000 0 0 0 0>;
177 mtd-mac-address = <&art 0x120c>;
184 switch_led_pins: switch_led_pins {
185 pinctrl-single,bits = <0x0 0x0 0xf8>;