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,wzr-hp-g302h-a1a0", "qca,ar7242";
10 model = "Buffalo WZR-HP-G302H A1A0";
14 led-failsafe = &led_diag;
15 led-upgrade = &led_diag;
19 compatible = "gpio-keys";
23 linux,code = <KEY_RESTART>;
24 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
25 debounce-interval = <60>;
31 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
32 debounce-interval = <60>;
38 linux,input-type = <EV_SW>;
39 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
40 debounce-interval = <60>;
44 label = "movie_engine";
46 linux,input-type = <EV_SW>;
47 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
48 debounce-interval = <60>;
53 linux,code = <KEY_WPS_BUTTON>;
54 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
55 debounce-interval = <60>;
60 compatible = "gpio-leds";
64 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
69 compatible = "gpio-leds";
73 gpios = <&ath9k 4 GPIO_ACTIVE_LOW>;
74 trigger-sources = <&hub_port>;
75 linux,default-trigger = "usbport";
79 label = "green:wireless";
80 gpios = <&ath9k 5 GPIO_ACTIVE_LOW>;
81 linux,default-trigger = "phy0tpt";
85 label = "orange:security";
86 gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
90 label = "green:router";
91 gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
95 label = "blue:movie_engine_on";
96 gpios = <&ath9k 8 GPIO_ACTIVE_LOW>;
100 label = "blue:movie_engine_off";
101 gpios = <&ath9k 9 GPIO_ACTIVE_LOW>;
106 compatible = "gpio-export";
110 gpio-export,name = "buffalo:usb-power";
111 gpio-export,output = <1>;
112 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
117 compatible = "mtd-concat";
118 devices = <&flash0 &flash1>;
121 compatible = "fixed-partitions";
122 #address-cells = <1>;
132 reg = <0x40000 0x10000>;
133 label = "u-boot-env";
137 reg = <0x50000 0x10000>;
141 compatible = "nvmem-cells";
142 #address-cells = <1>;
145 macaddr_art_120c: macaddr@120c {
149 calibration_art_1000: calibration@1000 {
150 reg = <0x1000 0xeb8>;
155 compatible = "denx,uimage";
156 reg = <0x60000 0x1f60000>;
161 reg = <0x1fc0000 0x40000>;
162 label = "user_property";
173 compatible = "jedec,spi-nor";
175 spi-max-frequency = <25000000>;
179 compatible = "jedec,spi-nor";
181 spi-max-frequency = <25000000>;
188 phy0: ethernet-phy@0 {
197 pll-data = <0x1c000000 0x00000101 0x00001616>;
199 nvmem-cells = <&macaddr_art_120c>;
200 nvmem-cell-names = "mac-address";
203 phy-handle = <&phy0>;
210 compatible = "pci168c,002a";
211 reg = <0x0000 0 0 0 0>;
212 nvmem-cells = <&macaddr_art_120c>, <&calibration_art_1000>;
213 nvmem-cell-names = "mac-address", "calibration";