blob: b7417094dc11c32578856090b2bfc22f4df6ddb8 [file] [log] [blame]
Stefan Agnere1bf86a2014-11-02 21:36:47 +01001/*
2 * Copyright 2014 Toradex AG
3 *
Stefan Agner9f3440d2015-12-07 13:51:14 -08004 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
7 * whole.
8 *
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * version 2 as published by the Free Software Foundation.
12 *
13 * This file is distributed in the hope that it will be useful
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * Or, alternatively
19 *
20 * b) Permission is hereby granted, free of charge, to any person
21 * obtaining a copy of this software and associated documentation
22 * files (the "Software"), to deal in the Software without
23 * restriction, including without limitation the rights to use
24 * copy, modify, merge, publish, distribute, sublicense, and/or
25 * sell copies of the Software, and to permit persons to whom the
26 * Software is furnished to do so, subject to the following
27 * conditions:
28 *
29 * The above copyright notice and this permission notice shall be
30 * included in all copies or substantial portions of the Software.
31 *
32 * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
33 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
34 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
35 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
36 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
37 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
38 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
39 * OTHER DEALINGS IN THE SOFTWARE.
Stefan Agnere1bf86a2014-11-02 21:36:47 +010040 */
41
42/ {
Stefan Agner9b1a1772016-04-01 23:13:39 -070043 aliases {
44 ethernet0 = &fec1;
45 ethernet1 = &fec0;
46 };
47
Stefan Agnere1bf86a2014-11-02 21:36:47 +010048 bl: backlight {
49 compatible = "pwm-backlight";
Bhuvanchandra DVb2e42442016-01-09 12:29:53 +053050 pinctrl-names = "default";
51 pinctrl-0 = <&pinctrl_gpio_bl_on>;
Stefan Agnere1bf86a2014-11-02 21:36:47 +010052 pwms = <&pwm0 0 5000000 0>;
Bhuvanchandra DVb2e42442016-01-09 12:29:53 +053053 enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
Stefan Agnere1bf86a2014-11-02 21:36:47 +010054 status = "disabled";
55 };
Stefan Agner47b06e62016-02-17 15:40:59 -080056
57 reg_module_3v3: regulator-module-3v3 {
58 compatible = "regulator-fixed";
59 regulator-name = "+V3.3";
60 regulator-min-microvolt = <3300000>;
61 regulator-max-microvolt = <3300000>;
62 };
63
64 reg_module_3v3_avdd: regulator-module-3v3-avdd {
65 compatible = "regulator-fixed";
66 regulator-name = "+V3.3_AVDD_AUDIO";
67 regulator-min-microvolt = <3300000>;
68 regulator-max-microvolt = <3300000>;
69 };
Stefan Agnere1bf86a2014-11-02 21:36:47 +010070};
71
72&adc0 {
73 status = "okay";
Stefan Agner47b06e62016-02-17 15:40:59 -080074 vref-supply = <&reg_module_3v3_avdd>;
Stefan Agnere1bf86a2014-11-02 21:36:47 +010075};
76
77&adc1 {
78 status = "okay";
Stefan Agner47b06e62016-02-17 15:40:59 -080079 vref-supply = <&reg_module_3v3_avdd>;
Stefan Agnere1bf86a2014-11-02 21:36:47 +010080};
81
Stefan Agner2afa06c2015-12-02 14:11:47 -080082&can0 {
83 pinctrl-names = "default";
84 pinctrl-0 = <&pinctrl_flexcan0>;
85 status = "disabled";
86};
87
88&can1 {
89 pinctrl-names = "default";
90 pinctrl-0 = <&pinctrl_flexcan1>;
91 status = "disabled";
92};
93
Stefan Agner5c35b772016-02-10 16:02:26 -080094&clks {
95 assigned-clocks = <&clks VF610_CLK_ENET_SEL>,
96 <&clks VF610_CLK_ENET_TS_SEL>;
97 assigned-clock-parents = <&clks VF610_CLK_ENET_50M>,
98 <&clks VF610_CLK_ENET_50M>;
99};
100
Bhuvanchandra DV9fca0152015-01-29 21:57:45 +0530101&dspi1 {
102 bus-num = <1>;
103 pinctrl-names = "default";
104 pinctrl-0 = <&pinctrl_dspi1>;
105};
106
Stefan Agnere1bf86a2014-11-02 21:36:47 +0100107&edma0 {
108 status = "okay";
109};
110
111&esdhc1 {
112 pinctrl-names = "default";
113 pinctrl-0 = <&pinctrl_esdhc1>;
114 bus-width = <4>;
Stefan Agner76713952015-01-16 18:06:15 +0100115 cd-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
Stefan Agner4ee5ad02016-02-17 15:44:16 -0800116 disable-wp;
Stefan Agnere1bf86a2014-11-02 21:36:47 +0100117};
118
119&fec1 {
120 phy-mode = "rmii";
Stefan Agner47b06e62016-02-17 15:40:59 -0800121 phy-supply = <&reg_module_3v3>;
Stefan Agnere1bf86a2014-11-02 21:36:47 +0100122 pinctrl-names = "default";
123 pinctrl-0 = <&pinctrl_fec1>;
124};
125
Bhuvanchandra DV1ddeb482014-11-13 10:05:31 +0530126&i2c0 {
127 clock-frequency = <400000>;
128 pinctrl-names = "default";
129 pinctrl-0 = <&pinctrl_i2c0>;
130};
131
Stefan Agner65425262015-10-07 16:58:36 -0700132&nfc {
Stefan Agner65425262015-10-07 16:58:36 -0700133 pinctrl-names = "default";
134 pinctrl-0 = <&pinctrl_nfc>;
135 status = "okay";
136
137 nand@0 {
138 compatible = "fsl,vf610-nfc-nandcs";
139 reg = <0>;
140 #address-cells = <1>;
141 #size-cells = <1>;
142 nand-bus-width = <8>;
143 nand-ecc-mode = "hw";
144 nand-ecc-strength = <32>;
145 nand-ecc-step-size = <2048>;
146 nand-on-flash-bbt;
147 };
148};
149
Stefan Agnere1bf86a2014-11-02 21:36:47 +0100150&pwm0 {
151 pinctrl-names = "default";
152 pinctrl-0 = <&pinctrl_pwm0>;
153};
154
155&pwm1 {
156 pinctrl-names = "default";
157 pinctrl-0 = <&pinctrl_pwm1>;
158};
159
160&uart0 {
161 pinctrl-names = "default";
162 pinctrl-0 = <&pinctrl_uart0>;
163};
164
165&uart1 {
166 pinctrl-names = "default";
167 pinctrl-0 = <&pinctrl_uart1>;
168};
169
170&uart2 {
171 pinctrl-names = "default";
172 pinctrl-0 = <&pinctrl_uart2>;
173};
174
175&usbdev0 {
176 disable-over-current;
177 status = "okay";
178};
179
180&usbh1 {
181 disable-over-current;
182 status = "okay";
183};
184
Stefan Agnerac039cd2014-11-04 14:07:09 +0100185&usbmisc0 {
186 status = "okay";
187};
188
189&usbmisc1 {
190 status = "okay";
191};
192
193&usbphy0 {
194 status = "okay";
195};
196
197&usbphy1 {
198 status = "okay";
199};
200
Stefan Agnere1bf86a2014-11-02 21:36:47 +0100201&iomuxc {
202 vf610-colibri {
Stefan Agner2afa06c2015-12-02 14:11:47 -0800203 pinctrl_flexcan0: can0grp {
204 fsl,pins = <
205 VF610_PAD_PTB14__CAN0_RX 0x31F1
206 VF610_PAD_PTB15__CAN0_TX 0x31F2
207 >;
208 };
209
210 pinctrl_flexcan1: can1grp {
211 fsl,pins = <
212 VF610_PAD_PTB16__CAN1_RX 0x31F1
213 VF610_PAD_PTB17__CAN1_TX 0x31F2
214 >;
215 };
216
Stefan Agner2b36bda2014-11-04 14:07:08 +0100217 pinctrl_gpio_ext: gpio_ext {
218 fsl,pins = <
219 VF610_PAD_PTD10__GPIO_89 0x22ed /* EXT_IO_0 */
220 VF610_PAD_PTD9__GPIO_88 0x22ed /* EXT_IO_1 */
221 VF610_PAD_PTD26__GPIO_68 0x22ed /* EXT_IO_2 */
222 >;
223 };
224
Stefan Agner77f08622016-04-04 22:28:40 -0700225 pinctrl_dcu0_1: dcu0grp_1 {
226 fsl,pins = <
227 VF610_PAD_PTE0__DCU0_HSYNC 0x1902
228 VF610_PAD_PTE1__DCU0_VSYNC 0x1902
229 VF610_PAD_PTE2__DCU0_PCLK 0x1902
230 VF610_PAD_PTE4__DCU0_DE 0x1902
231 VF610_PAD_PTE5__DCU0_R0 0x1902
232 VF610_PAD_PTE6__DCU0_R1 0x1902
233 VF610_PAD_PTE7__DCU0_R2 0x1902
234 VF610_PAD_PTE8__DCU0_R3 0x1902
235 VF610_PAD_PTE9__DCU0_R4 0x1902
236 VF610_PAD_PTE10__DCU0_R5 0x1902
237 VF610_PAD_PTE11__DCU0_R6 0x1902
238 VF610_PAD_PTE12__DCU0_R7 0x1902
239 VF610_PAD_PTE13__DCU0_G0 0x1902
240 VF610_PAD_PTE14__DCU0_G1 0x1902
241 VF610_PAD_PTE15__DCU0_G2 0x1902
242 VF610_PAD_PTE16__DCU0_G3 0x1902
243 VF610_PAD_PTE17__DCU0_G4 0x1902
244 VF610_PAD_PTE18__DCU0_G5 0x1902
245 VF610_PAD_PTE19__DCU0_G6 0x1902
246 VF610_PAD_PTE20__DCU0_G7 0x1902
247 VF610_PAD_PTE21__DCU0_B0 0x1902
248 VF610_PAD_PTE22__DCU0_B1 0x1902
249 VF610_PAD_PTE23__DCU0_B2 0x1902
250 VF610_PAD_PTE24__DCU0_B3 0x1902
251 VF610_PAD_PTE25__DCU0_B4 0x1902
252 VF610_PAD_PTE26__DCU0_B5 0x1902
253 VF610_PAD_PTE27__DCU0_B6 0x1902
254 VF610_PAD_PTE28__DCU0_B7 0x1902
255 >;
256 };
257
Bhuvanchandra DV9fca0152015-01-29 21:57:45 +0530258 pinctrl_dspi1: dspi1grp {
259 fsl,pins = <
260 VF610_PAD_PTD5__DSPI1_CS0 0x33e2
261 VF610_PAD_PTD6__DSPI1_SIN 0x33e1
262 VF610_PAD_PTD7__DSPI1_SOUT 0x33e2
263 VF610_PAD_PTD8__DSPI1_SCK 0x33e2
264 >;
265 };
266
Stefan Agnere1bf86a2014-11-02 21:36:47 +0100267 pinctrl_esdhc1: esdhc1grp {
268 fsl,pins = <
269 VF610_PAD_PTA24__ESDHC1_CLK 0x31ef
270 VF610_PAD_PTA25__ESDHC1_CMD 0x31ef
271 VF610_PAD_PTA26__ESDHC1_DAT0 0x31ef
272 VF610_PAD_PTA27__ESDHC1_DAT1 0x31ef
273 VF610_PAD_PTA28__ESDHC1_DATA2 0x31ef
274 VF610_PAD_PTA29__ESDHC1_DAT3 0x31ef
275 VF610_PAD_PTB20__GPIO_42 0x219d
276 >;
277 };
278
279 pinctrl_fec1: fec1grp {
280 fsl,pins = <
Stefan Agnereddb00f2014-11-28 00:40:06 +0100281 VF610_PAD_PTA6__RMII_CLKOUT 0x30d2
Stefan Agnere1bf86a2014-11-02 21:36:47 +0100282 VF610_PAD_PTC9__ENET_RMII1_MDC 0x30d2
283 VF610_PAD_PTC10__ENET_RMII1_MDIO 0x30d3
284 VF610_PAD_PTC11__ENET_RMII1_CRS 0x30d1
Cory Tusaraa5fec22015-05-13 23:11:38 -0400285 VF610_PAD_PTC12__ENET_RMII1_RXD1 0x30d1
Stefan Agnere1bf86a2014-11-02 21:36:47 +0100286 VF610_PAD_PTC13__ENET_RMII1_RXD0 0x30d1
287 VF610_PAD_PTC14__ENET_RMII1_RXER 0x30d1
288 VF610_PAD_PTC15__ENET_RMII1_TXD1 0x30d2
289 VF610_PAD_PTC16__ENET_RMII1_TXD0 0x30d2
290 VF610_PAD_PTC17__ENET_RMII1_TXEN 0x30d2
291 >;
292 };
293
Bhuvanchandra DVb2e42442016-01-09 12:29:53 +0530294 pinctrl_gpio_bl_on: gpio_bl_on {
295 fsl,pins = <
296 VF610_PAD_PTC0__GPIO_45 0x22ef
297 >;
298 };
299
Bhuvanchandra DV1ddeb482014-11-13 10:05:31 +0530300 pinctrl_i2c0: i2c0grp {
301 fsl,pins = <
302 VF610_PAD_PTB14__I2C0_SCL 0x37ff
303 VF610_PAD_PTB15__I2C0_SDA 0x37ff
304 >;
305 };
306
Stefan Agner65425262015-10-07 16:58:36 -0700307 pinctrl_nfc: nfcgrp {
308 fsl,pins = <
309 VF610_PAD_PTD23__NF_IO7 0x28df
310 VF610_PAD_PTD22__NF_IO6 0x28df
311 VF610_PAD_PTD21__NF_IO5 0x28df
312 VF610_PAD_PTD20__NF_IO4 0x28df
313 VF610_PAD_PTD19__NF_IO3 0x28df
314 VF610_PAD_PTD18__NF_IO2 0x28df
315 VF610_PAD_PTD17__NF_IO1 0x28df
316 VF610_PAD_PTD16__NF_IO0 0x28df
317 VF610_PAD_PTB24__NF_WE_B 0x28c2
318 VF610_PAD_PTB25__NF_CE0_B 0x28c2
319 VF610_PAD_PTB27__NF_RE_B 0x28c2
320 VF610_PAD_PTC26__NF_RB_B 0x283d
321 VF610_PAD_PTC27__NF_ALE 0x28c2
322 VF610_PAD_PTC28__NF_CLE 0x28c2
323 >;
324 };
325
Stefan Agnere1bf86a2014-11-02 21:36:47 +0100326 pinctrl_pwm0: pwm0grp {
327 fsl,pins = <
328 VF610_PAD_PTB0__FTM0_CH0 0x1182
329 VF610_PAD_PTB1__FTM0_CH1 0x1182
330 >;
331 };
332
333 pinctrl_pwm1: pwm1grp {
334 fsl,pins = <
335 VF610_PAD_PTB8__FTM1_CH0 0x1182
336 VF610_PAD_PTB9__FTM1_CH1 0x1182
337 >;
338 };
339
340 pinctrl_uart0: uart0grp {
341 fsl,pins = <
342 VF610_PAD_PTB10__UART0_TX 0x21a2
343 VF610_PAD_PTB11__UART0_RX 0x21a1
Bhuvanchandra DV894b73832016-02-16 09:16:01 +0530344 VF610_PAD_PTB12__UART0_RTS 0x21a2
345 VF610_PAD_PTB13__UART0_CTS 0x21a1
Stefan Agnere1bf86a2014-11-02 21:36:47 +0100346 >;
347 };
348
349 pinctrl_uart1: uart1grp {
350 fsl,pins = <
351 VF610_PAD_PTB4__UART1_TX 0x21a2
352 VF610_PAD_PTB5__UART1_RX 0x21a1
353 >;
354 };
355
356 pinctrl_uart2: uart2grp {
357 fsl,pins = <
358 VF610_PAD_PTD0__UART2_TX 0x21a2
359 VF610_PAD_PTD1__UART2_RX 0x21a1
360 VF610_PAD_PTD2__UART2_RTS 0x21a2
361 VF610_PAD_PTD3__UART2_CTS 0x21a1
362 >;
363 };
Stefan Agner505251e2014-11-16 19:00:28 +0100364
365 pinctrl_usbh1_reg: gpio_usb_vbus {
366 fsl,pins = <
367 VF610_PAD_PTD4__GPIO_83 0x22ed
368 >;
369 };
Stefan Agnere1bf86a2014-11-02 21:36:47 +0100370 };
371};