]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blob - arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts
Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[mirror_ubuntu-eoan-kernel.git] / arch / arm / boot / dts / imx6dl-colibri-eval-v3.dts
1 /*
2 * Copyright 2014-2016 Toradex AG
3 * Copyright 2012 Freescale Semiconductor, Inc.
4 * Copyright 2011 Linaro Ltd.
5 *
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
9 * whole.
10 *
11 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * version 2 as published by the Free Software Foundation.
14 *
15 * This file is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * Or, alternatively,
21 *
22 * b) Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or
27 * sell copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
29 * conditions:
30 *
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
33 *
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
42 */
43
44 /dts-v1/;
45
46 #include <dt-bindings/input/input.h>
47 #include <dt-bindings/interrupt-controller/irq.h>
48 #include "imx6dl.dtsi"
49 #include "imx6qdl-colibri.dtsi"
50
51 / {
52 model = "Toradex Colibri iMX6DL/S on Colibri Evaluation Board V3";
53 compatible = "toradex,colibri_imx6dl-eval-v3", "toradex,colibri_imx6dl",
54 "fsl,imx6dl";
55
56 /* Will be filled by the bootloader */
57 memory@10000000 {
58 reg = <0x10000000 0>;
59 };
60
61 aliases {
62 i2c0 = &i2c2;
63 i2c1 = &i2c3;
64 };
65
66 aliases {
67 rtc0 = &rtc_i2c;
68 rtc1 = &snvs_rtc;
69 };
70
71 chosen {
72 stdout-path = "serial0:115200n8";
73 };
74
75 /* Fixed crystal dedicated to mcp251x */
76 clk16m: clock-16m {
77 compatible = "fixed-clock";
78 #clock-cells = <0>;
79 clock-frequency = <16000000>;
80 clock-output-names = "clk16m";
81 };
82
83 gpio-keys {
84 compatible = "gpio-keys";
85 pinctrl-names = "default";
86 pinctrl-0 = <&pinctrl_gpio_keys>;
87
88 wakeup {
89 label = "Wake-Up";
90 gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; /* SODIMM 45 */
91 linux,code = <KEY_WAKEUP>;
92 debounce-interval = <10>;
93 wakeup-source;
94 };
95 };
96
97 lcd_display: disp0 {
98 compatible = "fsl,imx-parallel-display";
99 #address-cells = <1>;
100 #size-cells = <0>;
101 interface-pix-fmt = "bgr666";
102 pinctrl-names = "default";
103 pinctrl-0 = <&pinctrl_ipu1_lcdif>;
104 status = "okay";
105
106 port@0 {
107 reg = <0>;
108
109 lcd_display_in: endpoint {
110 remote-endpoint = <&ipu1_di0_disp0>;
111 };
112 };
113
114 port@1 {
115 reg = <1>;
116
117 lcd_display_out: endpoint {
118 remote-endpoint = <&lcd_panel_in>;
119 };
120 };
121 };
122
123 panel: panel {
124 /*
125 * edt,et057090dhu: EDT 5.7" LCD TFT
126 * edt,et070080dh6: EDT 7.0" LCD TFT
127 */
128 compatible = "edt,et057090dhu";
129 backlight = <&backlight>;
130
131 port {
132 lcd_panel_in: endpoint {
133 remote-endpoint = <&lcd_display_out>;
134 };
135 };
136 };
137 };
138
139 &backlight {
140 brightness-levels = <0 127 191 223 239 247 251 255>;
141 default-brightness-level = <1>;
142 status = "okay";
143 };
144
145 /* Colibri SSP */
146 &ecspi4 {
147 status = "okay";
148
149 mcp251x0: mcp251x@0 {
150 compatible = "microchip,mcp2515";
151 reg = <0>;
152 clocks = <&clk16m>;
153 interrupt-parent = <&gpio3>;
154 interrupts = <27 0x2>;
155 spi-max-frequency = <10000000>;
156 status = "okay";
157 };
158 };
159
160 &hdmi {
161 status = "okay";
162 };
163
164 /*
165 * Colibri I2C: I2C3_SDA/SCL on SODIMM 194/196 (e.g. RTC on carrier board)
166 */
167 &i2c3 {
168 status = "okay";
169
170 /* M41T0M6 real time clock on carrier board */
171 rtc_i2c: rtc@68 {
172 compatible = "st,m41t0";
173 reg = <0x68>;
174 };
175 };
176
177 &ipu1_di0_disp0 {
178 remote-endpoint = <&lcd_display_in>;
179 };
180
181 &pwm1 {
182 status = "okay";
183 };
184
185 &pwm2 {
186 status = "okay";
187 };
188
189 &pwm3 {
190 status = "okay";
191 };
192
193 &pwm4 {
194 status = "okay";
195 };
196
197 &reg_usb_host_vbus {
198 status = "okay";
199 };
200
201 &uart1 {
202 status = "okay";
203 };
204
205 &uart2 {
206 status = "okay";
207 };
208
209 &uart3 {
210 status = "okay";
211 };
212
213 &usbh1 {
214 vbus-supply = <&reg_usb_host_vbus>;
215 status = "okay";
216 };
217
218 &usbotg {
219 status = "okay";
220 };
221
222 /* Colibri MMC */
223 &usdhc1 {
224 status = "okay";
225 };
226
227 &weim {
228 status = "okay";
229
230 /* weim memory map: 32MB on CS0, 32MB on CS1, 32MB on CS2 */
231 ranges = <0 0 0x08000000 0x02000000
232 1 0 0x0a000000 0x02000000
233 2 0 0x0c000000 0x02000000>;
234
235 /* SRAM on Colibri nEXT_CS0 */
236 sram@0,0 {
237 compatible = "cypress,cy7c1019dv33-10zsxi, mtd-ram";
238 reg = <0 0 0x00010000>;
239 #address-cells = <1>;
240 #size-cells = <1>;
241 bank-width = <2>;
242 fsl,weim-cs-timing = <0x00010081 0x00000000 0x04000000
243 0x00000000 0x04000040 0x00000000>;
244 };
245
246 /* SRAM on Colibri nEXT_CS1 */
247 sram@1,0 {
248 compatible = "cypress,cy7c1019dv33-10zsxi, mtd-ram";
249 reg = <1 0 0x00010000>;
250 #address-cells = <1>;
251 #size-cells = <1>;
252 bank-width = <2>;
253 fsl,weim-cs-timing = <0x00010081 0x00000000 0x04000000
254 0x00000000 0x04000040 0x00000000>;
255 };
256 };