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";
20 compatible = "fixed-clock";
22 clock-frequency = <40000000>;
26 compatible = "gpio-keys-polled";
31 linux,code = <KEY_RESTART>;
32 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
33 debounce-interval = <60>;
39 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
40 debounce-interval = <60>;
46 linux,input-type = <EV_SW>;
47 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
48 debounce-interval = <60>;
52 label = "movie_engine";
54 linux,input-type = <EV_SW>;
55 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
56 debounce-interval = <60>;
61 linux,code = <KEY_WPS_BUTTON>;
62 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
63 debounce-interval = <60>;
68 compatible = "gpio-leds";
71 label = "buffalo:red:diag";
72 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
73 default-state = "off";
78 compatible = "gpio-leds";
81 label = "buffalo:blue:usb";
82 gpios = <&ath9k 4 GPIO_ACTIVE_LOW>;
83 default-state = "off";
84 trigger-sources = <&hub_port>;
85 linux,default-trigger = "usbport";
89 label = "buffalo:green:wireless";
90 gpios = <&ath9k 5 GPIO_ACTIVE_LOW>;
91 default-state = "off";
92 linux,default-trigger = "phy0tpt";
96 label = "buffalo:orange:security";
97 gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
98 default-state = "off";
102 label = "buffalo:green:router";
103 gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
104 default-state = "off";
108 label = "buffalo:blue:movie_engine_on";
109 gpios = <&ath9k 8 GPIO_ACTIVE_LOW>;
110 default-state = "off";
114 label = "buffalo:blue:movie_engine_off";
115 gpios = <&ath9k 9 GPIO_ACTIVE_LOW>;
116 default-state = "off";
121 compatible = "gpio-export";
125 gpio-export,name = "buffalo:usb-power";
126 gpio-export,output = <1>;
127 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
132 compatible = "mtd-concat";
133 devices = <&flash0 &flash1>;
136 compatible = "fixed-partitions";
137 #address-cells = <1>;
147 reg = <0x40000 0x10000>;
148 label = "u-boot-env";
151 art: partition@50000 {
152 reg = <0x50000 0x10000>;
158 reg = <0x60000 0x1f60000>;
163 reg = <0x1fc0000 0x40000>;
164 label = "user_property";
177 compatible = "jedec,spi-nor";
179 spi-max-frequency = <25000000>;
183 compatible = "jedec,spi-nor";
185 spi-max-frequency = <25000000>;
194 phy0: ethernet-phy@0 {
203 pll-data = <0x1c000000 0x00000101 0x00001616>;
205 mtd-mac-address = <&art 0x120c>;
208 phy-handle = <&phy0>;
215 compatible = "pci168c,002a";
216 reg = <0x0000 0 0 0 0>;
217 mtd-mac-address = <&art 0x120c>;
237 #address-cells = <1>;
243 #trigger-source-cells = <0>;