ramips: TEW-692GR.dts fixes
[openwrt.git] / target / linux / ramips / dts / TEW-692GR.dts
1 /dts-v1/;
2
3 /include/ "rt3883.dtsi"
4
5 / {
6         compatible = "TEW-692GR", "ralink,rt3883-soc";
7         model = "TRENDnet TEW-692GR";
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", "spi";
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                 ralink,phy-mask = <0x1>;
38                 phy-mode = "rgmii";
39         };
40
41         pci@10140000 {
42                 status = "okay";
43
44                 host-bridge {
45                         pci-bridge@1 {
46                                 status = "okay";
47                         };
48                 };
49         };
50
51         wmac@10180000 {
52                 status = "okay";
53                 ralink,5ghz = <0>;
54         };
55
56         nor-flash@1c000000 {
57                 compatible = "cfi-flash";
58                 reg = <0x1c000000 0x800000>;
59
60                 bank-width = <2>;
61                 #address-cells = <1>;
62                 #size-cells = <1>;
63
64                 partition@0 {
65                         reg = <0x0 0x0030000>;
66                         label = "u-boot";
67                         read-only;
68                 };
69
70                 partition@30000 {
71                         reg = <0x00030000 0x00010000>;
72                         label = "u-boot-env";
73                         read-only;
74                 };
75
76                 partition@40000 {
77                         reg = <0x00040000 0x00010000>;
78                         label = "factory";
79                         read-only;
80                 };
81
82                 partition@50000 {
83                         reg = <0x00050000 0x007b0000>;
84                         label = "firmware";
85                 };
86         };
87
88         gpio-keys-polled {
89                 compatible = "gpio-keys-polled";
90                 #address-cells = <1>;
91                 #size-cells = <0>;
92                 poll-interval = <100>;
93                 reset {
94                         label = "reset";
95                         gpios = <&gpio0 10 1>;
96                         linux,code = <0x198>;
97                 };
98                 wps {
99                         label = "wps";
100                         gpios = <&gpio1 2 1>;
101                         linux,code = <0x211>;
102                 };
103         };
104
105         gpio-leds {
106                 compatible = "gpio-leds";
107                 wps {
108                         label = "trendnet:orange:wps";
109                         gpios = <&gpio0 9 1>;
110                 };
111                 wps2 {
112                         label = "trendnet:green:wps";
113                         gpios = <&gpio1 4 1>;
114                 };
115         };
116 };