Linux Audio

Check our new training course

Linux kernel drivers training

Mar 31-Apr 9, 2025, special US time zones
Register
Loading...
v6.2
  1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2/*
  3 * Copyright 2014-2022 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	aliases {
 21		i2c0 = &i2c2;
 22		i2c1 = &i2c3;
 23	};
 24
 25	aliases {
 26		rtc0 = &rtc_i2c;
 27		rtc1 = &snvs_rtc;
 28	};
 29
 30	chosen {
 31		stdout-path = "serial0:115200n8";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 32	};
 33
 34	/* Fixed crystal dedicated to mcp251x */
 35	clk16m: clock-16m {
 36		compatible = "fixed-clock";
 37		#clock-cells = <0>;
 38		clock-frequency = <16000000>;
 39		clock-output-names = "clk16m";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 40	};
 41};
 42
 
 
 
 
 
 
 43/* Colibri SSP */
 44&ecspi4 {
 45	status = "okay";
 46
 47	mcp251x0: mcp251x@0 {
 48		compatible = "microchip,mcp2515";
 
 49		clocks = <&clk16m>;
 50		interrupt-parent = <&gpio3>;
 51		interrupts = <27 0x2>;
 52		reg = <0>;
 53		spi-max-frequency = <10000000>;
 54		status = "okay";
 55	};
 56};
 57
 
 
 
 
 58/*
 59 * Colibri I2C: I2C3_SDA/SCL on SODIMM 194/196 (e.g. RTC on carrier board)
 60 */
 61&i2c3 {
 62	status = "okay";
 63
 64	/* M41T0M6 real time clock on carrier board */
 65	rtc_i2c: rtc@68 {
 66		compatible = "st,m41t0";
 67		reg = <0x68>;
 68	};
 69};
 70
 71&iomuxc {
 72	pinctrl-names = "default";
 73	pinctrl-0 = <
 74		&pinctrl_weim_gpio_1 &pinctrl_weim_gpio_2
 75		&pinctrl_weim_gpio_3 &pinctrl_weim_gpio_4
 76		&pinctrl_weim_gpio_5 &pinctrl_weim_gpio_6
 77		&pinctrl_usbh_oc_1 &pinctrl_usbc_id_1
 78	>;
 79};
 80
 81&pwm1 {
 82	status = "okay";
 83};
 84
 85&pwm2 {
 86	status = "okay";
 87};
 88
 89&pwm3 {
 90	status = "okay";
 91};
 92
 93&pwm4 {
 94	status = "okay";
 95};
 96
 97&reg_usb_host_vbus {
 98	status = "okay";
 99};
100
101&uart1 {
102	status = "okay";
103};
104
105&uart2 {
106	status = "okay";
107};
108
109&uart3 {
110	status = "okay";
111};
112
113&usbh1 {
 
114	status = "okay";
115};
116
117&usbotg {
118	status = "okay";
119};
120
121/* Colibri MMC */
122&usdhc1 {
 
 
 
123	status = "okay";
124};
125
126&weim {
127	status = "okay";
128
129	/* weim memory map: 32MB on CS0, CS1, CS2 and CS3 */
130	ranges = <0 0 0x08000000 0x02000000
131		  1 0 0x0a000000 0x02000000
132		  2 0 0x0c000000 0x02000000
133		  3 0 0x0e000000 0x02000000>;
134
135	/* SRAM on Colibri nEXT_CS0 */
136	sram@0,0 {
137		compatible = "cypress,cy7c1019dv33-10zsxi", "mtd-ram";
138		reg = <0 0 0x00010000>;
139		#address-cells = <1>;
140		#size-cells = <1>;
141		bank-width = <2>;
142		fsl,weim-cs-timing = <0x00010081 0x00000000 0x04000000
143				      0x00000000 0x04000040 0x00000000>;
144	};
145
146	/* SRAM on Colibri nEXT_CS1 */
147	sram@1,0 {
148		compatible = "cypress,cy7c1019dv33-10zsxi", "mtd-ram";
149		reg = <1 0 0x00010000>;
150		#address-cells = <1>;
151		#size-cells = <1>;
152		bank-width = <2>;
153		fsl,weim-cs-timing = <0x00010081 0x00000000 0x04000000
154				      0x00000000 0x04000040 0x00000000>;
155	};
156};
v4.10.11
 
  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 , 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	aliases {
 57		i2c0 = &i2c2;
 58		i2c1 = &i2c3;
 59	};
 60
 61	aliases {
 62		rtc0 = &rtc_i2c;
 63		rtc1 = &snvs_rtc;
 64	};
 65
 66	clocks {
 67		/* Fixed crystal dedicated to mcp251x */
 68		clk16m: clk@1 {
 69			compatible = "fixed-clock";
 70			reg = <1>;
 71			#clock-cells = <0>;
 72			clock-frequency = <16000000>;
 73			clock-output-names = "clk16m";
 74		};
 75	};
 76
 77	gpio-keys {
 78		compatible = "gpio-keys";
 79		pinctrl-names = "default";
 80		pinctrl-0 = <&pinctrl_gpio_keys>;
 81
 82		wakeup {
 83			label = "Wake-Up";
 84			gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; /* SODIMM 45 */
 85			linux,code = <KEY_WAKEUP>;
 86			debounce-interval = <10>;
 87			wakeup-source;
 88		};
 89	};
 90
 91	lcd_display: display@di0 {
 92		compatible = "fsl,imx-parallel-display";
 93		#address-cells = <1>;
 94		#size-cells = <0>;
 95		interface-pix-fmt = "bgr666";
 96		pinctrl-names = "default";
 97		pinctrl-0 = <&pinctrl_ipu1_lcdif>;
 98		status = "okay";
 99
100		port@0 {
101			reg = <0>;
102
103			lcd_display_in: endpoint {
104				remote-endpoint = <&ipu1_di0_disp0>;
105			};
106		};
107
108		port@1 {
109			reg = <1>;
110
111			lcd_display_out: endpoint {
112				remote-endpoint = <&lcd_panel_in>;
113			};
114		};
115	};
116
117	panel: panel {
118		/*
119		 * edt,et057090dhu: EDT 5.7" LCD TFT
120		 * edt,et070080dh6: EDT 7.0" LCD TFT
121		 */
122		compatible = "edt,et057090dhu";
123		backlight = <&backlight>;
124
125		port {
126			lcd_panel_in: endpoint {
127				remote-endpoint = <&lcd_display_out>;
128			};
129		};
130	};
131};
132
133&backlight {
134	brightness-levels = <0 127 191 223 239 247 251 255>;
135	default-brightness-level = <1>;
136	status = "okay";
137};
138
139/* Colibri SSP */
140&ecspi4 {
141	status = "okay";
142
143	mcp251x0: mcp251x@1 {
144		compatible = "microchip,mcp2515";
145		reg = <0>;
146		clocks = <&clk16m>;
147		interrupt-parent = <&gpio3>;
148		interrupts = <27 0x2>;
 
149		spi-max-frequency = <10000000>;
150		status = "okay";
151	};
152};
153
154&hdmi {
155	status = "okay";
156};
157
158/*
159 * Colibri I2C: I2C3_SDA/SCL on SODIMM 194/196 (e.g. RTC on carrier board)
160 */
161&i2c3 {
162	status = "okay";
163
164	/* M41T0M6 real time clock on carrier board */
165	rtc_i2c: rtc@68 {
166		compatible = "st,m41t00";
167		reg = <0x68>;
168	};
169};
170
171&ipu1_di0_disp0 {
172	remote-endpoint = <&lcd_display_in>;
 
 
 
 
 
 
173};
174
175&pwm1 {
176	status = "okay";
177};
178
179&pwm2 {
180	status = "okay";
181};
182
183&pwm3 {
184	status = "okay";
185};
186
187&pwm4 {
188	status = "okay";
189};
190
191&reg_usb_host_vbus {
192	status = "okay";
193};
194
195&uart1 {
196	status = "okay";
197};
198
199&uart2 {
200	status = "okay";
201};
202
203&uart3 {
204	status = "okay";
205};
206
207&usbh1 {
208	vbus-supply = <&reg_usb_host_vbus>;
209	status = "okay";
210};
211
212&usbotg {
213	status = "okay";
214};
215
216/* Colibri MMC */
217&usdhc1 {
218	pinctrl-names = "default";
219	pinctrl-0 = <&pinctrl_mmc_cd>;
220	cd-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; /* MMCD */
221	status = "okay";
222};
223
224&weim {
225	status = "okay";
226
227	/* weim memory map: 32MB on CS0, 32MB on CS1, 32MB on CS2 */
228	ranges = <0 0 0x08000000 0x02000000
229		  1 0 0x0a000000 0x02000000
230		  2 0 0x0c000000 0x02000000>;
 
231
232	/* SRAM on Colibri nEXT_CS0 */
233	sram@0,0 {
234		compatible = "cypress,cy7c1019dv33-10zsxi, mtd-ram";
235		reg = <0 0 0x00010000>;
236		#address-cells = <1>;
237		#size-cells = <1>;
238		bank-width = <2>;
239		fsl,weim-cs-timing = <0x00010081 0x00000000 0x04000000
240				      0x00000000 0x04000040 0x00000000>;
241	};
242
243	/* SRAM on Colibri nEXT_CS1 */
244	sram@1,0 {
245		compatible = "cypress,cy7c1019dv33-10zsxi, mtd-ram";
246		reg = <1 0 0x00010000>;
247		#address-cells = <1>;
248		#size-cells = <1>;
249		bank-width = <2>;
250		fsl,weim-cs-timing = <0x00010081 0x00000000 0x04000000
251				      0x00000000 0x04000040 0x00000000>;
252	};
253};