5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "alfa-network,w502u", "ralink,rt3052-soc";
10 model = "ALFA Network W502U";
14 led-failsafe = &led_wps;
15 led-running = &led_wps;
16 led-upgrade = &led_wps;
20 bootargs = "console=ttyS0,115200";
24 compatible = "cfi-flash";
25 reg = <0x1f000000 0x800000>;
30 compatible = "fixed-partitions";
42 reg = <0x30000 0x10000>;
46 factory: partition@40000 {
48 reg = <0x40000 0x10000>;
53 compatible = "denx,uimage";
55 reg = <0x50000 0x7b0000>;
61 compatible = "gpio-leds";
64 label = "w502u:blue:usb";
65 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
66 trigger-sources = <&otg_port1>;
67 linux,default-trigger = "usbport";
71 label = "w502u:blue:wps";
72 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
77 compatible = "gpio-keys-polled";
82 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_RESTART>;
88 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
89 linux,code = <KEY_WPS_BUTTON>;
95 state_default: pinctrl0 {
97 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
98 ralink,function = "gpio";
104 mtd-mac-address = <&factory 0x28>;
108 mediatek,portmap = <0x3e>;
112 ralink,mtd-eeprom = <&factory 0>;