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 led-boot = &led_security;
14 led-failsafe = &led_security;
15 led-running = &led_security;
16 led-upgrade = &led_security;
20 compatible = "cfi-flash";
21 reg = <0x1f000000 0x800000>;
26 compatible = "fixed-partitions";
38 reg = <0x30000 0x10000>;
42 factory: partition@40000 {
44 reg = <0x40000 0x10000>;
49 compatible = "denx,uimage";
51 reg = <0x50000 0x3b0000>;
57 compatible = "gpio-leds";
59 led_security: security {
60 label = "v22rw-2x2:green:security";
61 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
65 label = "v22rw-2x2:red:wps";
66 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
71 compatible = "gpio-keys-polled";
76 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_RESTART>;
82 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_WPS_BUTTON>;
89 state_default: pinctrl0 {
91 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
92 ralink,function = "gpio";
98 mediatek,portmap = <0x2f>;
102 ralink,mtd-eeprom = <&factory 0>;