5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "tenda,w306r-v2", "ralink,rt3052-soc";
10 model = "Tenda W306R V2.0";
13 led-status = &led_sys;
17 compatible = "cfi-flash";
18 reg = <0x1f000000 0x800000>;
32 reg = <0x30000 0x10000>;
36 factory: partition@40000 {
38 reg = <0x40000 0x10000>;
44 reg = <0x50000 0x3b0000>;
49 compatible = "gpio-leds";
52 label = "w306r-v20:green:sys";
53 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
57 label = "w306r-v20:green:wps";
58 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
63 compatible = "gpio-keys-polled";
70 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_RESTART>;
77 state_default: pinctrl0 {
79 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
80 ralink,function = "gpio";
86 mtd-mac-address = <&factory 0x28>;
90 mediatek,portmap = <0x3e>;
94 ralink,mtd-eeprom = <&factory 0>;