5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "allnet,all0239-3g", "ralink,rt3052-soc";
10 model = "Allnet ALL0239-3G";
13 led-status = &led_status;
18 compatible = "cfi-flash";
19 reg = <0x1f000000 0x800000>;
33 reg = <0x30000 0x10000>;
37 factory: partition@40000 {
39 reg = <0x40000 0x10000>;
45 reg = <0x50000 0x7b0000>;
50 compatible = "gpio-leds";
53 label = "all0239-3g:green:usb";
54 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
58 label = "all0239-3g:green:3g";
59 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
63 label = "all0239-3g:green:status";
64 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
68 label = "all0239-3g:green:wps";
69 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
74 compatible = "gpio-keys-polled";
79 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_RESTART>;
85 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_CONNECT>;
91 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_WPS_BUTTON>;
98 state_default: pinctrl0 {
100 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
101 ralink,function = "gpio";
107 mtd-mac-address = <&factory 0x28>;
112 mediatek,portmap = <0x3e>;
116 ralink,mtd-eeprom = <&factory 0>;