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>
10 compatible = "buffalo,whr-g301n", "qca,ar7240";
11 model = "Buffalo WHR-G301N";
15 led-failsafe = &led_diag;
16 led-upgrade = &led_diag;
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 = "orange:security";
60 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
65 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
69 label = "green:router";
70 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
75 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
80 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
85 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
90 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
94 function = LED_FUNCTION_WAN;
95 color = <LED_COLOR_ID_GREEN>;
96 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
101 compatible = "gpio-leds";
104 function = LED_FUNCTION_WLAN;
105 color = <LED_COLOR_ID_GREEN>;
106 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
107 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>;
155 compatible = "fixed-layout";
156 #address-cells = <1>;
159 macaddr_art_120c: macaddr@120c {
160 compatible = "mac-base";
162 #nvmem-cell-cells = <1>;
171 nvmem-cells = <&macaddr_art_120c 0>;
172 nvmem-cell-names = "mac-address";
178 nvmem-cells = <&macaddr_art_120c 1>;
179 nvmem-cell-names = "mac-address";
186 compatible = "pci168c,002a";
187 reg = <0x0000 0 0 0 0>;
189 nvmem-cells = <&macaddr_art_120c 0>;
190 nvmem-cell-names = "mac-address";
197 switch_led_pins: switch_led_pins {
198 pinctrl-single,bits = <0x0 0x0 0xf8>;