24c497b3ff518b9da76a5c238d75588584655929
[openwrt.git] / target / linux / ramips / dts / WR6202.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6         #address-cells = <1>;
7         #size-cells = <1>;
8         compatible = "WR6202", "ralink,rt3052-soc";
9         model = "AWB WR6202";
10
11         memorydetect {
12                 ralink,memory = <0x0 0x200000 0x4000000>;
13         };
14
15         chosen {
16                 bootargs = "console=ttyS0,115200 mtdparts=1f000000.cfi:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,7872k@0x50000(firmware)";
17         };
18
19         palmbus@10000000 {
20                 sysc@0 {
21                         ralink,pinmmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
22                         ralink,uartmux = "gpio";
23                         ralink,wdtmux = <1>;
24                 };
25
26                 gpio0: gpio@600 {
27                         status = "okay";
28                 };
29
30         };
31
32         gpio-leds {
33                 compatible = "gpio-leds";
34                 wps {
35                         label = "wr6202:blue:wps";
36                         gpios = <&gpio0 14 1>;
37                 };
38                 3g {
39                         label = "wr6202:blue:3g";
40                         gpios = <&gpio0 13 1>;
41                 };
42         };
43
44         gpio-keys-polled {
45                 compatible = "gpio-keys-polled";
46                 #address-cells = <1>;
47                 #size-cells = <0>;
48                 poll-interval = <20>;
49                 reset {
50                         label = "reset";
51                         gpios = <&gpio0 10 1>;
52                         linux,code = <0x198>;
53                 };
54                 wps {
55                         label = "wps";
56                         gpios = <&gpio0 0 1>;
57                         linux,code = <0x211>;
58                 };
59         };
60
61         cfi@1f000000 {
62                 compatible = "cfi-flash";
63                 reg = <0x1f000000 0x800000>;
64
65                 bank-width = <2>;
66                 device-width = <2>;
67                 #address-cells = <1>;
68                 #size-cells = <1>;
69         };
70
71         ethernet@10100000 {
72                 status = "okay";
73         };
74
75         esw@10110000 {
76                 status = "okay";
77                 ralink,portmap = <0x3e>;
78         };
79
80         wmac@10180000 {
81                 status = "okay";
82         };
83
84         otg@101c0000 {
85                 status = "okay";
86         };
87
88         gpio_export {
89                 compatible = "gpio-export";
90                 #size-cells = <0>;
91
92                 usb {
93                         gpio-export,name = "usb";
94                         gpio-export,output = <0>;
95                         gpios = <&gpio0 11 0>;
96                 };
97         };
98 };