1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.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 = "fixed-clock";
22 clock-frequency = <40000000>;
26 compatible = "gpio-keys";
30 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
32 debounce-interval = <60>;
38 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
39 debounce-interval = <60>;
45 linux,input-type = <EV_SW>;
46 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
47 debounce-interval = <60>;
51 label = "movie_engine";
53 linux,input-type = <EV_SW>;
54 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
55 debounce-interval = <60>;
60 linux,code = <KEY_WPS_BUTTON>;
61 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
62 debounce-interval = <60>;
67 compatible = "gpio-leds";
70 label = "buffalo:red:diag";
71 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
76 compatible = "gpio-leds";
79 label = "buffalo:blue:usb";
80 gpios = <&ath9k 4 GPIO_ACTIVE_LOW>;
81 trigger-sources = <&hub_port>;
82 linux,default-trigger = "usbport";
86 label = "buffalo:green:wireless";
87 gpios = <&ath9k 5 GPIO_ACTIVE_LOW>;
88 linux,default-trigger = "phy0tpt";
92 label = "buffalo:orange:security";
93 gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
97 label = "buffalo:green:router";
98 gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
102 label = "buffalo:blue:movie_engine_on";
103 gpios = <&ath9k 8 GPIO_ACTIVE_LOW>;
107 label = "buffalo:blue:movie_engine_off";
108 gpios = <&ath9k 9 GPIO_ACTIVE_LOW>;
113 compatible = "gpio-export";
117 gpio-export,name = "buffalo:usb-power";
118 gpio-export,output = <1>;
119 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
124 compatible = "mtd-concat";
125 devices = <&flash0 &flash1>;
128 compatible = "fixed-partitions";
129 #address-cells = <1>;
139 reg = <0x40000 0x10000>;
140 label = "u-boot-env";
143 art: partition@50000 {
144 reg = <0x50000 0x10000>;
150 compatible = "denx,uimage";
151 reg = <0x60000 0x1f60000>;
156 reg = <0x1fc0000 0x40000>;
157 label = "user_property";
171 compatible = "jedec,spi-nor";
173 spi-max-frequency = <25000000>;
177 compatible = "jedec,spi-nor";
179 spi-max-frequency = <25000000>;
188 phy0: ethernet-phy@0 {
197 pll-data = <0x1c000000 0x00000101 0x00001616>;
199 mtd-mac-address = <&art 0x120c>;
202 phy-handle = <&phy0>;
209 compatible = "pci168c,002a";
210 reg = <0x0000 0 0 0 0>;
211 mtd-mac-address = <&art 0x120c>;
231 #address-cells = <1>;
237 #trigger-source-cells = <0>;