5b634ca10ef66f5156102d442bf299c843a7bf37
[openwrt/staging/wigyori.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 memorydetect {
10 ralink,memory = <0x0 0x200000 0x4000000>;
11 };
12
13 chosen {
14 bootargs = "console=ttyS0,115200 mtdparts=1f000000.cfi:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,7872k@0x50000(firmware)";
15 };
16
17 palmbus@10000000 {
18 sysc@0 {
19 ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
20 ralink,uartmux = "gpio";
21 ralink,wdtmux = <1>;
22 };
23
24 gpio0: gpio@600 {
25 status = "okay";
26 };
27
28 };
29
30 gpio-leds {
31 compatible = "gpio-leds";
32 wps {
33 label = "wr6202:blue:wps";
34 gpios = <&gpio0 14 1>;
35 };
36 3g {
37 label = "wr6202:blue:3g";
38 gpios = <&gpio0 13 1>;
39 };
40 };
41
42 gpio-keys-polled {
43 compatible = "gpio-keys-polled";
44 #address-cells = <1>;
45 #size-cells = <0>;
46 poll-interval = <20>;
47 reset {
48 label = "reset";
49 gpios = <&gpio0 10 1>;
50 linux,code = <0x198>;
51 };
52 wps {
53 label = "wps";
54 gpios = <&gpio0 0 1>;
55 linux,code = <0x211>;
56 };
57 };
58
59 cfi@1f000000 {
60 compatible = "cfi-flash";
61 reg = <0x1f000000 0x800000>;
62
63 bank-width = <2>;
64 device-width = <2>;
65 #address-cells = <1>;
66 #size-cells = <1>;
67
68 partition@0 {
69 label = "u-boot";
70 reg = <0x0 0x30000>;
71 read-only;
72 };
73
74 partition@30000 {
75 label = "u-boot-env";
76 reg = <0x30000 0x10000>;
77 read-only;
78 };
79
80 factory: partition@40000 {
81 label = "factory";
82 reg = <0x40000 0x10000>;
83 read-only;
84 };
85
86 partition@50000 {
87 label = "firmware";
88 reg = <0x50000 0x7b0000>;
89 };
90 };
91
92 ethernet@10100000 {
93 status = "okay";
94 };
95
96 esw@10110000 {
97 status = "okay";
98 ralink,portmap = <0x3e>;
99 };
100
101 wmac@10180000 {
102 status = "okay";
103 };
104
105 otg@101c0000 {
106 status = "okay";
107 };
108
109 gpio_export {
110 compatible = "gpio-export";
111 #size-cells = <0>;
112
113 usb {
114 gpio-export,name = "usb";
115 gpio-export,output = <0>;
116 gpios = <&gpio0 11 0>;
117 };
118 };
119 };