9325dbb877a960a419b8f048bf249c038726eae1
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / WR512-3GN-8M.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6 compatible = "WR512-3GN", "ralink,rt3052-soc";
7 model = "WR512-3GN-like router";
8
9 palmbus@10000000 {
10 sysc@0 {
11 ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "sdram", "rgmii";
12 ralink,gpiomux = "mdio";
13 ralink,uartmux = "gpio";
14 ralink,wdtmux = <1>;
15 };
16
17 gpio0: gpio@600 {
18 status = "okay";
19 };
20 };
21
22 cfi@1f000000 {
23 compatible = "cfi-flash";
24 reg = <0x1f000000 0x800000>;
25
26 bank-width = <2>;
27 device-width = <2>;
28 #address-cells = <1>;
29 #size-cells = <1>;
30
31 partition@0 {
32 label = "u-boot";
33 reg = <0x0 0x30000>;
34 read-only;
35 };
36
37 partition@30000 {
38 label = "u-boot-env";
39 reg = <0x30000 0x10000>;
40 read-only;
41 };
42
43 factory: partition@40000 {
44 label = "factory";
45 reg = <0x40000 0x10000>;
46 read-only;
47 };
48
49 partition@50000 {
50 label = "firmware";
51 reg = <0x50000 0x7b0000>;
52 };
53 };
54
55 ethernet@10100000 {
56 status = "okay";
57 };
58
59 esw@10110000 {
60 status = "okay";
61 ralink,portmap = <0x2f>;
62 };
63
64 gpio-leds {
65 compatible = "gpio-leds";
66 3g {
67 label = "wr512:green:3g";
68 gpios = <&gpio0 9 1>;
69 };
70 gateway {
71 label = "wr512:green:gateway";
72 gpios = <&gpio0 11 1>;
73 };
74 ap {
75 label = "wr512:green:ap";
76 gpios = <&gpio0 12 1>;
77 };
78 wps {
79 label = "wr512:green:wps";
80 gpios = <&gpio0 14 1>;
81 };
82 station {
83 label = "wr512:green:station";
84 gpios = <&gpio0 13 1>;
85 };
86 };
87
88 gpio-keys-polled {
89 compatible = "gpio-keys-polled";
90 #address-cells = <1>;
91 #size-cells = <0>;
92 poll-interval = <20>;
93 reset_wps {
94 label = "reset_wps";
95 gpios = <&gpio0 10 1>;
96 linux,code = <0x198>;
97 };
98 mode {
99 label = "mode";
100 gpios = <&gpio0 7 1>;
101 linux,code = <0x32>;
102 };
103 };
104
105 wmac@10180000 {
106 status = "okay";
107 };
108
109 otg@101c0000 {
110 status = "okay";
111 };
112 };