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