ralink: update patches
[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         palmbus@10000000 {
14                 sysc@0 {
15                         ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
16                         ralink,uartmux = "gpio";
17                         ralink,wdtmux = <1>;
18                 };
19
20                 gpio0: gpio@600 {
21                         status = "okay";
22                 };
23
24         };
25
26         gpio-leds {
27                 compatible = "gpio-leds";
28                 wps {
29                         label = "wr6202:blue:wps";
30                         gpios = <&gpio0 14 1>;
31                 };
32                 3g {
33                         label = "wr6202:blue:3g";
34                         gpios = <&gpio0 13 1>;
35                 };
36         };
37
38         gpio-keys-polled {
39                 compatible = "gpio-keys-polled";
40                 #address-cells = <1>;
41                 #size-cells = <0>;
42                 poll-interval = <20>;
43                 reset {
44                         label = "reset";
45                         gpios = <&gpio0 10 1>;
46                         linux,code = <0x198>;
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
59                 bank-width = <2>;
60                 device-width = <2>;
61                 #address-cells = <1>;
62                 #size-cells = <1>;
63
64                 partition@0 {
65                         label = "u-boot";
66                         reg = <0x0 0x30000>;
67                         read-only;
68                 };
69
70                 partition@30000 {
71                         label = "u-boot-env";
72                         reg = <0x30000 0x10000>;
73                         read-only;
74                 };
75
76                 factory: partition@40000 {
77                         label = "factory";
78                         reg = <0x40000 0x10000>;
79                         read-only;
80                 };
81
82                 partition@50000 {
83                         label = "firmware";
84                         reg = <0x50000 0x7b0000>;
85                 };
86         };
87
88         ethernet@10100000 {
89                 status = "okay";
90         };
91
92         esw@10110000 {
93                 status = "okay";
94                 ralink,portmap = <0x3e>;
95         };
96
97         wmac@10180000 {
98                 status = "okay";
99         };
100
101         otg@101c0000 {
102                 status = "okay";
103         };
104
105         usb0: gpio-regulator {
106                 compatible = "regulator-gpio";
107
108                 regulator-name = "usb0-power";
109                 regulator-min-microvolt = <5000000>;
110                 regulator-max-microvolt = <5000000>;
111                 regulator-boot-on;
112
113                 enable-gpio = <&gpio0 11 0>;
114         };
115 };