Linux Audio

Check our new training course

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