ramips: Add support for GL-MT300N
[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                 mtd-mac-address = <&factory 0x28>;
26
27                 port@0 {
28                         phy-handle = <&phy0>;
29                         phy-mode = "rgmii";
30                 };
31
32                 mdio-bus {
33                         status = "okay";
34
35                         phy0: ethernet-phy@0 {
36                                 reg = <0>;
37                         };
38                 };
39         };
40
41         wmac@10180000 {
42                 ralink,5ghz = <0>;
43         };
44
45         nor-flash@1c000000 {
46                 compatible = "cfi-flash";
47                 reg = <0x1c000000 0x800000>;
48                 bank-width = <2>;
49                 #address-cells = <1>;
50                 #size-cells = <1>;
51
52                 partition@0 {
53                         reg = <0x0 0x0030000>;
54                         label = "u-boot";
55                         read-only;
56                 };
57
58                 partition@30000 {
59                         reg = <0x00030000 0x00010000>;
60                         label = "u-boot-env";
61                         read-only;
62                 };
63
64                 factory: partition@40000 {
65                         reg = <0x00040000 0x00010000>;
66                         label = "factory";
67                         read-only;
68                 };
69
70                 partition@50000 {
71                         reg = <0x00050000 0x007b0000>;
72                         label = "firmware";
73                 };
74         };
75
76         gpio-keys-polled {
77                 compatible = "gpio-keys-polled";
78                 #address-cells = <1>;
79                 #size-cells = <0>;
80                 poll-interval = <100>;
81
82                 reset {
83                         label = "reset";
84                         gpios = <&gpio0 10 1>;
85                         linux,code = <0x198>;
86                 };
87
88                 wps {
89                         label = "wps";
90                         gpios = <&gpio1 2 1>;
91                         linux,code = <0x211>;
92                 };
93
94                 rfkill {
95                         label = "rfkill";
96                         gpios = <&gpio0 0 1>;
97                         linux,code = <0xf7>;
98                 };
99         };
100
101         gpio-leds {
102                 compatible = "gpio-leds";
103
104                 wps {
105                         label = "tew-691gr:green:wps";
106                         gpios = <&gpio0 9 1>;
107                 };
108         };
109 };