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