]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/mips/MOFI3500-3GN.dts
Merge sendmail 8.16.1 to HEAD: See contrib/sendmail/RELEASE_NOTES for details
[FreeBSD/FreeBSD.git] / sys / gnu / dts / mips / MOFI3500-3GN.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 / {
6         compatible = "MOFI3500-3GN", "ralink,rt3052-soc";
7         model = "MoFi Network MOFI3500-3GN";
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 0x7b0000>;
38                 };
39         };
40
41         gpio-leds {
42                 compatible = "gpio-leds";
43
44                 usb {
45                         label = "mofi3500-3gn:green:usb";
46                         gpios = <&gpio0 8 1>;
47                 };
48
49                 3g {
50                         label = "mofi3500-3gn:green:3g";
51                         gpios = <&gpio0 11 1>;
52                 };
53
54                 status {
55                         label = "mofi3500-3gn:green:status";
56                         gpios = <&gpio0 12 1>;
57                 };
58
59                 wps {
60                         label = "mofi3500-3gn:green:wps";
61                         gpios = <&gpio0 14 1>;
62                 };
63         };
64
65         gpio-keys-polled {
66                 compatible = "gpio-keys-polled";
67                 #address-cells = <1>;
68                 #size-cells = <0>;
69                 poll-interval = <20>;
70
71                 reset {
72                         label = "reset";
73                         gpios = <&gpio0 10 1>;
74                         linux,code = <0x198>;
75                 };
76
77                 connect {
78                         label = "connect";
79                         gpios = <&gpio0 7 1>;
80                         linux,code = <0xda>;
81                 };
82
83                 wps {
84                         label = "wps";
85                         gpios = <&gpio0 0 1>;
86                         linux,code = <0x211>;
87                 };
88         };
89 };
90
91 &pinctrl {
92         state_default: pinctrl0 {
93                 gpio {
94                         ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
95                         ralink,function = "gpio";
96                 };
97         };
98 };
99
100 &esw {
101         mediatek,portmap = <0x2f>;
102 };
103
104 &wmac {
105         status = "okay";
106         ralink,mtd-eeprom = <&factory 0>;
107 };
108
109 &otg {
110         status = "okay";
111 };