ramips: Add support for VoCore
[openwrt/openwrt.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 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 };
54
55 pinctrl {
56 state_default: pinctrl0 {
57 gpio {
58 ralink,group = "jtag", "uartf", "led", "spi_cs1";
59 ralink,function = "gpio";
60 };
61 };
62 };
63
64 ethernet@10100000 {
65 mtd-mac-address = <&factory 0x4>;
66 };
67
68 esw@10110000 {
69 ralink,portmap = <0x17>;
70 };
71
72 wmac@10180000 {
73 ralink,mtd-eeprom = <&factory 0>;
74 };
75
76 ehci@101c0000 {
77 status = "okay";
78 };
79
80 ohci@101c1000 {
81 status = "okay";
82 };
83
84 gpio-export {
85 compatible = "gpio-export";
86 #size-cells = <0>;
87
88 gpio0 {
89 gpio-export,name = "gpio0";
90 gpio-export,direction_may_change = <1>;
91 gpios = <&gpio0 0 0>;
92 };
93
94 /* UARTF */
95 gpio7 {
96 /* UARTF_RTS_N */
97 gpio-export,name = "gpio7";
98 gpio-export,direction_may_change = <1>;
99 gpios = <&gpio0 7 0>;
100 };
101 gpio8 {
102 /* UARTF_TXD */
103 gpio-export,name = "gpio8";
104 gpio-export,direction_may_change = <1>;
105 gpios = <&gpio0 8 0>;
106 };
107 gpio9 {
108 /* UARTF_CTS_N */
109 gpio-export,name = "gpio9";
110 gpio-export,direction_may_change = <1>;
111 gpios = <&gpio0 9 0>;
112 };
113 gpio12 {
114 /* UARTF_DCD_N */
115 gpio-export,name = "gpio12";
116 gpio-export,direction_may_change = <1>;
117 gpios = <&gpio0 12 0>;
118 };
119 gpio13 {
120 /* UARTF_DSR_N */
121 gpio-export,name = "gpio13";
122 gpio-export,direction_may_change = <1>;
123 gpios = <&gpio0 13 0>;
124 };
125 gpio14 {
126 /* UARTF_RIN */
127 gpio-export,name = "gpio14";
128 gpio-export,direction_may_change = <1>;
129 gpios = <&gpio0 14 0>;
130 };
131
132 /* JTAG */
133 gpio17 {
134 /* JTAG_TDO */
135 gpio-export,name = "gpio17";
136 gpio-export,direction_may_change = <1>;
137 gpios = <&gpio0 17 0>;
138 };
139 gpio18 {
140 /* JTAG_TDI */
141 gpio-export,name = "gpio18";
142 gpio-export,direction_may_change = <1>;
143 gpios = <&gpio0 18 0>;
144 };
145 gpio19 {
146 /* JTAG_TMS */
147 gpio-export,name = "gpio19";
148 gpio-export,direction_may_change = <1>;
149 gpios = <&gpio0 19 0>;
150 };
151 gpio20 {
152 /* JTAG_TCLK */
153 gpio-export,name = "gpio20";
154 gpio-export,direction_may_change = <1>;
155 gpios = <&gpio0 20 0>;
156 };
157 gpio21 {
158 /* JTAG_TRST_N */
159 gpio-export,name = "gpio21";
160 gpio-export,direction_may_change = <1>;
161 gpios = <&gpio0 21 0>;
162 };
163
164 /* ETH LEDs */
165 gpio22 {
166 /* ETH0_LED */
167 gpio-export,name = "gpio22";
168 gpio-export,direction_may_change = <1>;
169 gpios = <&gpio1 0 0>;
170 };
171 gpio23 {
172 /* ETH1_LED */
173 gpio-export,name = "gpio23";
174 gpio-export,direction_may_change = <1>;
175 gpios = <&gpio1 1 0>;
176 };
177 gpio24 {
178 /* ETH2_LED */
179 gpio-export,name = "gpio24";
180 gpio-export,direction_may_change = <1>;
181 gpios = <&gpio1 2 0>;
182 };
183 gpio25 {
184 /* ETH3_LED */
185 gpio-export,name = "gpio25";
186 gpio-export,direction_may_change = <1>;
187 gpios = <&gpio1 3 0>;
188 };
189 gpio26 {
190 /* ETH4_LED */
191 gpio-export,name = "gpio26";
192 gpio-export,direction_may_change = <1>;
193 gpios = <&gpio1 4 0>;
194 };
195
196 /* SPI_CS1 */
197 gpio27 {
198 gpio-export,name = "gpio27";
199 gpio-export,direction_may_change = <1>;
200 gpios = <&gpio1 5 0>;
201 };
202 };
203
204 gpio-leds {
205 compatible = "gpio-leds";
206 status {
207 /* UARTF_RXD */
208 label = "vocore:green:status";
209 gpios = <&gpio0 10 0>;
210 };
211 eth {
212 /* UARTF_DTR_N */
213 label = "vocore:orange:eth";
214 gpios = <&gpio0 11 0>;
215 };
216 };
217 };