ed3e70851d9c4708b0b9b9a2ab5b00f298d18784
[openwrt/svn-archive/archive.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 wps {
25 label = "wr6202:blue:wps";
26 gpios = <&gpio0 14 1>;
27 };
28 3g {
29 label = "wr6202:blue:3g";
30 gpios = <&gpio0 13 1>;
31 };
32 };
33
34 gpio-keys-polled {
35 compatible = "gpio-keys-polled";
36 #address-cells = <1>;
37 #size-cells = <0>;
38 poll-interval = <20>;
39 reset {
40 label = "reset";
41 gpios = <&gpio0 10 1>;
42 linux,code = <0x198>;
43 };
44 wps {
45 label = "wps";
46 gpios = <&gpio0 0 1>;
47 linux,code = <0x211>;
48 };
49 };
50
51 cfi@1f000000 {
52 compatible = "cfi-flash";
53 reg = <0x1f000000 0x800000>;
54
55 bank-width = <2>;
56 device-width = <2>;
57 #address-cells = <1>;
58 #size-cells = <1>;
59
60 partition@0 {
61 label = "u-boot";
62 reg = <0x0 0x30000>;
63 read-only;
64 };
65
66 partition@30000 {
67 label = "u-boot-env";
68 reg = <0x30000 0x10000>;
69 read-only;
70 };
71
72 factory: partition@40000 {
73 label = "factory";
74 reg = <0x40000 0x10000>;
75 read-only;
76 };
77
78 partition@50000 {
79 label = "firmware";
80 reg = <0x50000 0x7b0000>;
81 };
82 };
83
84 esw@10110000 {
85 ralink,portmap = <0x3e>;
86 };
87
88 otg@101c0000 {
89 status = "okay";
90 };
91
92 gpio_export {
93 compatible = "gpio-export";
94 #size-cells = <0>;
95
96 usb {
97 gpio-export,name = "usb";
98 gpio-export,output = <0>;
99 gpios = <&gpio0 11 0>;
100 };
101 };
102 };