Loading...
1// SPDX-License-Identifier: GPL-2.0+ OR MIT
2/*
3 * Copyright 2014-2020 Toradex
4 * Copyright 2012 Freescale Semiconductor, Inc.
5 * Copyright 2011 Linaro Ltd.
6 */
7
8/dts-v1/;
9
10#include <dt-bindings/input/input.h>
11#include <dt-bindings/interrupt-controller/irq.h>
12#include "imx6dl.dtsi"
13#include "imx6qdl-colibri.dtsi"
14
15/ {
16 model = "Toradex Colibri iMX6DL/S on Colibri Evaluation Board V3";
17 compatible = "toradex,colibri_imx6dl-eval-v3", "toradex,colibri_imx6dl",
18 "fsl,imx6dl";
19
20 /* Will be filled by the bootloader */
21 memory@10000000 {
22 device_type = "memory";
23 reg = <0x10000000 0>;
24 };
25
26 aliases {
27 i2c0 = &i2c2;
28 i2c1 = &i2c3;
29 };
30
31 aliases {
32 rtc0 = &rtc_i2c;
33 rtc1 = &snvs_rtc;
34 };
35
36 chosen {
37 stdout-path = "serial0:115200n8";
38 };
39
40 /* Fixed crystal dedicated to mcp251x */
41 clk16m: clock-16m {
42 compatible = "fixed-clock";
43 #clock-cells = <0>;
44 clock-frequency = <16000000>;
45 clock-output-names = "clk16m";
46 };
47
48 gpio-keys {
49 compatible = "gpio-keys";
50 pinctrl-names = "default";
51 pinctrl-0 = <&pinctrl_gpio_keys>;
52
53 wakeup {
54 label = "Wake-Up";
55 gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; /* SODIMM 45 */
56 linux,code = <KEY_WAKEUP>;
57 debounce-interval = <10>;
58 wakeup-source;
59 };
60 };
61
62 lcd_display: disp0 {
63 compatible = "fsl,imx-parallel-display";
64 #address-cells = <1>;
65 #size-cells = <0>;
66 interface-pix-fmt = "bgr666";
67 pinctrl-names = "default";
68 pinctrl-0 = <&pinctrl_ipu1_lcdif>;
69 status = "okay";
70
71 port@0 {
72 reg = <0>;
73
74 lcd_display_in: endpoint {
75 remote-endpoint = <&ipu1_di0_disp0>;
76 };
77 };
78
79 port@1 {
80 reg = <1>;
81
82 lcd_display_out: endpoint {
83 remote-endpoint = <&lcd_panel_in>;
84 };
85 };
86 };
87
88 panel: panel {
89 /*
90 * edt,et057090dhu: EDT 5.7" LCD TFT
91 * edt,et070080dh6: EDT 7.0" LCD TFT
92 */
93 compatible = "edt,et057090dhu";
94 backlight = <&backlight>;
95
96 port {
97 lcd_panel_in: endpoint {
98 remote-endpoint = <&lcd_display_out>;
99 };
100 };
101 };
102};
103
104&backlight {
105 brightness-levels = <0 127 191 223 239 247 251 255>;
106 default-brightness-level = <1>;
107 status = "okay";
108};
109
110/* Colibri SSP */
111&ecspi4 {
112 status = "okay";
113
114 mcp251x0: mcp251x@0 {
115 compatible = "microchip,mcp2515";
116 reg = <0>;
117 clocks = <&clk16m>;
118 interrupt-parent = <&gpio3>;
119 interrupts = <27 0x2>;
120 spi-max-frequency = <10000000>;
121 status = "okay";
122 };
123};
124
125&hdmi {
126 status = "okay";
127};
128
129/*
130 * Colibri I2C: I2C3_SDA/SCL on SODIMM 194/196 (e.g. RTC on carrier board)
131 */
132&i2c3 {
133 status = "okay";
134
135 /*
136 * Touchscreen is using SODIMM 28/30, also used for PWM<B>, PWM<C>,
137 * aka pwm2, pwm3. so if you enable touchscreen, disable the pwms
138 */
139 touchscreen@4a {
140 compatible = "atmel,maxtouch";
141 pinctrl-names = "default";
142 pinctrl-0 = <&pinctrl_pcap_1>;
143 reg = <0x4a>;
144 interrupt-parent = <&gpio1>;
145 interrupts = <9 IRQ_TYPE_EDGE_FALLING>; /* SODIMM 28 */
146 reset-gpios = <&gpio2 10 GPIO_ACTIVE_LOW>; /* SODIMM 30 */
147 status = "disabled";
148 };
149
150 /* M41T0M6 real time clock on carrier board */
151 rtc_i2c: rtc@68 {
152 compatible = "st,m41t0";
153 reg = <0x68>;
154 };
155};
156
157&iomuxc {
158 pinctrl-names = "default";
159 pinctrl-0 = <
160 &pinctrl_weim_gpio_1 &pinctrl_weim_gpio_2
161 &pinctrl_weim_gpio_3 &pinctrl_weim_gpio_4
162 &pinctrl_weim_gpio_5 &pinctrl_weim_gpio_6
163 &pinctrl_usbh_oc_1 &pinctrl_usbc_id_1
164 >;
165
166 pinctrl_pcap_1: pcap1grp {
167 fsl,pins = <
168 MX6QDL_PAD_GPIO_9__GPIO1_IO09 0x1b0b0 /* SODIMM 28 */
169 MX6QDL_PAD_SD4_DAT2__GPIO2_IO10 0x1b0b0 /* SODIMM 30 */
170 >;
171 };
172
173 pinctrl_mxt_ts: mxttsgrp {
174 fsl,pins = <
175 MX6QDL_PAD_EIM_CS1__GPIO2_IO24 0x130b0 /* SODIMM 107 */
176 MX6QDL_PAD_SD2_DAT1__GPIO1_IO14 0x130b0 /* SODIMM 106 */
177 >;
178 };
179};
180
181&ipu1_di0_disp0 {
182 remote-endpoint = <&lcd_display_in>;
183};
184
185&pwm1 {
186 status = "okay";
187};
188
189&pwm2 {
190 status = "okay";
191};
192
193&pwm3 {
194 status = "okay";
195};
196
197&pwm4 {
198 status = "okay";
199};
200
201®_usb_host_vbus {
202 status = "okay";
203};
204
205&uart1 {
206 status = "okay";
207};
208
209&uart2 {
210 status = "okay";
211};
212
213&uart3 {
214 status = "okay";
215};
216
217&usbh1 {
218 vbus-supply = <®_usb_host_vbus>;
219 status = "okay";
220};
221
222&usbotg {
223 status = "okay";
224};
225
226/* Colibri MMC */
227&usdhc1 {
228 status = "okay";
229};
230
231&weim {
232 status = "okay";
233
234 /* weim memory map: 32MB on CS0, CS1, CS2 and CS3 */
235 ranges = <0 0 0x08000000 0x02000000
236 1 0 0x0a000000 0x02000000
237 2 0 0x0c000000 0x02000000
238 3 0 0x0e000000 0x02000000>;
239
240 /* SRAM on Colibri nEXT_CS0 */
241 sram@0,0 {
242 compatible = "cypress,cy7c1019dv33-10zsxi", "mtd-ram";
243 reg = <0 0 0x00010000>;
244 #address-cells = <1>;
245 #size-cells = <1>;
246 bank-width = <2>;
247 fsl,weim-cs-timing = <0x00010081 0x00000000 0x04000000
248 0x00000000 0x04000040 0x00000000>;
249 };
250
251 /* SRAM on Colibri nEXT_CS1 */
252 sram@1,0 {
253 compatible = "cypress,cy7c1019dv33-10zsxi", "mtd-ram";
254 reg = <1 0 0x00010000>;
255 #address-cells = <1>;
256 #size-cells = <1>;
257 bank-width = <2>;
258 fsl,weim-cs-timing = <0x00010081 0x00000000 0x04000000
259 0x00000000 0x04000040 0x00000000>;
260 };
261};
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 device_type = "memory";
59 reg = <0x10000000 0>;
60 };
61
62 aliases {
63 i2c0 = &i2c2;
64 i2c1 = &i2c3;
65 };
66
67 aliases {
68 rtc0 = &rtc_i2c;
69 rtc1 = &snvs_rtc;
70 };
71
72 chosen {
73 stdout-path = "serial0:115200n8";
74 };
75
76 /* Fixed crystal dedicated to mcp251x */
77 clk16m: clock-16m {
78 compatible = "fixed-clock";
79 #clock-cells = <0>;
80 clock-frequency = <16000000>;
81 clock-output-names = "clk16m";
82 };
83
84 gpio-keys {
85 compatible = "gpio-keys";
86 pinctrl-names = "default";
87 pinctrl-0 = <&pinctrl_gpio_keys>;
88
89 wakeup {
90 label = "Wake-Up";
91 gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; /* SODIMM 45 */
92 linux,code = <KEY_WAKEUP>;
93 debounce-interval = <10>;
94 wakeup-source;
95 };
96 };
97
98 lcd_display: disp0 {
99 compatible = "fsl,imx-parallel-display";
100 #address-cells = <1>;
101 #size-cells = <0>;
102 interface-pix-fmt = "bgr666";
103 pinctrl-names = "default";
104 pinctrl-0 = <&pinctrl_ipu1_lcdif>;
105 status = "okay";
106
107 port@0 {
108 reg = <0>;
109
110 lcd_display_in: endpoint {
111 remote-endpoint = <&ipu1_di0_disp0>;
112 };
113 };
114
115 port@1 {
116 reg = <1>;
117
118 lcd_display_out: endpoint {
119 remote-endpoint = <&lcd_panel_in>;
120 };
121 };
122 };
123
124 panel: panel {
125 /*
126 * edt,et057090dhu: EDT 5.7" LCD TFT
127 * edt,et070080dh6: EDT 7.0" LCD TFT
128 */
129 compatible = "edt,et057090dhu";
130 backlight = <&backlight>;
131
132 port {
133 lcd_panel_in: endpoint {
134 remote-endpoint = <&lcd_display_out>;
135 };
136 };
137 };
138};
139
140&backlight {
141 brightness-levels = <0 127 191 223 239 247 251 255>;
142 default-brightness-level = <1>;
143 status = "okay";
144};
145
146/* Colibri SSP */
147&ecspi4 {
148 status = "okay";
149
150 mcp251x0: mcp251x@0 {
151 compatible = "microchip,mcp2515";
152 reg = <0>;
153 clocks = <&clk16m>;
154 interrupt-parent = <&gpio3>;
155 interrupts = <27 0x2>;
156 spi-max-frequency = <10000000>;
157 status = "okay";
158 };
159};
160
161&hdmi {
162 status = "okay";
163};
164
165/*
166 * Colibri I2C: I2C3_SDA/SCL on SODIMM 194/196 (e.g. RTC on carrier board)
167 */
168&i2c3 {
169 status = "okay";
170
171 /* M41T0M6 real time clock on carrier board */
172 rtc_i2c: rtc@68 {
173 compatible = "st,m41t0";
174 reg = <0x68>;
175 };
176};
177
178&ipu1_di0_disp0 {
179 remote-endpoint = <&lcd_display_in>;
180};
181
182&pwm1 {
183 status = "okay";
184};
185
186&pwm2 {
187 status = "okay";
188};
189
190&pwm3 {
191 status = "okay";
192};
193
194&pwm4 {
195 status = "okay";
196};
197
198®_usb_host_vbus {
199 status = "okay";
200};
201
202&uart1 {
203 status = "okay";
204};
205
206&uart2 {
207 status = "okay";
208};
209
210&uart3 {
211 status = "okay";
212};
213
214&usbh1 {
215 vbus-supply = <®_usb_host_vbus>;
216 status = "okay";
217};
218
219&usbotg {
220 status = "okay";
221};
222
223/* Colibri MMC */
224&usdhc1 {
225 status = "okay";
226};
227
228&weim {
229 status = "okay";
230
231 /* weim memory map: 32MB on CS0, CS1, CS2 and CS3 */
232 ranges = <0 0 0x08000000 0x02000000
233 1 0 0x0a000000 0x02000000
234 2 0 0x0c000000 0x02000000
235 3 0 0x0e000000 0x02000000>;
236
237 /* SRAM on Colibri nEXT_CS0 */
238 sram@0,0 {
239 compatible = "cypress,cy7c1019dv33-10zsxi, mtd-ram";
240 reg = <0 0 0x00010000>;
241 #address-cells = <1>;
242 #size-cells = <1>;
243 bank-width = <2>;
244 fsl,weim-cs-timing = <0x00010081 0x00000000 0x04000000
245 0x00000000 0x04000040 0x00000000>;
246 };
247
248 /* SRAM on Colibri nEXT_CS1 */
249 sram@1,0 {
250 compatible = "cypress,cy7c1019dv33-10zsxi, mtd-ram";
251 reg = <1 0 0x00010000>;
252 #address-cells = <1>;
253 #size-cells = <1>;
254 bank-width = <2>;
255 fsl,weim-cs-timing = <0x00010081 0x00000000 0x04000000
256 0x00000000 0x04000040 0x00000000>;
257 };
258};