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>;
24 compatible = "fixed-partitions";
36 reg = <0x30000 0x10000>;
40 factory: partition@40000 {
42 reg = <0x40000 0x10000>;
48 reg = <0x50000 0x7b0000>;
54 compatible = "gpio-leds";
57 label = "all0239-3g:green:usb";
58 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
62 label = "all0239-3g:green:3g";
63 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
67 label = "all0239-3g:green:status";
68 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
72 label = "all0239-3g:green:wps";
73 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
78 compatible = "gpio-keys-polled";
83 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
84 linux,code = <KEY_RESTART>;
89 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_CONNECT>;
95 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_WPS_BUTTON>;
102 state_default: pinctrl0 {
104 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
105 ralink,function = "gpio";
111 mtd-mac-address = <&factory 0x28>;
116 mediatek,portmap = <0x3e>;
120 ralink,mtd-eeprom = <&factory 0>;