Linux Audio

Check our new training course

Yocto / OpenEmbedded training

Feb 10-13, 2025
Register
Loading...
v4.17
 
  1/*
  2 * Copyright 2014-2017 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/gpio/gpio.h>
 47#include <dt-bindings/input/input.h>
 48#include <dt-bindings/interrupt-controller/irq.h>
 49#include "imx6q.dtsi"
 50#include "imx6qdl-apalis.dtsi"
 51
 52/ {
 53	model = "Toradex Apalis iMX6Q/D Module on Ixora Carrier Board V1.1";
 54	compatible = "toradex,apalis_imx6q-ixora-v1.1",
 55		     "toradex,apalis_imx6q-ixora", "toradex,apalis_imx6q",
 56		     "fsl,imx6q";
 57
 58	aliases {
 59		i2c0 = &i2c1;
 60		i2c1 = &i2c3;
 61		i2c2 = &i2c2;
 62		rtc0 = &rtc_i2c;
 63		rtc1 = &snvs_rtc;
 64	};
 65
 
 
 
 
 66	gpio-keys {
 67		compatible = "gpio-keys";
 68		pinctrl-names = "default";
 69		pinctrl-0 = <&pinctrl_gpio_keys>;
 70
 71		wakeup {
 72			label = "Wake-Up";
 73			gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
 74			linux,code = <KEY_WAKEUP>;
 75			debounce-interval = <10>;
 76			wakeup-source;
 77		};
 78	};
 79
 80	lcd_display: disp0 {
 81		compatible = "fsl,imx-parallel-display";
 82		#address-cells = <1>;
 83		#size-cells = <0>;
 84		interface-pix-fmt = "rgb24";
 85		pinctrl-names = "default";
 86		pinctrl-0 = <&pinctrl_ipu1_lcdif>;
 87		status = "okay";
 88
 89		port@0 {
 90			reg = <0>;
 91
 92			lcd_display_in: endpoint {
 93				remote-endpoint = <&ipu1_di1_disp1>;
 94			};
 95		};
 96
 97		port@1 {
 98			reg = <1>;
 99
100			lcd_display_out: endpoint {
101				remote-endpoint = <&lcd_panel_in>;
102			};
103		};
104	};
105
106	panel: panel {
107		/*
108		 * edt,et057090dhu: EDT 5.7" LCD TFT
109		 * edt,et070080dh6: EDT 7.0" LCD TFT
110		 */
111		compatible = "edt,et057090dhu";
112		backlight = <&backlight>;
113
114		port {
115			lcd_panel_in: endpoint {
116				remote-endpoint = <&lcd_display_out>;
117			};
118		};
119	};
120
121	leds {
122		compatible = "gpio-leds";
123
124		pinctrl-names = "default";
125		pinctrl-0 = <&pinctrl_leds_ixora>;
126
127		led4-green {
128			label = "LED_4_GREEN";
129			gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
130		};
131
132		led4-red {
133			label = "LED_4_RED";
134			gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
135		};
136
137		led5-green {
138			label = "LED_5_GREEN";
139			gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
140		};
141
142		led5-red {
143			label = "LED_5_RED";
144			gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
145		};
146	};
147};
148
149&backlight {
150	brightness-levels = <0 127 191 223 239 247 251 255>;
151	default-brightness-level = <1>;
152	status = "okay";
153};
154
155&can1 {
156	status = "okay";
157};
158
159&can2 {
160	status = "okay";
161};
162
163&hdmi {
164	status = "okay";
165};
166
167/* I2C1_SDA/SCL on MXM3 209/211 (e.g. RTC on carrier board) */
168&i2c1 {
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/*
179 * I2C3_SDA/SCL (CAM) on MXM3 pin 201/203 (e.g. camera sensor on carrier
180 * board)
181 */
182&i2c3 {
183	status = "okay";
184};
185
186&ipu1_di1_disp1 {
187	remote-endpoint = <&lcd_display_in>;
188};
189
190&ldb {
191	status = "okay";
192};
193
194&pcie {
 
 
195	/* active-high meaning opposite of regular PERST# active-low polarity */
196	reset-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
197	reset-gpio-active-high;
198	status = "okay";
199};
200
201&pwm1 {
202	status = "okay";
203};
204
205&pwm2 {
206	status = "okay";
207};
208
209&pwm3 {
210	status = "okay";
211};
212
213&pwm4 {
214	status = "okay";
215};
216
217&reg_usb_otg_vbus {
218	status = "okay";
219};
220
221&reg_usb_host_vbus {
222	status = "okay";
223};
224
225&sata {
226	status = "okay";
227};
228
229&sound_spdif {
230	status = "okay";
231};
232
233&spdif {
234	status = "okay";
235};
236
237&uart1 {
238	status = "okay";
239};
240
241&uart2 {
242	status = "okay";
243};
244
245&uart4 {
246	status = "okay";
247};
248
249&uart5 {
250	status = "okay";
251};
252
253&usbh1 {
254	vbus-supply = <&reg_usb_host_vbus>;
255	status = "okay";
256};
257
258&usbotg {
259	vbus-supply = <&reg_usb_otg_vbus>;
260	status = "okay";
261};
262
263/* MMC1 */
264&usdhc1 {
265	pinctrl-names = "default";
266	pinctrl-0 = <&pinctrl_usdhc1_4bit &pinctrl_mmc_cd>;
267	cd-gpios = <&gpio4 20 GPIO_ACTIVE_LOW>;
268	bus-width = <4>;
269	status = "okay";
270};
271
272&iomuxc {
273	/*
274	 * Mux the Apalis GPIOs
275	 */
276	pinctrl-names = "default";
277	pinctrl-0 = <&pinctrl_apalis_gpio1 &pinctrl_apalis_gpio2
278		     &pinctrl_apalis_gpio3 &pinctrl_apalis_gpio4
279		     &pinctrl_apalis_gpio5 &pinctrl_apalis_gpio6
280		     &pinctrl_apalis_gpio7 &pinctrl_apalis_gpio8
281		    >;
282
283	pinctrl_leds_ixora: ledsixoragrp {
284		fsl,pins = <
285			MX6QDL_PAD_SD2_DAT1__GPIO1_IO14 0x1b0b0
286			MX6QDL_PAD_SD2_DAT3__GPIO1_IO12 0x1b0b0
287			MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x1b0b0
288			MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0
289		>;
290	};
291};
v5.14.15
  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/gpio/gpio.h>
 11#include <dt-bindings/input/input.h>
 12#include <dt-bindings/interrupt-controller/irq.h>
 13#include "imx6q.dtsi"
 14#include "imx6qdl-apalis.dtsi"
 15
 16/ {
 17	model = "Toradex Apalis iMX6Q/D Module on Ixora Carrier Board V1.1";
 18	compatible = "toradex,apalis_imx6q-ixora-v1.1",
 19		     "toradex,apalis_imx6q-ixora", "toradex,apalis_imx6q",
 20		     "fsl,imx6q";
 21
 22	aliases {
 23		i2c0 = &i2c1;
 24		i2c1 = &i2c3;
 25		i2c2 = &i2c2;
 26		rtc0 = &rtc_i2c;
 27		rtc1 = &snvs_rtc;
 28	};
 29
 30	chosen {
 31		stdout-path = "serial0:115200n8";
 32	};
 33
 34	gpio-keys {
 35		compatible = "gpio-keys";
 36		pinctrl-names = "default";
 37		pinctrl-0 = <&pinctrl_gpio_keys>;
 38
 39		wakeup {
 40			label = "Wake-Up";
 41			gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
 42			linux,code = <KEY_WAKEUP>;
 43			debounce-interval = <10>;
 44			wakeup-source;
 45		};
 46	};
 47
 48	lcd_display: disp0 {
 49		compatible = "fsl,imx-parallel-display";
 50		#address-cells = <1>;
 51		#size-cells = <0>;
 52		interface-pix-fmt = "rgb24";
 53		pinctrl-names = "default";
 54		pinctrl-0 = <&pinctrl_ipu1_lcdif>;
 55		status = "okay";
 56
 57		port@0 {
 58			reg = <0>;
 59
 60			lcd_display_in: endpoint {
 61				remote-endpoint = <&ipu1_di1_disp1>;
 62			};
 63		};
 64
 65		port@1 {
 66			reg = <1>;
 67
 68			lcd_display_out: endpoint {
 69				remote-endpoint = <&lcd_panel_in>;
 70			};
 71		};
 72	};
 73
 74	panel: panel {
 75		/*
 76		 * edt,et057090dhu: EDT 5.7" LCD TFT
 77		 * edt,et070080dh6: EDT 7.0" LCD TFT
 78		 */
 79		compatible = "edt,et057090dhu";
 80		backlight = <&backlight>;
 81
 82		port {
 83			lcd_panel_in: endpoint {
 84				remote-endpoint = <&lcd_display_out>;
 85			};
 86		};
 87	};
 88
 89	leds {
 90		compatible = "gpio-leds";
 91
 92		pinctrl-names = "default";
 93		pinctrl-0 = <&pinctrl_leds_ixora>;
 94
 95		led4-green {
 96			label = "LED_4_GREEN";
 97			gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
 98		};
 99
100		led4-red {
101			label = "LED_4_RED";
102			gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
103		};
104
105		led5-green {
106			label = "LED_5_GREEN";
107			gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
108		};
109
110		led5-red {
111			label = "LED_5_RED";
112			gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
113		};
114	};
115};
116
117&backlight {
118	brightness-levels = <0 127 191 223 239 247 251 255>;
119	default-brightness-level = <1>;
120	status = "okay";
121};
122
123&can1 {
124	status = "okay";
125};
126
127&can2 {
128	status = "okay";
129};
130
131&hdmi {
132	status = "okay";
133};
134
135/* I2C1_SDA/SCL on MXM3 209/211 (e.g. RTC on carrier board) */
136&i2c1 {
137	status = "okay";
138
139	/*
140	 * Touchscreen is using SODIMM 28/30, also used for PWM<B>, PWM<C>,
141	 * aka pwm2, pwm3. so if you enable touchscreen, disable the pwms
142	 */
143	touchscreen@4a {
144		compatible = "atmel,maxtouch";
145		reg = <0x4a>;
146		interrupt-parent = <&gpio6>;
147		interrupts = <10 IRQ_TYPE_EDGE_FALLING>;
148		reset-gpios = <&gpio6 9 GPIO_ACTIVE_LOW>; /* SODIMM 13 */
149		status = "disabled";
150	};
151
152	/* M41T0M6 real time clock on carrier board */
153	rtc_i2c: rtc@68 {
154		compatible = "st,m41t0";
155		reg = <0x68>;
156	};
157};
158
159/*
160 * I2C3_SDA/SCL (CAM) on MXM3 pin 201/203 (e.g. camera sensor on carrier
161 * board)
162 */
163&i2c3 {
164	status = "okay";
165};
166
167&ipu1_di1_disp1 {
168	remote-endpoint = <&lcd_display_in>;
169};
170
171&ldb {
172	status = "okay";
173};
174
175&pcie {
176	pinctrl-names = "default";
177	pinctrl-0 = <&pinctrl_reset_moci>;
178	/* active-high meaning opposite of regular PERST# active-low polarity */
179	reset-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>;
180	reset-gpio-active-high;
181	status = "okay";
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_otg_vbus {
201	status = "okay";
202};
203
204&reg_usb_host_vbus {
205	status = "okay";
206};
207
208&sata {
209	status = "okay";
210};
211
212&sound_spdif {
213	status = "okay";
214};
215
216&spdif {
217	status = "okay";
218};
219
220&uart1 {
221	status = "okay";
222};
223
224&uart2 {
225	status = "okay";
226};
227
228&uart4 {
229	status = "okay";
230};
231
232&uart5 {
233	status = "okay";
234};
235
236&usbh1 {
237	vbus-supply = <&reg_usb_host_vbus>;
238	status = "okay";
239};
240
241&usbotg {
242	vbus-supply = <&reg_usb_otg_vbus>;
243	status = "okay";
244};
245
246/* MMC1 */
247&usdhc1 {
248	pinctrl-names = "default";
249	pinctrl-0 = <&pinctrl_usdhc1_4bit &pinctrl_mmc_cd>;
250	cd-gpios = <&gpio4 20 GPIO_ACTIVE_LOW>;
251	bus-width = <4>;
252	status = "okay";
253};
254
255&iomuxc {
256	/*
257	 * Mux the Apalis GPIOs
258	 */
259	pinctrl-names = "default";
260	pinctrl-0 = <&pinctrl_apalis_gpio1 &pinctrl_apalis_gpio2
261		     &pinctrl_apalis_gpio3 &pinctrl_apalis_gpio4
262		     &pinctrl_apalis_gpio5 &pinctrl_apalis_gpio6
263		     &pinctrl_apalis_gpio7 &pinctrl_apalis_gpio8
264		    >;
265
266	pinctrl_leds_ixora: ledsixoragrp {
267		fsl,pins = <
268			MX6QDL_PAD_SD2_DAT1__GPIO1_IO14 0x1b0b0
269			MX6QDL_PAD_SD2_DAT3__GPIO1_IO12 0x1b0b0
270			MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x1b0b0
271			MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x1b0b0
272		>;
273	};
274};