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 bootargs = "console=ttyS0,115200";
17 compatible = "cfi-flash";
18 reg = <0x1f000000 0x800000>;
32 reg = <0x30000 0x10000>;
36 factory: partition@40000 {
38 reg = <0x40000 0x10000>;
44 reg = <0x50000 0x7b0000>;
49 compatible = "gpio-leds";
52 label = "w502u:blue:usb";
53 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
57 label = "w502u:blue:wps";
58 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
63 compatible = "gpio-keys-polled";
70 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_RESTART>;
76 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
77 linux,code = <KEY_WPS_BUTTON>;
83 state_default: pinctrl0 {
85 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
86 ralink,function = "gpio";
92 mtd-mac-address = <&factory 0x28>;
96 mediatek,portmap = <0x3e>;
100 ralink,mtd-eeprom = <&factory 0>;