32159fd5d11b37654e77edf7322dea34fe86c950
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / WL-351.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6 #address-cells = <1>;
7 #size-cells = <1>;
8 compatible = "WL-351", "ralink,rt3052-soc";
9 model = "Sitecom WL-351 v1 002";
10
11 memorydetect {
12 ralink,memory = <0x0 0x200000 0x4000000>;
13 };
14
15
16 chosen {
17 bootargs = "console=ttyS0,57600 mtdparts=1f000000.cfi:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,3776k@0x50000(firmware)";
18 };
19
20 palmbus@10000000 {
21 sysc@0 {
22 ralink,pinmux = "uartlite", "jtag", "sdram", "rgmii";
23 ralink,gpiomux = "i2c", "spi", "mdio";
24 ralink,uartmux = "gpio";
25 ralink,wdtmux = <1>;
26 };
27
28 gpio0: gpio@600 {
29 status = "okay";
30 };
31
32 };
33
34 cfi@1f000000 {
35 compatible = "cfi-flash";
36 reg = <0x1f000000 0x800000>;
37
38 bank-width = <2>;
39 device-width = <2>;
40 #address-cells = <1>;
41 #size-cells = <1>;
42 };
43
44 ethernet@10100000 {
45 status = "okay";
46 };
47
48 esw@10110000 {
49 status = "okay";
50 ralink,portmap = <0x3f>;
51 ralink,fct2 = <0x0002500c>;
52 /*
53 * ext phy base addr 31, rx/tx clock skew 0,
54 * turbo mii off, rgmi 3.3v off, port 5 polling off
55 * port5: enabled, gige, full-duplex, rx/tx-flow-control
56 * port6: enabled, gige, full-duplex, rx/tx-flow-control
57 */
58 ralink,fpa2 = <0x1f003fff>;
59 };
60
61 wmac@10180000 {
62 status = "okay";
63 };
64
65 otg@101c0000 {
66 status = "okay";
67 };
68
69 gpio-leds {
70 compatible = "gpio-leds";
71 power {
72 label = "wl-351:amber:power";
73 gpio = <&gpio0 8 1>;
74 };
75 unpopulated {
76 label = "wl-351:amber:unpopulated";
77 gpio = <&gpio0 12 1>;
78 };
79 unpopulated2 {
80 label = "wl-351:blue:unpopulated";
81 gpio = <&gpio0 13 1>;
82 };
83 };
84
85 gpio-keys-polled {
86 compatible = "gpio-keys-polled";
87 #address-cells = <1>;
88 #size-cells = <0>;
89 poll-interval = <20>;
90 reset {
91 label = "reset";
92 gpio = <&gpio0 10 1>;
93 linux,code = <0x198>;
94 };
95 wps {
96 label = "wps";
97 gpio = <&gpio0 0 1>;
98 linux,code = <0x211>;
99 };
100 };
101
102 rtl8366rb {
103 compatible = "rtl8367rb";
104 gpio-sda = <&gpio0 1 0>;
105 gpio-sck = <&gpio0 2 0>;
106 };
107 };