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>;
50 reg = <0x50000 0x7b0000>;
56 compatible = "gpio-leds";
59 label = "mofi3500-3gn:green:usb";
60 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
61 trigger-sources = <&otg_port1>;
62 linux,default-trigger = "usbport";
66 label = "mofi3500-3gn:green:3g";
67 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
71 label = "mofi3500-3gn:green:status";
72 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
76 label = "mofi3500-3gn:green:wps";
77 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
82 compatible = "gpio-keys-polled";
87 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
88 linux,code = <KEY_RESTART>;
93 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
94 linux,code = <KEY_CONNECT>;
99 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
100 linux,code = <KEY_WPS_BUTTON>;
106 state_default: pinctrl0 {
108 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
109 ralink,function = "gpio";
115 mediatek,portmap = <0x2f>;
120 ralink,mtd-eeprom = <&factory 0>;