5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "ralink,v22rw-2x2", "ralink,rt3052-soc";
10 model = "Ralink AP-RT3052-V22RW-2X2";
13 compatible = "cfi-flash";
14 reg = <0x1f000000 0x800000>;
28 reg = <0x30000 0x10000>;
32 factory: partition@40000 {
34 reg = <0x40000 0x10000>;
40 reg = <0x50000 0x3b0000>;
45 compatible = "gpio-leds";
48 label = "v22rw-2x2:green:security";
49 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
53 label = "v22rw-2x2:red:wps";
54 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
59 compatible = "gpio-keys-polled";
66 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
67 linux,code = <KEY_RESTART>;
72 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
73 linux,code = <KEY_WPS_BUTTON>;
79 state_default: pinctrl0 {
81 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
82 ralink,function = "gpio";
88 mediatek,portmap = <0x2f>;
92 ralink,mtd-eeprom = <&factory 0>;