5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "alfanetworks,w502u", "ralink,rt3052-soc";
10 model = "ALFA Networks W502U";
13 led-status = &led_wps;
17 bootargs = "console=ttyS0,115200";
21 compatible = "cfi-flash";
22 reg = <0x1f000000 0x800000>;
27 compatible = "fixed-partitions";
39 reg = <0x30000 0x10000>;
43 factory: partition@40000 {
45 reg = <0x40000 0x10000>;
51 reg = <0x50000 0x7b0000>;
57 compatible = "gpio-leds";
60 label = "w502u:blue:usb";
61 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
62 trigger-sources = <&otg_port1>;
63 linux,default-trigger = "usbport";
67 label = "w502u:blue:wps";
68 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
73 compatible = "gpio-keys-polled";
78 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_RESTART>;
84 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
85 linux,code = <KEY_WPS_BUTTON>;
91 state_default: pinctrl0 {
93 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
94 ralink,function = "gpio";
100 mtd-mac-address = <&factory 0x28>;
104 mediatek,portmap = <0x3e>;
108 ralink,mtd-eeprom = <&factory 0>;