]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/mips/WR6202.dts
Upgrade our copies of clang, llvm, lldb and compiler-rt to r311606 from
[FreeBSD/FreeBSD.git] / sys / gnu / dts / mips / WR6202.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 / {
6         compatible = "WR6202", "ralink,rt3052-soc";
7         model = "AWB WR6202";
8
9         chosen {
10                 bootargs = "console=ttyS0,115200";
11         };
12
13         gpio-leds {
14                 compatible = "gpio-leds";
15
16                 wps {
17                         label = "wr6202:blue:wps";
18                         gpios = <&gpio0 14 1>;
19                 };
20
21                 3g {
22                         label = "wr6202:blue:3g";
23                         gpios = <&gpio0 13 1>;
24                 };
25         };
26
27         gpio-keys-polled {
28                 compatible = "gpio-keys-polled";
29                 #address-cells = <1>;
30                 #size-cells = <0>;
31                 poll-interval = <20>;
32
33                 reset {
34                         label = "reset";
35                         gpios = <&gpio0 10 1>;
36                         linux,code = <0x198>;
37                 };
38
39                 wps {
40                         label = "wps";
41                         gpios = <&gpio0 0 1>;
42                         linux,code = <0x211>;
43                 };
44         };
45
46         cfi@1f000000 {
47                 compatible = "cfi-flash";
48                 reg = <0x1f000000 0x800000>;
49                 bank-width = <2>;
50                 device-width = <2>;
51                 #address-cells = <1>;
52                 #size-cells = <1>;
53
54                 partition@0 {
55                         label = "u-boot";
56                         reg = <0x0 0x30000>;
57                         read-only;
58                 };
59
60                 partition@30000 {
61                         label = "u-boot-env";
62                         reg = <0x30000 0x10000>;
63                         read-only;
64                 };
65
66                 factory: partition@40000 {
67                         label = "factory";
68                         reg = <0x40000 0x10000>;
69                         read-only;
70                 };
71
72                 partition@50000 {
73                         label = "firmware";
74                         reg = <0x50000 0x7b0000>;
75                 };
76         };
77
78         gpio_export {
79                 compatible = "gpio-export";
80                 #size-cells = <0>;
81
82                 usb {
83                         gpio-export,name = "usb";
84                         gpio-export,output = <0>;
85                         gpios = <&gpio0 11 0>;
86                 };
87         };
88 };
89
90 &pinctrl {
91         state_default: pinctrl0 {
92                 gpio {
93                         ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
94                         ralink,function = "gpio";
95                 };
96         };
97 };
98
99 &ethernet {
100         mtd-mac-address = <&factory 0x28>;
101 };
102
103 &esw {
104         mediatek,portmap = <0x3e>;
105 };
106
107 &wmac {
108         ralink,mtd-eeprom = <&factory 0>;
109 };
110
111 &otg {
112         status = "okay";
113 };