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 bootargs = "console=ttyS0,115200";
24 compatible = "fixed-clock";
26 clock-output-names = "ref";
27 clock-frequency = <40000000>;
31 compatible = "gpio-leds";
34 label = "buffalo:red:diag";
35 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
40 // those leds are indeed attached to the wifi chips
42 compatible = "gpio-leds";
44 label = "buffalo:amber:band2g";
45 gpios = <&ath9k0 1 GPIO_ACTIVE_LOW>;
49 label = "buffalo:green:usb";
50 gpios = <&ath9k0 3 GPIO_ACTIVE_LOW>;
51 trigger-sources = <&usb_ochi_port>, <&usb_echi_port>;
52 linux,default-trigger = "usbport";
56 label = "buffalo:green:band2g";
57 gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
58 linux,default-trigger = "phy0tpt";
62 label = "buffalo:green:band5g";
63 gpios = <&ath9k1 1 GPIO_ACTIVE_LOW>;
64 linux,default-trigger = "phy1tpt";
68 label = "buffalo:green:router";
69 gpios = <&ath9k1 3 GPIO_ACTIVE_LOW>;
73 label = "buffalo:blue:movie_engine";
74 gpios = <&ath9k1 4 GPIO_ACTIVE_LOW>;
78 label = "buffalo:amber:band5g";
79 gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
84 compatible = "gpio-keys";
87 linux,code = <KEY_RESTART>;
88 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
89 debounce-interval = <60>;
94 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
95 debounce-interval = <60>;
99 linux,code = <KEY_WPS_BUTTON>;
100 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
101 debounce-interval = <60>;
105 linux,code = <BTN_6>;
106 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
107 debounce-interval = <60>;
111 linux,code = <BTN_5>;
112 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
113 debounce-interval = <60>;
117 linux,code = <BTN_7>;
118 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
119 debounce-interval = <60>;
124 compatible = "gpio-export";
127 gpio-export,name = "buffalo:power:usb";
128 gpio-export,output = <1>;
129 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
134 compatible = "mtd-concat";
136 devices = <&flash0 &flash1>;
139 compatible = "fixed-partitions";
140 #address-cells = <1>;
144 reg = <0x0000000 0x0040000>;
149 label = "u-boot-env";
150 reg = <0x0040000 0x0010000>;
154 art: partition@50000 {
156 reg = <0x0050000 0x0010000>;
161 compatible = "denx,uimage";
163 reg = <0x0060000 0x1f90000>;
167 label = "user_property";
168 reg = <0x1ff0000 0x0010000>;
180 #address-cells = <1>;
184 usb_ochi_port: port@1 {
186 #trigger-source-cells = <0>;
191 #address-cells = <1>;
195 usb_echi_port: port@1 {
197 #trigger-source-cells = <0>;
205 compatible = "pci168c,0029";
206 reg = <0x8800 0 0 0 0>;
213 compatible = "pci168c,0029";
214 reg = <0x9000 0 0 0 0>;
235 compatible = "jedec,spi-nor";
237 spi-max-frequency = <104000000>;
242 compatible = "jedec,spi-nor";
244 spi-max-frequency = <104000000>;
252 phy4: ethernet-phy@4 {
261 mtd-mac-address = <&art 0x120c>;
272 mtd-mac-address = <&art 0x520c>;
273 mtd-mac-address-increment = <1>;
275 phy-handle = <&phy4>;