3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 compatible = "alfa-network,w502u", "ralink,rt3052-soc";
8 model = "ALFA Network W502U";
12 led-failsafe = &led_wps;
13 led-running = &led_wps;
14 led-upgrade = &led_wps;
18 bootargs = "console=ttyS0,115200";
22 compatible = "cfi-flash";
23 reg = <0x1f000000 0x800000>;
28 compatible = "fixed-partitions";
40 reg = <0x30000 0x10000>;
44 factory: partition@40000 {
46 reg = <0x40000 0x10000>;
50 compatible = "fixed-layout";
54 eeprom_factory_0: eeprom@0 {
58 macaddr_factory_28: macaddr@28 {
65 compatible = "denx,uimage";
67 reg = <0x50000 0x7b0000>;
73 compatible = "gpio-leds";
77 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
78 trigger-sources = <&otg_port1>;
79 linux,default-trigger = "usbport";
84 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
89 compatible = "gpio-keys-polled";
94 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
95 linux,code = <KEY_RESTART>;
100 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
101 linux,code = <KEY_WPS_BUTTON>;
108 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
114 nvmem-cells = <&macaddr_factory_28>;
115 nvmem-cell-names = "mac-address";
119 mediatek,portmap = <0x3e>;
123 nvmem-cells = <&eeprom_factory_0>;
124 nvmem-cell-names = "eeprom";