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 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 compatible = "gpio-leds";
39 label = "buffalo:amber:band2g";
40 gpios = <&ath9k0 1 GPIO_ACTIVE_LOW>;
44 label = "buffalo:green:usb";
45 gpios = <&ath9k0 3 GPIO_ACTIVE_LOW>;
46 trigger-sources = <&usb_ohci_port>, <&usb_ehci_port>;
47 linux,default-trigger = "usbport";
51 label = "buffalo:green:band2g";
52 gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
53 linux,default-trigger = "phy0tpt";
57 label = "buffalo:green:band5g";
58 gpios = <&ath9k1 1 GPIO_ACTIVE_LOW>;
59 linux,default-trigger = "phy1tpt";
63 label = "buffalo:green:router";
64 gpios = <&ath9k1 3 GPIO_ACTIVE_LOW>;
68 label = "buffalo:blue:movie_engine";
69 gpios = <&ath9k1 4 GPIO_ACTIVE_LOW>;
73 label = "buffalo:amber:band5g";
74 gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
79 compatible = "gpio-keys";
82 linux,code = <KEY_RESTART>;
83 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
84 debounce-interval = <60>;
89 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
90 debounce-interval = <60>;
94 linux,code = <KEY_WPS_BUTTON>;
95 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
96 debounce-interval = <60>;
100 linux,code = <BTN_6>;
101 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
102 debounce-interval = <60>;
106 linux,code = <BTN_5>;
107 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
108 debounce-interval = <60>;
112 linux,code = <BTN_7>;
113 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
114 debounce-interval = <60>;
119 compatible = "gpio-export";
122 gpio-export,name = "buffalo:power:usb";
123 gpio-export,output = <1>;
124 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
129 compatible = "mtd-concat";
131 devices = <&flash0 &flash1>;
134 compatible = "fixed-partitions";
135 #address-cells = <1>;
139 reg = <0x0000000 0x0040000>;
144 label = "u-boot-env";
145 reg = <0x0040000 0x0010000>;
149 art: partition@50000 {
151 reg = <0x0050000 0x0010000>;
156 compatible = "denx,uimage";
158 reg = <0x0060000 0x1f90000>;
162 label = "user_property";
163 reg = <0x1ff0000 0x0010000>;
175 #address-cells = <1>;
179 usb_ohci_port: port@1 {
181 #trigger-source-cells = <0>;
186 #address-cells = <1>;
190 usb_ehci_port: port@1 {
192 #trigger-source-cells = <0>;
200 compatible = "pci168c,0029";
201 reg = <0x8800 0 0 0 0>;
208 compatible = "pci168c,0029";
209 reg = <0x9000 0 0 0 0>;
231 compatible = "jedec,spi-nor";
233 spi-max-frequency = <50000000>;
238 compatible = "jedec,spi-nor";
240 spi-max-frequency = <50000000>;
248 phy4: ethernet-phy@4 {
257 mtd-mac-address = <&art 0x120c>;
268 mtd-mac-address = <&art 0x520c>;
269 mtd-mac-address-increment = <1>;
271 phy-handle = <&phy4>;