b15e03d1360436255c75046145e1ab5b7ad2c3df
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / V22RW-2X2.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6 compatible = "V22RW-2X2", "ralink,rt3052-soc";
7 model = "Ralink AP-RT3052-V22RW-2X2";
8
9 memorydetect {
10 ralink,memory = <0x0 0x200000 0x4000000>;
11 };
12
13 palmbus@10000000 {
14 sysc@0 {
15 ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
16 ralink,uartmux = "gpio";
17 ralink,wdtmux = <1>;
18 };
19
20 gpio0: gpio@600 {
21 status = "okay";
22 };
23 };
24
25 cfi@1f000000 {
26 compatible = "cfi-flash";
27 reg = <0x1f000000 0x800000>;
28
29 bank-width = <2>;
30 device-width = <2>;
31 #address-cells = <1>;
32 #size-cells = <1>;
33
34 partition@0 {
35 label = "u-boot";
36 reg = <0x0 0x30000>;
37 read-only;
38 };
39
40 partition@30000 {
41 label = "u-boot-env";
42 reg = <0x30000 0x10000>;
43 read-only;
44 };
45
46 factory: partition@40000 {
47 label = "factory";
48 reg = <0x40000 0x10000>;
49 read-only;
50 };
51
52 partition@50000 {
53 label = "firmware";
54 reg = <0x50000 0x3b0000>;
55 };
56 };
57
58 ethernet@10100000 {
59 status = "okay";
60 };
61
62 esw@10110000 {
63 status = "okay";
64 ralink,portmap = <0x2f>;
65 };
66
67 gpio-leds {
68 compatible = "gpio-leds";
69 security {
70 label = "v22rw-2x2:green:security";
71 gpios = <&gpio0 13 1>;
72 };
73 wps {
74 label = "v22rw-2x2:red:wps";
75 gpios = <&gpio0 14 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";
86 gpios = <&gpio0 10 1>;
87 linux,code = <0x198>;
88 };
89 wps {
90 label = "wps";
91 gpios = <&gpio0 0 1>;
92 linux,code = <0x211>;
93 };
94 };
95
96 wmac@10180000 {
97 status = "okay";
98 };
99
100 otg@101c0000 {
101 status = "okay";
102 };
103 };