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";
15 led-failsafe = &led_diag;
16 led-upgrade = &led_diag;
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 compatible = "gpio-leds";
43 label = "buffalo:amber:band2g";
44 gpios = <&ath9k0 1 GPIO_ACTIVE_LOW>;
48 label = "buffalo:green:usb";
49 gpios = <&ath9k0 3 GPIO_ACTIVE_LOW>;
50 trigger-sources = <&usb_ohci_port>, <&usb_ehci_port>;
51 linux,default-trigger = "usbport";
55 label = "buffalo:green:band2g";
56 gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "phy0tpt";
61 label = "buffalo:green:band5g";
62 gpios = <&ath9k1 1 GPIO_ACTIVE_LOW>;
63 linux,default-trigger = "phy1tpt";
67 label = "buffalo:green:router";
68 gpios = <&ath9k1 3 GPIO_ACTIVE_LOW>;
72 label = "buffalo:blue:movie_engine";
73 gpios = <&ath9k1 4 GPIO_ACTIVE_LOW>;
77 label = "buffalo:amber:band5g";
78 gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
83 compatible = "gpio-keys";
86 linux,code = <KEY_RESTART>;
87 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
88 debounce-interval = <60>;
93 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
94 debounce-interval = <60>;
98 linux,code = <KEY_WPS_BUTTON>;
99 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
100 debounce-interval = <60>;
104 linux,code = <BTN_6>;
105 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
106 debounce-interval = <60>;
110 linux,code = <BTN_5>;
111 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
112 debounce-interval = <60>;
116 linux,code = <BTN_7>;
117 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
118 debounce-interval = <60>;
123 compatible = "gpio-export";
126 gpio-export,name = "buffalo:power:usb";
127 gpio-export,output = <1>;
128 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
133 compatible = "mtd-concat";
135 devices = <&flash0 &flash1>;
138 compatible = "fixed-partitions";
139 #address-cells = <1>;
143 reg = <0x0000000 0x0040000>;
148 label = "u-boot-env";
149 reg = <0x0040000 0x0010000>;
153 art: partition@50000 {
155 reg = <0x0050000 0x0010000>;
160 compatible = "denx,uimage";
162 reg = <0x0060000 0x1f90000>;
166 label = "user_property";
167 reg = <0x1ff0000 0x0010000>;
179 #address-cells = <1>;
183 usb_ohci_port: port@1 {
185 #trigger-source-cells = <0>;
190 #address-cells = <1>;
194 usb_ehci_port: port@1 {
196 #trigger-source-cells = <0>;
204 compatible = "pci168c,0029";
205 reg = <0x8800 0 0 0 0>;
212 compatible = "pci168c,0029";
213 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>;