3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 compatible = "ralink,v22rw-2x2", "ralink,rt3052-soc";
8 model = "Ralink AP-RT3052-V22RW-2X2";
11 led-boot = &led_security;
12 led-failsafe = &led_security;
13 led-running = &led_security;
14 led-upgrade = &led_security;
18 compatible = "cfi-flash";
19 reg = <0x1f000000 0x800000>;
24 compatible = "fixed-partitions";
36 reg = <0x30000 0x10000>;
40 factory: partition@40000 {
41 compatible = "nvmem-cells";
43 reg = <0x40000 0x10000>;
48 eeprom_factory_0: eeprom@0 {
54 compatible = "denx,uimage";
56 reg = <0x50000 0x3b0000>;
62 compatible = "gpio-leds";
64 led_security: security {
65 label = "green:security";
66 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
71 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
76 compatible = "gpio-keys-polled";
81 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
82 linux,code = <KEY_RESTART>;
87 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
88 linux,code = <KEY_WPS_BUTTON>;
95 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
101 mediatek,portmap = <0x2f>;
105 nvmem-cells = <&eeprom_factory_0>;
106 nvmem-cell-names = "eeprom";