OSDN Git Service

ARM: dts: vf610-colibri: Add ADC support
[android-x86/kernel.git] / arch / arm / boot / dts / vf610-colibri.dtsi
1 /*
2  * Copyright 2014 Toradex AG
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  */
9
10 #include "vf610.dtsi"
11
12 / {
13         model = "Toradex Colibri VF61 COM";
14         compatible = "toradex,vf610-colibri_vf61", "fsl,vf610";
15
16         memory {
17                 reg = <0x80000000 0x10000000>;
18         };
19
20         clocks {
21                 enet_ext {
22                         compatible = "fixed-clock";
23                         #clock-cells = <0>;
24                         clock-frequency = <50000000>;
25                 };
26         };
27
28         bl: backlight {
29                 compatible = "pwm-backlight";
30                 pwms = <&pwm0 0 5000000 0>;
31                 status = "disabled";
32         };
33 };
34
35 &adc0 {
36         status = "okay";
37 };
38
39 &adc1 {
40         status = "okay";
41 };
42
43 &esdhc1 {
44         pinctrl-names = "default";
45         pinctrl-0 = <&pinctrl_esdhc1>;
46         bus-width = <4>;
47 };
48
49 &fec1 {
50         phy-mode = "rmii";
51         pinctrl-names = "default";
52         pinctrl-0 = <&pinctrl_fec1>;
53 };
54
55 &L2 {
56         arm,data-latency = <2 1 2>;
57         arm,tag-latency = <3 2 3>;
58 };
59
60 &pwm0 {
61         pinctrl-names = "default";
62         pinctrl-0 = <&pinctrl_pwm0>;
63 };
64
65 &pwm1 {
66         pinctrl-names = "default";
67         pinctrl-0 = <&pinctrl_pwm1>;
68 };
69
70 &uart0 {
71         pinctrl-names = "default";
72         pinctrl-0 = <&pinctrl_uart0>;
73 };
74
75 &uart1 {
76         pinctrl-names = "default";
77         pinctrl-0 = <&pinctrl_uart1>;
78 };
79
80 &uart2 {
81         pinctrl-names = "default";
82         pinctrl-0 = <&pinctrl_uart2>;
83 };
84
85 &usbdev0 {
86         disable-over-current;
87         status = "okay";
88 };
89
90 &usbh1 {
91         disable-over-current;
92         status = "okay";
93 };
94
95 &iomuxc {
96         vf610-colibri {
97                 pinctrl_esdhc1: esdhc1grp {
98                         fsl,pins = <
99                                 VF610_PAD_PTA24__ESDHC1_CLK     0x31ef
100                                 VF610_PAD_PTA25__ESDHC1_CMD     0x31ef
101                                 VF610_PAD_PTA26__ESDHC1_DAT0    0x31ef
102                                 VF610_PAD_PTA27__ESDHC1_DAT1    0x31ef
103                                 VF610_PAD_PTA28__ESDHC1_DATA2   0x31ef
104                                 VF610_PAD_PTA29__ESDHC1_DAT3    0x31ef
105                                 VF610_PAD_PTB20__GPIO_42        0x219d
106                         >;
107                 };
108
109                 pinctrl_fec1: fec1grp {
110                         fsl,pins = <
111                                 VF610_PAD_PTC9__ENET_RMII1_MDC          0x30d2
112                                 VF610_PAD_PTC10__ENET_RMII1_MDIO        0x30d3
113                                 VF610_PAD_PTC11__ENET_RMII1_CRS         0x30d1
114                                 VF610_PAD_PTC12__ENET_RMII_RXD1         0x30d1
115                                 VF610_PAD_PTC13__ENET_RMII1_RXD0        0x30d1
116                                 VF610_PAD_PTC14__ENET_RMII1_RXER        0x30d1
117                                 VF610_PAD_PTC15__ENET_RMII1_TXD1        0x30d2
118                                 VF610_PAD_PTC16__ENET_RMII1_TXD0        0x30d2
119                                 VF610_PAD_PTC17__ENET_RMII1_TXEN        0x30d2
120                         >;
121                 };
122
123                 pinctrl_pwm0: pwm0grp {
124                         fsl,pins = <
125                                 VF610_PAD_PTB0__FTM0_CH0                0x1182
126                                 VF610_PAD_PTB1__FTM0_CH1                0x1182
127                         >;
128                 };
129
130                 pinctrl_pwm1: pwm1grp {
131                         fsl,pins = <
132                                 VF610_PAD_PTB8__FTM1_CH0                0x1182
133                                 VF610_PAD_PTB9__FTM1_CH1                0x1182
134                         >;
135                 };
136
137                 pinctrl_uart0: uart0grp {
138                         fsl,pins = <
139                                 VF610_PAD_PTB10__UART0_TX               0x21a2
140                                 VF610_PAD_PTB11__UART0_RX               0x21a1
141                         >;
142                 };
143
144                 pinctrl_uart1: uart1grp {
145                         fsl,pins = <
146                                 VF610_PAD_PTB4__UART1_TX                0x21a2
147                                 VF610_PAD_PTB5__UART1_RX                0x21a1
148                         >;
149                 };
150
151                 pinctrl_uart2: uart2grp {
152                         fsl,pins = <
153                                 VF610_PAD_PTD0__UART2_TX                0x21a2
154                                 VF610_PAD_PTD1__UART2_RX                0x21a1
155                                 VF610_PAD_PTD2__UART2_RTS               0x21a2
156                                 VF610_PAD_PTD3__UART2_CTS               0x21a1
157                         >;
158                 };
159         };
160 };