ralink: add pinctrl driver
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / WL341V3.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6 compatible = "WL341V3", "ralink,rt3052-soc";
7 model = "Sitecom WL-341 v3";
8
9 cfi@1f000000 {
10 compatible = "cfi-flash";
11 reg = <0x1f000000 0x800000>;
12
13 bank-width = <2>;
14 device-width = <2>;
15 #address-cells = <1>;
16 #size-cells = <1>;
17
18 partition@0 {
19 label = "u-boot";
20 reg = <0x0 0x20000>;
21 read-only;
22 };
23
24 partition@20000 {
25 label = "board-nvram";
26 reg = <0x20000 0x10000>;
27 read-only;
28 };
29
30 partition@30000 {
31 label = "u-boot-env";
32 reg = <0x30000 0x10000>;
33 read-only;
34 };
35
36 partition@40000 {
37 label = "firmware";
38 reg = <0x40000 0x3b0000>;
39 };
40 };
41
42 pinctrl {
43 state_default: pinctrl0 {
44 gpio {
45 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
46 ralink,function = "gpio";
47 };
48 };
49 };
50
51 esw@10110000 {
52 ralink,portmap = <0x3e>;
53 };
54
55 gpio-leds {
56 compatible = "gpio-leds";
57 first {
58 label = "wl341v3:amber:first";
59 gpios = <&gpio0 9 1>;
60 };
61 first2 {
62 label = "wl341v3:blue:first";
63 gpios = <&gpio0 13 1>;
64 };
65 third {
66 label = "wl341v3:amber:third";
67 gpios = <&gpio0 11 1>;
68 };
69 third2 {
70 label = "wl341v3:blue:third";
71 gpios = <&gpio0 14 1>;
72 };
73 fourth {
74 label = "wl341v3:blue:fourth";
75 gpios = <&gpio0 10 1>;
76 };
77 fifth {
78 label = "wl341v3:amber:fifth";
79 gpios = <&gpio0 12 1>;
80 };
81 fifth2 {
82 label = "wl341v3:blue:fifth";
83 gpios = <&gpio0 8 1>;
84 };
85 };
86
87 gpio-keys-polled {
88 compatible = "gpio-keys-polled";
89 #address-cells = <1>;
90 #size-cells = <0>;
91 poll-interval = <20>;
92 reset {
93 label = "reset";
94 gpios = <&gpio0 7 1>;
95 linux,code = <0x198>;
96 };
97 wps {
98 label = "wps";
99 gpios = <&gpio0 5 1>;
100 linux,code = <0x211>;
101 };
102 };
103
104 otg@101c0000 {
105 status = "okay";
106 };
107 };