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#include <dt-bindings/gpio/gpio.h>
9#include <dt-bindings/pwm/pwm.h>
10
11/ {
12	model = "Toradex Apalis iMX6Q/D Module";
13	compatible = "toradex,apalis_imx6q", "fsl,imx6q";
14
15	/* Will be filled by the bootloader */
16	memory@10000000 {
17		device_type = "memory";
18		reg = <0x10000000 0>;
19	};
20
21	backlight: backlight {
22		compatible = "pwm-backlight";
23		brightness-levels = <0 45 63 88 119 158 203 255>;
24		default-brightness-level = <4>;
25		enable-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
26		pinctrl-names = "default";
27		pinctrl-0 = <&pinctrl_gpio_bl_on>;
28		power-supply = <&reg_module_3v3>;
29		pwms = <&pwm4 0 5000000 PWM_POLARITY_INVERTED>;
30		status = "disabled";
31	};
32
33	clk_ov5640_osc: clk-ov5640-osc {
34		compatible = "fixed-clock";
35		#clock-cells = <0>;
36		clock-frequency = <24000000>;
37	};
38
39	gpio-keys {
40		compatible = "gpio-keys";
41		pinctrl-names = "default";
42		pinctrl-0 = <&pinctrl_gpio_keys>;
43
44		key-wakeup {
45			debounce-interval = <10>;
46			gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
47			label = "Wake-Up";
48			linux,code = <KEY_WAKEUP>;
49			wakeup-source;
50		};
51	};
52
53	lcd_display: disp0 {
54		compatible = "fsl,imx-parallel-display";
55		#address-cells = <1>;
56		#size-cells = <0>;
57		interface-pix-fmt = "rgb24";
58		pinctrl-names = "default";
59		pinctrl-0 = <&pinctrl_ipu1_lcdif>;
60		status = "disabled";
61
62		port@0 {
63			reg = <0>;
64
65			lcd_display_in: endpoint {
66				remote-endpoint = <&ipu1_di1_disp1>;
67			};
68		};
69
70		port@1 {
71			reg = <1>;
72
73			lcd_display_out: endpoint {
74				remote-endpoint = <&lcd_panel_in>;
75			};
76		};
77	};
78
79	panel_dpi: panel-dpi {
80		compatible = "edt,et057090dhu";
81		backlight = <&backlight>;
82
83		status = "disabled";
84
85		port {
86			lcd_panel_in: endpoint {
87				remote-endpoint = <&lcd_display_out>;
88			};
89		};
90	};
91
92	panel_lvds: panel-lvds {
93		compatible = "panel-lvds";
94		backlight = <&backlight>;
95		status = "disabled";
96
97		port {
98			lvds_panel_in: endpoint {
99				remote-endpoint = <&lvds0_out>;
100			};
101		};
102	};
103
104	reg_module_3v3: regulator-module-3v3 {
105		compatible = "regulator-fixed";
106		regulator-always-on;
107		regulator-max-microvolt = <3300000>;
108		regulator-min-microvolt = <3300000>;
109		regulator-name = "+V3.3";
110	};
111
112	reg_module_3v3_audio: regulator-module-3v3-audio {
113		compatible = "regulator-fixed";
114		regulator-always-on;
115		regulator-max-microvolt = <3300000>;
116		regulator-min-microvolt = <3300000>;
117		regulator-name = "+V3.3_AUDIO";
118	};
119
120	reg_ov5640_1v8_d_o_vdd: regulator-ov5640-1v8-d-o-vdd {
121		compatible = "regulator-fixed";
122		regulator-always-on;
123		regulator-max-microvolt = <1800000>;
124		regulator-min-microvolt = <1800000>;
125		regulator-name = "DOVDD/DVDD_1.8V";
126		/* Note: The CSI module uses on-board 3.3V_SW supply */
127		vin-supply = <&reg_module_3v3>;
128	};
129
130	reg_ov5640_2v8_a_vdd: regulator-ov5640-2v8-a-vdd {
131		compatible = "regulator-fixed";
132		regulator-always-on;
133		regulator-max-microvolt = <2800000>;
134		regulator-min-microvolt = <2800000>;
135		regulator-name = "AVDD/AFVDD_2.8V";
136		/* Note: The CSI module uses on-board 3.3V_SW supply */
137		vin-supply = <&reg_module_3v3>;
138	};
139
140	reg_usb_otg_vbus: regulator-usb-otg-vbus {
141		compatible = "regulator-fixed";
142		enable-active-high;
143		gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
144		pinctrl-names = "default";
145		pinctrl-0 = <&pinctrl_regulator_usbotg_pwr>;
146		regulator-max-microvolt = <5000000>;
147		regulator-min-microvolt = <5000000>;
148		regulator-name = "usb_otg_vbus";
149		status = "disabled";
150	};
151
152	/* on module USB hub */
153	reg_usb_host_vbus_hub: regulator-usb-host-vbus-hub {
154		compatible = "regulator-fixed";
155		enable-active-high;
156		gpio = <&gpio3 28 GPIO_ACTIVE_HIGH>;
157		pinctrl-names = "default";
158		pinctrl-0 = <&pinctrl_regulator_usbhub_pwr>;
159		regulator-max-microvolt = <5000000>;
160		regulator-min-microvolt = <5000000>;
161		regulator-name = "usb_host_vbus_hub";
162		startup-delay-us = <2000>;
163		status = "okay";
164	};
165
166	reg_usb_host_vbus: regulator-usb-host-vbus {
167		compatible = "regulator-fixed";
168		enable-active-high;
169		gpio =  <&gpio1 0 GPIO_ACTIVE_HIGH>;
170		pinctrl-names = "default";
171		pinctrl-0 = <&pinctrl_regulator_usbh_pwr>;
172		regulator-max-microvolt = <5000000>;
173		regulator-min-microvolt = <5000000>;
174		regulator-name = "usb_host_vbus";
175		vin-supply = <&reg_usb_host_vbus_hub>;
176		status = "disabled";
177	};
178
179	sound {
180		compatible = "fsl,imx-audio-sgtl5000";
181		audio-codec = <&codec>;
182		audio-routing =
183			"LINE_IN", "Line In Jack",
184			"MIC_IN", "Mic Jack",
185			"Mic Jack", "Mic Bias",
186			"Headphone Jack", "HP_OUT";
187		model = "imx6q-apalis-sgtl5000";
188		mux-ext-port = <4>;
189		mux-int-port = <1>;
190		ssi-controller = <&ssi1>;
191	};
192
193	sound_spdif: sound-spdif {
194		compatible = "fsl,imx-audio-spdif";
195		spdif-controller = <&spdif>;
196		spdif-in;
197		spdif-out;
198		model = "imx-spdif";
199		status = "disabled";
200	};
201};
202
203&audmux {
204	pinctrl-names = "default";
205	pinctrl-0 = <&pinctrl_audmux>;
206	status = "okay";
207};
208
209&can1 {
210	pinctrl-names = "default", "sleep";
211	pinctrl-0 = <&pinctrl_flexcan1_default>;
212	pinctrl-1 = <&pinctrl_flexcan1_sleep>;
213	status = "disabled";
214};
215
216&can2 {
217	pinctrl-names = "default", "sleep";
218	pinctrl-0 = <&pinctrl_flexcan2_default>;
219	pinctrl-1 = <&pinctrl_flexcan2_sleep>;
220	status = "disabled";
221};
222
223&clks {
224	fsl,pmic-stby-poweroff;
225};
226
227/* Apalis SPI1 */
228&ecspi1 {
229	cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>;
230	pinctrl-names = "default";
231	pinctrl-0 = <&pinctrl_ecspi1>;
232	status = "disabled";
233};
234
235/* Apalis SPI2 */
236&ecspi2 {
237	cs-gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
238	pinctrl-names = "default";
239	pinctrl-0 = <&pinctrl_ecspi2>;
240	status = "disabled";
241};
242
243&gpio1 {
244	gpio-line-names = "MXM3_84",
245			  "MXM3_4",
246			  "MXM3_15/GPIO7",
247			  "MXM3_96",
248			  "MXM3_37",
249			  "",
250			  "MXM3_17/GPIO8",
251			  "MXM3_14",
252			  "MXM3_12",
253			  "MXM3_2",
254			  "MXM3_184",
255			  "MXM3_180",
256			  "MXM3_178",
257			  "MXM3_176",
258			  "MXM3_188",
259			  "MXM3_186",
260			  "MXM3_160",
261			  "MXM3_162",
262			  "MXM3_150",
263			  "MXM3_144",
264			  "MXM3_154",
265			  "MXM3_146",
266			  "",
267			  "",
268			  "MXM3_72";
269};
270
271&gpio2 {
272	gpio-line-names = "MXM3_148",
273			  "MXM3_152",
274			  "MXM3_156",
275			  "MXM3_158",
276			  "MXM3_1/GPIO1",
277			  "MXM3_3/GPIO2",
278			  "MXM3_5/GPIO3",
279			  "MXM3_7/GPIO4",
280			  "MXM3_95",
281			  "MXM3_6",
282			  "MXM3_8",
283			  "MXM3_123",
284			  "MXM3_126",
285			  "MXM3_128",
286			  "MXM3_130",
287			  "MXM3_132",
288			  "MXM3_253",
289			  "MXM3_251",
290			  "MXM3_283",
291			  "MXM3_281",
292			  "MXM3_279",
293			  "MXM3_277",
294			  "MXM3_243",
295			  "MXM3_235",
296			  "MXM3_231",
297			  "MXM3_229",
298			  "MXM3_233",
299			  "MXM3_198",
300			  "MXM3_275",
301			  "MXM3_273",
302			  "MXM3_207",
303			  "MXM3_122";
304};
305
306&gpio3 {
307	gpio-line-names = "MXM3_271",
308			  "MXM3_269",
309			  "MXM3_301",
310			  "MXM3_299",
311			  "MXM3_297",
312			  "MXM3_295",
313			  "MXM3_293",
314			  "MXM3_291",
315			  "MXM3_289",
316			  "MXM3_287",
317			  "MXM3_249",
318			  "MXM3_247",
319			  "MXM3_245",
320			  "MXM3_286",
321			  "MXM3_239",
322			  "MXM3_35",
323			  "MXM3_205",
324			  "MXM3_203",
325			  "MXM3_201",
326			  "MXM3_116",
327			  "MXM3_114",
328			  "MXM3_262",
329			  "MXM3_274",
330			  "MXM3_124",
331			  "MXM3_110",
332			  "MXM3_120",
333			  "MXM3_263",
334			  "MXM3_265",
335			  "",
336			  "MXM3_135",
337			  "MXM3_261",
338			  "MXM3_259";
339};
340
341&gpio4 {
342	gpio-line-names = "",
343			  "",
344			  "",
345			  "",
346			  "",
347			  "MXM3_194",
348			  "MXM3_136",
349			  "MXM3_134",
350			  "MXM3_140",
351			  "MXM3_138",
352			  "",
353			  "MXM3_220",
354			  "",
355			  "",
356			  "MXM3_18",
357			  "MXM3_16",
358			  "",
359			  "",
360			  "MXM3_214",
361			  "MXM3_216",
362			  "MXM3_164";
363};
364
365&gpio5 {
366	gpio-line-names = "MXM3_159",
367			  "",
368			  "",
369			  "",
370			  "MXM3_257",
371			  "",
372			  "",
373			  "",
374			  "",
375			  "",
376			  "MXM3_200",
377			  "MXM3_196",
378			  "MXM3_204",
379			  "MXM3_202",
380			  "",
381			  "",
382			  "",
383			  "",
384			  "MXM3_191",
385			  "MXM3_197",
386			  "MXM3_77",
387			  "MXM3_195",
388			  "MXM3_221",
389			  "MXM3_225",
390			  "MXM3_223",
391			  "MXM3_227",
392			  "MXM3_209",
393			  "MXM3_211",
394			  "MXM3_118",
395			  "MXM3_112",
396			  "MXM3_187",
397			  "MXM3_185";
398};
399
400&gpio6 {
401	gpio-line-names = "MXM3_183",
402			  "MXM3_181",
403			  "MXM3_179",
404			  "MXM3_177",
405			  "MXM3_175",
406			  "MXM3_173",
407			  "MXM3_255",
408			  "MXM3_83",
409			  "MXM3_91",
410			  "MXM3_13/GPIO6",
411			  "MXM3_11/GPIO5",
412			  "MXM3_79",
413			  "",
414			  "",
415			  "MXM3_190",
416			  "MXM3_193",
417			  "MXM3_89";
418};
419
420&gpio7 {
421	gpio-line-names = "",
422			  "",
423			  "",
424			  "",
425			  "",
426			  "",
427			  "",
428			  "",
429			  "",
430			  "MXM3_99",
431			  "MXM3_85",
432			  "MXM3_217",
433			  "MXM3_215";
434};
435
436&gpr {
437	ipu1_csi0_mux {
438		#address-cells = <1>;
439		#size-cells = <0>;
440		status = "disabled";
441
442		port@1 {
443			reg = <1>;
444			ipu1_csi0_mux_from_parallel_sensor: endpoint {
445				remote-endpoint = <&adv7280_to_ipu1_csi0_mux>;
446			};
447		};
448	};
449};
450
451&fec {
452	pinctrl-names = "default";
453	pinctrl-0 = <&pinctrl_enet>;
454	phy-mode = "rgmii-id";
455	phy-handle = <&ethphy>;
456	phy-reset-duration = <10>;
457	phy-reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
458	status = "okay";
459
460	mdio {
461		#address-cells = <1>;
462		#size-cells = <0>;
463
464		ethphy: ethernet-phy@7 {
465			interrupt-parent = <&gpio1>;
466			interrupts = <30 IRQ_TYPE_LEVEL_LOW>;
467			reg = <7>;
468		};
469	};
470};
471
472&hdmi {
473	pinctrl-names = "default";
474	pinctrl-0 = <&pinctrl_hdmi_ddc &pinctrl_hdmi_cec>;
475	status = "disabled";
476};
477
478/* I2C1_SDA/SCL on MXM3 209/211 (e.g. RTC on carrier board) */
479&i2c1 {
480	clock-frequency = <100000>;
481	pinctrl-names = "default", "gpio";
482	pinctrl-0 = <&pinctrl_i2c1>;
483	pinctrl-1 = <&pinctrl_i2c1_gpio>;
484	scl-gpios = <&gpio5 27 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
485	sda-gpios = <&gpio5 26 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
486	status = "disabled";
487
488	atmel_mxt_ts: touchscreen@4a {
489		compatible = "atmel,maxtouch";
490		/* These GPIOs are muxed with the iomuxc node */
491		interrupt-parent = <&gpio6>;
492		interrupts = <10 IRQ_TYPE_EDGE_FALLING>;	/* MXM3_11 */
493		reg = <0x4a>;
494		reset-gpios = <&gpio6 9 GPIO_ACTIVE_LOW>;	/* MXM3_13 */
495		status = "disabled";
496	};
497};
498
499/*
500 * PWR_I2C: power I2C to audio codec, PMIC, temperature sensor and
501 * touch screen controller
502 */
503&i2c2 {
504	clock-frequency = <100000>;
505	pinctrl-names = "default", "gpio";
506	pinctrl-0 = <&pinctrl_i2c2>;
507	pinctrl-1 = <&pinctrl_i2c2_gpio>;
508	scl-gpios = <&gpio4 12 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
509	sda-gpios = <&gpio4 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
510	status = "okay";
511
512	pmic: pmic@8 {
513		compatible = "fsl,pfuze100";
514		fsl,pmic-stby-poweroff;
515		reg = <0x08>;
516
517		regulators {
518			sw1a_reg: sw1ab {
519				regulator-always-on;
520				regulator-boot-on;
521				regulator-max-microvolt = <1875000>;
522				regulator-min-microvolt = <300000>;
523				regulator-ramp-delay = <6250>;
524			};
525
526			sw1c_reg: sw1c {
527				regulator-always-on;
528				regulator-boot-on;
529				regulator-max-microvolt = <1875000>;
530				regulator-min-microvolt = <300000>;
531				regulator-ramp-delay = <6250>;
532			};
533
534			sw3a_reg: sw3a {
535				regulator-always-on;
536				regulator-boot-on;
537				regulator-max-microvolt = <1975000>;
538				regulator-min-microvolt = <400000>;
539			};
540
541			swbst_reg: swbst {
542				regulator-always-on;
543				regulator-boot-on;
544				regulator-max-microvolt = <5150000>;
545				regulator-min-microvolt = <5000000>;
546			};
547
548			snvs_reg: vsnvs {
549				regulator-always-on;
550				regulator-boot-on;
551				regulator-max-microvolt = <3000000>;
552				regulator-min-microvolt = <1000000>;
553			};
554
555			vref_reg: vrefddr {
556				regulator-always-on;
557				regulator-boot-on;
558			};
559
560			vgen1_reg: vgen1 {
561				regulator-always-on;
562				regulator-boot-on;
563				regulator-max-microvolt = <1550000>;
564				regulator-min-microvolt = <800000>;
565			};
566
567			vgen2_reg: vgen2 {
568				regulator-always-on;
569				regulator-boot-on;
570				regulator-max-microvolt = <1550000>;
571				regulator-min-microvolt = <800000>;
572			};
573
574			vgen3_reg: vgen3 {
575				regulator-always-on;
576				regulator-boot-on;
577				regulator-max-microvolt = <3300000>;
578				regulator-min-microvolt = <1800000>;
579			};
580
581			vgen4_reg: vgen4 {
582				regulator-always-on;
583				regulator-boot-on;
584				regulator-max-microvolt = <1800000>;
585				regulator-min-microvolt = <1800000>;
586			};
587
588			vgen5_reg: vgen5 {
589				regulator-always-on;
590				regulator-boot-on;
591				regulator-max-microvolt = <3300000>;
592				regulator-min-microvolt = <1800000>;
593			};
594
595			vgen6_reg: vgen6 {
596				regulator-always-on;
597				regulator-boot-on;
598				regulator-max-microvolt = <3300000>;
599				regulator-min-microvolt = <1800000>;
600			};
601		};
602	};
603
604	codec: sgtl5000@a {
605		compatible = "fsl,sgtl5000";
606		#sound-dai-cells = <0>;
607		clocks = <&clks IMX6QDL_CLK_CKO>;
608		pinctrl-names = "default";
609		pinctrl-0 = <&pinctrl_sgtl5000>;
610		reg = <0x0a>;
611		VDDA-supply = <&reg_module_3v3_audio>;
612		VDDIO-supply = <&reg_module_3v3>;
613		VDDD-supply = <&vgen4_reg>;
614	};
615
616	/* STMPE811 touch screen controller */
617	stmpe811@41 {
618		compatible = "st,stmpe811";
619		blocks = <0x5>;
620		id = <0>;
621		interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
622		interrupt-parent = <&gpio4>;
623		irq-trigger = <0x1>;
624		pinctrl-names = "default";
625		pinctrl-0 = <&pinctrl_touch_int>;
626		reg = <0x41>;
627		/* 3.25 MHz ADC clock speed */
628		st,adc-freq = <1>;
629		/* 12-bit ADC */
630		st,mod-12b = <1>;
631		/* internal ADC reference */
632		st,ref-sel = <0>;
633		/* ADC conversion time: 80 clocks */
634		st,sample-time = <4>;
635
636		stmpe_ts: stmpe_touchscreen {
637			compatible = "st,stmpe-ts";
638			/* 8 sample average control */
639			st,ave-ctrl = <3>;
640			/* 7 length fractional part in z */
641			st,fraction-z = <7>;
642			/*
643			 * 50 mA typical 80 mA max touchscreen drivers
644			 * current limit value
645			 */
646			st,i-drive = <1>;
647			/* 1 ms panel driver settling time */
648			st,settling = <3>;
649			/* 5 ms touch detect interrupt delay */
650			st,touch-det-delay = <5>;
651			status = "disabled";
652		};
653
654		stmpe_adc: stmpe_adc {
655			compatible = "st,stmpe-adc";
656			#io-channel-cells = <1>;
657			/* forbid to use ADC channels 3-0 (touch) */
658			st,norequest-mask = <0x0F>;
659		};
660	};
661};
662
663/*
664 * I2C3_SDA/SCL (CAM) on MXM3 pin 201/203 (e.g. camera sensor on carrier
665 * board)
666 */
667&i2c3 {
668	clock-frequency = <100000>;
669	pinctrl-names = "default", "gpio";
670	pinctrl-0 = <&pinctrl_i2c3>;
671	pinctrl-1 = <&pinctrl_i2c3_gpio>;
672	scl-gpios = <&gpio3 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
673	sda-gpios = <&gpio3 18 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
674	status = "disabled";
675
676	adv_7280: adv7280@21 {
677		compatible = "adi,adv7280";
678		adv,force-bt656-4;
679		pinctrl-names = "default";
680		pinctrl-0 = <&pinctrl_ipu1_csi0>;
681		reg = <0x21>;
682		status = "disabled";
683
684		port {
685			adv7280_to_ipu1_csi0_mux: endpoint {
686				bus-width = <8>;
687				remote-endpoint = <&ipu1_csi0_mux_from_parallel_sensor>;
688			};
689		};
690	};
691
692	ov5640_csi_cam: ov5640_mipi@3c {
693		compatible = "ovti,ov5640";
694		AVDD-supply = <&reg_ov5640_2v8_a_vdd>;
695		DOVDD-supply = <&reg_ov5640_1v8_d_o_vdd>;
696		DVDD-supply = <&reg_ov5640_1v8_d_o_vdd>;
697		clock-names = "xclk";
698		clocks = <&clks IMX6QDL_CLK_CKO2>;
699		pinctrl-names = "default";
700		pinctrl-0 = <&pinctrl_cam_mclk>;
701		/* These GPIOs are muxed with the iomuxc node */
702		powerdown-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
703		reg = <0x3c>;
704		reset-gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
705		status = "disabled";
706
707		port {
708			ov5640_to_mipi_csi2: endpoint {
709				clock-lanes = <0>;
710				data-lanes = <1 2>;
711				remote-endpoint = <&mipi_csi_from_ov5640>;
712			};
713		};
714	};
715};
716
717&ipu1_di1_disp1 {
718	remote-endpoint = <&lcd_display_in>;
719};
720
721&ldb {
722	lvds-channel@0 {
723		port@4 {
724			reg = <4>;
725
726			lvds0_out: endpoint {
727				remote-endpoint = <&lvds_panel_in>;
728			};
729		};
730	};
731
732	lvds-channel@1 {
733		fsl,data-mapping = "spwg";
734		fsl,data-width = <18>;
735
736		port@4 {
737			reg = <4>;
738
739			lvds1_out: endpoint {
740			};
741		};
742	};
743};
744
745&mipi_csi {
746	#address-cells = <1>;
747	#size-cells = <0>;
748	status = "disabled";
749
750	port@0 {
751		reg = <0>;
752
753		mipi_csi_from_ov5640: endpoint {
754			clock-lanes = <0>;
755			data-lanes = <1 2>;
756			remote-endpoint = <&ov5640_to_mipi_csi2>;
757		};
758	};
759};
760
761&pwm1 {
762	pinctrl-names = "default";
763	pinctrl-0 = <&pinctrl_pwm1>;
764	status = "disabled";
765};
766
767&pwm2 {
768	pinctrl-names = "default";
769	pinctrl-0 = <&pinctrl_pwm2>;
770	status = "disabled";
771};
772
773&pwm3 {
774	pinctrl-names = "default";
775	pinctrl-0 = <&pinctrl_pwm3>;
776	status = "disabled";
777};
778
779&pwm4 {
780	pinctrl-names = "default";
781	pinctrl-0 = <&pinctrl_pwm4>;
782	status = "disabled";
783};
784
785&spdif {
786	pinctrl-names = "default";
787	pinctrl-0 = <&pinctrl_spdif>;
788	status = "disabled";
789};
790
791&ssi1 {
792	status = "okay";
793};
794
795&uart1 {
796	fsl,dte-mode;
797	pinctrl-names = "default";
798	pinctrl-0 = <&pinctrl_uart1_dte &pinctrl_uart1_ctrl>;
799	uart-has-rtscts;
800	status = "disabled";
801};
802
803&uart2 {
804	fsl,dte-mode;
805	pinctrl-names = "default";
806	pinctrl-0 = <&pinctrl_uart2_dte>;
807	uart-has-rtscts;
808	status = "disabled";
809};
810
811&uart4 {
812	fsl,dte-mode;
813	pinctrl-names = "default";
814	pinctrl-0 = <&pinctrl_uart4_dte>;
815	status = "disabled";
816};
817
818&uart5 {
819	fsl,dte-mode;
820	pinctrl-names = "default";
821	pinctrl-0 = <&pinctrl_uart5_dte>;
822	status = "disabled";
823};
824
825&usbotg {
826	pinctrl-names = "default";
827	pinctrl-0 = <&pinctrl_usbotg>;
828	status = "disabled";
829};
830
831/* MMC1 */
832&usdhc1 {
833	bus-width = <8>;
834	cd-gpios = <&gpio4 20 GPIO_ACTIVE_LOW>;
835	disable-wp;
836	no-1-8-v;
837	pinctrl-names = "default";
838	pinctrl-0 = <&pinctrl_usdhc1_4bit &pinctrl_usdhc1_8bit &pinctrl_mmc_cd>;
839	vqmmc-supply = <&reg_module_3v3>;
840	status = "disabled";
841};
842
843/* SD1 */
844&usdhc2 {
845	bus-width = <4>;
846	disable-wp;
847	no-1-8-v;
848	pinctrl-names = "default";
849	pinctrl-0 = <&pinctrl_usdhc2>;
850	vqmmc-supply = <&reg_module_3v3>;
851	status = "disabled";
852};
853
854/* eMMC */
855&usdhc3 {
856	bus-width = <8>;
857	no-1-8-v;
858	non-removable;
859	pinctrl-names = "default";
860	pinctrl-0 = <&pinctrl_usdhc3>;
861	vqmmc-supply = <&reg_module_3v3>;
862	status = "okay";
863};
864
865&weim {
866	status = "disabled";
867};
868
869&iomuxc {
870	/* Mux the Apalis GPIOs */
871	pinctrl-names = "default";
872	pinctrl-0 = <&pinctrl_apalis_gpio1 &pinctrl_apalis_gpio2
873		     &pinctrl_apalis_gpio3 &pinctrl_apalis_gpio4
874		     &pinctrl_apalis_gpio5 &pinctrl_apalis_gpio6
875		     &pinctrl_apalis_gpio7 &pinctrl_apalis_gpio8
876		    >;
877
878	pinctrl_apalis_gpio1: apalisgpio1grp {
879		fsl,pins = <
880			MX6QDL_PAD_NANDF_D4__GPIO2_IO04 0x130b0
881		>;
882	};
883
884	pinctrl_apalis_gpio2: apalisgpio2grp {
885		fsl,pins = <
886			MX6QDL_PAD_NANDF_D5__GPIO2_IO05 0x130b0
887		>;
888	};
889
890	pinctrl_apalis_gpio3: apalisgpio3grp {
891		fsl,pins = <
892			MX6QDL_PAD_NANDF_D6__GPIO2_IO06 0x130b0
893		>;
894	};
895
896	pinctrl_apalis_gpio4: apalisgpio4grp {
897		fsl,pins = <
898			MX6QDL_PAD_NANDF_D7__GPIO2_IO07 0x130b0
899		>;
900	};
901
902	pinctrl_apalis_gpio5: apalisgpio5grp {
903		fsl,pins = <
904			MX6QDL_PAD_NANDF_RB0__GPIO6_IO10 0x130b0
905		>;
906	};
907
908	pinctrl_apalis_gpio6: apalisgpio6grp {
909		fsl,pins = <
910			MX6QDL_PAD_NANDF_WP_B__GPIO6_IO09 0x130b0
911		>;
912	};
913
914	pinctrl_apalis_gpio7: apalisgpio7grp {
915		fsl,pins = <
916			MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x130b0
917		>;
918	};
919
920	pinctrl_apalis_gpio8: apalisgpio8grp {
921		fsl,pins = <
922			MX6QDL_PAD_GPIO_6__GPIO1_IO06 0x130b0
923		>;
924	};
925
926	pinctrl_audmux: audmuxgrp {
927		fsl,pins = <
928			MX6QDL_PAD_DISP0_DAT20__AUD4_TXC	0x130b0
929			MX6QDL_PAD_DISP0_DAT21__AUD4_TXD	0x130b0
930			MX6QDL_PAD_DISP0_DAT22__AUD4_TXFS	0x130b0
931			MX6QDL_PAD_DISP0_DAT23__AUD4_RXD	0x130b0
932		>;
933	};
934
935	pinctrl_cam_mclk: cammclkgrp {
936		fsl,pins = <
937			/* CAM sys_mclk */
938			MX6QDL_PAD_NANDF_CS2__CCM_CLKO2 0x00b0
939		>;
940	};
941
942	pinctrl_ecspi1: ecspi1grp {
943		fsl,pins = <
944			MX6QDL_PAD_CSI0_DAT6__ECSPI1_MISO 0x100b1
945			MX6QDL_PAD_CSI0_DAT5__ECSPI1_MOSI 0x100b1
946			MX6QDL_PAD_CSI0_DAT4__ECSPI1_SCLK 0x100b1
947			/* SPI1 cs */
948			MX6QDL_PAD_CSI0_DAT7__GPIO5_IO25 0x000b1
949		>;
950	};
951
952	pinctrl_ecspi2: ecspi2grp {
953		fsl,pins = <
954			MX6QDL_PAD_EIM_OE__ECSPI2_MISO 0x100b1
955			MX6QDL_PAD_EIM_CS1__ECSPI2_MOSI 0x100b1
956			MX6QDL_PAD_EIM_CS0__ECSPI2_SCLK 0x100b1
957			/* SPI2 cs */
958			MX6QDL_PAD_EIM_RW__GPIO2_IO26 0x000b1
959		>;
960	};
961
962	pinctrl_enet: enetgrp {
963		fsl,pins = <
964			MX6QDL_PAD_ENET_MDIO__ENET_MDIO		0x100b0
965			MX6QDL_PAD_ENET_MDC__ENET_MDC		0x100b0
966			MX6QDL_PAD_RGMII_TXC__RGMII_TXC		0x10030
967			MX6QDL_PAD_RGMII_TD0__RGMII_TD0		0x10030
968			MX6QDL_PAD_RGMII_TD1__RGMII_TD1		0x10030
969			MX6QDL_PAD_RGMII_TD2__RGMII_TD2		0x10030
970			MX6QDL_PAD_RGMII_TD3__RGMII_TD3		0x10030
971			MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL	0x10030
972			MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK	0x100b0
973			MX6QDL_PAD_RGMII_RXC__RGMII_RXC		0x1b030
974			MX6QDL_PAD_RGMII_RD0__RGMII_RD0		0x1b030
975			MX6QDL_PAD_RGMII_RD1__RGMII_RD1		0x1b030
976			MX6QDL_PAD_RGMII_RD2__RGMII_RD2		0x1b030
977			MX6QDL_PAD_RGMII_RD3__RGMII_RD3		0x1b030
978			MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL	0x1b030
979			/* Ethernet PHY reset */
980			MX6QDL_PAD_ENET_CRS_DV__GPIO1_IO25	0x000b0
981			/* Ethernet PHY interrupt */
982			MX6QDL_PAD_ENET_TXD0__GPIO1_IO30	0x000b1
983		>;
984	};
985
986	pinctrl_flexcan1_default: flexcan1defgrp {
987		fsl,pins = <
988			MX6QDL_PAD_GPIO_7__FLEXCAN1_TX 0x1b0b0
989			MX6QDL_PAD_GPIO_8__FLEXCAN1_RX 0x1b0b0
990		>;
991	};
992
993	pinctrl_flexcan1_sleep: flexcan1slpgrp {
994		fsl,pins = <
995			MX6QDL_PAD_GPIO_7__GPIO1_IO07 0x0
996			MX6QDL_PAD_GPIO_8__GPIO1_IO08 0x0
997		>;
998	};
999
1000	pinctrl_flexcan2_default: flexcan2defgrp {
1001		fsl,pins = <
1002			MX6QDL_PAD_KEY_COL4__FLEXCAN2_TX 0x1b0b0
1003			MX6QDL_PAD_KEY_ROW4__FLEXCAN2_RX 0x1b0b0
1004		>;
1005	};
1006	pinctrl_flexcan2_sleep: flexcan2slpgrp {
1007		fsl,pins = <
1008			MX6QDL_PAD_KEY_COL4__GPIO4_IO14 0x0
1009			MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x0
1010		>;
1011	};
1012
1013	pinctrl_gpio_bl_on: gpioblongrp {
1014		fsl,pins = <
1015			MX6QDL_PAD_EIM_DA13__GPIO3_IO13 0x1b0b0
1016		>;
1017	};
1018
1019	pinctrl_gpio_keys: gpio1io04grp {
1020		fsl,pins = <
1021			/* Power button */
1022			MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1b0b0
1023		>;
1024	};
1025
1026	pinctrl_hdmi_cec: hdmicecgrp {
1027		fsl,pins = <
1028			MX6QDL_PAD_KEY_ROW2__HDMI_TX_CEC_LINE 0x1f8b0
1029		>;
1030	};
1031
1032	pinctrl_hdmi_ddc: hdmiddcgrp {
1033		fsl,pins = <
1034			MX6QDL_PAD_EIM_EB2__HDMI_TX_DDC_SCL 0x4001b8b1
1035			MX6QDL_PAD_EIM_D16__HDMI_TX_DDC_SDA 0x4001b8b1
1036		>;
1037	};
1038
1039	pinctrl_i2c1: i2c1grp {
1040		fsl,pins = <
1041			MX6QDL_PAD_CSI0_DAT8__I2C1_SDA 0x4001b8b1
1042			MX6QDL_PAD_CSI0_DAT9__I2C1_SCL 0x4001b8b1
1043		>;
1044	};
1045
1046	pinctrl_i2c1_gpio: i2c1gpiogrp {
1047		fsl,pins = <
1048			MX6QDL_PAD_CSI0_DAT8__GPIO5_IO26 0x4001b8b1
1049			MX6QDL_PAD_CSI0_DAT9__GPIO5_IO27 0x4001b8b1
1050		>;
1051	};
1052
1053	pinctrl_i2c2: i2c2grp {
1054		fsl,pins = <
1055			MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
1056			MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
1057		>;
1058	};
1059
1060	pinctrl_i2c2_gpio: i2c2gpiogrp {
1061		fsl,pins = <
1062			MX6QDL_PAD_KEY_COL3__GPIO4_IO12 0x4001b8b1
1063			MX6QDL_PAD_KEY_ROW3__GPIO4_IO13 0x4001b8b1
1064		>;
1065	};
1066
1067	pinctrl_i2c3: i2c3grp {
1068		fsl,pins = <
1069			MX6QDL_PAD_EIM_D17__I2C3_SCL 0x4001b8b1
1070			MX6QDL_PAD_EIM_D18__I2C3_SDA 0x4001b8b1
1071		>;
1072	};
1073
1074	pinctrl_i2c3_gpio: i2c3gpiogrp {
1075		fsl,pins = <
1076			MX6QDL_PAD_EIM_D17__GPIO3_IO17 0x4001b8b1
1077			MX6QDL_PAD_EIM_D18__GPIO3_IO18 0x4001b8b1
1078		>;
1079	};
1080
1081	pinctrl_ipu1_csi0: ipu1csi0grp { /* parallel camera */
1082		fsl,pins = <
1083			MX6QDL_PAD_CSI0_DAT12__IPU1_CSI0_DATA12  0xb0b1
1084			MX6QDL_PAD_CSI0_DAT13__IPU1_CSI0_DATA13  0xb0b1
1085			MX6QDL_PAD_CSI0_DAT14__IPU1_CSI0_DATA14  0xb0b1
1086			MX6QDL_PAD_CSI0_DAT15__IPU1_CSI0_DATA15  0xb0b1
1087			MX6QDL_PAD_CSI0_DAT16__IPU1_CSI0_DATA16  0xb0b1
1088			MX6QDL_PAD_CSI0_DAT17__IPU1_CSI0_DATA17  0xb0b1
1089			MX6QDL_PAD_CSI0_DAT18__IPU1_CSI0_DATA18  0xb0b1
1090			MX6QDL_PAD_CSI0_DAT19__IPU1_CSI0_DATA19  0xb0b1
1091			MX6QDL_PAD_CSI0_PIXCLK__IPU1_CSI0_PIXCLK 0xb0b1
1092			MX6QDL_PAD_CSI0_MCLK__IPU1_CSI0_HSYNC    0xb0b1
1093			MX6QDL_PAD_CSI0_VSYNC__IPU1_CSI0_VSYNC   0xb0b1
1094		>;
1095	};
1096
1097	pinctrl_ipu1_lcdif: ipu1lcdifgrp {
1098		fsl,pins = <
1099			MX6QDL_PAD_EIM_A16__IPU1_DI1_DISP_CLK	0x61
1100			/* DE */
1101			MX6QDL_PAD_EIM_DA10__IPU1_DI1_PIN15	0x61
1102			/* HSync */
1103			MX6QDL_PAD_EIM_DA11__IPU1_DI1_PIN02	0x61
1104			/* VSync */
1105			MX6QDL_PAD_EIM_DA12__IPU1_DI1_PIN03	0x61
1106			MX6QDL_PAD_EIM_DA9__IPU1_DISP1_DATA00	0x61
1107			MX6QDL_PAD_EIM_DA8__IPU1_DISP1_DATA01	0x61
1108			MX6QDL_PAD_EIM_DA7__IPU1_DISP1_DATA02	0x61
1109			MX6QDL_PAD_EIM_DA6__IPU1_DISP1_DATA03	0x61
1110			MX6QDL_PAD_EIM_DA5__IPU1_DISP1_DATA04	0x61
1111			MX6QDL_PAD_EIM_DA4__IPU1_DISP1_DATA05	0x61
1112			MX6QDL_PAD_EIM_DA3__IPU1_DISP1_DATA06	0x61
1113			MX6QDL_PAD_EIM_DA2__IPU1_DISP1_DATA07	0x61
1114			MX6QDL_PAD_EIM_DA1__IPU1_DISP1_DATA08	0x61
1115			MX6QDL_PAD_EIM_DA0__IPU1_DISP1_DATA09	0x61
1116			MX6QDL_PAD_EIM_EB1__IPU1_DISP1_DATA10	0x61
1117			MX6QDL_PAD_EIM_EB0__IPU1_DISP1_DATA11	0x61
1118			MX6QDL_PAD_EIM_A17__IPU1_DISP1_DATA12	0x61
1119			MX6QDL_PAD_EIM_A18__IPU1_DISP1_DATA13	0x61
1120			MX6QDL_PAD_EIM_A19__IPU1_DISP1_DATA14	0x61
1121			MX6QDL_PAD_EIM_A20__IPU1_DISP1_DATA15	0x61
1122			MX6QDL_PAD_EIM_A21__IPU1_DISP1_DATA16	0x61
1123			MX6QDL_PAD_EIM_A22__IPU1_DISP1_DATA17	0x61
1124			MX6QDL_PAD_EIM_A23__IPU1_DISP1_DATA18	0x61
1125			MX6QDL_PAD_EIM_A24__IPU1_DISP1_DATA19	0x61
1126			MX6QDL_PAD_EIM_D31__IPU1_DISP1_DATA20	0x61
1127			MX6QDL_PAD_EIM_D30__IPU1_DISP1_DATA21	0x61
1128			MX6QDL_PAD_EIM_D26__IPU1_DISP1_DATA22	0x61
1129			MX6QDL_PAD_EIM_D27__IPU1_DISP1_DATA23	0x61
1130		>;
1131	};
1132
1133	pinctrl_ipu2_vdac: ipu2vdacgrp {
1134		fsl,pins = <
1135			MX6QDL_PAD_DI0_DISP_CLK__IPU2_DI0_DISP_CLK 0xd1
1136			MX6QDL_PAD_DI0_PIN15__IPU2_DI0_PIN15       0xd1
1137			MX6QDL_PAD_DI0_PIN2__IPU2_DI0_PIN02        0xd1
1138			MX6QDL_PAD_DI0_PIN3__IPU2_DI0_PIN03        0xd1
1139			MX6QDL_PAD_DISP0_DAT0__IPU2_DISP0_DATA00   0xf9
1140			MX6QDL_PAD_DISP0_DAT1__IPU2_DISP0_DATA01   0xf9
1141			MX6QDL_PAD_DISP0_DAT2__IPU2_DISP0_DATA02   0xf9
1142			MX6QDL_PAD_DISP0_DAT3__IPU2_DISP0_DATA03   0xf9
1143			MX6QDL_PAD_DISP0_DAT4__IPU2_DISP0_DATA04   0xf9
1144			MX6QDL_PAD_DISP0_DAT5__IPU2_DISP0_DATA05   0xf9
1145			MX6QDL_PAD_DISP0_DAT6__IPU2_DISP0_DATA06   0xf9
1146			MX6QDL_PAD_DISP0_DAT7__IPU2_DISP0_DATA07   0xf9
1147			MX6QDL_PAD_DISP0_DAT8__IPU2_DISP0_DATA08   0xf9
1148			MX6QDL_PAD_DISP0_DAT9__IPU2_DISP0_DATA09   0xf9
1149			MX6QDL_PAD_DISP0_DAT10__IPU2_DISP0_DATA10  0xf9
1150			MX6QDL_PAD_DISP0_DAT11__IPU2_DISP0_DATA11  0xf9
1151			MX6QDL_PAD_DISP0_DAT12__IPU2_DISP0_DATA12  0xf9
1152			MX6QDL_PAD_DISP0_DAT13__IPU2_DISP0_DATA13  0xf9
1153			MX6QDL_PAD_DISP0_DAT14__IPU2_DISP0_DATA14  0xf9
1154			MX6QDL_PAD_DISP0_DAT15__IPU2_DISP0_DATA15  0xf9
1155		>;
1156	};
1157
1158	pinctrl_mmc_cd: mmccdgrp {
1159		fsl,pins = <
1160			 /* MMC1 CD */
1161			MX6QDL_PAD_DI0_PIN4__GPIO4_IO20 0x000b0
1162		>;
1163	};
1164
1165	pinctrl_pwm1: pwm1grp {
1166		fsl,pins = <
1167			MX6QDL_PAD_GPIO_9__PWM1_OUT 0x1b0b1
1168		>;
1169	};
1170
1171	pinctrl_pwm2: pwm2grp {
1172		fsl,pins = <
1173			MX6QDL_PAD_GPIO_1__PWM2_OUT 0x1b0b1
1174		>;
1175	};
1176
1177	pinctrl_pwm3: pwm3grp {
1178		fsl,pins = <
1179			MX6QDL_PAD_SD4_DAT1__PWM3_OUT 0x1b0b1
1180		>;
1181	};
1182
1183	pinctrl_pwm4: pwm4grp {
1184		fsl,pins = <
1185			MX6QDL_PAD_SD4_DAT2__PWM4_OUT 0x1b0b1
1186		>;
1187	};
1188
1189	pinctrl_regulator_usbh_pwr: regusbhpwrgrp {
1190		fsl,pins = <
1191			/* USBH_EN */
1192			MX6QDL_PAD_GPIO_0__GPIO1_IO00 0x0f058
1193		>;
1194	};
1195
1196	pinctrl_regulator_usbhub_pwr: regusbhubpwrgrp {
1197		fsl,pins = <
1198			/* USBH_HUB_EN */
1199			MX6QDL_PAD_EIM_D28__GPIO3_IO28 0x0f058
1200		>;
1201	};
1202
1203	pinctrl_regulator_usbotg_pwr: regusbotgpwrgrp {
1204		fsl,pins = <
1205			/* USBO1 power en */
1206			MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x0f058
1207		>;
1208	};
1209
1210	pinctrl_reset_moci: resetmocigrp {
1211		fsl,pins = <
1212			/* RESET_MOCI control */
1213			MX6QDL_PAD_ENET_TX_EN__GPIO1_IO28 0x0f058
1214		>;
1215	};
1216
1217	pinctrl_sd_cd: sdcdgrp {
1218		fsl,pins = <
1219			/* SD1 CD */
1220			MX6QDL_PAD_NANDF_CS1__GPIO6_IO14 0x000b0
1221		>;
1222	};
1223
1224	pinctrl_sgtl5000: sgtl5000grp {
1225		fsl,pins = <
1226			MX6QDL_PAD_GPIO_5__CCM_CLKO1	0x130b0
1227		>;
1228	};
1229
1230	pinctrl_spdif: spdifgrp {
1231		fsl,pins = <
1232			MX6QDL_PAD_GPIO_16__SPDIF_IN  0x1b0b0
1233			MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x1b0b0
1234		>;
1235	};
1236
1237	pinctrl_touch_int: touchintgrp {
1238		fsl,pins = <
1239			/* STMPE811 interrupt */
1240			MX6QDL_PAD_KEY_COL2__GPIO4_IO10 0x1b0b0
1241		>;
1242	};
1243
1244	/* Additional DTR, DSR, DCD */
1245	pinctrl_uart1_ctrl: uart1ctrlgrp {
1246		fsl,pins = <
1247			MX6QDL_PAD_EIM_D23__UART1_DCD_B 0x1b0b0
1248			MX6QDL_PAD_EIM_D24__UART1_DTR_B 0x1b0b0
1249			MX6QDL_PAD_EIM_D25__UART1_DSR_B 0x1b0b0
1250		>;
1251	};
1252
1253	pinctrl_uart1_dce: uart1dcegrp {
1254		fsl,pins = <
1255			MX6QDL_PAD_CSI0_DAT10__UART1_TX_DATA 0x1b0b1
1256			MX6QDL_PAD_CSI0_DAT11__UART1_RX_DATA 0x1b0b1
1257		>;
1258	};
1259
1260	/* DTE mode */
1261	pinctrl_uart1_dte: uart1dtegrp {
1262		fsl,pins = <
1263			MX6QDL_PAD_CSI0_DAT10__UART1_RX_DATA 0x1b0b1
1264			MX6QDL_PAD_CSI0_DAT11__UART1_TX_DATA 0x1b0b1
1265			MX6QDL_PAD_EIM_D19__UART1_RTS_B 0x1b0b1
1266			MX6QDL_PAD_EIM_D20__UART1_CTS_B 0x1b0b1
1267		>;
1268	};
1269
1270	pinctrl_uart2_dce: uart2dcegrp {
1271		fsl,pins = <
1272			MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA	0x1b0b1
1273			MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA	0x1b0b1
1274		>;
1275	};
1276
1277	/* DTE mode */
1278	pinctrl_uart2_dte: uart2dtegrp {
1279		fsl,pins = <
1280			MX6QDL_PAD_SD4_DAT4__UART2_TX_DATA	0x1b0b1
1281			MX6QDL_PAD_SD4_DAT7__UART2_RX_DATA	0x1b0b1
1282			MX6QDL_PAD_SD4_DAT6__UART2_RTS_B	0x1b0b1
1283			MX6QDL_PAD_SD4_DAT5__UART2_CTS_B	0x1b0b1
1284		>;
1285	};
1286
1287	pinctrl_uart4_dce: uart4dcegrp {
1288		fsl,pins = <
1289			MX6QDL_PAD_KEY_COL0__UART4_TX_DATA 0x1b0b1
1290			MX6QDL_PAD_KEY_ROW0__UART4_RX_DATA 0x1b0b1
1291		>;
1292	};
1293
1294	/* DTE mode */
1295	pinctrl_uart4_dte: uart4dtegrp {
1296		fsl,pins = <
1297			MX6QDL_PAD_KEY_COL0__UART4_RX_DATA 0x1b0b1
1298			MX6QDL_PAD_KEY_ROW0__UART4_TX_DATA 0x1b0b1
1299		>;
1300	};
1301
1302	pinctrl_uart5_dce: uart5dcegrp {
1303		fsl,pins = <
1304			MX6QDL_PAD_KEY_COL1__UART5_TX_DATA 0x1b0b1
1305			MX6QDL_PAD_KEY_ROW1__UART5_RX_DATA 0x1b0b1
1306		>;
1307	};
1308
1309	/* DTE mode */
1310	pinctrl_uart5_dte: uart5dtegrp {
1311		fsl,pins = <
1312			MX6QDL_PAD_KEY_COL1__UART5_RX_DATA 0x1b0b1
1313			MX6QDL_PAD_KEY_ROW1__UART5_TX_DATA 0x1b0b1
1314		>;
1315	};
1316
1317	pinctrl_usbotg: usbotggrp {
1318		fsl,pins = <
1319			MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID 0x17059
1320		>;
1321	};
1322
1323	pinctrl_usdhc1_4bit: usdhc1-4bitgrp {
1324		fsl,pins = <
1325			MX6QDL_PAD_SD1_CMD__SD1_CMD    0x17071
1326			MX6QDL_PAD_SD1_CLK__SD1_CLK    0x10071
1327			MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x17071
1328			MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x17071
1329			MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x17071
1330			MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x17071
1331		>;
1332	};
1333
1334	pinctrl_usdhc1_8bit: usdhc1-8bitgrp {
1335		fsl,pins = <
1336			MX6QDL_PAD_NANDF_D0__SD1_DATA4 0x17071
1337			MX6QDL_PAD_NANDF_D1__SD1_DATA5 0x17071
1338			MX6QDL_PAD_NANDF_D2__SD1_DATA6 0x17071
1339			MX6QDL_PAD_NANDF_D3__SD1_DATA7 0x17071
1340		>;
1341	};
1342
1343	pinctrl_usdhc2: usdhc2grp {
1344		fsl,pins = <
1345			MX6QDL_PAD_SD2_CMD__SD2_CMD    0x17071
1346			MX6QDL_PAD_SD2_CLK__SD2_CLK    0x10071
1347			MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17071
1348			MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17071
1349			MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17071
1350			MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x17071
1351		>;
1352	};
1353
1354	pinctrl_usdhc3: usdhc3grp {
1355		fsl,pins = <
1356			MX6QDL_PAD_SD3_CMD__SD3_CMD    0x17059
1357			MX6QDL_PAD_SD3_CLK__SD3_CLK    0x10059
1358			MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
1359			MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
1360			MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
1361			MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
1362			MX6QDL_PAD_SD3_DAT4__SD3_DATA4 0x17059
1363			MX6QDL_PAD_SD3_DAT5__SD3_DATA5 0x17059
1364			MX6QDL_PAD_SD3_DAT6__SD3_DATA6 0x17059
1365			MX6QDL_PAD_SD3_DAT7__SD3_DATA7 0x17059
1366			/* eMMC reset */
1367			MX6QDL_PAD_SD3_RST__SD3_RESET  0x17059
1368		>;
1369	};
1370};
1371