3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "ralink,v22rw-2x2", "ralink,rt3052-soc";
9 model = "Ralink AP-RT3052-V22RW-2X2";
12 led-boot = &led_security;
13 led-failsafe = &led_security;
14 led-running = &led_security;
15 led-upgrade = &led_security;
19 compatible = "cfi-flash";
20 reg = <0x1f000000 0x800000>;
25 compatible = "fixed-partitions";
37 reg = <0x30000 0x10000>;
41 factory: partition@40000 {
43 reg = <0x40000 0x10000>;
47 compatible = "fixed-layout";
51 eeprom_factory_0: eeprom@0 {
58 compatible = "denx,uimage";
60 reg = <0x50000 0x3b0000>;
66 compatible = "gpio-leds";
68 led_security: security {
69 label = "green:security";
70 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
74 function = LED_FUNCTION_WPS;
75 color = <LED_COLOR_ID_RED>;
76 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
81 compatible = "gpio-keys-polled";
86 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_RESTART>;
92 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
93 linux,code = <KEY_WPS_BUTTON>;
100 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
106 mediatek,portmap = <0x2f>;
110 nvmem-cells = <&eeprom_factory_0>;
111 nvmem-cell-names = "eeprom";