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>;
36 default-state = "off";
41 // those leds are indeed attached to the wifi chips
43 compatible = "gpio-leds";
45 label = "buffalo:amber:band2g";
46 gpios = <&ath9k0 1 GPIO_ACTIVE_LOW>;
47 default-state = "off";
51 label = "buffalo:green:usb";
52 gpios = <&ath9k0 3 GPIO_ACTIVE_LOW>;
53 default-state = "off";
54 trigger-sources = <&usb_ochi_port>, <&usb_echi_port>;
55 linux,default-trigger = "usbport";
59 label = "buffalo:green:band2g";
60 gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
61 default-state = "off";
62 linux,default-trigger = "phy0tpt";
66 label = "buffalo:green:band5g";
67 gpios = <&ath9k1 1 GPIO_ACTIVE_LOW>;
68 default-state = "off";
69 linux,default-trigger = "phy1tpt";
73 label = "buffalo:green:router";
74 gpios = <&ath9k1 3 GPIO_ACTIVE_LOW>;
75 default-state = "off";
79 label = "buffalo:blue:movie_engine";
80 gpios = <&ath9k1 4 GPIO_ACTIVE_LOW>;
81 default-state = "off";
85 label = "buffalo:amber:band5g";
86 gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
87 default-state = "off";
92 compatible = "gpio-keys-polled";
96 linux,code = <KEY_RESTART>;
97 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
98 debounce-interval = <60>;
102 linux,code = <BTN_2>;
103 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
104 debounce-interval = <60>;
108 linux,code = <KEY_WPS_BUTTON>;
109 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
110 debounce-interval = <60>;
114 linux,code = <BTN_6>;
115 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
116 debounce-interval = <60>;
120 linux,code = <BTN_5>;
121 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
122 debounce-interval = <60>;
126 linux,code = <BTN_7>;
127 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
128 debounce-interval = <60>;
133 compatible = "gpio-export";
136 gpio-export,name = "buffalo:power:usb";
137 gpio-export,output = <1>;
138 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
143 compatible = "mtd-concat";
145 devices = <&flash0 &flash1>;
148 compatible = "fixed-partitions";
149 #address-cells = <1>;
153 reg = <0x0000000 0x0040000>;
158 label = "u-boot-env";
159 reg = <0x0040000 0x0010000>;
163 art: partition@50000 {
165 reg = <0x0050000 0x0010000>;
171 reg = <0x0060000 0x1f90000>;
175 label = "user_property";
176 reg = <0x1ff0000 0x0010000>;
188 #address-cells = <1>;
192 usb_ochi_port: port@1 {
194 #trigger-source-cells = <0>;
199 #address-cells = <1>;
203 usb_echi_port: port@1 {
205 #trigger-source-cells = <0>;
213 compatible = "pci168c,0029";
214 reg = <0x8800 0 0 0 0>;
221 compatible = "pci168c,0029";
222 reg = <0x9000 0 0 0 0>;
243 compatible = "jedec,spi-nor";
245 spi-max-frequency = <104000000>;
250 compatible = "jedec,spi-nor";
252 spi-max-frequency = <104000000>;
260 phy4: ethernet-phy@4 {
269 mtd-mac-address = <&art 0x120c>;
280 mtd-mac-address = <&art 0x520c>;
281 mtd-mac-address-increment = <1>;
283 phy-handle = <&phy4>;