add ofpart info to the devicetrees
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WL341V3.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6 compatible = "WL341V3", "ralink,rt3052-soc";
7 model = "Sitecom WL-341 v3";
8
9 memorydetect {
10 ralink,memory = <0x0 0x200000 0x4000000>;
11 };
12
13 chosen {
14 bootargs = "mtdparts=1f000000.cfi:128k(u-boot)ro,64k(board-nvram)ro,64k(u-boot-env)ro,3776k@0x40000(firmware)";
15 };
16
17 palmbus@10000000 {
18 sysc@0 {
19 ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
20 ralink,uartmux = "gpio";
21 ralink,wdtmux = <1>;
22 };
23
24 gpio0: gpio@600 {
25 status = "okay";
26 };
27 };
28
29 cfi@1f000000 {
30 compatible = "cfi-flash";
31 reg = <0x1f000000 0x800000>;
32
33 bank-width = <2>;
34 device-width = <2>;
35 #address-cells = <1>;
36 #size-cells = <1>;
37
38 partition@0 {
39 label = "u-boot";
40 reg = <0x0 0x20000>;
41 read-only;
42 };
43
44 partition@20000 {
45 label = "board-nvram";
46 reg = <0x20000 0x10000>;
47 read-only;
48 };
49
50 partition@30000 {
51 label = "u-boot-env";
52 reg = <0x30000 0x10000>;
53 read-only;
54 };
55
56 partition@40000 {
57 label = "firmware";
58 reg = <0x40000 0x3b0000>;
59 };
60 };
61
62 ethernet@10100000 {
63 status = "okay";
64 };
65
66 esw@10110000 {
67 status = "okay";
68 ralink,portmap = <0x3e>;
69 };
70
71 gpio-leds {
72 compatible = "gpio-leds";
73 first {
74 label = "wl341v3:amber:first";
75 gpios = <&gpio0 9 1>;
76 };
77 first2 {
78 label = "wl341v3:blue:first";
79 gpios = <&gpio0 13 1>;
80 };
81 third {
82 label = "wl341v3:amber:third";
83 gpios = <&gpio0 11 1>;
84 };
85 third2 {
86 label = "wl341v3:blue:third";
87 gpios = <&gpio0 14 1>;
88 };
89 fourth {
90 label = "wl341v3:blue:fourth";
91 gpios = <&gpio0 10 1>;
92 };
93 fifth {
94 label = "wl341v3:amber:fifth";
95 gpios = <&gpio0 12 1>;
96 };
97 fifth2 {
98 label = "wl341v3:blue:fifth";
99 gpios = <&gpio0 8 1>;
100 };
101 };
102
103 gpio-keys-polled {
104 compatible = "gpio-keys-polled";
105 #address-cells = <1>;
106 #size-cells = <0>;
107 poll-interval = <20>;
108 reset {
109 label = "reset";
110 gpios = <&gpio0 7 1>;
111 linux,code = <0x198>;
112 };
113 wps {
114 label = "wps";
115 gpios = <&gpio0 5 1>;
116 linux,code = <0x211>;
117 };
118 };
119
120 wmac@10180000 {
121 status = "okay";
122 };
123
124 otg@101c0000 {
125 status = "okay";
126 };
127 };