ramips: add support for Mercury MAC1200R v2
[lede.git] / target / linux / ramips / dts / WL-351.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 / {
6         compatible = "WL-351", "ralink,rt3052-soc";
7         model = "Sitecom WL-351 v1 002";
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 0x3b0000>;
38                 };
39         };
40
41         gpio-leds {
42                 compatible = "gpio-leds";
43
44                 power {
45                         label = "wl-351:amber:power";
46                         gpios = <&gpio0 8 1>;
47                 };
48
49                 unpopulated {
50                         label = "wl-351:amber:unpopulated";
51                         gpios = <&gpio0 12 1>;
52                 };
53
54                 unpopulated2 {
55                         label = "wl-351:blue:unpopulated";
56                         gpios = <&gpio0 13 1>;
57                 };
58         };
59
60         gpio-keys-polled {
61                 compatible = "gpio-keys-polled";
62                 #address-cells = <1>;
63                 #size-cells = <0>;
64                 poll-interval = <20>;
65
66                 reset {
67                         label = "reset";
68                         gpios = <&gpio0 10 1>;
69                         linux,code = <0x198>;
70                 };
71
72                 wps {
73                         label = "wps";
74                         gpios = <&gpio0 0 1>;
75                         linux,code = <0x211>;
76                 };
77         };
78
79         rtl8366rb {
80                 compatible = "rtl8366rb";
81                 gpio-sda = <&gpio0 1 0>;
82                 gpio-sck = <&gpio0 2 0>;
83         };
84 };
85
86 &pinctrl {
87         state_default: pinctrl0 {
88                 gpio {
89                         ralink,group = "spi", "i2c", "jtag", "mdio", "uartf";
90                         ralink,function = "gpio";
91                 };
92                 rgmii {
93                         ralink,group = "rgmii";
94                         ralink,function = "rgmii";
95                 };
96         };
97 };
98
99 &ethernet {
100         mtd-mac-address = <&factory 0x4>;
101 };
102
103 &esw {
104         ralink,rgmii = <1>;
105         mediatek,portmap = <0x3f>;
106         ralink,fct2 = <0x0002500c>;
107         /*
108          * ext phy base addr 31, rx/tx clock skew 0,
109          * turbo mii off, rgmi 3.3v off, port 5 polling off
110          * port5: enabled, gige, full-duplex, rx/tx-flow-control
111          * port6: enabled, gige, full-duplex, rx/tx-flow-control
112         */
113         ralink,fpa2 = <0x1f003fff>;
114 };
115
116 &wmac {
117         ralink,mtd-eeprom = <&factory 0>;
118 };
119
120 &otg {
121         status = "okay";
122 };