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>;
36 reg = <0x30000 0x10000>;
40 factory: partition@40000 {
42 reg = <0x40000 0x10000>;
48 reg = <0x50000 0x7b0000>;
53 compatible = "gpio-leds";
56 label = "w502u:blue:usb";
57 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
61 label = "w502u:blue:wps";
62 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
67 compatible = "gpio-keys-polled";
74 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
75 linux,code = <KEY_RESTART>;
80 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_WPS_BUTTON>;
87 state_default: pinctrl0 {
89 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
90 ralink,function = "gpio";
96 mtd-mac-address = <&factory 0x28>;
100 mediatek,portmap = <0x3e>;
104 ralink,mtd-eeprom = <&factory 0>;