xref: /linux/arch/arm64/boot/dts/freescale/imx8mp-tqma8mpql-mba8mpxl.dts (revision fb4f0b69565eef4a13cf3b8534dbc0b8b5505c52)
1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Copyright 2021-2022 TQ-Systems GmbH
4 * Author: Alexander Stein <alexander.stein@tq-group.com>
5 */
6
7/dts-v1/;
8
9#include <dt-bindings/leds/common.h>
10#include <dt-bindings/net/ti-dp83867.h>
11#include <dt-bindings/pwm/pwm.h>
12#include "imx8mp-tqma8mpql.dtsi"
13
14/ {
15	model = "TQ-Systems i.MX8MPlus TQMa8MPxL on MBa8MPxL";
16	compatible = "tq,imx8mp-tqma8mpql-mba8mpxl", "tq,imx8mp-tqma8mpql", "fsl,imx8mp";
17
18	chosen {
19		stdout-path = &uart4;
20	};
21
22	iio-hwmon {
23		compatible = "iio-hwmon";
24		io-channels = <&adc 0>, <&adc 1>;
25	};
26
27	aliases {
28		mmc0 = &usdhc3;
29		mmc1 = &usdhc2;
30		mmc2 = &usdhc1;
31		rtc0 = &pcf85063;
32		rtc1 = &snvs_rtc;
33		spi0 = &flexspi;
34		spi1 = &ecspi1;
35		spi2 = &ecspi2;
36		spi3 = &ecspi3;
37	};
38
39	backlight_lvds: backlight {
40		compatible = "pwm-backlight";
41		pinctrl-names = "default";
42		pinctrl-0 = <&pinctrl_backlight>;
43		pwms = <&pwm2 0 5000000 0>;
44		brightness-levels = <0 4 8 16 32 64 128 255>;
45		default-brightness-level = <7>;
46		power-supply = <&reg_vcc_12v0>;
47		enable-gpios = <&gpio3 19 GPIO_ACTIVE_HIGH>;
48		status = "disabled";
49	};
50
51	gpio-keys {
52		compatible = "gpio-keys";
53		pinctrl-names = "default";
54		pinctrl-0 = <&pinctrl_gpiobutton>;
55		autorepeat;
56
57		switch-1 {
58			label = "S12";
59			linux,code = <BTN_0>;
60			gpios = <&gpio5 26 GPIO_ACTIVE_LOW>;
61		};
62
63		switch-2 {
64			label = "S13";
65			linux,code = <BTN_1>;
66			gpios = <&gpio5 27 GPIO_ACTIVE_LOW>;
67		};
68	};
69
70	gpio-leds {
71		compatible = "gpio-leds";
72		pinctrl-names = "default";
73		pinctrl-0 = <&pinctrl_gpioled>;
74
75		led-0 {
76			color = <LED_COLOR_ID_GREEN>;
77			function = LED_FUNCTION_STATUS;
78			function-enumerator = <0>;
79			gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>;
80			linux,default-trigger = "default-on";
81		};
82
83		led-1 {
84			color = <LED_COLOR_ID_GREEN>;
85			function = LED_FUNCTION_HEARTBEAT;
86			gpios = <&gpio5 4 GPIO_ACTIVE_HIGH>;
87			linux,default-trigger = "heartbeat";
88		};
89
90		led-2 {
91			color = <LED_COLOR_ID_YELLOW>;
92			function = LED_FUNCTION_STATUS;
93			function-enumerator = <1>;
94			gpios = <&gpio5 3 GPIO_ACTIVE_HIGH>;
95		};
96	};
97
98	display: display {
99		/*
100		 * Display is not fixed, so compatible has to be added from
101		 * DT overlay
102		 */
103		pinctrl-names = "default";
104		pinctrl-0 = <&pinctrl_lvdsdisplay>;
105		power-supply = <&reg_vcc_3v3>;
106		enable-gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>;
107		backlight = <&backlight_lvds>;
108		status = "disabled";
109	};
110
111	reg_usdhc2_vmmc: regulator-usdhc2 {
112		compatible = "regulator-fixed";
113		pinctrl-names = "default";
114		pinctrl-0 = <&pinctrl_reg_usdhc2_vmmc>;
115		regulator-name = "VSD_3V3";
116		regulator-min-microvolt = <3300000>;
117		regulator-max-microvolt = <3300000>;
118		gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
119		enable-active-high;
120		startup-delay-us = <100>;
121		off-on-delay-us = <12000>;
122	};
123
124	reg_vcc_12v0: regulator-12v0 {
125		compatible = "regulator-fixed";
126		pinctrl-names = "default";
127		pinctrl-0 = <&pinctrl_reg12v0>;
128		regulator-name = "VCC_12V0";
129		regulator-min-microvolt = <12000000>;
130		regulator-max-microvolt = <12000000>;
131		gpio = <&gpio2 6 GPIO_ACTIVE_HIGH>;
132		enable-active-high;
133	};
134
135	reg_vcc_3v3: regulator-3v3 {
136		compatible = "regulator-fixed";
137		regulator-name = "VCC_3V3";
138		regulator-min-microvolt = <3300000>;
139		regulator-max-microvolt = <3300000>;
140	};
141
142	reg_vcc_5v0: regulator-5v0 {
143		compatible = "regulator-fixed";
144		regulator-name = "VCC_5V0";
145		regulator-min-microvolt = <5000000>;
146		regulator-max-microvolt = <5000000>;
147	};
148
149	reserved-memory {
150		#address-cells = <2>;
151		#size-cells = <2>;
152		ranges;
153
154		ocram: ocram@900000 {
155			no-map;
156			reg = <0 0x900000 0 0x70000>;
157		};
158
159		/* global autoconfigured region for contiguous allocations */
160		linux,cma {
161			compatible = "shared-dma-pool";
162			reusable;
163			size = <0 0x38000000>;
164			alloc-ranges = <0 0x40000000 0 0xB0000000>;
165			linux,cma-default;
166		};
167	};
168};
169
170&ecspi1 {
171	pinctrl-names = "default";
172	pinctrl-0 = <&pinctrl_ecspi1>;
173	cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;
174	status = "okay";
175};
176
177&ecspi2 {
178	pinctrl-names = "default";
179	pinctrl-0 = <&pinctrl_ecspi2>;
180	cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
181	status = "okay";
182};
183
184&ecspi3 {
185	pinctrl-names = "default";
186	pinctrl-0 = <&pinctrl_ecspi3>;
187	cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>;
188	status = "okay";
189
190	adc: adc@0 {
191		reg = <0>;
192		compatible = "microchip,mcp3202";
193		/* 100 ksps * 18 */
194		spi-max-frequency = <1800000>;
195		vref-supply = <&reg_vcc_3v3>;
196		#io-channel-cells = <1>;
197	};
198};
199
200&eqos {
201	pinctrl-names = "default";
202	pinctrl-0 = <&pinctrl_eqos>, <&pinctrl_eqos_phy>;
203	phy-mode = "rgmii-id";
204	phy-handle = <&ethphy3>;
205	status = "okay";
206
207	mdio {
208		compatible = "snps,dwmac-mdio";
209		#address-cells = <1>;
210		#size-cells = <0>;
211
212		ethphy3: ethernet-phy@3 {
213			compatible = "ethernet-phy-ieee802.3-c22";
214			reg = <3>;
215			ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
216			ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
217			ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
218			ti,dp83867-rxctrl-strap-quirk;
219			ti,clk-output-sel = <DP83867_CLK_O_SEL_OFF>;
220			reset-gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
221			reset-assert-us = <500000>;
222			reset-deassert-us = <50000>;
223			enet-phy-lane-no-swap;
224			interrupt-parent = <&gpio4>;
225			interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
226		};
227	};
228};
229
230&fec {
231	pinctrl-names = "default";
232	pinctrl-0 = <&pinctrl_fec>, <&pinctrl_fec_phy>;
233	phy-mode = "rgmii-id";
234	phy-handle = <&ethphy0>;
235	fsl,magic-packet;
236	status = "okay";
237
238	mdio {
239		#address-cells = <1>;
240		#size-cells = <0>;
241
242		ethphy0: ethernet-phy@0 {
243			compatible = "ethernet-phy-ieee802.3-c22";
244			reg = <0>;
245			ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
246			ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_25_NS>;
247			ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
248			ti,dp83867-rxctrl-strap-quirk;
249			ti,clk-output-sel = <DP83867_CLK_O_SEL_OFF>;
250			reset-gpios = <&gpio4 0 GPIO_ACTIVE_LOW>;
251			reset-assert-us = <500000>;
252			reset-deassert-us = <50000>;
253			enet-phy-lane-no-swap;
254			interrupt-parent = <&gpio4>;
255			interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
256		};
257	};
258};
259
260&flexcan1 {
261	pinctrl-names = "default";
262	pinctrl-0 = <&pinctrl_flexcan1>;
263	xceiver-supply = <&reg_vcc_3v3>;
264	status = "okay";
265};
266
267&flexcan2 {
268	pinctrl-names = "default";
269	pinctrl-0 = <&pinctrl_flexcan2>;
270	xceiver-supply = <&reg_vcc_3v3>;
271	status = "okay";
272};
273
274&gpio1 {
275	pinctrl-names = "default";
276	pinctrl-0 = <&pinctrl_gpio1>;
277
278	gpio-line-names = "GPO1", "GPO0", "", "GPO3",
279			  "", "", "GPO2", "GPI0",
280			  "PMIC_IRQ", "GPI1", "OTG_ID", "USB_HUB_RST#",
281			  "OTG_PWR", "", "GPI2", "GPI3",
282			  "", "", "", "",
283			  "", "", "", "",
284			  "", "", "", "",
285			  "", "", "", "";
286};
287
288&gpio2 {
289	pinctrl-names = "default";
290	pinctrl-0 = <&pinctrl_hoggpio2>;
291
292	gpio-line-names = "", "", "", "",
293			  "", "", "VCC12V_EN", "PERST#",
294			  "", "", "CLKREQ#", "PEWAKE#",
295			  "USDHC2_CD", "", "", "",
296			  "", "", "", "V_SD3V3_EN",
297			  "", "", "", "",
298			  "", "", "", "",
299			  "", "", "", "";
300
301	perst-hog {
302		gpio-hog;
303		gpios = <7 0>;
304		output-high;
305		line-name = "PERST#";
306	};
307
308	clkreq-hog {
309		gpio-hog;
310		gpios = <10 0>;
311		input;
312		line-name = "CLKREQ#";
313	};
314
315	pewake-hog {
316		gpio-hog;
317		gpios = <11 0>;
318		input;
319		line-name = "PEWAKE#";
320	};
321};
322
323&gpio3 {
324	gpio-line-names = "", "", "", "",
325			  "", "", "", "",
326			  "", "", "", "",
327			  "", "", "LVDS0_RESET#", "",
328			  "", "", "", "LVDS0_BLT_EN",
329			  "LVDS0_PWR_EN", "", "", "",
330			  "", "", "", "",
331			  "", "", "", "";
332};
333
334&gpio4 {
335	pinctrl-names = "default";
336	pinctrl-0 = <&pinctrl_gpio4>;
337
338	gpio-line-names = "ENET0_RST#", "ENET0_INT#", "ENET1_RST#", "ENET1_INT#",
339			  "", "", "", "",
340			  "", "", "", "",
341			  "", "", "", "",
342			  "", "", "DP_IRQ", "DSI_EN",
343			  "HDMI_OC#", "TEMP_EVENT#", "PCIE_CLK_OE#", "",
344			  "", "", "", "FAN_PWR",
345			  "RTC_EVENT#", "CODEC_RST#", "", "";
346};
347
348&gpio5 {
349	gpio-line-names = "", "", "", "LED2",
350			  "LED1", "LED0", "CSI0_RESET#", "CSI0_SYNC",
351			  "CSI0_TRIGGER", "CSI0_ENABLE", "", "",
352			  "", "ECSPI2_SS0", "", "",
353			  "", "", "", "",
354			  "", "", "", "",
355			  "", "ECSPI3_SS0", "SWITCH_A", "SWITCH_B",
356			  "", "", "", "";
357};
358
359&i2c2 {
360	clock-frequency = <384000>;
361	pinctrl-names = "default", "gpio";
362	pinctrl-0 = <&pinctrl_i2c2>;
363	pinctrl-1 = <&pinctrl_i2c2_gpio>;
364	scl-gpios = <&gpio5 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
365	sda-gpios = <&gpio5 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
366	status = "okay";
367
368	/* NXP SE97BTP with temperature sensor + eeprom */
369	se97_1c: temperature-sensor-eeprom@1c {
370		compatible = "nxp,se97", "jedec,jc-42.4-temp";
371		reg = <0x1c>;
372	};
373
374	at24c02_54: eeprom@54 {
375		compatible = "nxp,se97b", "atmel,24c02";
376		reg = <0x54>;
377		pagesize = <16>;
378		vcc-supply = <&reg_vcc_3v3>;
379	};
380};
381
382&i2c4 {
383	clock-frequency = <384000>;
384	pinctrl-names = "default", "gpio";
385	pinctrl-0 = <&pinctrl_i2c4>;
386	pinctrl-1 = <&pinctrl_i2c4_gpio>;
387	scl-gpios = <&gpio5 20 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
388	sda-gpios = <&gpio5 21 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
389	status = "okay";
390};
391
392&i2c6 {
393	clock-frequency = <384000>;
394	pinctrl-names = "default", "gpio";
395	pinctrl-0 = <&pinctrl_i2c6>;
396	pinctrl-1 = <&pinctrl_i2c6_gpio>;
397	scl-gpios = <&gpio2 2 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
398	sda-gpios = <&gpio2 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
399	status = "okay";
400};
401
402&pcf85063 {
403	/* RTC_EVENT# is connected on MBa8MPxL */
404	interrupt-parent = <&gpio4>;
405	interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
406};
407
408&pwm2 {
409	pinctrl-names = "default";
410	pinctrl-0 = <&pinctrl_pwm2>;
411	status = "disabled";
412};
413
414&pwm3 {
415	pinctrl-names = "default";
416	pinctrl-0 = <&pinctrl_pwm3>;
417	status = "okay";
418};
419
420&snvs_pwrkey {
421	status = "okay";
422};
423
424&uart1 {
425	pinctrl-names = "default";
426	pinctrl-0 = <&pinctrl_uart1>;
427	assigned-clocks = <&clk IMX8MP_CLK_UART1>;
428	assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_80M>;
429	status = "okay";
430};
431
432&uart2 {
433	pinctrl-names = "default";
434	pinctrl-0 = <&pinctrl_uart2>;
435	assigned-clocks = <&clk IMX8MP_CLK_UART2>;
436	assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_80M>;
437	status = "okay";
438};
439
440&uart3 {
441	pinctrl-names = "default";
442	pinctrl-0 = <&pinctrl_uart3>;
443	assigned-clocks = <&clk IMX8MP_CLK_UART3>;
444	assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_80M>;
445	status = "okay";
446};
447
448&uart4 {
449	/* console */
450	pinctrl-names = "default";
451	pinctrl-0 = <&pinctrl_uart4>;
452	status = "okay";
453};
454
455&usb3_0 {
456	pinctrl-names = "default";
457	pinctrl-0 = <&pinctrl_usb0>;
458	fsl,over-current-active-low;
459	status = "okay";
460};
461
462&usb3_phy0 {
463	vbus-supply = <&reg_vcc_5v0>;
464	status = "okay";
465};
466
467&usb_dwc3_0 {
468	/* dual role is implemented, but not a full featured OTG */
469	hnp-disable;
470	srp-disable;
471	adp-disable;
472	dr_mode = "otg";
473	usb-role-switch;
474	role-switch-default-mode = "peripheral";
475	status = "okay";
476
477	connector {
478		compatible = "gpio-usb-b-connector", "usb-b-connector";
479		type = "micro";
480		label = "X29";
481		pinctrl-names = "default";
482		pinctrl-0 = <&pinctrl_usbcon0>;
483		id-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
484	};
485};
486
487&usdhc2 {
488	pinctrl-names = "default", "state_100mhz", "state_200mhz";
489	pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
490	pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
491	pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
492	cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
493	vmmc-supply = <&reg_usdhc2_vmmc>;
494	no-mmc;
495	no-sdio;
496	disable-wp;
497	bus-width = <4>;
498	status = "okay";
499};
500
501&iomuxc {
502	pinctrl_backlight: backlightgrp {
503		fsl,pins = <MX8MP_IOMUXC_SAI5_RXFS__GPIO3_IO19		0x14>;
504	};
505
506	pinctrl_flexcan1: flexcan1grp {
507		fsl,pins = <MX8MP_IOMUXC_SAI5_RXD1__CAN1_TX		0x150>,
508			   <MX8MP_IOMUXC_SAI5_RXD2__CAN1_RX		0x150>;
509	};
510
511	pinctrl_flexcan2: flexcan2grp {
512		fsl,pins = <MX8MP_IOMUXC_SAI5_RXD3__CAN2_TX		0x150>,
513			   <MX8MP_IOMUXC_SAI5_MCLK__CAN2_RX		0x150>;
514	};
515
516	/* only on X57, primary used as CSI0 control signals */
517	pinctrl_ecspi1: ecspi1grp {
518		fsl,pins = <MX8MP_IOMUXC_ECSPI1_MISO__ECSPI1_MISO	0x1c0>,
519			   <MX8MP_IOMUXC_ECSPI1_MOSI__ECSPI1_MOSI	0x1c0>,
520			   <MX8MP_IOMUXC_ECSPI1_SCLK__ECSPI1_SCLK	0x1c0>,
521			   <MX8MP_IOMUXC_ECSPI1_SS0__GPIO5_IO09		0x1c0>;
522	};
523
524	/* on X63 and optionally on X57, can also be used as CSI1 control signals */
525	pinctrl_ecspi2: ecspi2grp {
526		fsl,pins = <MX8MP_IOMUXC_ECSPI2_MISO__ECSPI2_MISO	0x1c0>,
527			   <MX8MP_IOMUXC_ECSPI2_MOSI__ECSPI2_MOSI	0x1c0>,
528			   <MX8MP_IOMUXC_ECSPI2_SCLK__ECSPI2_SCLK	0x1c0>,
529			   <MX8MP_IOMUXC_ECSPI2_SS0__GPIO5_IO13		0x1c0>;
530	};
531
532	pinctrl_ecspi3: ecspi3grp {
533		fsl,pins = <MX8MP_IOMUXC_UART1_TXD__ECSPI3_MOSI		0x1c0>,
534			   <MX8MP_IOMUXC_UART1_RXD__ECSPI3_SCLK		0x1c0>,
535			   <MX8MP_IOMUXC_UART2_RXD__ECSPI3_MISO		0x1c0>,
536			   <MX8MP_IOMUXC_UART2_TXD__GPIO5_IO25		0x1c0>;
537	};
538
539	pinctrl_eqos: eqosgrp {
540		fsl,pins = <MX8MP_IOMUXC_ENET_MDC__ENET_QOS_MDC				0x40000044>,
541			   <MX8MP_IOMUXC_ENET_MDIO__ENET_QOS_MDIO			0x40000044>,
542			   <MX8MP_IOMUXC_ENET_RD0__ENET_QOS_RGMII_RD0			0x90>,
543			   <MX8MP_IOMUXC_ENET_RD1__ENET_QOS_RGMII_RD1			0x90>,
544			   <MX8MP_IOMUXC_ENET_RD2__ENET_QOS_RGMII_RD2			0x90>,
545			   <MX8MP_IOMUXC_ENET_RD3__ENET_QOS_RGMII_RD3			0x90>,
546			   <MX8MP_IOMUXC_ENET_RXC__CCM_ENET_QOS_CLOCK_GENERATE_RX_CLK	0x90>,
547			   <MX8MP_IOMUXC_ENET_RX_CTL__ENET_QOS_RGMII_RX_CTL		0x90>,
548			   <MX8MP_IOMUXC_ENET_TD0__ENET_QOS_RGMII_TD0			0x12>,
549			   <MX8MP_IOMUXC_ENET_TD1__ENET_QOS_RGMII_TD1			0x12>,
550			   <MX8MP_IOMUXC_ENET_TD2__ENET_QOS_RGMII_TD2			0x12>,
551			   <MX8MP_IOMUXC_ENET_TD3__ENET_QOS_RGMII_TD3			0x12>,
552			   <MX8MP_IOMUXC_ENET_TX_CTL__ENET_QOS_RGMII_TX_CTL		0x12>,
553			   <MX8MP_IOMUXC_ENET_TXC__CCM_ENET_QOS_CLOCK_GENERATE_TX_CLK	0x14>;
554	};
555
556	pinctrl_eqos_event: eqosevtgrp {
557		fsl,pins = <MX8MP_IOMUXC_SAI2_RXD0__ENET_QOS_1588_EVENT2_OUT		0x100>,
558			   <MX8MP_IOMUXC_SAI2_TXD0__ENET_QOS_1588_EVENT2_IN		0x1c0>;
559	};
560
561	pinctrl_eqos_phy: eqosphygrp {
562		fsl,pins = <MX8MP_IOMUXC_SAI1_RXD0__GPIO4_IO02				0x100>,
563			   <MX8MP_IOMUXC_SAI1_RXD1__GPIO4_IO03				0x1c0>;
564	};
565
566	pinctrl_fec: fecgrp {
567		fsl,pins = <MX8MP_IOMUXC_SAI1_RXD2__ENET1_MDC		0x40000044>,
568			   <MX8MP_IOMUXC_SAI1_RXD3__ENET1_MDIO		0x40000044>,
569			   <MX8MP_IOMUXC_SAI1_RXD4__ENET1_RGMII_RD0	0x90>,
570			   <MX8MP_IOMUXC_SAI1_RXD5__ENET1_RGMII_RD1	0x90>,
571			   <MX8MP_IOMUXC_SAI1_RXD6__ENET1_RGMII_RD2	0x90>,
572			   <MX8MP_IOMUXC_SAI1_RXD7__ENET1_RGMII_RD3	0x90>,
573			   <MX8MP_IOMUXC_SAI1_TXC__ENET1_RGMII_RXC	0x90>,
574			   <MX8MP_IOMUXC_SAI1_TXFS__ENET1_RGMII_RX_CTL	0x90>,
575			   <MX8MP_IOMUXC_SAI1_TXD0__ENET1_RGMII_TD0	0x12>,
576			   <MX8MP_IOMUXC_SAI1_TXD1__ENET1_RGMII_TD1	0x12>,
577			   <MX8MP_IOMUXC_SAI1_TXD2__ENET1_RGMII_TD2	0x12>,
578			   <MX8MP_IOMUXC_SAI1_TXD3__ENET1_RGMII_TD3	0x12>,
579			   <MX8MP_IOMUXC_SAI1_TXD4__ENET1_RGMII_TX_CTL	0x12>,
580			   <MX8MP_IOMUXC_SAI1_TXD5__ENET1_RGMII_TXC	0x14>;
581	};
582
583	pinctrl_fec_event: fecevtgrp {
584		fsl,pins = <MX8MP_IOMUXC_SAI1_RXFS__ENET1_1588_EVENT0_IN	0x100>,
585			   <MX8MP_IOMUXC_SAI1_RXC__ENET1_1588_EVENT0_OUT	0x1c0>;
586	};
587
588	pinctrl_fec_phy: fecphygrp {
589		fsl,pins = <MX8MP_IOMUXC_SAI1_RXFS__GPIO4_IO00		0x100>,
590			   <MX8MP_IOMUXC_SAI1_RXC__GPIO4_IO01		0x1c0>;
591	};
592
593	pinctrl_fec_phyalt: fecphyaltgrp {
594		fsl,pins = <MX8MP_IOMUXC_SAI2_TXFS__GPIO4_IO24		0x180>,
595			   <MX8MP_IOMUXC_SAI2_TXC__GPIO4_IO25		0x180>;
596	};
597
598	pinctrl_gpiobutton: gpiobuttongrp {
599		fsl,pins = <MX8MP_IOMUXC_UART3_RXD__GPIO5_IO26		0x10>,
600			   <MX8MP_IOMUXC_UART3_TXD__GPIO5_IO27		0x10>;
601	};
602
603	pinctrl_gpioled: gpioledgrp {
604		fsl,pins = <MX8MP_IOMUXC_SPDIF_EXT_CLK__GPIO5_IO05	0x14>,
605			   <MX8MP_IOMUXC_SPDIF_RX__GPIO5_IO04		0x14>,
606			   <MX8MP_IOMUXC_SPDIF_TX__GPIO5_IO03		0x14>;
607	};
608
609	pinctrl_gpio1: gpio1grp {
610		fsl,pins = <MX8MP_IOMUXC_GPIO1_IO00__GPIO1_IO00		0x10>,
611			   <MX8MP_IOMUXC_GPIO1_IO01__GPIO1_IO01		0x10>,
612			   <MX8MP_IOMUXC_GPIO1_IO03__GPIO1_IO03		0x10>,
613			   <MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06		0x10>,
614			   <MX8MP_IOMUXC_GPIO1_IO07__GPIO1_IO07		0x80>,
615			   <MX8MP_IOMUXC_GPIO1_IO09__GPIO1_IO09		0x80>,
616			   <MX8MP_IOMUXC_GPIO1_IO14__GPIO1_IO14		0x80>,
617			   <MX8MP_IOMUXC_GPIO1_IO15__GPIO1_IO15		0x80>;
618	};
619
620	pinctrl_gpio4: gpio4grp {
621		fsl,pins = <MX8MP_IOMUXC_SAI1_MCLK__GPIO4_IO20		0x180>,
622			   <MX8MP_IOMUXC_SAI2_RXC__GPIO4_IO22		0x180>;
623	};
624
625	pinctrl_hdmi: hdmigrp {
626		fsl,pins = <MX8MP_IOMUXC_HDMI_DDC_SCL__HDMIMIX_HDMI_SCL	0x400001c2>,
627			   <MX8MP_IOMUXC_HDMI_DDC_SDA__HDMIMIX_HDMI_SDA	0x400001c2>,
628			   <MX8MP_IOMUXC_HDMI_HPD__HDMIMIX_HDMI_HPD	0x40000010>,
629			   <MX8MP_IOMUXC_HDMI_CEC__HDMIMIX_HDMI_CEC	0x40000010>;
630	};
631
632	pinctrl_hoggpio2: hoggpio2grp {
633		fsl,pins = <MX8MP_IOMUXC_SD1_DATA5__GPIO2_IO07		0x140>,
634			   <MX8MP_IOMUXC_SD1_RESET_B__GPIO2_IO10	0x140>,
635			   <MX8MP_IOMUXC_SD1_STROBE__GPIO2_IO11		0x140>;
636	};
637
638	pinctrl_i2c2: i2c2grp {
639		fsl,pins = <MX8MP_IOMUXC_I2C2_SCL__I2C2_SCL		0x400001e2>,
640			   <MX8MP_IOMUXC_I2C2_SDA__I2C2_SDA		0x400001e2>;
641	};
642
643	pinctrl_i2c2_gpio: i2c2-gpiogrp {
644		fsl,pins = <MX8MP_IOMUXC_I2C2_SCL__GPIO5_IO16		0x400001e2>,
645			   <MX8MP_IOMUXC_I2C2_SDA__GPIO5_IO17		0x400001e2>;
646	};
647
648	pinctrl_i2c4: i2c4grp {
649		fsl,pins = <MX8MP_IOMUXC_I2C4_SCL__I2C4_SCL		0x400001e2>,
650			   <MX8MP_IOMUXC_I2C4_SDA__I2C4_SDA		0x400001e2>;
651	};
652
653	pinctrl_i2c4_gpio: i2c4-gpiogrp {
654		fsl,pins = <MX8MP_IOMUXC_I2C4_SCL__GPIO5_IO20		0x400001e2>,
655			   <MX8MP_IOMUXC_I2C4_SDA__GPIO5_IO21		0x400001e2>;
656	};
657
658	pinctrl_i2c6: i2c6grp {
659		fsl,pins = <MX8MP_IOMUXC_SD1_DATA0__I2C6_SCL		0x400001e2>,
660			   <MX8MP_IOMUXC_SD1_DATA1__I2C6_SDA		0x400001e2>;
661	};
662
663	pinctrl_i2c6_gpio: i2c6-gpiogrp {
664		fsl,pins = <MX8MP_IOMUXC_SD1_DATA0__GPIO2_IO02		0x400001e2>,
665			   <MX8MP_IOMUXC_SD1_DATA1__GPIO2_IO03		0x400001e2>;
666	};
667
668	pinctrl_lvdsdisplay: lvdsdisplaygrp {
669		fsl,pins = <MX8MP_IOMUXC_SAI5_RXC__GPIO3_IO20		0x10>; /* Power enable */
670	};
671
672	/* LVDS Backlight */
673	pinctrl_pwm2: pwm2grp {
674		fsl,pins = <MX8MP_IOMUXC_SAI5_RXD0__PWM2_OUT		0x14>;
675	};
676
677	/* FAN */
678	pinctrl_pwm3: pwm3grp {
679		fsl,pins = <MX8MP_IOMUXC_I2C3_SDA__PWM3_OUT		0x14>;
680	};
681
682	pinctrl_reg12v0: reg12v0grp {
683		fsl,pins = <MX8MP_IOMUXC_SD1_DATA4__GPIO2_IO06		0x140>; /* VCC12V enable */
684	};
685
686	/* X61 */
687	pinctrl_uart1: uart1grp {
688		fsl,pins = <MX8MP_IOMUXC_SD1_CLK__UART1_DCE_TX		0x140>,
689			   <MX8MP_IOMUXC_SD1_CMD__UART1_DCE_RX		0x140>;
690	};
691
692	/* X61 */
693	pinctrl_uart2: uart2grp {
694		fsl,pins = <MX8MP_IOMUXC_SD1_DATA2__UART2_DCE_TX	0x140>,
695			   <MX8MP_IOMUXC_SD1_DATA3__UART2_DCE_RX	0x140>;
696	};
697
698	pinctrl_uart3: uart3grp {
699		fsl,pins = <MX8MP_IOMUXC_SD1_DATA6__UART3_DCE_TX	0x140>,
700			   <MX8MP_IOMUXC_SD1_DATA7__UART3_DCE_RX	0x140>;
701	};
702
703	pinctrl_uart4: uart4grp {
704		fsl,pins = <MX8MP_IOMUXC_UART4_RXD__UART4_DCE_RX	0x140>,
705			   <MX8MP_IOMUXC_UART4_TXD__UART4_DCE_TX	0x140>;
706	};
707
708	pinctrl_usb0: usb0grp {
709		fsl,pins = <MX8MP_IOMUXC_GPIO1_IO13__USB1_OTG_OC	0x1c0>,
710			   <MX8MP_IOMUXC_GPIO1_IO12__USB1_OTG_PWR	0x1c0>;
711	};
712
713	pinctrl_usbcon0: usb0congrp {
714		fsl,pins = <MX8MP_IOMUXC_GPIO1_IO10__GPIO1_IO10		0x1c0>;
715	};
716
717	pinctrl_usdhc2: usdhc2grp {
718		fsl,pins = <MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK		0x192>,
719			   <MX8MP_IOMUXC_SD2_CMD__USDHC2_CMD		0x1d2>,
720			   <MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0	0x1d2>,
721			   <MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1	0x1d2>,
722			   <MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2	0x1d2>,
723			   <MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3	0x1d2>,
724			   <MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT	0xc0>;
725	};
726
727	pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp {
728		fsl,pins = <MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK		0x194>,
729			   <MX8MP_IOMUXC_SD2_CMD__USDHC2_CMD		0x1d4>,
730			   <MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0	0x1d4>,
731			   <MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1	0x1d4>,
732			   <MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2	0x1d4>,
733			   <MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3	0x1d4>,
734			   <MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT	0xc0>;
735	};
736
737	pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp {
738		fsl,pins = <MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK		0x194>,
739			   <MX8MP_IOMUXC_SD2_CMD__USDHC2_CMD		0x1d4>,
740			   <MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0	0x1d4>,
741			   <MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1	0x1d4>,
742			   <MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2	0x1d4>,
743			   <MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3	0x1d4>,
744			   <MX8MP_IOMUXC_GPIO1_IO04__USDHC2_VSELECT	0xc0>;
745	};
746
747	pinctrl_usdhc2_gpio: usdhc2-gpiogrp {
748		fsl,pins = <MX8MP_IOMUXC_SD2_CD_B__GPIO2_IO12		0x1c0>;
749	};
750};
751