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-boot = &led_router;
16 led-failsafe = &led_router;
17 led-running = &led_router;
18 led-upgrade = &led_router;
22 compatible = "cfi-flash";
23 reg = <0x1f000000 0x800000>;
28 compatible = "fixed-partitions";
40 reg = <0x30000 0x10000>;
44 factory: partition@40000 {
46 reg = <0x40000 0x10000>;
51 compatible = "denx,uimage";
53 reg = <0x50000 0x3b0000>;
59 compatible = "realtek,rtl8366s";
60 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
61 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
65 compatible = "gpio-keys-polled";
66 poll-interval = <100>;
70 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_WPS_BUTTON>;
75 label = "router_switch";
76 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
82 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_RESTART>;
88 compatible = "gpio-leds";
91 label = "wzr-agl300nh:green:router";
92 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
96 label = "wzr-agl300nh:red:diag";
97 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
101 label = "wzr-agl300nh:orange:security_g";
102 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
106 label = "wzr-agl300nh:orange:security_n";
107 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
117 state_default: pinctrl0 {
119 ralink,group = "i2c", "uartlite", "mdio";
120 ralink,function = "gpio";
127 mtd-mac-address = <&factory 0x4>;
130 mediatek,fixed-link = <1000 1 1 1>;
136 phy0: ethernet-phy@0 {
148 ralink,mtd-eeprom = <&factory 0>;