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-polled";
88 linux,code = <KEY_RESTART>;
89 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
90 debounce-interval = <60>;
95 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
96 debounce-interval = <60>;
100 linux,code = <KEY_WPS_BUTTON>;
101 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
102 debounce-interval = <60>;
106 linux,code = <BTN_6>;
107 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
108 debounce-interval = <60>;
112 linux,code = <BTN_5>;
113 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
114 debounce-interval = <60>;
118 linux,code = <BTN_7>;
119 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
120 debounce-interval = <60>;
125 compatible = "gpio-export";
128 gpio-export,name = "buffalo:power:usb";
129 gpio-export,output = <1>;
130 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
135 compatible = "mtd-concat";
137 devices = <&flash0 &flash1>;
140 compatible = "fixed-partitions";
141 #address-cells = <1>;
145 reg = <0x0000000 0x0040000>;
150 label = "u-boot-env";
151 reg = <0x0040000 0x0010000>;
155 art: partition@50000 {
157 reg = <0x0050000 0x0010000>;
162 compatible = "denx,uimage";
164 reg = <0x0060000 0x1f90000>;
168 label = "user_property";
169 reg = <0x1ff0000 0x0010000>;
181 #address-cells = <1>;
185 usb_ochi_port: port@1 {
187 #trigger-source-cells = <0>;
192 #address-cells = <1>;
196 usb_echi_port: port@1 {
198 #trigger-source-cells = <0>;
206 compatible = "pci168c,0029";
207 reg = <0x8800 0 0 0 0>;
214 compatible = "pci168c,0029";
215 reg = <0x9000 0 0 0 0>;
236 compatible = "jedec,spi-nor";
238 spi-max-frequency = <104000000>;
243 compatible = "jedec,spi-nor";
245 spi-max-frequency = <104000000>;
253 phy4: ethernet-phy@4 {
262 mtd-mac-address = <&art 0x120c>;
273 mtd-mac-address = <&art 0x520c>;
274 mtd-mac-address-increment = <1>;
276 phy-handle = <&phy4>;