ramips: TEW-691GR.dts fixes
[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         memorydetect {
10                 ralink,memory = <0x0 0x200000 0x10000000>;
11         };
12
13         palmbus@10000000 {
14                 sysc@0 {
15                         ralink,pinmux = "uartlite";
16                         ralink,gpiomux = "i2c", "jtag";
17                         ralink,uartmux = "gpio";
18                         ralink,pcimux = "pci-fnc";
19                         ralink,wdtmux = <1>;
20                 };
21
22                 timer@100 {
23                         status = "okay";
24                 };
25
26                 gpio0: gpio@600 {
27                         status = "okay";
28                 };
29
30                 gpio1: gpio@638 {
31                         status = "okay";
32                 };
33         };
34
35         ethernet@10100000 {
36                 status = "okay";
37                 phy-handle = <&phy0>;
38                 phy-mode = "rgmii";
39
40                 mdio-bus {
41                         status = "okay";
42
43                         phy0: ethernet-phy@0 {
44                                 reg = <0>;
45                         };
46                 };
47         };
48
49         wmac@10180000 {
50                 status = "okay";
51                 ralink,5ghz = <0>;
52         };
53
54         nor-flash@1c000000 {
55                 compatible = "cfi-flash";
56                 reg = <0x1c000000 0x800000>;
57
58                 bank-width = <2>;
59                 #address-cells = <1>;
60                 #size-cells = <1>;
61
62                 partition@0 {
63                         reg = <0x0 0x0030000>;
64                         label = "u-boot";
65                         read-only;
66                 };
67
68                 partition@30000 {
69                         reg = <0x00030000 0x00010000>;
70                         label = "u-boot-env";
71                         read-only;
72                 };
73
74                 partition@40000 {
75                         reg = <0x00040000 0x00010000>;
76                         label = "factory";
77                         read-only;
78                 };
79
80                 partition@50000 {
81                         reg = <0x00050000 0x007b0000>;
82                         label = "firmware";
83                 };
84         };
85
86         gpio-keys-polled {
87                 compatible = "gpio-keys-polled";
88                 #address-cells = <1>;
89                 #size-cells = <0>;
90                 poll-interval = <100>;
91                 reset {
92                         label = "reset";
93                         gpios = <&gpio0 10 1>;
94                         linux,code = <0x198>;
95                 };
96                 wps {
97                         label = "wps";
98                         gpios = <&gpio1 2 1>;
99                         linux,code = <0x211>;
100                 };
101                 rfkill {
102                         label = "rfkill";
103                         gpios = <&gpio0 0 1>;
104                         linux,code = <0xf7>;
105                 };
106         };
107
108         gpio-leds {
109                 compatible = "gpio-leds";
110                 wps {
111                         label = "trendnet:green:wps";
112                         gpios = <&gpio0 9 1>;
113                 };
114         };
115 };