5e386e46bbf7dc1223970cf850544195c23bf160
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / VOCORE.dts
1 /dts-v1/;
2
3 /include/ "rt5350.dtsi"
4
5 / {
6 compatible = "VoCore", "ralink,rt5350-soc";
7 model = "VoCore";
8
9 palmbus@10000000 {
10 gpio1: gpio@660 {
11 status = "okay";
12 };
13
14 i2c@900 {
15 status = "okay";
16 };
17
18 spi@b00 {
19 status = "okay";
20
21 m25p80@0 {
22 #address-cells = <1>;
23 #size-cells = <1>;
24 compatible = "s25fl064k";
25 reg = <0>;
26 linux,modalias = "m25p80", "s25fl064k";
27 spi-max-frequency = <10000000>;
28
29 partition@0 {
30 label = "uboot";
31 reg = <0x0 0x30000>;
32 read-only;
33 };
34
35 partition@30000 {
36 label = "uboot-env";
37 reg = <0x30000 0x10000>;
38 read-only;
39 };
40
41 factory: partition@40000 {
42 label = "factory";
43 reg = <0x40000 0x10000>;
44 read-only;
45 };
46
47 partition@50000 {
48 label = "firmware";
49 reg = <0x50000 0x7b0000>;
50 };
51 };
52
53 spidev@1 {
54 compatible = "linux,spidev";
55 spi-max-frequency = <10000000>;
56 reg = <1>;
57 };
58 };
59 };
60
61 pinctrl {
62 state_default: pinctrl0 {
63 gpio {
64 ralink,group = "jtag", "uartf", "led";
65 ralink,function = "gpio";
66 };
67 };
68 };
69
70 ethernet@10100000 {
71 mtd-mac-address = <&factory 0x4>;
72 };
73
74 esw@10110000 {
75 ralink,portmap = <0x17>;
76 };
77
78 wmac@10180000 {
79 ralink,mtd-eeprom = <&factory 0>;
80 };
81
82 ehci@101c0000 {
83 status = "okay";
84 };
85
86 ohci@101c1000 {
87 status = "okay";
88 };
89
90 gpio-export {
91 compatible = "gpio-export";
92 #size-cells = <0>;
93
94 gpio0 {
95 gpio-export,name = "gpio0";
96 gpio-export,direction_may_change = <1>;
97 gpios = <&gpio0 0 0>;
98 };
99
100 /* UARTF */
101 gpio7 {
102 /* UARTF_RTS_N */
103 gpio-export,name = "gpio7";
104 gpio-export,direction_may_change = <1>;
105 gpios = <&gpio0 7 0>;
106 };
107
108 gpio8 {
109 /* UARTF_TXD */
110 gpio-export,name = "gpio8";
111 gpio-export,direction_may_change = <1>;
112 gpios = <&gpio0 8 0>;
113 };
114
115 gpio9 {
116 /* UARTF_CTS_N */
117 gpio-export,name = "gpio9";
118 gpio-export,direction_may_change = <1>;
119 gpios = <&gpio0 9 0>;
120 };
121
122 gpio12 {
123 /* UARTF_DCD_N */
124 gpio-export,name = "gpio12";
125 gpio-export,direction_may_change = <1>;
126 gpios = <&gpio0 12 0>;
127 };
128
129 gpio13 {
130 /* UARTF_DSR_N */
131 gpio-export,name = "gpio13";
132 gpio-export,direction_may_change = <1>;
133 gpios = <&gpio0 13 0>;
134 };
135
136 gpio14 {
137 /* UARTF_RIN */
138 gpio-export,name = "gpio14";
139 gpio-export,direction_may_change = <1>;
140 gpios = <&gpio0 14 0>;
141 };
142
143 /* JTAG */
144 gpio17 {
145 /* JTAG_TDO */
146 gpio-export,name = "gpio17";
147 gpio-export,direction_may_change = <1>;
148 gpios = <&gpio0 17 0>;
149 };
150
151 gpio18 {
152 /* JTAG_TDI */
153 gpio-export,name = "gpio18";
154 gpio-export,direction_may_change = <1>;
155 gpios = <&gpio0 18 0>;
156 };
157
158 gpio19 {
159 /* JTAG_TMS */
160 gpio-export,name = "gpio19";
161 gpio-export,direction_may_change = <1>;
162 gpios = <&gpio0 19 0>;
163 };
164
165 gpio20 {
166 /* JTAG_TCLK */
167 gpio-export,name = "gpio20";
168 gpio-export,direction_may_change = <1>;
169 gpios = <&gpio0 20 0>;
170 };
171
172 gpio21 {
173 /* JTAG_TRST_N */
174 gpio-export,name = "gpio21";
175 gpio-export,direction_may_change = <1>;
176 gpios = <&gpio0 21 0>;
177 };
178
179 /* ETH LEDs */
180 gpio22 {
181 /* ETH0_LED */
182 gpio-export,name = "gpio22";
183 gpio-export,direction_may_change = <1>;
184 gpios = <&gpio1 0 0>;
185 };
186
187 gpio23 {
188 /* ETH1_LED */
189 gpio-export,name = "gpio23";
190 gpio-export,direction_may_change = <1>;
191 gpios = <&gpio1 1 0>;
192 };
193
194 gpio24 {
195 /* ETH2_LED */
196 gpio-export,name = "gpio24";
197 gpio-export,direction_may_change = <1>;
198 gpios = <&gpio1 2 0>;
199 };
200
201 gpio25 {
202 /* ETH3_LED */
203 gpio-export,name = "gpio25";
204 gpio-export,direction_may_change = <1>;
205 gpios = <&gpio1 3 0>;
206 };
207
208 gpio26 {
209 /* ETH4_LED */
210 gpio-export,name = "gpio26";
211 gpio-export,direction_may_change = <1>;
212 gpios = <&gpio1 4 0>;
213 };
214 };
215
216 gpio-leds {
217 compatible = "gpio-leds";
218
219 status {
220 /* UARTF_RXD */
221 label = "vocore:green:status";
222 gpios = <&gpio0 10 0>;
223 };
224
225 eth {
226 /* UARTF_DTR_N */
227 label = "vocore:orange:eth";
228 gpios = <&gpio0 11 0>;
229 };
230 };
231 };