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 {
44 reg = <0x40000 0x10000>;
48 compatible = "fixed-layout";
52 eeprom_factory_0: eeprom@0 {
56 macaddr_factory_4: macaddr@4 {
63 compatible = "denx,uimage";
65 reg = <0x50000 0x3b0000>;
71 compatible = "realtek,rtl8366s";
72 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
73 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
77 compatible = "gpio-keys-polled";
78 poll-interval = <100>;
82 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_WPS_BUTTON>;
87 label = "router_switch";
88 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
94 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
95 linux,code = <KEY_RESTART>;
100 compatible = "gpio-leds";
103 label = "green:router";
104 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
109 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
113 label = "orange:security_g";
114 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
118 label = "orange:security_n";
119 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
126 groups = "i2c", "uartlite", "mdio";
133 nvmem-cells = <&macaddr_factory_4>;
134 nvmem-cell-names = "mac-address";
137 mediatek,fixed-link = <1000 1 1 1>;
143 phy0: ethernet-phy@0 {
155 nvmem-cells = <&eeprom_factory_0>;
156 nvmem-cell-names = "eeprom";