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