]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - src/arm/imx7-colibri-eval-v3.dtsi
DTS: Update the device-tree files to Linux 5.5
[FreeBSD/FreeBSD.git] / src / arm / imx7-colibri-eval-v3.dtsi
1 /*
2  * Copyright 2016 Toradex AG
3  *
4  * 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 as
11  *     published by the Free Software Foundation; either version 2 of the
12  *     License, or (at your option) any later version.
13  *
14  *     This file is distributed in the hope that it will be useful,
15  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  *     GNU General Public License for more details.
18  *
19  * Or, alternatively,
20  *
21  *  b) Permission is hereby granted, free of charge, to any person
22  *     obtaining a copy of this software and associated documentation
23  *     files (the "Software"), to deal in the Software without
24  *     restriction, including without limitation the rights to use,
25  *     copy, modify, merge, publish, distribute, sublicense, and/or
26  *     sell copies of the Software, and to permit persons to whom the
27  *     Software is furnished to do so, subject to the following
28  *     conditions:
29  *
30  *     The above copyright notice and this permission notice shall be
31  *     included in all copies or substantial portions of the Software.
32  *
33  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40  *     OTHER DEALINGS IN THE SOFTWARE.
41  */
42
43 / {
44         chosen {
45                 stdout-path = "serial0:115200n8";
46         };
47
48         /* fixed crystal dedicated to mpc258x */
49         clk16m: clk16m {
50                 compatible = "fixed-clock";
51                 #clock-cells = <0>;
52                 clock-frequency = <16000000>;
53         };
54
55         gpio-keys {
56                 compatible = "gpio-keys";
57                 pinctrl-names = "default";
58                 pinctrl-0 = <&pinctrl_gpiokeys>;
59
60                 power {
61                         label = "Wake-Up";
62                         gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
63                         linux,code = <KEY_WAKEUP>;
64                         debounce-interval = <10>;
65                         wakeup-source;
66                 };
67         };
68
69         panel: panel {
70                 compatible = "edt,et057090dhu";
71                 backlight = <&bl>;
72                 power-supply = <&reg_3v3>;
73
74                 port {
75                         panel_in: endpoint {
76                                 remote-endpoint = <&lcdif_out>;
77                         };
78                 };
79         };
80
81         reg_3v3: regulator-3v3 {
82                 compatible = "regulator-fixed";
83                 regulator-name = "3.3V";
84                 regulator-min-microvolt = <3300000>;
85                 regulator-max-microvolt = <3300000>;
86         };
87
88         reg_5v0: regulator-5v0 {
89                 compatible = "regulator-fixed";
90                 regulator-name = "5V";
91                 regulator-min-microvolt = <5000000>;
92                 regulator-max-microvolt = <5000000>;
93         };
94
95         reg_usbh_vbus: regulator-usbh-vbus {
96                 compatible = "regulator-fixed";
97                 pinctrl-names = "default";
98                 pinctrl-0 = <&pinctrl_usbh_reg>;
99                 regulator-name = "VCC_USB[1-4]";
100                 regulator-min-microvolt = <5000000>;
101                 regulator-max-microvolt = <5000000>;
102                 gpio = <&gpio4 7 GPIO_ACTIVE_LOW>;
103                 vin-supply = <&reg_5v0>;
104         };
105 };
106
107 &bl {
108         brightness-levels = <0 4 8 16 32 64 128 255>;
109         default-brightness-level = <6>;
110         power-supply = <&reg_3v3>;
111
112         status = "okay";
113 };
114
115 &adc1 {
116         status = "okay";
117 };
118
119 &adc2 {
120         status = "okay";
121 };
122
123 &ecspi3 {
124         status = "okay";
125
126         mcp2515: can@0 {
127                 compatible = "microchip,mcp2515";
128                 pinctrl-names = "default";
129                 pinctrl-0 = <&pinctrl_can_int>;
130                 reg = <0>;
131                 clocks = <&clk16m>;
132                 interrupt-parent = <&gpio5>;
133                 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
134                 spi-max-frequency = <10000000>;
135                 vdd-supply = <&reg_3v3>;
136                 xceiver-supply = <&reg_5v0>;
137                 status = "okay";
138         };
139 };
140
141 &fec1 {
142         status = "okay";
143 };
144
145 &i2c4 {
146         status = "okay";
147
148         /*
149          * Touchscreen is using SODIMM 28/30, also used for PWM<B>, PWM<C>,
150          * aka pwm2, pwm3. so if you enable touchscreen, disable the pwms
151          */
152         touchscreen@4a {
153                 compatible = "atmel,maxtouch";
154                 pinctrl-names = "default";
155                 pinctrl-0 = <&pinctrl_gpiotouch>;
156                 reg = <0x4a>;
157                 interrupt-parent = <&gpio1>;
158                 interrupts = <9 IRQ_TYPE_EDGE_FALLING>;         /* SODIMM 28 */
159                 reset-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;     /* SODIMM 30 */
160                 status = "disabled";
161         };
162
163         /* M41T0M6 real time clock on carrier board */
164         rtc: m41t0m6@68 {
165                 compatible = "st,m41t0";
166                 reg = <0x68>;
167         };
168 };
169
170 &lcdif {
171         status = "okay";
172
173         port {
174                 lcdif_out: endpoint {
175                         remote-endpoint = <&panel_in>;
176                 };
177         };
178 };
179
180 &pwm1 {
181         status = "okay";
182 };
183
184 &pwm2 {
185         status = "okay";
186 };
187
188 &pwm3 {
189         status = "okay";
190 };
191
192 &pwm4 {
193         status = "okay";
194 };
195
196 &uart1 {
197         status = "okay";
198 };
199
200 &uart2 {
201         status = "okay";
202 };
203
204 &uart3 {
205         status = "okay";
206 };
207
208 &usbotg1 {
209         status = "okay";
210 };
211
212 &usdhc1 {
213         keep-power-in-suspend;
214         wakeup-source;
215         vmmc-supply = <&reg_3v3>;
216         status = "okay";
217 };
218
219 &iomuxc {
220         pinctrl_gpiotouch: touchgpios {
221                 fsl,pins = <
222                         MX7D_PAD_GPIO1_IO09__GPIO1_IO9          0x74
223                         MX7D_PAD_GPIO1_IO10__GPIO1_IO10         0x14
224                 >;
225         };
226 };