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-boot = &led_status;
14 led-failsafe = &led_status;
15 led-running = &led_status;
16 led-upgrade = &led_status;
21 compatible = "cfi-flash";
22 reg = <0x1f000000 0x800000>;
27 compatible = "fixed-partitions";
39 reg = <0x30000 0x10000>;
43 factory: partition@40000 {
45 reg = <0x40000 0x10000>;
50 compatible = "denx,uimage";
52 reg = <0x50000 0x7b0000>;
58 compatible = "gpio-leds";
61 label = "all0239-3g:green:usb";
62 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
63 trigger-sources = <&otg_port1>;
64 linux,default-trigger = "usbport";
68 label = "all0239-3g:green:3g";
69 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
73 label = "all0239-3g:green:status";
74 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
78 label = "all0239-3g:green:wps";
79 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
84 compatible = "gpio-keys-polled";
89 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_RESTART>;
95 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_CONNECT>;
101 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
102 linux,code = <KEY_WPS_BUTTON>;
108 state_default: pinctrl0 {
110 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
111 ralink,function = "gpio";
117 mtd-mac-address = <&factory 0x28>;
122 mediatek,portmap = <0x3e>;
126 ralink,mtd-eeprom = <&factory 0>;