677fa2c317acd8718ce10de8be582066f4204cc2
[openwrt.git] / target / linux / ramips / dts / TEW-691GR.dts
1 /dts-v1/;
2
3 /include/ "rt3883.dtsi"
4
5 / {
6         #address-cells = <1>;
7         #size-cells = <1>;
8         compatible = "TEW-691GR", "ralink,rt3883-soc";
9         model = "TRENDnet TEW-691GR";
10
11         memorydetect {
12                 ralink,memory = <0x0 0x200000 0x10000000>;
13         };
14
15         palmbus@10000000 {
16                 sysc@0 {
17                         ralink,pinmmux = "uartlite", "spi";
18                         ralink,gpiomux = "i2c", "jtag";
19                         ralink,uartmux = "gpio";
20                         ralink,wdtmux = <1>;
21                 };
22
23                 timer@100 {
24                         status = "okay";
25                 };
26
27                 gpio0: gpio@600 {
28                         status = "okay";
29                 };
30
31                 gpio1: gpio@638 {
32                         status = "okay";
33                 };
34
35                 spi@b00 {
36                         status = "okay";
37
38                         m25p80@0 {
39                                 #address-cells = <1>;
40                                 #size-cells = <1>;
41                                 compatible = "mx25l6405d";
42                                 reg = <0 0>;
43                                 linux,modalias = "m25p80";
44                                 spi-max-frequency = <25000000>;
45                         };
46                 };
47         };
48
49         ethernet@10100000 {
50                 status = "okay";
51                 ralink,phy-mask = <0x1>;
52                 phy-mode = "rgmii";
53         };
54
55         wmac@10180000 {
56                 status = "okay";
57                 ralink,5ghz = <0>;
58         };
59
60         gpio-keys-polled {
61                 compatible = "gpio-keys-polled";
62                 #address-cells = <1>;
63                 #size-cells = <0>;
64                 poll-interval = <100>;
65                 reset {
66                         label = "reset";
67                         gpios = <&gpio0 10 1>;
68                         linux,code = <0x198>;
69                 };
70                 wps {
71                         label = "wps";
72                         gpios = <&gpio1 2 1>;
73                         linux,code = <0x211>;
74                 };
75                 rfkill {
76                         label = "rfkill";
77                         gpios = <&gpio0 0 1>;
78                         linux,code = <0xf7>;
79                 };
80         };
81
82         gpio-leds {
83                 compatible = "gpio-leds";
84                 wps {
85                         label = "trendnet:green:wps";
86                         gpios = <&gpio0 9 1>;
87                 };
88         };
89 };