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 = "fixed-clock";
21 clock-frequency = <40000000>;
25 compatible = "gpio-keys";
29 linux,code = <KEY_RESTART>;
30 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
31 debounce-interval = <60>;
37 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
38 debounce-interval = <60>;
44 linux,input-type = <EV_SW>;
45 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
46 debounce-interval = <60>;
50 label = "movie_engine";
52 linux,input-type = <EV_SW>;
53 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
54 debounce-interval = <60>;
59 linux,code = <KEY_WPS_BUTTON>;
60 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
61 debounce-interval = <60>;
66 compatible = "gpio-leds";
70 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
75 compatible = "gpio-leds";
79 gpios = <&ath9k 4 GPIO_ACTIVE_LOW>;
80 trigger-sources = <&hub_port>;
81 linux,default-trigger = "usbport";
85 label = "green:wireless";
86 gpios = <&ath9k 5 GPIO_ACTIVE_LOW>;
87 linux,default-trigger = "phy0tpt";
91 label = "orange:security";
92 gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
96 label = "green:router";
97 gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
101 label = "blue:movie_engine_on";
102 gpios = <&ath9k 8 GPIO_ACTIVE_LOW>;
106 label = "blue:movie_engine_off";
107 gpios = <&ath9k 9 GPIO_ACTIVE_LOW>;
112 compatible = "gpio-export";
116 gpio-export,name = "buffalo:usb-power";
117 gpio-export,output = <1>;
118 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
123 compatible = "mtd-concat";
124 devices = <&flash0 &flash1>;
127 compatible = "fixed-partitions";
128 #address-cells = <1>;
138 reg = <0x40000 0x10000>;
139 label = "u-boot-env";
142 art: partition@50000 {
143 reg = <0x50000 0x10000>;
149 compatible = "denx,uimage";
150 reg = <0x60000 0x1f60000>;
155 reg = <0x1fc0000 0x40000>;
156 label = "user_property";
169 compatible = "jedec,spi-nor";
171 spi-max-frequency = <25000000>;
175 compatible = "jedec,spi-nor";
177 spi-max-frequency = <25000000>;
186 phy0: ethernet-phy@0 {
195 pll-data = <0x1c000000 0x00000101 0x00001616>;
197 mtd-mac-address = <&art 0x120c>;
200 phy-handle = <&phy0>;
207 compatible = "pci168c,002a";
208 reg = <0x0000 0 0 0 0>;
209 mtd-mac-address = <&art 0x120c>;
225 #address-cells = <1>;
231 #trigger-source-cells = <0>;