5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
11 compatible = "buffalo,wzr-agl300nh", "ralink,rt2880-soc";
12 model = "Buffalo WZR-AGL300NH";
15 led-status = &led_router;
19 compatible = "cfi-flash";
20 reg = <0x1f000000 0x800000>;
25 compatible = "fixed-partitions";
37 reg = <0x30000 0x10000>;
41 factory: partition@40000 {
43 reg = <0x40000 0x10000>;
49 reg = <0x50000 0x3b0000>;
55 compatible = "realtek,rtl8366s";
56 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
57 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
61 compatible = "gpio-keys-polled";
62 poll-interval = <100>;
66 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
67 linux,code = <KEY_WPS_BUTTON>;
71 label = "router_switch";
72 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
78 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_RESTART>;
84 compatible = "gpio-leds";
87 label = "wzr-agl300nh:green:router";
88 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
92 label = "wzr-agl300nh:red:diag";
93 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
97 label = "wzr-agl300nh:orange:security_g";
98 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
102 label = "wzr-agl300nh:orange:security_n";
103 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
113 state_default: pinctrl0 {
115 ralink,group = "i2c", "uartlite", "mdio";
116 ralink,function = "gpio";
123 mtd-mac-address = <&factory 0x4>;
126 mediatek,fixed-link = <1000 1 1 1>;
132 phy0: ethernet-phy@0 {
144 ralink,mtd-eeprom = <&factory 0>;