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-boot = &led_status;
14 led-failsafe = &led_status;
15 led-running = &led_status;
16 led-upgrade = &led_status;
20 compatible = "cfi-flash";
21 reg = <0x1f000000 0x800000>;
26 compatible = "fixed-partitions";
38 reg = <0x30000 0x10000>;
42 factory: partition@40000 {
44 reg = <0x40000 0x10000>;
49 compatible = "denx,uimage";
51 reg = <0x50000 0x7b0000>;
57 compatible = "gpio-leds";
60 label = "mofi3500-3gn:green:usb";
61 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
62 trigger-sources = <&otg_port1>;
63 linux,default-trigger = "usbport";
67 label = "mofi3500-3gn:green:3g";
68 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
72 label = "mofi3500-3gn:green:status";
73 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
77 label = "mofi3500-3gn:green:wps";
78 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
83 compatible = "gpio-keys-polled";
88 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
89 linux,code = <KEY_RESTART>;
94 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
95 linux,code = <KEY_CONNECT>;
100 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
101 linux,code = <KEY_WPS_BUTTON>;
107 state_default: pinctrl0 {
109 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
110 ralink,function = "gpio";
116 mediatek,portmap = <0x2f>;
121 ralink,mtd-eeprom = <&factory 0>;