3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
9 compatible = "buffalo,wzr-agl300nh", "ralink,rt2880-soc";
10 model = "Buffalo WZR-AGL300NH";
13 led-boot = &led_router;
14 led-failsafe = &led_router;
15 led-running = &led_router;
16 led-upgrade = &led_router;
20 compatible = "cfi-flash";
21 reg = <0x1f000000 0x800000>;
26 compatible = "fixed-partitions";
38 reg = <0x30000 0x10000>;
42 factory: partition@40000 {
43 compatible = "nvmem-cells";
45 reg = <0x40000 0x10000>;
50 eeprom_factory_0: eeprom@0 {
54 macaddr_factory_4: macaddr@4 {
60 compatible = "denx,uimage";
62 reg = <0x50000 0x3b0000>;
68 compatible = "realtek,rtl8366s";
69 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
70 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
74 compatible = "gpio-keys-polled";
75 poll-interval = <100>;
79 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_WPS_BUTTON>;
84 label = "router_switch";
85 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
91 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_RESTART>;
97 compatible = "gpio-leds";
100 label = "green:router";
101 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
106 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
110 label = "orange:security_g";
111 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
115 label = "orange:security_n";
116 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
123 groups = "i2c", "uartlite", "mdio";
130 nvmem-cells = <&macaddr_factory_4>;
131 nvmem-cell-names = "mac-address";
134 mediatek,fixed-link = <1000 1 1 1>;
140 phy0: ethernet-phy@0 {
152 nvmem-cells = <&eeprom_factory_0>;
153 nvmem-cell-names = "eeprom";