ramips: Support setting active_low in devicetree gpio-export
[openwrt/openwrt.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 palmbus@10000000 {
10 sysc@0 {
11 ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
12 ralink,uartmux = "gpio";
13 ralink,wdtmux = <1>;
14 };
15
16 gpio0: gpio@600 {
17 status = "okay";
18 };
19 };
20
21 cfi@1f000000 {
22 compatible = "cfi-flash";
23 reg = <0x1f000000 0x800000>;
24
25 bank-width = <2>;
26 device-width = <2>;
27 #address-cells = <1>;
28 #size-cells = <1>;
29
30 partition@0 {
31 label = "u-boot";
32 reg = <0x0 0x20000>;
33 read-only;
34 };
35
36 partition@20000 {
37 label = "board-nvram";
38 reg = <0x20000 0x10000>;
39 read-only;
40 };
41
42 partition@30000 {
43 label = "u-boot-env";
44 reg = <0x30000 0x10000>;
45 read-only;
46 };
47
48 partition@40000 {
49 label = "firmware";
50 reg = <0x40000 0x3b0000>;
51 };
52 };
53
54 ethernet@10100000 {
55 status = "okay";
56 };
57
58 esw@10110000 {
59 status = "okay";
60 ralink,portmap = <0x3e>;
61 };
62
63 gpio-leds {
64 compatible = "gpio-leds";
65 first {
66 label = "wl341v3:amber:first";
67 gpios = <&gpio0 9 1>;
68 };
69 first2 {
70 label = "wl341v3:blue:first";
71 gpios = <&gpio0 13 1>;
72 };
73 third {
74 label = "wl341v3:amber:third";
75 gpios = <&gpio0 11 1>;
76 };
77 third2 {
78 label = "wl341v3:blue:third";
79 gpios = <&gpio0 14 1>;
80 };
81 fourth {
82 label = "wl341v3:blue:fourth";
83 gpios = <&gpio0 10 1>;
84 };
85 fifth {
86 label = "wl341v3:amber:fifth";
87 gpios = <&gpio0 12 1>;
88 };
89 fifth2 {
90 label = "wl341v3:blue:fifth";
91 gpios = <&gpio0 8 1>;
92 };
93 };
94
95 gpio-keys-polled {
96 compatible = "gpio-keys-polled";
97 #address-cells = <1>;
98 #size-cells = <0>;
99 poll-interval = <20>;
100 reset {
101 label = "reset";
102 gpios = <&gpio0 7 1>;
103 linux,code = <0x198>;
104 };
105 wps {
106 label = "wps";
107 gpios = <&gpio0 5 1>;
108 linux,code = <0x211>;
109 };
110 };
111
112 wmac@10180000 {
113 status = "okay";
114 };
115
116 otg@101c0000 {
117 status = "okay";
118 };
119 };