d1493cde0734f21a6b1e3fc46ceea4d1ef62998a
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / W306R_V20.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6 compatible = "W306R_V20", "ralink,rt3052-soc";
7 model = "Tenda W306R V2.0";
8
9 memorydetect {
10 ralink,memory = <0x0 0x200000 0x4000000>;
11 };
12
13 cfi@1f000000 {
14 compatible = "cfi-flash";
15 reg = <0x1f000000 0x800000>;
16
17 bank-width = <2>;
18 device-width = <2>;
19 #address-cells = <1>;
20 #size-cells = <1>;
21
22 partition@0 {
23 label = "u-boot";
24 reg = <0x0 0x30000>;
25 read-only;
26 };
27
28 partition@30000 {
29 label = "u-boot-env";
30 reg = <0x30000 0x10000>;
31 read-only;
32 };
33
34 factory: partition@40000 {
35 label = "factory";
36 reg = <0x40000 0x10000>;
37 read-only;
38 };
39
40 partition@50000 {
41 label = "firmware";
42 reg = <0x50000 0x3b0000>;
43 };
44 };
45
46 palmbus@10000000 {
47 sysc@0 {
48 ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
49 ralink,uartmux = "gpio";
50 ralink,wdtmux = <1>;
51 };
52
53 gpio0: gpio@600 {
54 status = "okay";
55 };
56 };
57
58 ethernet@10100000 {
59 status = "okay";
60 };
61
62 esw@10110000 {
63 status = "okay";
64 ralink,portmap = <0x3e>;
65 };
66
67 gpio-leds {
68 compatible = "gpio-leds";
69 sys {
70 label = "w306r-v20:green:sys";
71 gpios = <&gpio0 9 1>;
72 };
73 wps {
74 label = "w306r-v20:green:wps";
75 gpios = <&gpio0 13 1>;
76 };
77 };
78
79 gpio-keys-polled {
80 compatible = "gpio-keys-polled";
81 #address-cells = <1>;
82 #size-cells = <0>;
83 poll-interval = <20>;
84 reset {
85 label = "RESET/WPS";
86 gpios = <&gpio0 10 1>;
87 linux,code = <0x198>;
88 };
89 };
90
91 wmac@10180000 {
92 status = "okay";
93 };
94 };