ramips: Add support for GL-MT300N
[openwrt.git] / target / linux / ramips / dts / WR6202.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6         compatible = "WR6202", "ralink,rt3052-soc";
7         model = "AWB WR6202";
8
9         chosen {
10                 bootargs = "console=ttyS0,115200";
11         };
12
13         pinctrl {
14                 state_default: pinctrl0 {
15                         gpio {
16                                 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
17                                 ralink,function = "gpio";
18                         };
19                 };
20         };
21
22         gpio-leds {
23                 compatible = "gpio-leds";
24
25                 wps {
26                         label = "wr6202:blue:wps";
27                         gpios = <&gpio0 14 1>;
28                 };
29
30                 3g {
31                         label = "wr6202:blue:3g";
32                         gpios = <&gpio0 13 1>;
33                 };
34         };
35
36         gpio-keys-polled {
37                 compatible = "gpio-keys-polled";
38                 #address-cells = <1>;
39                 #size-cells = <0>;
40                 poll-interval = <20>;
41
42                 reset {
43                         label = "reset";
44                         gpios = <&gpio0 10 1>;
45                         linux,code = <0x198>;
46                 };
47
48                 wps {
49                         label = "wps";
50                         gpios = <&gpio0 0 1>;
51                         linux,code = <0x211>;
52                 };
53         };
54
55         cfi@1f000000 {
56                 compatible = "cfi-flash";
57                 reg = <0x1f000000 0x800000>;
58                 bank-width = <2>;
59                 device-width = <2>;
60                 #address-cells = <1>;
61                 #size-cells = <1>;
62
63                 partition@0 {
64                         label = "u-boot";
65                         reg = <0x0 0x30000>;
66                         read-only;
67                 };
68
69                 partition@30000 {
70                         label = "u-boot-env";
71                         reg = <0x30000 0x10000>;
72                         read-only;
73                 };
74
75                 factory: partition@40000 {
76                         label = "factory";
77                         reg = <0x40000 0x10000>;
78                         read-only;
79                 };
80
81                 partition@50000 {
82                         label = "firmware";
83                         reg = <0x50000 0x7b0000>;
84                 };
85         };
86
87         ethernet@10100000 {
88                 mtd-mac-address = <&factory 0x28>;
89         };
90
91         esw@10110000 {
92                 mediatek,portmap = <0x3e>;
93         };
94
95         wmac@10180000 {
96                 ralink,mtd-eeprom = <&factory 0>;
97         };
98
99         otg@101c0000 {
100                 status = "okay";
101         };
102
103         gpio_export {
104                 compatible = "gpio-export";
105                 #size-cells = <0>;
106
107                 usb {
108                         gpio-export,name = "usb";
109                         gpio-export,output = <0>;
110                         gpios = <&gpio0 11 0>;
111                 };
112         };
113 };