1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright 2021 Gateworks Corporation
4 */
5
6/dts-v1/;
7
8#include <dt-bindings/gpio/gpio.h>
9#include <dt-bindings/input/linux-event-codes.h>
10#include <dt-bindings/leds/common.h>
11#include <dt-bindings/net/ti-dp83867.h>
12#include <dt-bindings/phy/phy-imx8-pcie.h>
13
14#include "imx8mm.dtsi"
15
16/ {
17	model = "Gateworks Venice GW7902 i.MX8MM board";
18	compatible = "gw,imx8mm-gw7902", "fsl,imx8mm";
19
20	aliases {
21		ethernet1 = &eth1;
22		usb0 = &usbotg1;
23		usb1 = &usbotg2;
24	};
25
26	chosen {
27		stdout-path = &uart2;
28	};
29
30	memory@40000000 {
31		device_type = "memory";
32		reg = <0x0 0x40000000 0 0x80000000>;
33	};
34
35	can20m: can20m {
36		compatible = "fixed-clock";
37		#clock-cells = <0>;
38		clock-frequency = <20000000>;
39		clock-output-names = "can20m";
40	};
41
42	gpio-keys {
43		compatible = "gpio-keys";
44
45		user-pb {
46			label = "user_pb";
47			gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
48			linux,code = <BTN_0>;
49		};
50
51		user-pb1x {
52			label = "user_pb1x";
53			linux,code = <BTN_1>;
54			interrupt-parent = <&gsc>;
55			interrupts = <0>;
56		};
57
58		key-erased {
59			label = "key_erased";
60			linux,code = <BTN_2>;
61			interrupt-parent = <&gsc>;
62			interrupts = <1>;
63		};
64
65		eeprom-wp {
66			label = "eeprom_wp";
67			linux,code = <BTN_3>;
68			interrupt-parent = <&gsc>;
69			interrupts = <2>;
70		};
71
72		tamper {
73			label = "tamper";
74			linux,code = <BTN_4>;
75			interrupt-parent = <&gsc>;
76			interrupts = <5>;
77		};
78
79		switch-hold {
80			label = "switch_hold";
81			linux,code = <BTN_5>;
82			interrupt-parent = <&gsc>;
83			interrupts = <7>;
84		};
85	};
86
87	led-controller {
88		compatible = "gpio-leds";
89		pinctrl-names = "default";
90		pinctrl-0 = <&pinctrl_gpio_leds>;
91
92		led-0 {
93			function = LED_FUNCTION_STATUS;
94			color = <LED_COLOR_ID_GREEN>;
95			label = "panel1";
96			gpios = <&gpio3 21 GPIO_ACTIVE_LOW>;
97			default-state = "off";
98		};
99
100		led-1 {
101			function = LED_FUNCTION_STATUS;
102			color = <LED_COLOR_ID_GREEN>;
103			label = "panel2";
104			gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
105			default-state = "off";
106		};
107
108		led-2 {
109			function = LED_FUNCTION_STATUS;
110			color = <LED_COLOR_ID_GREEN>;
111			label = "panel3";
112			gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
113			default-state = "off";
114		};
115
116		led-3 {
117			function = LED_FUNCTION_STATUS;
118			color = <LED_COLOR_ID_GREEN>;
119			label = "panel4";
120			gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
121			default-state = "off";
122		};
123
124		led-4 {
125			function = LED_FUNCTION_STATUS;
126			color = <LED_COLOR_ID_GREEN>;
127			label = "panel5";
128			gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
129			default-state = "off";
130		};
131	};
132
133	pcie0_refclk: pcie0-refclk {
134		compatible = "fixed-clock";
135		#clock-cells = <0>;
136		clock-frequency = <100000000>;
137	};
138
139	pps {
140		compatible = "pps-gpio";
141		pinctrl-names = "default";
142		pinctrl-0 = <&pinctrl_pps>;
143		gpios = <&gpio3 24 GPIO_ACTIVE_HIGH>;
144		status = "okay";
145	};
146
147	reg_3p3v: regulator-3p3v {
148		compatible = "regulator-fixed";
149		regulator-name = "3P3V";
150		regulator-min-microvolt = <3300000>;
151		regulator-max-microvolt = <3300000>;
152		regulator-always-on;
153	};
154
155	reg_usb1_vbus: regulator-usb1 {
156		compatible = "regulator-fixed";
157		pinctrl-names = "default";
158		pinctrl-0 = <&pinctrl_reg_usb1>;
159		regulator-name = "usb_usb1_vbus";
160		gpio = <&gpio2 7 GPIO_ACTIVE_HIGH>;
161		enable-active-high;
162		regulator-min-microvolt = <5000000>;
163		regulator-max-microvolt = <5000000>;
164	};
165
166	reg_wifi: regulator-wifi {
167		compatible = "regulator-fixed";
168		pinctrl-names = "default";
169		pinctrl-0 = <&pinctrl_reg_wl>;
170		regulator-name = "wifi";
171		gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
172		enable-active-high;
173		startup-delay-us = <100>;
174		regulator-min-microvolt = <3300000>;
175		regulator-max-microvolt = <3300000>;
176	};
177};
178
179&A53_0 {
180	cpu-supply = <&buck2>;
181};
182
183&A53_1 {
184	cpu-supply = <&buck2>;
185};
186
187&A53_2 {
188	cpu-supply = <&buck2>;
189};
190
191&A53_3 {
192	cpu-supply = <&buck2>;
193};
194
195&ddrc {
196	operating-points-v2 = <&ddrc_opp_table>;
197
198	ddrc_opp_table: opp-table {
199		compatible = "operating-points-v2";
200
201		opp-25M {
202			opp-hz = /bits/ 64 <25000000>;
203		};
204
205		opp-100M {
206			opp-hz = /bits/ 64 <100000000>;
207		};
208
209		opp-750M {
210			opp-hz = /bits/ 64 <750000000>;
211		};
212	};
213};
214
215&ecspi1 {
216	pinctrl-names = "default";
217	pinctrl-0 = <&pinctrl_spi1>;
218	cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;
219	status = "okay";
220
221	can@0 {
222		compatible = "microchip,mcp2515";
223		reg = <0>;
224		clocks = <&can20m>;
225		oscillator-frequency = <20000000>;
226		interrupt-parent = <&gpio2>;
227		interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
228		spi-max-frequency = <10000000>;
229	};
230};
231
232/* off-board header */
233&ecspi2 {
234	pinctrl-names = "default";
235	pinctrl-0 = <&pinctrl_spi2>;
236	cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
237	status = "okay";
238};
239
240&fec1 {
241	pinctrl-names = "default";
242	pinctrl-0 = <&pinctrl_fec1>;
243	phy-mode = "rgmii-id";
244	phy-handle = <&ethphy0>;
245	local-mac-address = [00 00 00 00 00 00];
246	status = "okay";
247
248	mdio {
249		#address-cells = <1>;
250		#size-cells = <0>;
251
252		ethphy0: ethernet-phy@0 {
253			compatible = "ethernet-phy-ieee802.3-c22";
254			reg = <0>;
255			ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
256			ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
257			tx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
258			rx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
259		};
260	};
261};
262
263&gpio1 {
264	gpio-line-names = "", "", "", "", "", "", "", "",
265		"", "", "", "", "", "m2_reset", "", "m2_wdis#",
266		"", "", "", "", "", "", "", "",
267		"", "", "", "", "", "", "", "";
268};
269
270&gpio2 {
271	gpio-line-names = "", "", "", "", "", "", "", "",
272		"uart2_en#", "", "", "", "", "", "", "",
273		"", "", "", "", "", "", "", "",
274		"", "", "", "", "", "", "", "";
275};
276
277&gpio3 {
278	gpio-line-names = "", "m2_gdis#", "", "", "", "", "", "m2_off#",
279		"", "", "", "", "", "", "", "",
280		"", "", "", "", "", "", "", "",
281		"", "", "", "", "", "", "", "";
282};
283
284&gpio4 {
285	gpio-line-names = "", "", "", "", "", "", "", "",
286		"", "", "", "amp_gpio3", "amp_gpio2", "", "amp_gpio1", "",
287		"", "", "", "", "amp_gpio4", "app_gpio1", "", "uart1_rs485",
288		"", "uart1_term", "uart1_half", "app_gpio2",
289		"mipi_gpio1", "", "", "";
290};
291
292&gpio5 {
293	gpio-line-names = "", "", "", "mipi_gpio4",
294		"mipi_gpio3", "mipi_gpio2", "", "",
295		"", "", "", "", "", "", "", "",
296		"", "", "", "", "", "", "", "",
297		"", "", "", "", "", "", "", "";
298};
299
300&i2c1 {
301	clock-frequency = <100000>;
302	pinctrl-names = "default";
303	pinctrl-0 = <&pinctrl_i2c1>;
304	status = "okay";
305
306	gsc: gsc@20 {
307		compatible = "gw,gsc";
308		reg = <0x20>;
309		pinctrl-0 = <&pinctrl_gsc>;
310		interrupt-parent = <&gpio2>;
311		interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
312		interrupt-controller;
313		#interrupt-cells = <1>;
314
315		adc {
316			compatible = "gw,gsc-adc";
317			#address-cells = <1>;
318			#size-cells = <0>;
319
320			channel@6 {
321				gw,mode = <0>;
322				reg = <0x06>;
323				label = "temp";
324			};
325
326			channel@8 {
327				gw,mode = <1>;
328				reg = <0x08>;
329				label = "vdd_bat";
330			};
331
332			channel@82 {
333				gw,mode = <2>;
334				reg = <0x82>;
335				label = "vin";
336				gw,voltage-divider-ohms = <22100 1000>;
337				gw,voltage-offset-microvolt = <700000>;
338			};
339
340			channel@84 {
341				gw,mode = <2>;
342				reg = <0x84>;
343				label = "vin_4p0";
344				gw,voltage-divider-ohms = <10000 10000>;
345			};
346
347			channel@86 {
348				gw,mode = <2>;
349				reg = <0x86>;
350				label = "vdd_3p3";
351				gw,voltage-divider-ohms = <10000 10000>;
352			};
353
354			channel@88 {
355				gw,mode = <2>;
356				reg = <0x88>;
357				label = "vdd_0p9";
358			};
359
360			channel@8c {
361				gw,mode = <2>;
362				reg = <0x8c>;
363				label = "vdd_soc";
364			};
365
366			channel@8e {
367				gw,mode = <2>;
368				reg = <0x8e>;
369				label = "vdd_arm";
370			};
371
372			channel@90 {
373				gw,mode = <2>;
374				reg = <0x90>;
375				label = "vdd_1p8";
376			};
377
378			channel@92 {
379				gw,mode = <2>;
380				reg = <0x92>;
381				label = "vdd_dram";
382			};
383
384			channel@98 {
385				gw,mode = <2>;
386				reg = <0x98>;
387				label = "vdd_1p0";
388			};
389
390			channel@9a {
391				gw,mode = <2>;
392				reg = <0x9a>;
393				label = "vdd_2p5";
394				gw,voltage-divider-ohms = <10000 10000>;
395			};
396
397			channel@a2 {
398				gw,mode = <2>;
399				reg = <0xa2>;
400				label = "vdd_gsc";
401				gw,voltage-divider-ohms = <10000 10000>;
402			};
403		};
404	};
405
406	gpio: gpio@23 {
407		compatible = "nxp,pca9555";
408		reg = <0x23>;
409		gpio-controller;
410		#gpio-cells = <2>;
411		interrupt-parent = <&gsc>;
412		interrupts = <4>;
413	};
414
415	pmic@4b {
416		compatible = "rohm,bd71847";
417		reg = <0x4b>;
418		pinctrl-names = "default";
419		pinctrl-0 = <&pinctrl_pmic>;
420		interrupt-parent = <&gpio3>;
421		interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
422		rohm,reset-snvs-powered;
423		#clock-cells = <0>;
424		clocks = <&osc_32k 0>;
425		clock-output-names = "clk-32k-out";
426
427		regulators {
428			/* vdd_soc: 0.805-0.900V (typ=0.8V) */
429			BUCK1 {
430				regulator-name = "buck1";
431				regulator-min-microvolt = <700000>;
432				regulator-max-microvolt = <1300000>;
433				regulator-boot-on;
434				regulator-always-on;
435				regulator-ramp-delay = <1250>;
436			};
437
438			/* vdd_arm: 0.805-1.0V (typ=0.9V) */
439			buck2: BUCK2 {
440				regulator-name = "buck2";
441				regulator-min-microvolt = <700000>;
442				regulator-max-microvolt = <1300000>;
443				regulator-boot-on;
444				regulator-always-on;
445				regulator-ramp-delay = <1250>;
446				rohm,dvs-run-voltage = <1000000>;
447				rohm,dvs-idle-voltage = <900000>;
448			};
449
450			/* vdd_0p9: 0.805-1.0V (typ=0.9V) */
451			BUCK3 {
452				regulator-name = "buck3";
453				regulator-min-microvolt = <700000>;
454				regulator-max-microvolt = <1350000>;
455				regulator-boot-on;
456				regulator-always-on;
457			};
458
459			/* vdd_3p3 */
460			BUCK4 {
461				regulator-name = "buck4";
462				regulator-min-microvolt = <3000000>;
463				regulator-max-microvolt = <3300000>;
464				regulator-boot-on;
465				regulator-always-on;
466			};
467
468			/* vdd_1p8 */
469			BUCK5 {
470				regulator-name = "buck5";
471				regulator-min-microvolt = <1605000>;
472				regulator-max-microvolt = <1995000>;
473				regulator-boot-on;
474				regulator-always-on;
475			};
476
477			/* vdd_dram */
478			BUCK6 {
479				regulator-name = "buck6";
480				regulator-min-microvolt = <800000>;
481				regulator-max-microvolt = <1400000>;
482				regulator-boot-on;
483				regulator-always-on;
484			};
485
486			/* nvcc_snvs_1p8 */
487			LDO1 {
488				regulator-name = "ldo1";
489				regulator-min-microvolt = <1600000>;
490				regulator-max-microvolt = <1900000>;
491				regulator-boot-on;
492				regulator-always-on;
493			};
494
495			/* vdd_snvs_0p8 */
496			LDO2 {
497				regulator-name = "ldo2";
498				regulator-min-microvolt = <800000>;
499				regulator-max-microvolt = <900000>;
500				regulator-boot-on;
501				regulator-always-on;
502			};
503
504			/* vdda_1p8 */
505			LDO3 {
506				regulator-name = "ldo3";
507				regulator-min-microvolt = <1800000>;
508				regulator-max-microvolt = <3300000>;
509				regulator-boot-on;
510				regulator-always-on;
511			};
512
513			LDO4 {
514				regulator-name = "ldo4";
515				regulator-min-microvolt = <900000>;
516				regulator-max-microvolt = <1800000>;
517				regulator-boot-on;
518				regulator-always-on;
519			};
520
521			LDO6 {
522				regulator-name = "ldo6";
523				regulator-min-microvolt = <900000>;
524				regulator-max-microvolt = <1800000>;
525				regulator-boot-on;
526				regulator-always-on;
527			};
528		};
529	};
530
531	eeprom@50 {
532		compatible = "atmel,24c02";
533		reg = <0x50>;
534		pagesize = <16>;
535	};
536
537	eeprom@51 {
538		compatible = "atmel,24c02";
539		reg = <0x51>;
540		pagesize = <16>;
541	};
542
543	eeprom@52 {
544		compatible = "atmel,24c02";
545		reg = <0x52>;
546		pagesize = <16>;
547	};
548
549	eeprom@53 {
550		compatible = "atmel,24c02";
551		reg = <0x53>;
552		pagesize = <16>;
553	};
554
555	rtc@68 {
556		compatible = "dallas,ds1672";
557		reg = <0x68>;
558	};
559};
560
561&i2c2 {
562	clock-frequency = <400000>;
563	pinctrl-names = "default";
564	pinctrl-0 = <&pinctrl_i2c2>;
565	status = "okay";
566
567	accelerometer@19 {
568		compatible = "st,lis2de12";
569		pinctrl-names = "default";
570		pinctrl-0 = <&pinctrl_accel>;
571		reg = <0x19>;
572		st,drdy-int-pin = <1>;
573		interrupt-parent = <&gpio1>;
574		interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
575		interrupt-names = "INT1";
576	};
577};
578
579/* off-board header */
580&i2c3 {
581	clock-frequency = <400000>;
582	pinctrl-names = "default";
583	pinctrl-0 = <&pinctrl_i2c3>;
584	status = "okay";
585};
586
587/* off-board header */
588&i2c4 {
589	clock-frequency = <400000>;
590	pinctrl-names = "default";
591	pinctrl-0 = <&pinctrl_i2c4>;
592	status = "okay";
593};
594
595&pcie_phy {
596	fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>;
597	fsl,clkreq-unsupported;
598	clocks = <&clk IMX8MM_CLK_DUMMY>;
599	status = "okay";
600};
601
602&pcie0 {
603	pinctrl-names = "default";
604	pinctrl-0 = <&pinctrl_pcie0>;
605	reset-gpio = <&gpio4 5 GPIO_ACTIVE_LOW>;
606	clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>, <&clk IMX8MM_CLK_PCIE1_AUX>,
607		 <&clk IMX8MM_CLK_DUMMY>, <&pcie0_refclk>;
608	clock-names = "pcie", "pcie_aux", "pcie_phy", "pcie_bus";
609	assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>,
610			  <&clk IMX8MM_CLK_PCIE1_CTRL>;
611	assigned-clock-rates = <10000000>, <250000000>;
612	assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_50M>,
613				 <&clk IMX8MM_SYS_PLL2_250M>;
614	status = "okay";
615
616	pcie@0,0 {
617		reg = <0x0000 0 0 0 0>;
618		#address-cells = <1>;
619		#size-cells = <0>;
620
621		eth1: pcie@1,0 {
622			reg = <0x0000 0 0 0 0>;
623			#address-cells = <1>;
624			#size-cells = <0>;
625
626			local-mac-address = [00 00 00 00 00 00];
627		};
628	};
629};
630
631/* off-board header */
632&sai3 {
633	pinctrl-names = "default";
634	pinctrl-0 = <&pinctrl_sai3>;
635	assigned-clocks = <&clk IMX8MM_CLK_SAI3>;
636	assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>;
637	assigned-clock-rates = <24576000>;
638	status = "okay";
639};
640
641/* RS232/RS485/RS422 selectable */
642&uart1 {
643	pinctrl-names = "default";
644	pinctrl-0 = <&pinctrl_uart1>, <&pinctrl_uart1_gpio>;
645	rts-gpios = <&gpio4 10 GPIO_ACTIVE_LOW>;
646	cts-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
647	status = "okay";
648};
649
650/* RS232 console */
651&uart2 {
652	pinctrl-names = "default";
653	pinctrl-0 = <&pinctrl_uart2>;
654	status = "okay";
655};
656
657/* bluetooth HCI */
658&uart3 {
659	pinctrl-names = "default";
660	pinctrl-0 = <&pinctrl_uart3>, <&pinctrl_uart3_gpio>;
661	rts-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
662	cts-gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
663	status = "okay";
664
665	bluetooth {
666		compatible = "brcm,bcm4330-bt";
667		shutdown-gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
668	};
669};
670
671/* LTE Cat M1/NB1/EGPRS modem or GPS (loading option) */
672&uart4 {
673	pinctrl-names = "default";
674	pinctrl-0 = <&pinctrl_uart4>;
675	rts-gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
676	cts-gpios = <&gpio4 1 GPIO_ACTIVE_LOW>;
677	dtr-gpios = <&gpio4 3 GPIO_ACTIVE_LOW>;
678	dsr-gpios = <&gpio4 4 GPIO_ACTIVE_LOW>;
679	dcd-gpios = <&gpio4 6 GPIO_ACTIVE_LOW>;
680	status = "okay";
681};
682
683&usbotg1 {
684	dr_mode = "host";
685	vbus-supply = <&reg_usb1_vbus>;
686	disable-over-current;
687	status = "okay";
688};
689
690&usbotg2 {
691	dr_mode = "host";
692	disable-over-current;
693	status = "okay";
694};
695
696/* SDIO WiFi */
697&usdhc2 {
698	pinctrl-names = "default";
699	pinctrl-0 = <&pinctrl_usdhc2>;
700	bus-width = <4>;
701	non-removable;
702	vmmc-supply = <&reg_wifi>;
703	status = "okay";
704};
705
706/* eMMC */
707&usdhc3 {
708	pinctrl-names = "default", "state_100mhz", "state_200mhz";
709	pinctrl-0 = <&pinctrl_usdhc3>;
710	pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
711	pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
712	bus-width = <8>;
713	non-removable;
714	status = "okay";
715};
716
717&wdog1 {
718	pinctrl-names = "default";
719	pinctrl-0 = <&pinctrl_wdog>;
720	fsl,ext-reset-output;
721	status = "okay";
722};
723
724&iomuxc {
725	pinctrl-names = "default";
726	pinctrl-0 = <&pinctrl_hog>;
727
728	pinctrl_hog: hoggrp {
729		fsl,pins = <
730			MX8MM_IOMUXC_NAND_CE0_B_GPIO3_IO1	0x40000159 /* M2_GDIS# */
731			MX8MM_IOMUXC_GPIO1_IO13_GPIO1_IO13	0x40000041 /* M2_RESET */
732			MX8MM_IOMUXC_NAND_DATA01_GPIO3_IO7	0x40000119 /* M2_OFF# */
733			MX8MM_IOMUXC_GPIO1_IO15_GPIO1_IO15	0x40000159 /* M2_WDIS# */
734			MX8MM_IOMUXC_SAI1_TXD2_GPIO4_IO14	0x40000041 /* AMP GPIO1 */
735			MX8MM_IOMUXC_SAI1_TXD0_GPIO4_IO12	0x40000041 /* AMP GPIO2 */
736			MX8MM_IOMUXC_SAI1_TXC_GPIO4_IO11	0x40000041 /* AMP GPIO3 */
737			MX8MM_IOMUXC_SAI1_MCLK_GPIO4_IO20	0x40000041 /* AMP_GPIO4 */
738			MX8MM_IOMUXC_SAI2_RXFS_GPIO4_IO21	0x40000041 /* APP GPIO1 */
739			MX8MM_IOMUXC_SAI2_MCLK_GPIO4_IO27	0x40000041 /* APP GPIO2 */
740			MX8MM_IOMUXC_SD1_DATA6_GPIO2_IO8	0x40000041 /* UART2_EN# */
741			MX8MM_IOMUXC_SAI3_RXFS_GPIO4_IO28	0x40000041 /* MIPI_GPIO1 */
742			MX8MM_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5	0x40000041 /* MIPI_GPIO2 */
743			MX8MM_IOMUXC_SPDIF_RX_GPIO5_IO4		0x40000041 /* MIPI_GPIO3/PWM2 */
744			MX8MM_IOMUXC_SPDIF_TX_GPIO5_IO3		0x40000041 /* MIPI_GPIO4/PWM3 */
745		>;
746	};
747
748	pinctrl_accel: accelgrp {
749		fsl,pins = <
750			MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12	0x159
751		>;
752	};
753
754	pinctrl_fec1: fec1grp {
755		fsl,pins = <
756			MX8MM_IOMUXC_ENET_MDC_ENET1_MDC			0x3
757			MX8MM_IOMUXC_ENET_MDIO_ENET1_MDIO		0x3
758			MX8MM_IOMUXC_ENET_TD3_ENET1_RGMII_TD3		0x1f
759			MX8MM_IOMUXC_ENET_TD2_ENET1_RGMII_TD2		0x1f
760			MX8MM_IOMUXC_ENET_TD1_ENET1_RGMII_TD1		0x1f
761			MX8MM_IOMUXC_ENET_TD0_ENET1_RGMII_TD0		0x1f
762			MX8MM_IOMUXC_ENET_RD3_ENET1_RGMII_RD3		0x91
763			MX8MM_IOMUXC_ENET_RD2_ENET1_RGMII_RD2		0x91
764			MX8MM_IOMUXC_ENET_RD1_ENET1_RGMII_RD1		0x91
765			MX8MM_IOMUXC_ENET_RD0_ENET1_RGMII_RD0		0x91
766			MX8MM_IOMUXC_ENET_TXC_ENET1_RGMII_TXC		0x1f
767			MX8MM_IOMUXC_ENET_RXC_ENET1_RGMII_RXC		0x91
768			MX8MM_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL	0x91
769			MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL	0x1f
770			MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10		0x19 /* RST# */
771			MX8MM_IOMUXC_GPIO1_IO11_GPIO1_IO11		0x19 /* IRQ# */
772			MX8MM_IOMUXC_GPIO1_IO08_ENET1_1588_EVENT0_IN	0x141
773			MX8MM_IOMUXC_GPIO1_IO09_ENET1_1588_EVENT0_OUT	0x141
774		>;
775	};
776
777	pinctrl_gsc: gscgrp {
778		fsl,pins = <
779			MX8MM_IOMUXC_SD1_DATA4_GPIO2_IO6	0x40
780		>;
781	};
782
783	pinctrl_i2c1: i2c1grp {
784		fsl,pins = <
785			MX8MM_IOMUXC_I2C1_SCL_I2C1_SCL		0x400001c3
786			MX8MM_IOMUXC_I2C1_SDA_I2C1_SDA		0x400001c3
787		>;
788	};
789
790	pinctrl_i2c2: i2c2grp {
791		fsl,pins = <
792			MX8MM_IOMUXC_I2C2_SCL_I2C2_SCL		0x400001c3
793			MX8MM_IOMUXC_I2C2_SDA_I2C2_SDA		0x400001c3
794		>;
795	};
796
797	pinctrl_i2c3: i2c3grp {
798		fsl,pins = <
799			MX8MM_IOMUXC_I2C3_SCL_I2C3_SCL		0x400001c3
800			MX8MM_IOMUXC_I2C3_SDA_I2C3_SDA		0x400001c3
801		>;
802	};
803
804	pinctrl_i2c4: i2c4grp {
805		fsl,pins = <
806			MX8MM_IOMUXC_I2C4_SCL_I2C4_SCL		0x400001c3
807			MX8MM_IOMUXC_I2C4_SDA_I2C4_SDA		0x400001c3
808		>;
809	};
810
811	pinctrl_gpio_leds: gpioledgrp {
812		fsl,pins = <
813			MX8MM_IOMUXC_SAI5_RXD0_GPIO3_IO21	0x19
814			MX8MM_IOMUXC_SAI5_RXD2_GPIO3_IO23	0x19
815			MX8MM_IOMUXC_SAI5_RXD1_GPIO3_IO22	0x19
816			MX8MM_IOMUXC_SAI5_RXC_GPIO3_IO20	0x19
817			MX8MM_IOMUXC_SAI5_MCLK_GPIO3_IO25	0x19
818		>;
819	};
820
821	pinctrl_pcie0: pciegrp {
822		fsl,pins = <
823			MX8MM_IOMUXC_SAI1_RXD3_GPIO4_IO5	0x41
824		>;
825	};
826
827	pinctrl_pmic: pmicgrp {
828		fsl,pins = <
829			MX8MM_IOMUXC_NAND_DATA02_GPIO3_IO8	0x41
830		>;
831	};
832
833	pinctrl_pps: ppsgrp {
834		fsl,pins = <
835			MX8MM_IOMUXC_SAI5_RXD3_GPIO3_IO24	0x141 /* PPS */
836		>;
837	};
838
839	pinctrl_reg_wl: regwlgrp {
840		fsl,pins = <
841			MX8MM_IOMUXC_SD2_RESET_B_GPIO2_IO19	0x41 /* WLAN_WLON */
842		>;
843	};
844
845	pinctrl_reg_usb1: regusb1grp {
846		fsl,pins = <
847			MX8MM_IOMUXC_SD1_DATA5_GPIO2_IO7	0x41
848		>;
849	};
850
851	pinctrl_sai3: sai3grp {
852		fsl,pins = <
853			MX8MM_IOMUXC_SAI3_MCLK_SAI3_MCLK	0xd6
854			MX8MM_IOMUXC_SAI3_RXD_SAI3_RX_DATA0	0xd6
855			MX8MM_IOMUXC_SAI3_TXC_SAI3_TX_BCLK	0xd6
856			MX8MM_IOMUXC_SAI3_TXD_SAI3_TX_DATA0	0xd6
857			MX8MM_IOMUXC_SAI3_TXFS_SAI3_TX_SYNC	0xd6
858		>;
859	};
860
861	pinctrl_spi1: spi1grp {
862		fsl,pins = <
863			MX8MM_IOMUXC_ECSPI1_SCLK_ECSPI1_SCLK	0x82
864			MX8MM_IOMUXC_ECSPI1_MOSI_ECSPI1_MOSI	0x82
865			MX8MM_IOMUXC_ECSPI1_MISO_ECSPI1_MISO	0x82
866			MX8MM_IOMUXC_ECSPI1_SS0_GPIO5_IO9	0x40
867			MX8MM_IOMUXC_SD1_DATA1_GPIO2_IO3	0x140 /* CAN_IRQ# */
868		>;
869	};
870
871	pinctrl_spi2: spi2grp {
872		fsl,pins = <
873			MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK	0x82
874			MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI	0x82
875			MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO	0x82
876			MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13	0x40 /* SS0 */
877		>;
878	};
879
880	pinctrl_uart1: uart1grp {
881		fsl,pins = <
882			MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX	0x140
883			MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX	0x140
884			MX8MM_IOMUXC_SAI1_TXFS_GPIO4_IO10	0x140 /* RTS */
885			MX8MM_IOMUXC_SAI2_TXFS_GPIO4_IO24	0x140 /* CTS */
886		>;
887	};
888
889	pinctrl_uart1_gpio: uart1gpiogrp {
890		fsl,pins = <
891			MX8MM_IOMUXC_SAI2_TXD0_GPIO4_IO26	0x40000110 /* HALF */
892			MX8MM_IOMUXC_SAI2_TXC_GPIO4_IO25	0x40000110 /* TERM */
893			MX8MM_IOMUXC_SAI2_RXD0_GPIO4_IO23	0x40000110 /* RS485 */
894		>;
895	};
896
897	pinctrl_uart2: uart2grp {
898		fsl,pins = <
899			MX8MM_IOMUXC_UART2_RXD_UART2_DCE_RX	0x140
900			MX8MM_IOMUXC_UART2_TXD_UART2_DCE_TX	0x140
901		>;
902	};
903
904	pinctrl_uart3_gpio: uart3_gpiogrp {
905		fsl,pins = <
906			MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12	0x41 /* BT_EN# */
907		>;
908	};
909
910	pinctrl_uart3: uart3grp {
911		fsl,pins = <
912			MX8MM_IOMUXC_UART3_RXD_UART3_DCE_RX	0x140
913			MX8MM_IOMUXC_UART3_TXD_UART3_DCE_TX	0x140
914			MX8MM_IOMUXC_SD1_CLK_GPIO2_IO0		0x140 /* CTS */
915			MX8MM_IOMUXC_SD1_CMD_GPIO2_IO1		0x140 /* RTS */
916		>;
917	};
918
919	pinctrl_uart4: uart4grp {
920		fsl,pins = <
921			MX8MM_IOMUXC_UART4_RXD_UART4_DCE_RX	0x140
922			MX8MM_IOMUXC_UART4_TXD_UART4_DCE_TX	0x140
923			MX8MM_IOMUXC_SAI1_RXC_GPIO4_IO1		0x140 /* CTS */
924			MX8MM_IOMUXC_SAI1_RXD0_GPIO4_IO2	0x140 /* RTS */
925			MX8MM_IOMUXC_SAI1_RXD1_GPIO4_IO3	0x140 /* DTR */
926			MX8MM_IOMUXC_SAI1_RXD2_GPIO4_IO4	0x140 /* DSR */
927			MX8MM_IOMUXC_SAI1_RXD4_GPIO4_IO6	0x140 /* DCD */
928			MX8MM_IOMUXC_SAI1_RXD5_GPIO4_IO7	0x140 /* RI */
929			MX8MM_IOMUXC_SAI1_RXFS_GPIO4_IO0	0x140 /* GNSS_PPS */
930			MX8MM_IOMUXC_GPIO1_IO06_GPIO1_IO6	0x141 /* GNSS_GASP */
931		>;
932	};
933
934	pinctrl_usdhc2: usdhc2grp {
935		fsl,pins = <
936			MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK		0x190
937			MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD		0x1d0
938			MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0	0x1d0
939			MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1	0x1d0
940			MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2	0x1d0
941			MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3	0x1d0
942		>;
943	};
944
945	pinctrl_usdhc3: usdhc3grp {
946		fsl,pins = <
947			MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK	0x190
948			MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD	0x1d0
949			MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0	0x1d0
950			MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1	0x1d0
951			MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2	0x1d0
952			MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3	0x1d0
953			MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4	0x1d0
954			MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5	0x1d0
955			MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6	0x1d0
956			MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7	0x1d0
957			MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE	0x190
958		>;
959	};
960
961	pinctrl_usdhc3_100mhz: usdhc3-100mhzgrp {
962		fsl,pins = <
963			MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK	0x194
964			MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD	0x1d4
965			MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0	0x1d4
966			MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1	0x1d4
967			MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2	0x1d4
968			MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3	0x1d4
969			MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4	0x1d4
970			MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5	0x1d4
971			MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6	0x1d4
972			MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7	0x1d4
973			MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE	0x194
974		>;
975	};
976
977	pinctrl_usdhc3_200mhz: usdhc3-200mhzgrp {
978		fsl,pins = <
979			MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK	0x196
980			MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD	0x1d6
981			MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0	0x1d6
982			MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1	0x1d6
983			MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2	0x1d6
984			MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3	0x1d6
985			MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4	0x1d6
986			MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5	0x1d6
987			MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6	0x1d6
988			MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7	0x1d6
989			MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE	0x196
990		>;
991	};
992
993	pinctrl_wdog: wdoggrp {
994		fsl,pins = <
995			MX8MM_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B	0xc6
996		>;
997	};
998};
999