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-ag300h", "qca,ar7161";
11 model = "Buffalo WZR-HP-AG300H/WZR-600DHP";
20 compatible = "fixed-clock";
22 clock-output-names = "ref";
23 clock-frequency = <40000000>;
27 compatible = "gpio-leds";
30 label = "buffalo:red:diag";
31 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
36 // those leds are indeed attached to the wifi chips
38 compatible = "gpio-leds";
40 label = "buffalo:amber:band2g";
41 gpios = <&ath9k0 1 GPIO_ACTIVE_LOW>;
45 label = "buffalo:green:usb";
46 gpios = <&ath9k0 3 GPIO_ACTIVE_LOW>;
47 trigger-sources = <&usb_ochi_port>, <&usb_echi_port>;
48 linux,default-trigger = "usbport";
52 label = "buffalo:green:band2g";
53 gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy0tpt";
58 label = "buffalo:green:band5g";
59 gpios = <&ath9k1 1 GPIO_ACTIVE_LOW>;
60 linux,default-trigger = "phy1tpt";
64 label = "buffalo:green:router";
65 gpios = <&ath9k1 3 GPIO_ACTIVE_LOW>;
69 label = "buffalo:blue:movie_engine";
70 gpios = <&ath9k1 4 GPIO_ACTIVE_LOW>;
74 label = "buffalo:amber:band5g";
75 gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
80 compatible = "gpio-keys-polled";
84 linux,code = <KEY_RESTART>;
85 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
86 debounce-interval = <60>;
91 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
92 debounce-interval = <60>;
96 linux,code = <KEY_WPS_BUTTON>;
97 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
98 debounce-interval = <60>;
102 linux,code = <BTN_6>;
103 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
104 debounce-interval = <60>;
108 linux,code = <BTN_5>;
109 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
110 debounce-interval = <60>;
114 linux,code = <BTN_7>;
115 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
116 debounce-interval = <60>;
121 compatible = "gpio-export";
124 gpio-export,name = "buffalo:power:usb";
125 gpio-export,output = <1>;
126 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
131 compatible = "mtd-concat";
133 devices = <&flash0 &flash1>;
136 compatible = "fixed-partitions";
137 #address-cells = <1>;
141 reg = <0x0000000 0x0040000>;
146 label = "u-boot-env";
147 reg = <0x0040000 0x0010000>;
151 art: partition@50000 {
153 reg = <0x0050000 0x0010000>;
158 compatible = "denx,uimage";
160 reg = <0x0060000 0x1f90000>;
164 label = "user_property";
165 reg = <0x1ff0000 0x0010000>;
177 #address-cells = <1>;
181 usb_ochi_port: port@1 {
183 #trigger-source-cells = <0>;
188 #address-cells = <1>;
192 usb_echi_port: port@1 {
194 #trigger-source-cells = <0>;
202 compatible = "pci168c,0029";
203 reg = <0x8800 0 0 0 0>;
210 compatible = "pci168c,0029";
211 reg = <0x9000 0 0 0 0>;
232 compatible = "jedec,spi-nor";
234 spi-max-frequency = <104000000>;
239 compatible = "jedec,spi-nor";
241 spi-max-frequency = <104000000>;
249 phy4: ethernet-phy@4 {
258 mtd-mac-address = <&art 0x120c>;
269 mtd-mac-address = <&art 0x520c>;
270 mtd-mac-address-increment = <1>;
272 phy-handle = <&phy4>;