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>
9 compatible = "buffalo,whr-g301n", "qca,ar7240";
10 model = "Buffalo WHR-G301N";
14 led-failsafe = &led_diag;
15 led-upgrade = &led_diag;
19 compatible = "gpio-keys";
24 linux,input-type = <EV_SW>;
25 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
26 debounce-interval = <60>;
32 linux,input-type = <EV_SW>;
33 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
34 debounce-interval = <60>;
39 linux,code = <KEY_RESTART>;
40 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
41 debounce-interval = <60>;
46 linux,code = <KEY_WPS_BUTTON>;
47 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
48 debounce-interval = <60>;
53 compatible = "gpio-leds";
54 pinctrl-names = "default";
55 pinctrl-0 = <&switch_led_pins>;
58 label = "orange:security";
59 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
64 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
68 label = "green:router";
69 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
74 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
79 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
84 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
89 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
94 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
99 compatible = "gpio-leds";
102 label = "green:wlan";
103 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
104 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>;
158 mtd-mac-address = <&art 0x120c>;
164 mtd-mac-address = <&art 0x120c>;
165 mtd-mac-address-increment = <1>;
172 compatible = "pci168c,002a";
173 reg = <0x0000 0 0 0 0>;
175 mtd-mac-address = <&art 0x120c>;
182 switch_led_pins: switch_led_pins {
183 pinctrl-single,bits = <0x0 0x0 0xf8>;