]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/mips/W150M.dts
Update mandoc to 1.14.5
[FreeBSD/FreeBSD.git] / sys / gnu / dts / mips / W150M.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 / {
6         compatible = "W150M", "ralink,rt3050-soc";
7         model = "Tenda W150M";
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 0x30000>;
20                         read-only;
21                 };
22
23                 partition@30000 {
24                         label = "u-boot-env";
25                         reg = <0x30000 0x10000>;
26                         read-only;
27                 };
28
29                 factory: partition@40000 {
30                         label = "factory";
31                         reg = <0x40000 0x10000>;
32                         read-only;
33                 };
34
35                 partition@50000 {
36                         label = "firmware";
37                         reg = <0x50000 0x3c8000>;
38                 };
39         };
40
41         gpio-leds {
42                 compatible = "gpio-leds";
43
44                 3grouter {
45                         label = "w150m:blue:3grouter";
46                         gpios = <&gpio0 11 1>;
47                 };
48
49                 ap {
50                         label = "w150m:blue:ap";
51                         gpios = <&gpio0 12 1>;
52                 };
53
54                 wisprouter {
55                         label = "w150m:blue:wisprouter";
56                         gpios = <&gpio0 9 1>;
57                 };
58
59                 wirelessrouter {
60                         label = "w150m:blue:wirelessrouter";
61                         gpios = <&gpio0 13 1>;
62                 };
63
64                 3g {
65                         label = "w150m:blue:3g";
66                         gpios = <&gpio0 7 1>;
67                 };
68
69                 wpsreset {
70                         label = "w150m:blue:wpsreset";
71                         gpios = <&gpio0 14 1>;
72                 };
73         };
74
75         gpio-keys-polled {
76                 compatible = "gpio-keys-polled";
77                 #address-cells = <1>;
78                 #size-cells = <0>;
79                 poll-interval = <20>;
80
81                 reset {
82                         label = "reset";
83                         gpios = <&gpio0 0 1>;
84                         linux,code = <0x198>;
85                 };
86
87                 mode {
88                         label = "mode";
89                         gpios = <&gpio0 10 1>;
90                         linux,code = <0x100>;
91                 };
92         };
93 };
94
95 &pinctrl {
96         state_default: pinctrl0 {
97                 gpio {
98                         ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
99                         ralink,function = "gpio";
100                 };
101         };
102 };
103
104 &ethernet {
105         mtd-mac-address = <&factory 0x4>;
106 };
107
108 &esw {
109         mediatek,portmap = <0x2f>;
110 };
111
112 &wmac {
113         ralink,mtd-eeprom = <&factory 0>;
114 };