ramips: fix power LED DTB for wt3020
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / ALL0239-3G.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "allnet,all0239-3g", "ralink,rt3052-soc";
10 model = "Allnet ALL0239-3G";
11
12 aliases {
13 led-status = &led_status;
14 };
15
16
17 cfi@1f000000 {
18 compatible = "cfi-flash";
19 reg = <0x1f000000 0x800000>;
20 bank-width = <2>;
21 device-width = <2>;
22
23 partitions {
24 compatible = "fixed-partitions";
25 #address-cells = <1>;
26 #size-cells = <1>;
27
28 partition@0 {
29 label = "u-boot";
30 reg = <0x0 0x30000>;
31 read-only;
32 };
33
34 partition@30000 {
35 label = "u-boot-env";
36 reg = <0x30000 0x10000>;
37 read-only;
38 };
39
40 factory: partition@40000 {
41 label = "factory";
42 reg = <0x40000 0x10000>;
43 read-only;
44 };
45
46 partition@50000 {
47 label = "firmware";
48 reg = <0x50000 0x7b0000>;
49 };
50 };
51 };
52
53 gpio-leds {
54 compatible = "gpio-leds";
55
56 usb {
57 label = "all0239-3g:green:usb";
58 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
59 };
60
61 3g {
62 label = "all0239-3g:green:3g";
63 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
64 };
65
66 led_status: status {
67 label = "all0239-3g:green:status";
68 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
69 };
70
71 wps {
72 label = "all0239-3g:green:wps";
73 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
74 };
75 };
76
77 gpio-keys-polled {
78 compatible = "gpio-keys-polled";
79 poll-interval = <20>;
80
81 reset {
82 label = "reset";
83 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
84 linux,code = <KEY_RESTART>;
85 };
86
87 connect {
88 label = "connect";
89 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_CONNECT>;
91 };
92
93 wps {
94 label = "wps";
95 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
96 linux,code = <KEY_WPS_BUTTON>;
97 };
98 };
99 };
100
101 &pinctrl {
102 state_default: pinctrl0 {
103 gpio {
104 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
105 ralink,function = "gpio";
106 };
107 };
108 };
109
110 &ethernet {
111 mtd-mac-address = <&factory 0x28>;
112 };
113
114 &esw {
115 status = "okay";
116 mediatek,portmap = <0x3e>;
117 };
118
119 &wmac {
120 ralink,mtd-eeprom = <&factory 0>;
121 };
122
123 &otg {
124 status = "okay";
125 };