3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 compatible = "unbranded,wr512-3gn", "ralink,rt3052-soc";
11 led-failsafe = &led_wps;
12 led-running = &led_wps;
13 led-upgrade = &led_wps;
17 compatible = "gpio-leds";
20 label = "wr512-3gn:green:3g";
21 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
25 label = "wr512-3gn:green:gateway";
26 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
30 label = "wr512-3gn:green:ap";
31 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
35 label = "wr512-3gn:green:wps";
36 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
40 label = "wr512-3gn:green:station";
41 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
46 compatible = "gpio-keys-polled";
51 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
57 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
64 state_default: pinctrl0 {
66 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
67 ralink,function = "gpio";
73 mediatek,portmap = <0x2f>;
77 ralink,mtd-eeprom = <&factory 0>;