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-polled";
26 linux,input-type = <EV_SW>;
27 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
34 linux,input-type = <EV_SW>;
35 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
36 debounce-interval = <60>;
41 linux,code = <KEY_RESTART>;
42 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
43 debounce-interval = <60>;
48 linux,code = <KEY_WPS_BUTTON>;
49 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
50 debounce-interval = <60>;
55 compatible = "gpio-leds";
56 pinctrl-names = "default";
57 pinctrl-0 = <&switch_led_pins>;
60 label = "whr-g301n:orange:security";
61 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
65 label = "whr-g301n:red:diag";
66 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
70 label = "whr-g301n:green:router";
71 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
75 label = "whr-g301n:green:lan1";
76 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
80 label = "whr-g301n:green:lan2";
81 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
85 label = "whr-g301n:green:lan3";
86 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
90 label = "whr-g301n:green:lan4";
91 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
95 label = "whr-g301n:green:wan";
96 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
101 compatible = "gpio-leds";
104 label = "whr-g301n:green:wlan";
105 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
106 linux,default-trigger = "phy0tpt";
116 compatible = "jedec,spi-nor";
118 spi-max-frequency = <25000000>;
121 compatible = "fixed-partitions";
122 #address-cells = <1>;
132 reg = <0x3e000 0x2000>;
133 label = "u-boot-env";
138 compatible = "denx,uimage";
139 reg = <0x40000 0x3a0000>;
144 reg = <0x3e0000 0x10000>;
145 label = "user_property";
149 art: partition@3f0000 {
150 reg = <0x3f0000 0x10000>;
161 mtd-mac-address = <&art 0x120c>;
167 mtd-mac-address = <&art 0x120c>;
168 mtd-mac-address-increment = <1>;
175 compatible = "pci168c,002a";
176 reg = <0x0000 0 0 0 0>;
178 mtd-mac-address = <&art 0x120c>;
185 switch_led_pins: switch_led_pins {
186 pinctrl-single,bits = <0x0 0x0 0xf8>;