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";
14 compatible = "cfi-flash";
15 reg = <0x1f000000 0x800000>;
29 reg = <0x30000 0x10000>;
33 factory: partition@40000 {
35 reg = <0x40000 0x10000>;
41 reg = <0x50000 0x7b0000>;
46 compatible = "gpio-leds";
49 label = "all0239-3g:green:usb";
50 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
54 label = "all0239-3g:green:3g";
55 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
59 label = "all0239-3g:green:status";
60 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
64 label = "all0239-3g:green:wps";
65 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
70 compatible = "gpio-keys-polled";
77 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
78 linux,code = <KEY_RESTART>;
83 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
84 linux,code = <KEY_CONNECT>;
89 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_WPS_BUTTON>;
96 state_default: pinctrl0 {
98 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
99 ralink,function = "gpio";
105 mtd-mac-address = <&factory 0x28>;
110 mediatek,portmap = <0x3e>;
114 ralink,mtd-eeprom = <&factory 0>;