ramips: Update ARC Freestation profile
[openwrt.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         palmbus@10000000 {
10                 sysc@0 {
11                         ralink,pinmux = "uartlite", "jtag", "sdram", "rgmii";
12                         ralink,gpiomux = "i2c", "spi", "mdio";
13                         ralink,uartmux = "gpio";
14                         ralink,wdtmux = <1>;
15                 };
16
17                 gpio0: gpio@600 {
18                         status = "okay";
19                 };
20
21         };
22
23         cfi@1f000000 {
24                 compatible = "cfi-flash";
25                 reg = <0x1f000000 0x800000>;
26
27                 bank-width = <2>;
28                 device-width = <2>;
29                 #address-cells = <1>;
30                 #size-cells = <1>;
31
32                 partition@0 {
33                         label = "u-boot";
34                         reg = <0x0 0x30000>;
35                         read-only;
36                 };
37
38                 partition@30000 {
39                         label = "u-boot-env";
40                         reg = <0x30000 0x10000>;
41                         read-only;
42                 };
43
44                 factory: partition@40000 {
45                         label = "factory";
46                         reg = <0x40000 0x10000>;
47                         read-only;
48                 };
49
50                 partition@50000 {
51                         label = "firmware";
52                         reg = <0x50000 0x3b0000>;
53                 };
54         };
55
56         ethernet@10100000 {
57                 status = "okay";
58         };
59
60         esw@10110000 {
61                 status = "okay";
62                 ralink,portmap = <0x3f>;
63                 ralink,fct2 = <0x0002500c>;
64                 /*
65                  * ext phy base addr 31, rx/tx clock skew 0,
66                  * turbo mii off, rgmi 3.3v off, port 5 polling off
67                  * port5: enabled, gige, full-duplex, rx/tx-flow-control
68                  * port6: enabled, gige, full-duplex, rx/tx-flow-control
69                 */
70                 ralink,fpa2 = <0x1f003fff>;
71         };
72
73         wmac@10180000 {
74                 status = "okay";
75         };
76
77         otg@101c0000 {
78                 status = "okay";
79         };
80
81         gpio-leds {
82                 compatible = "gpio-leds";
83                 power {
84                         label = "wl-351:amber:power";
85                         gpios = <&gpio0 8 1>;
86                 };
87                 unpopulated {
88                         label = "wl-351:amber:unpopulated";
89                         gpios = <&gpio0 12 1>;
90                 };
91                 unpopulated2 {
92                         label = "wl-351:blue:unpopulated";
93                         gpios = <&gpio0 13 1>;
94                 };
95         };
96
97         gpio-keys-polled {
98                 compatible = "gpio-keys-polled";
99                 #address-cells = <1>;
100                 #size-cells = <0>;
101                 poll-interval = <20>;
102                 reset {
103                         label = "reset";
104                         gpios = <&gpio0 10 1>;
105                         linux,code = <0x198>;
106                 };
107                 wps {
108                         label = "wps";
109                         gpios = <&gpio0 0 1>;
110                         linux,code = <0x211>;
111                 };
112         };
113
114         rtl8366rb {
115                 compatible = "rtl8367rb";
116                 gpio-sda = <&gpio0 1 0>;
117                 gpio-sck = <&gpio0 2 0>;
118         };
119 };