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