ramips: select kmod-rt2800-soc by default (if available)
[openwrt.git] / target / linux / ramips / dts / TEW-691GR.dts
1 /dts-v1/;
2
3 /include/ "rt3883.dtsi"
4
5 / {
6         compatible = "TEW-691GR", "ralink,rt3883-soc";
7         model = "TRENDnet TEW-691GR";
8
9         palmbus@10000000 {
10                 gpio1: gpio@638 {
11                         status = "okay";
12                 };
13         };
14
15         pinctrl {
16                 state_default: pinctrl0 {
17                         gpio {
18                                 ralink,group = "spi", "i2c", "jtag", "uartf";
19                                 ralink,function = "gpio";
20                         };
21                 };
22         };
23
24         ethernet@10100000 {
25                 port@0 {
26                         phy-handle = <&phy0>;
27                         phy-mode = "rgmii";
28                 };
29                 mdio-bus {
30                         status = "okay";
31
32                         phy0: ethernet-phy@0 {
33                                 reg = <0>;
34                         };
35                 };
36         };
37
38         wmac@10180000 {
39                 ralink,5ghz = <0>;
40         };
41
42         nor-flash@1c000000 {
43                 compatible = "cfi-flash";
44                 reg = <0x1c000000 0x800000>;
45
46                 bank-width = <2>;
47                 #address-cells = <1>;
48                 #size-cells = <1>;
49
50                 partition@0 {
51                         reg = <0x0 0x0030000>;
52                         label = "u-boot";
53                         read-only;
54                 };
55
56                 partition@30000 {
57                         reg = <0x00030000 0x00010000>;
58                         label = "u-boot-env";
59                         read-only;
60                 };
61
62                 partition@40000 {
63                         reg = <0x00040000 0x00010000>;
64                         label = "factory";
65                         read-only;
66                 };
67
68                 partition@50000 {
69                         reg = <0x00050000 0x007b0000>;
70                         label = "firmware";
71                 };
72         };
73
74         gpio-keys-polled {
75                 compatible = "gpio-keys-polled";
76                 #address-cells = <1>;
77                 #size-cells = <0>;
78                 poll-interval = <100>;
79                 reset {
80                         label = "reset";
81                         gpios = <&gpio0 10 1>;
82                         linux,code = <0x198>;
83                 };
84                 wps {
85                         label = "wps";
86                         gpios = <&gpio1 2 1>;
87                         linux,code = <0x211>;
88                 };
89                 rfkill {
90                         label = "rfkill";
91                         gpios = <&gpio0 0 1>;
92                         linux,code = <0xf7>;
93                 };
94         };
95
96         gpio-leds {
97                 compatible = "gpio-leds";
98                 wps {
99                         label = "trendnet:green:wps";
100                         gpios = <&gpio0 9 1>;
101                 };
102         };
103 };