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