]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blob - arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts
Merge tag 'linux-watchdog-4.17-rc1' of git://www.linux-watchdog.org/linux-watchdog
[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 clocks {
76 /* Fixed crystal dedicated to mcp251x */
77 clk16m: clk@1 {
78 compatible = "fixed-clock";
79 reg = <1>;
80 #clock-cells = <0>;
81 clock-frequency = <16000000>;
82 clock-output-names = "clk16m";
83 };
84 };
85
86 gpio-keys {
87 compatible = "gpio-keys";
88 pinctrl-names = "default";
89 pinctrl-0 = <&pinctrl_gpio_keys>;
90
91 wakeup {
92 label = "Wake-Up";
93 gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; /* SODIMM 45 */
94 linux,code = <KEY_WAKEUP>;
95 debounce-interval = <10>;
96 wakeup-source;
97 };
98 };
99
100 lcd_display: disp0 {
101 compatible = "fsl,imx-parallel-display";
102 #address-cells = <1>;
103 #size-cells = <0>;
104 interface-pix-fmt = "bgr666";
105 pinctrl-names = "default";
106 pinctrl-0 = <&pinctrl_ipu1_lcdif>;
107 status = "okay";
108
109 port@0 {
110 reg = <0>;
111
112 lcd_display_in: endpoint {
113 remote-endpoint = <&ipu1_di0_disp0>;
114 };
115 };
116
117 port@1 {
118 reg = <1>;
119
120 lcd_display_out: endpoint {
121 remote-endpoint = <&lcd_panel_in>;
122 };
123 };
124 };
125
126 panel: panel {
127 /*
128 * edt,et057090dhu: EDT 5.7" LCD TFT
129 * edt,et070080dh6: EDT 7.0" LCD TFT
130 */
131 compatible = "edt,et057090dhu";
132 backlight = <&backlight>;
133
134 port {
135 lcd_panel_in: endpoint {
136 remote-endpoint = <&lcd_display_out>;
137 };
138 };
139 };
140 };
141
142 &backlight {
143 brightness-levels = <0 127 191 223 239 247 251 255>;
144 default-brightness-level = <1>;
145 status = "okay";
146 };
147
148 /* Colibri SSP */
149 &ecspi4 {
150 status = "okay";
151
152 mcp251x0: mcp251x@1 {
153 compatible = "microchip,mcp2515";
154 reg = <0>;
155 clocks = <&clk16m>;
156 interrupt-parent = <&gpio3>;
157 interrupts = <27 0x2>;
158 spi-max-frequency = <10000000>;
159 status = "okay";
160 };
161 };
162
163 &hdmi {
164 status = "okay";
165 };
166
167 /*
168 * Colibri I2C: I2C3_SDA/SCL on SODIMM 194/196 (e.g. RTC on carrier board)
169 */
170 &i2c3 {
171 status = "okay";
172
173 /* M41T0M6 real time clock on carrier board */
174 rtc_i2c: rtc@68 {
175 compatible = "st,m41t0";
176 reg = <0x68>;
177 };
178 };
179
180 &ipu1_di0_disp0 {
181 remote-endpoint = <&lcd_display_in>;
182 };
183
184 &pwm1 {
185 status = "okay";
186 };
187
188 &pwm2 {
189 status = "okay";
190 };
191
192 &pwm3 {
193 status = "okay";
194 };
195
196 &pwm4 {
197 status = "okay";
198 };
199
200 &reg_usb_host_vbus {
201 status = "okay";
202 };
203
204 &uart1 {
205 status = "okay";
206 };
207
208 &uart2 {
209 status = "okay";
210 };
211
212 &uart3 {
213 status = "okay";
214 };
215
216 &usbh1 {
217 vbus-supply = <&reg_usb_host_vbus>;
218 status = "okay";
219 };
220
221 &usbotg {
222 status = "okay";
223 };
224
225 /* Colibri MMC */
226 &usdhc1 {
227 pinctrl-names = "default";
228 pinctrl-0 = <&pinctrl_mmc_cd>;
229 cd-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; /* MMCD */
230 status = "okay";
231 };
232
233 &weim {
234 status = "okay";
235
236 /* weim memory map: 32MB on CS0, 32MB on CS1, 32MB on CS2 */
237 ranges = <0 0 0x08000000 0x02000000
238 1 0 0x0a000000 0x02000000
239 2 0 0x0c000000 0x02000000>;
240
241 /* SRAM on Colibri nEXT_CS0 */
242 sram@0,0 {
243 compatible = "cypress,cy7c1019dv33-10zsxi, mtd-ram";
244 reg = <0 0 0x00010000>;
245 #address-cells = <1>;
246 #size-cells = <1>;
247 bank-width = <2>;
248 fsl,weim-cs-timing = <0x00010081 0x00000000 0x04000000
249 0x00000000 0x04000040 0x00000000>;
250 };
251
252 /* SRAM on Colibri nEXT_CS1 */
253 sram@1,0 {
254 compatible = "cypress,cy7c1019dv33-10zsxi, mtd-ram";
255 reg = <1 0 0x00010000>;
256 #address-cells = <1>;
257 #size-cells = <1>;
258 bank-width = <2>;
259 fsl,weim-cs-timing = <0x00010081 0x00000000 0x04000000
260 0x00000000 0x04000040 0x00000000>;
261 };
262 };