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 {
45 compatible = "nvmem-cells";
47 reg = <0x40000 0x10000>;
52 eeprom_factory_0: eeprom@0 {
56 macaddr_factory_28: macaddr@28 {
62 compatible = "denx,uimage";
64 reg = <0x50000 0x7b0000>;
70 compatible = "gpio-leds";
74 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
75 trigger-sources = <&otg_port1>;
76 linux,default-trigger = "usbport";
81 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
86 compatible = "gpio-keys-polled";
91 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_RESTART>;
97 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
98 linux,code = <KEY_WPS_BUTTON>;
105 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
111 nvmem-cells = <&macaddr_factory_28>;
112 nvmem-cell-names = "mac-address";
116 mediatek,portmap = <0x3e>;
120 nvmem-cells = <&eeprom_factory_0>;
121 nvmem-cell-names = "eeprom";