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,wzr-hp-g302h-a1a0", "qca,ar7242";
11 model = "Buffalo WZR-HP-G302H A1A0";
15 led-failsafe = &led_diag;
16 led-upgrade = &led_diag;
20 compatible = "gpio-keys";
24 linux,code = <KEY_RESTART>;
25 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
26 debounce-interval = <60>;
32 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
33 debounce-interval = <60>;
39 linux,input-type = <EV_SW>;
40 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
41 debounce-interval = <60>;
45 label = "movie_engine";
47 linux,input-type = <EV_SW>;
48 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
49 debounce-interval = <60>;
54 linux,code = <KEY_WPS_BUTTON>;
55 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
56 debounce-interval = <60>;
61 compatible = "gpio-leds";
65 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
70 compatible = "gpio-leds";
73 function = LED_FUNCTION_USB;
74 color = <LED_COLOR_ID_BLUE>;
75 gpios = <&ath9k 4 GPIO_ACTIVE_LOW>;
76 trigger-sources = <&hub_port>;
77 linux,default-trigger = "usbport";
81 label = "green:wireless";
82 gpios = <&ath9k 5 GPIO_ACTIVE_LOW>;
83 linux,default-trigger = "phy0tpt";
87 label = "orange:security";
88 gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
92 label = "green:router";
93 gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
97 label = "blue:movie_engine_on";
98 gpios = <&ath9k 8 GPIO_ACTIVE_LOW>;
102 label = "blue:movie_engine_off";
103 gpios = <&ath9k 9 GPIO_ACTIVE_LOW>;
108 compatible = "gpio-export";
112 gpio-export,name = "buffalo:usb-power";
113 gpio-export,output = <1>;
114 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
119 compatible = "mtd-concat";
120 devices = <&flash0 &flash1>;
123 compatible = "fixed-partitions";
124 #address-cells = <1>;
134 reg = <0x40000 0x10000>;
135 label = "u-boot-env";
139 reg = <0x50000 0x10000>;
144 compatible = "fixed-layout";
145 #address-cells = <1>;
148 macaddr_art_120c: macaddr@120c {
152 calibration_art_1000: calibration@1000 {
153 reg = <0x1000 0xeb8>;
159 compatible = "denx,uimage";
160 reg = <0x60000 0x1f60000>;
165 reg = <0x1fc0000 0x40000>;
166 label = "user_property";
177 compatible = "jedec,spi-nor";
179 spi-max-frequency = <25000000>;
183 compatible = "jedec,spi-nor";
185 spi-max-frequency = <25000000>;
192 phy0: ethernet-phy@0 {
201 pll-data = <0x1c000000 0x00000101 0x00001616>;
203 nvmem-cells = <&macaddr_art_120c>;
204 nvmem-cell-names = "mac-address";
207 phy-handle = <&phy0>;
214 compatible = "pci168c,002a";
215 reg = <0x0000 0 0 0 0>;
216 nvmem-cells = <&macaddr_art_120c>, <&calibration_art_1000>;
217 nvmem-cell-names = "mac-address", "calibration";