e6288b03b8d17ca7f80c45fedfaaf08cea560f9d
[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 gpio8 {
108 /* UARTF_TXD */
109 gpio-export,name = "gpio8";
110 gpio-export,direction_may_change = <1>;
111 gpios = <&gpio0 8 0>;
112 };
113 gpio9 {
114 /* UARTF_CTS_N */
115 gpio-export,name = "gpio9";
116 gpio-export,direction_may_change = <1>;
117 gpios = <&gpio0 9 0>;
118 };
119 gpio12 {
120 /* UARTF_DCD_N */
121 gpio-export,name = "gpio12";
122 gpio-export,direction_may_change = <1>;
123 gpios = <&gpio0 12 0>;
124 };
125 gpio13 {
126 /* UARTF_DSR_N */
127 gpio-export,name = "gpio13";
128 gpio-export,direction_may_change = <1>;
129 gpios = <&gpio0 13 0>;
130 };
131 gpio14 {
132 /* UARTF_RIN */
133 gpio-export,name = "gpio14";
134 gpio-export,direction_may_change = <1>;
135 gpios = <&gpio0 14 0>;
136 };
137
138 /* JTAG */
139 gpio17 {
140 /* JTAG_TDO */
141 gpio-export,name = "gpio17";
142 gpio-export,direction_may_change = <1>;
143 gpios = <&gpio0 17 0>;
144 };
145 gpio18 {
146 /* JTAG_TDI */
147 gpio-export,name = "gpio18";
148 gpio-export,direction_may_change = <1>;
149 gpios = <&gpio0 18 0>;
150 };
151 gpio19 {
152 /* JTAG_TMS */
153 gpio-export,name = "gpio19";
154 gpio-export,direction_may_change = <1>;
155 gpios = <&gpio0 19 0>;
156 };
157 gpio20 {
158 /* JTAG_TCLK */
159 gpio-export,name = "gpio20";
160 gpio-export,direction_may_change = <1>;
161 gpios = <&gpio0 20 0>;
162 };
163 gpio21 {
164 /* JTAG_TRST_N */
165 gpio-export,name = "gpio21";
166 gpio-export,direction_may_change = <1>;
167 gpios = <&gpio0 21 0>;
168 };
169
170 /* ETH LEDs */
171 gpio22 {
172 /* ETH0_LED */
173 gpio-export,name = "gpio22";
174 gpio-export,direction_may_change = <1>;
175 gpios = <&gpio1 0 0>;
176 };
177 gpio23 {
178 /* ETH1_LED */
179 gpio-export,name = "gpio23";
180 gpio-export,direction_may_change = <1>;
181 gpios = <&gpio1 1 0>;
182 };
183 gpio24 {
184 /* ETH2_LED */
185 gpio-export,name = "gpio24";
186 gpio-export,direction_may_change = <1>;
187 gpios = <&gpio1 2 0>;
188 };
189 gpio25 {
190 /* ETH3_LED */
191 gpio-export,name = "gpio25";
192 gpio-export,direction_may_change = <1>;
193 gpios = <&gpio1 3 0>;
194 };
195 gpio26 {
196 /* ETH4_LED */
197 gpio-export,name = "gpio26";
198 gpio-export,direction_may_change = <1>;
199 gpios = <&gpio1 4 0>;
200 };
201 };
202
203 gpio-leds {
204 compatible = "gpio-leds";
205 status {
206 /* UARTF_RXD */
207 label = "vocore:green:status";
208 gpios = <&gpio0 10 0>;
209 };
210 eth {
211 /* UARTF_DTR_N */
212 label = "vocore:orange:eth";
213 gpios = <&gpio0 11 0>;
214 };
215 };
216 };