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