5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "mofinetwork,mofi3500-3gn", "ralink,rt3052-soc";
10 model = "MoFi Network MOFI3500-3GN";
13 led-status = &led_status;
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 = "mofi3500-3gn:green:usb";
53 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
57 label = "mofi3500-3gn:green:3g";
58 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
62 label = "mofi3500-3gn:green:status";
63 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
67 label = "mofi3500-3gn:green: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 7 GPIO_ACTIVE_LOW>;
85 linux,code = <KEY_CONNECT>;
90 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
91 linux,code = <KEY_WPS_BUTTON>;
97 state_default: pinctrl0 {
99 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
100 ralink,function = "gpio";
106 mediatek,portmap = <0x2f>;
111 ralink,mtd-eeprom = <&factory 0>;