xref: /linux/arch/arm64/boot/dts/freescale/imx8mm-venice-gw7902.dts (revision 3d0fe49454652117522f60bfbefb978ba0e5300b)
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		key-user-pb {
46			label = "user_pb";
47			gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
48			linux,code = <BTN_0>;
49		};
50
51		key-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		key-eeprom-wp {
66			label = "eeprom_wp";
67			linux,code = <BTN_3>;
68			interrupt-parent = <&gsc>;
69			interrupts = <2>;
70		};
71
72		key-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-25000000 {
202			opp-hz = /bits/ 64 <25000000>;
203		};
204
205		opp-100000000 {
206			opp-hz = /bits/ 64 <100000000>;
207		};
208
209		opp-750000000 {
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		interrupt-parent = <&gpio2>;
226		interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
227		spi-max-frequency = <10000000>;
228	};
229};
230
231/* off-board header */
232&ecspi2 {
233	pinctrl-names = "default";
234	pinctrl-0 = <&pinctrl_spi2>;
235	cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
236	status = "okay";
237};
238
239&fec1 {
240	pinctrl-names = "default";
241	pinctrl-0 = <&pinctrl_fec1>;
242	phy-mode = "rgmii-id";
243	phy-handle = <&ethphy0>;
244	local-mac-address = [00 00 00 00 00 00];
245	status = "okay";
246
247	mdio {
248		#address-cells = <1>;
249		#size-cells = <0>;
250
251		ethphy0: ethernet-phy@0 {
252			compatible = "ethernet-phy-ieee802.3-c22";
253			reg = <0>;
254			ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
255			ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
256			tx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
257			rx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
258		};
259	};
260};
261
262&gpio1 {
263	gpio-line-names = "", "", "", "", "", "", "", "",
264		"m2_pwr_en", "", "", "", "", "m2_reset", "", "m2_wdis#",
265		"", "", "", "", "", "", "", "",
266		"", "", "", "", "", "", "", "";
267};
268
269&gpio2 {
270	gpio-line-names = "", "", "", "", "", "", "", "",
271		"uart2_en#", "", "", "", "", "", "", "",
272		"", "", "", "", "", "", "", "",
273		"", "", "", "", "", "", "", "";
274};
275
276&gpio3 {
277	gpio-line-names = "", "m2_gdis#", "", "", "", "", "", "m2_off#",
278		"", "", "", "", "", "", "", "",
279		"", "", "", "", "", "", "", "",
280		"", "", "", "", "", "", "", "";
281};
282
283&gpio4 {
284	gpio-line-names = "", "", "", "", "", "", "", "",
285		"", "", "", "amp_gpio3", "amp_gpio2", "", "amp_gpio1", "",
286		"lte_pwr#", "lte_rst", "lte_int", "",
287		"amp_gpio4", "app_gpio1", "vdd_4p0_en", "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", "gpio";
303	pinctrl-0 = <&pinctrl_i2c1>;
304	pinctrl-1 = <&pinctrl_i2c1_gpio>;
305	scl-gpios = <&gpio5 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
306	sda-gpios = <&gpio5 15 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
307	status = "okay";
308
309	gsc: gsc@20 {
310		compatible = "gw,gsc";
311		reg = <0x20>;
312		pinctrl-0 = <&pinctrl_gsc>;
313		interrupt-parent = <&gpio2>;
314		interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
315		interrupt-controller;
316		#interrupt-cells = <1>;
317		#address-cells = <1>;
318		#size-cells = <0>;
319
320		adc {
321			compatible = "gw,gsc-adc";
322			#address-cells = <1>;
323			#size-cells = <0>;
324
325			channel@6 {
326				gw,mode = <0>;
327				reg = <0x06>;
328				label = "temp";
329			};
330
331			channel@8 {
332				gw,mode = <3>;
333				reg = <0x08>;
334				label = "vdd_bat";
335			};
336
337			channel@82 {
338				gw,mode = <2>;
339				reg = <0x82>;
340				label = "vin";
341				gw,voltage-divider-ohms = <22100 1000>;
342				gw,voltage-offset-microvolt = <700000>;
343			};
344
345			channel@84 {
346				gw,mode = <2>;
347				reg = <0x84>;
348				label = "vin_4p0";
349				gw,voltage-divider-ohms = <10000 10000>;
350			};
351
352			channel@86 {
353				gw,mode = <2>;
354				reg = <0x86>;
355				label = "vdd_3p3";
356				gw,voltage-divider-ohms = <10000 10000>;
357			};
358
359			channel@88 {
360				gw,mode = <2>;
361				reg = <0x88>;
362				label = "vdd_0p9";
363			};
364
365			channel@8c {
366				gw,mode = <2>;
367				reg = <0x8c>;
368				label = "vdd_soc";
369			};
370
371			channel@8e {
372				gw,mode = <2>;
373				reg = <0x8e>;
374				label = "vdd_arm";
375			};
376
377			channel@90 {
378				gw,mode = <2>;
379				reg = <0x90>;
380				label = "vdd_1p8";
381			};
382
383			channel@92 {
384				gw,mode = <2>;
385				reg = <0x92>;
386				label = "vdd_dram";
387			};
388
389			channel@98 {
390				gw,mode = <2>;
391				reg = <0x98>;
392				label = "vdd_1p0";
393			};
394
395			channel@9a {
396				gw,mode = <2>;
397				reg = <0x9a>;
398				label = "vdd_2p5";
399				gw,voltage-divider-ohms = <10000 10000>;
400			};
401
402			channel@9c {
403				gw,mode = <2>;
404				reg = <0x9c>;
405				label = "vdd_5p0";
406				gw,voltage-divider-ohms = <10000 10000>;
407			};
408
409			channel@a2 {
410				gw,mode = <2>;
411				reg = <0xa2>;
412				label = "vdd_gsc";
413				gw,voltage-divider-ohms = <10000 10000>;
414			};
415		};
416	};
417
418	gpio: gpio@23 {
419		compatible = "nxp,pca9555";
420		reg = <0x23>;
421		gpio-controller;
422		#gpio-cells = <2>;
423		interrupt-parent = <&gsc>;
424		interrupts = <4>;
425	};
426
427	pmic@4b {
428		compatible = "rohm,bd71847";
429		reg = <0x4b>;
430		pinctrl-names = "default";
431		pinctrl-0 = <&pinctrl_pmic>;
432		interrupt-parent = <&gpio3>;
433		interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
434		rohm,reset-snvs-powered;
435		#clock-cells = <0>;
436		clocks = <&osc_32k>;
437		clock-output-names = "clk-32k-out";
438
439		regulators {
440			/* vdd_soc: 0.805-0.900V (typ=0.8V) */
441			BUCK1 {
442				regulator-name = "buck1";
443				regulator-min-microvolt = <700000>;
444				regulator-max-microvolt = <1300000>;
445				regulator-boot-on;
446				regulator-always-on;
447				regulator-ramp-delay = <1250>;
448			};
449
450			/* vdd_arm: 0.805-1.0V (typ=0.9V) */
451			buck2: BUCK2 {
452				regulator-name = "buck2";
453				regulator-min-microvolt = <700000>;
454				regulator-max-microvolt = <1300000>;
455				regulator-boot-on;
456				regulator-always-on;
457				regulator-ramp-delay = <1250>;
458				rohm,dvs-run-voltage = <1000000>;
459				rohm,dvs-idle-voltage = <900000>;
460			};
461
462			/* vdd_0p9: 0.805-1.0V (typ=0.9V) */
463			BUCK3 {
464				regulator-name = "buck3";
465				regulator-min-microvolt = <700000>;
466				regulator-max-microvolt = <1350000>;
467				regulator-boot-on;
468				regulator-always-on;
469			};
470
471			/* vdd_3p3 */
472			BUCK4 {
473				regulator-name = "buck4";
474				regulator-min-microvolt = <3000000>;
475				regulator-max-microvolt = <3300000>;
476				regulator-boot-on;
477				regulator-always-on;
478			};
479
480			/* vdd_1p8 */
481			BUCK5 {
482				regulator-name = "buck5";
483				regulator-min-microvolt = <1605000>;
484				regulator-max-microvolt = <1995000>;
485				regulator-boot-on;
486				regulator-always-on;
487			};
488
489			/* vdd_dram */
490			BUCK6 {
491				regulator-name = "buck6";
492				regulator-min-microvolt = <800000>;
493				regulator-max-microvolt = <1400000>;
494				regulator-boot-on;
495				regulator-always-on;
496			};
497
498			/* nvcc_snvs_1p8 */
499			LDO1 {
500				regulator-name = "ldo1";
501				regulator-min-microvolt = <1600000>;
502				regulator-max-microvolt = <1900000>;
503				regulator-boot-on;
504				regulator-always-on;
505			};
506
507			/* vdd_snvs_0p8 */
508			LDO2 {
509				regulator-name = "ldo2";
510				regulator-min-microvolt = <800000>;
511				regulator-max-microvolt = <900000>;
512				regulator-boot-on;
513				regulator-always-on;
514			};
515
516			/* vdda_1p8 */
517			LDO3 {
518				regulator-name = "ldo3";
519				regulator-min-microvolt = <1800000>;
520				regulator-max-microvolt = <3300000>;
521				regulator-boot-on;
522				regulator-always-on;
523			};
524
525			LDO4 {
526				regulator-name = "ldo4";
527				regulator-min-microvolt = <900000>;
528				regulator-max-microvolt = <1800000>;
529				regulator-boot-on;
530				regulator-always-on;
531			};
532
533			LDO6 {
534				regulator-name = "ldo6";
535				regulator-min-microvolt = <900000>;
536				regulator-max-microvolt = <1800000>;
537				regulator-boot-on;
538				regulator-always-on;
539			};
540		};
541	};
542
543	eeprom@50 {
544		compatible = "atmel,24c02";
545		reg = <0x50>;
546		pagesize = <16>;
547	};
548
549	eeprom@51 {
550		compatible = "atmel,24c02";
551		reg = <0x51>;
552		pagesize = <16>;
553	};
554
555	eeprom@52 {
556		compatible = "atmel,24c02";
557		reg = <0x52>;
558		pagesize = <16>;
559	};
560
561	eeprom@53 {
562		compatible = "atmel,24c02";
563		reg = <0x53>;
564		pagesize = <16>;
565	};
566
567	rtc@68 {
568		compatible = "dallas,ds1672";
569		reg = <0x68>;
570	};
571};
572
573&i2c2 {
574	clock-frequency = <400000>;
575	pinctrl-names = "default", "gpio";
576	pinctrl-0 = <&pinctrl_i2c2>;
577	pinctrl-1 = <&pinctrl_i2c2_gpio>;
578	scl-gpios = <&gpio5 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
579	sda-gpios = <&gpio5 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
580	status = "okay";
581
582	accelerometer@19 {
583		compatible = "st,lis2de12";
584		pinctrl-names = "default";
585		pinctrl-0 = <&pinctrl_accel>;
586		reg = <0x19>;
587		st,drdy-int-pin = <1>;
588		interrupt-parent = <&gpio1>;
589		interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
590	};
591};
592
593/* off-board header */
594&i2c3 {
595	clock-frequency = <400000>;
596	pinctrl-names = "default", "gpio";
597	pinctrl-0 = <&pinctrl_i2c3>;
598	pinctrl-1 = <&pinctrl_i2c3_gpio>;
599	scl-gpios = <&gpio5 18 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
600	sda-gpios = <&gpio5 19 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
601	status = "okay";
602};
603
604/* off-board header */
605&i2c4 {
606	clock-frequency = <400000>;
607	pinctrl-names = "default", "gpio";
608	pinctrl-0 = <&pinctrl_i2c4>;
609	pinctrl-1 = <&pinctrl_i2c4_gpio>;
610	scl-gpios = <&gpio5 20 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
611	sda-gpios = <&gpio5 21 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
612	status = "okay";
613};
614
615&pcie_phy {
616	fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>;
617	fsl,clkreq-unsupported;
618	clocks = <&pcie0_refclk>;
619	clock-names = "ref";
620	status = "okay";
621};
622
623&pcie0 {
624	pinctrl-names = "default";
625	pinctrl-0 = <&pinctrl_pcie0>;
626	reset-gpio = <&gpio4 5 GPIO_ACTIVE_LOW>;
627	clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>, <&pcie0_refclk>,
628		 <&clk IMX8MM_CLK_PCIE1_AUX>;
629	assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>,
630			  <&clk IMX8MM_CLK_PCIE1_CTRL>;
631	assigned-clock-rates = <10000000>, <250000000>;
632	assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_50M>,
633				 <&clk IMX8MM_SYS_PLL2_250M>;
634	status = "okay";
635
636	pcie@0,0 {
637		reg = <0x0000 0 0 0 0>;
638		#address-cells = <1>;
639		#size-cells = <0>;
640
641		eth1: pcie@1,0 {
642			reg = <0x0000 0 0 0 0>;
643			#address-cells = <1>;
644			#size-cells = <0>;
645
646			local-mac-address = [00 00 00 00 00 00];
647		};
648	};
649};
650
651/* off-board header */
652&sai3 {
653	pinctrl-names = "default";
654	pinctrl-0 = <&pinctrl_sai3>;
655	assigned-clocks = <&clk IMX8MM_CLK_SAI3>;
656	assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>;
657	assigned-clock-rates = <24576000>;
658	status = "okay";
659};
660
661/* RS232/RS485/RS422 selectable */
662&uart1 {
663	pinctrl-names = "default";
664	pinctrl-0 = <&pinctrl_uart1>, <&pinctrl_uart1_gpio>;
665	rts-gpios = <&gpio4 10 GPIO_ACTIVE_LOW>;
666	cts-gpios = <&gpio4 24 GPIO_ACTIVE_LOW>;
667	status = "okay";
668};
669
670/* RS232 console */
671&uart2 {
672	pinctrl-names = "default";
673	pinctrl-0 = <&pinctrl_uart2>;
674	status = "okay";
675};
676
677/* bluetooth HCI */
678&uart3 {
679	pinctrl-names = "default";
680	pinctrl-0 = <&pinctrl_uart3>, <&pinctrl_uart3_gpio>;
681	rts-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
682	cts-gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
683	status = "okay";
684
685	bluetooth {
686		compatible = "brcm,bcm4330-bt";
687		shutdown-gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
688	};
689};
690
691/* LTE Cat M1/NB1/EGPRS modem or GPS (loading option) */
692&uart4 {
693	pinctrl-names = "default";
694	pinctrl-0 = <&pinctrl_uart4>;
695	rts-gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
696	cts-gpios = <&gpio4 1 GPIO_ACTIVE_LOW>;
697	dtr-gpios = <&gpio4 3 GPIO_ACTIVE_LOW>;
698	dsr-gpios = <&gpio4 4 GPIO_ACTIVE_LOW>;
699	dcd-gpios = <&gpio4 6 GPIO_ACTIVE_LOW>;
700	status = "okay";
701};
702
703&usbotg1 {
704	dr_mode = "host";
705	vbus-supply = <&reg_usb1_vbus>;
706	disable-over-current;
707	status = "okay";
708};
709
710&usbotg2 {
711	dr_mode = "host";
712	disable-over-current;
713	status = "okay";
714};
715
716/* SDIO WiFi */
717&usdhc2 {
718	pinctrl-names = "default", "state_100mhz", "state_200mhz";
719	pinctrl-0 = <&pinctrl_usdhc2>;
720	pinctrl-1 = <&pinctrl_usdhc2_100mhz>;
721	pinctrl-2 = <&pinctrl_usdhc2_200mhz>;
722	bus-width = <4>;
723	non-removable;
724	vmmc-supply = <&reg_wifi>;
725	#address-cells = <1>;
726	#size-cells = <0>;
727	status = "okay";
728
729	wifi@0 {
730		compatible = "brcm,bcm43455-fmac", "brcm,bcm4329-fmac";
731		reg = <0>;
732	};
733};
734
735/* eMMC */
736&usdhc3 {
737	pinctrl-names = "default", "state_100mhz", "state_200mhz";
738	pinctrl-0 = <&pinctrl_usdhc3>;
739	pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
740	pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
741	bus-width = <8>;
742	non-removable;
743	status = "okay";
744};
745
746&wdog1 {
747	pinctrl-names = "default";
748	pinctrl-0 = <&pinctrl_wdog>;
749	fsl,ext-reset-output;
750	status = "okay";
751};
752
753&iomuxc {
754	pinctrl-names = "default";
755	pinctrl-0 = <&pinctrl_hog>;
756
757	pinctrl_hog: hoggrp {
758		fsl,pins = <
759			MX8MM_IOMUXC_NAND_CE0_B_GPIO3_IO1	0x40000159 /* M2_GDIS# */
760			MX8MM_IOMUXC_GPIO1_IO08_GPIO1_IO8	0x40000041 /* M2_PWR_EN */
761			MX8MM_IOMUXC_GPIO1_IO13_GPIO1_IO13	0x40000041 /* M2_RESET */
762			MX8MM_IOMUXC_NAND_DATA01_GPIO3_IO7	0x40000119 /* M2_OFF# */
763			MX8MM_IOMUXC_GPIO1_IO15_GPIO1_IO15	0x40000159 /* M2_WDIS# */
764			MX8MM_IOMUXC_SAI1_TXD6_GPIO4_IO18       0x40000041 /* LTE_INT */
765			MX8MM_IOMUXC_SAI1_TXD5_GPIO4_IO17       0x40000041 /* LTE_RST# */
766			MX8MM_IOMUXC_SAI1_TXD4_GPIO4_IO16       0x40000041 /* LTE_PWR */
767			MX8MM_IOMUXC_SAI1_TXD2_GPIO4_IO14	0x40000041 /* AMP GPIO1 */
768			MX8MM_IOMUXC_SAI1_TXD0_GPIO4_IO12	0x40000041 /* AMP GPIO2 */
769			MX8MM_IOMUXC_SAI1_TXC_GPIO4_IO11	0x40000041 /* AMP GPIO3 */
770			MX8MM_IOMUXC_SAI1_MCLK_GPIO4_IO20	0x40000041 /* AMP_GPIO4 */
771			MX8MM_IOMUXC_SAI2_RXFS_GPIO4_IO21	0x40000041 /* APP GPIO1 */
772			MX8MM_IOMUXC_SAI2_RXC_GPIO4_IO22	0x40000041 /* VDD_4P0_EN */
773			MX8MM_IOMUXC_SAI2_MCLK_GPIO4_IO27	0x40000041 /* APP GPIO2 */
774			MX8MM_IOMUXC_SD1_DATA6_GPIO2_IO8	0x40000041 /* UART2_EN# */
775			MX8MM_IOMUXC_SAI3_RXFS_GPIO4_IO28	0x40000041 /* MIPI_GPIO1 */
776			MX8MM_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5	0x40000041 /* MIPI_GPIO2 */
777			MX8MM_IOMUXC_SPDIF_RX_GPIO5_IO4		0x40000041 /* MIPI_GPIO3/PWM2 */
778			MX8MM_IOMUXC_SPDIF_TX_GPIO5_IO3		0x40000041 /* MIPI_GPIO4/PWM3 */
779		>;
780	};
781
782	pinctrl_accel: accelgrp {
783		fsl,pins = <
784			MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12	0x159
785		>;
786	};
787
788	pinctrl_fec1: fec1grp {
789		fsl,pins = <
790			MX8MM_IOMUXC_ENET_MDC_ENET1_MDC			0x3
791			MX8MM_IOMUXC_ENET_MDIO_ENET1_MDIO		0x3
792			MX8MM_IOMUXC_ENET_TD3_ENET1_RGMII_TD3		0x1f
793			MX8MM_IOMUXC_ENET_TD2_ENET1_RGMII_TD2		0x1f
794			MX8MM_IOMUXC_ENET_TD1_ENET1_RGMII_TD1		0x1f
795			MX8MM_IOMUXC_ENET_TD0_ENET1_RGMII_TD0		0x1f
796			MX8MM_IOMUXC_ENET_RD3_ENET1_RGMII_RD3		0x91
797			MX8MM_IOMUXC_ENET_RD2_ENET1_RGMII_RD2		0x91
798			MX8MM_IOMUXC_ENET_RD1_ENET1_RGMII_RD1		0x91
799			MX8MM_IOMUXC_ENET_RD0_ENET1_RGMII_RD0		0x91
800			MX8MM_IOMUXC_ENET_TXC_ENET1_RGMII_TXC		0x1f
801			MX8MM_IOMUXC_ENET_RXC_ENET1_RGMII_RXC		0x91
802			MX8MM_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL	0x91
803			MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL	0x1f
804			MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10		0x19 /* RST# */
805			MX8MM_IOMUXC_GPIO1_IO11_GPIO1_IO11		0x19 /* IRQ# */
806		>;
807	};
808
809	pinctrl_gsc: gscgrp {
810		fsl,pins = <
811			MX8MM_IOMUXC_SD1_DATA4_GPIO2_IO6	0x40
812		>;
813	};
814
815	pinctrl_i2c1: i2c1grp {
816		fsl,pins = <
817			MX8MM_IOMUXC_I2C1_SCL_I2C1_SCL		0x400001c3
818			MX8MM_IOMUXC_I2C1_SDA_I2C1_SDA		0x400001c3
819		>;
820	};
821
822	pinctrl_i2c1_gpio: i2c1gpiogrp {
823		fsl,pins = <
824			MX8MM_IOMUXC_I2C1_SCL_GPIO5_IO14	0x400001c3
825			MX8MM_IOMUXC_I2C1_SDA_GPIO5_IO15	0x400001c3
826		>;
827	};
828
829	pinctrl_i2c2: i2c2grp {
830		fsl,pins = <
831			MX8MM_IOMUXC_I2C2_SCL_I2C2_SCL		0x400001c3
832			MX8MM_IOMUXC_I2C2_SDA_I2C2_SDA		0x400001c3
833		>;
834	};
835
836	pinctrl_i2c2_gpio: i2c2gpiogrp {
837		fsl,pins = <
838			MX8MM_IOMUXC_I2C2_SCL_GPIO5_IO16	0x400001c3
839			MX8MM_IOMUXC_I2C2_SDA_GPIO5_IO17	0x400001c3
840		>;
841	};
842
843	pinctrl_i2c3: i2c3grp {
844		fsl,pins = <
845			MX8MM_IOMUXC_I2C3_SCL_I2C3_SCL		0x400001c3
846			MX8MM_IOMUXC_I2C3_SDA_I2C3_SDA		0x400001c3
847		>;
848	};
849
850	pinctrl_i2c3_gpio: i2c3gpiogrp {
851		fsl,pins = <
852			MX8MM_IOMUXC_I2C3_SCL_GPIO5_IO18	0x400001c3
853			MX8MM_IOMUXC_I2C3_SDA_GPIO5_IO19	0x400001c3
854		>;
855	};
856
857	pinctrl_i2c4: i2c4grp {
858		fsl,pins = <
859			MX8MM_IOMUXC_I2C4_SCL_I2C4_SCL		0x400001c3
860			MX8MM_IOMUXC_I2C4_SDA_I2C4_SDA		0x400001c3
861		>;
862	};
863
864	pinctrl_i2c4_gpio: i2c4gpiogrp {
865		fsl,pins = <
866			MX8MM_IOMUXC_I2C4_SCL_GPIO5_IO20	0x400001c3
867			MX8MM_IOMUXC_I2C4_SDA_GPIO5_IO21	0x400001c3
868		>;
869	};
870
871	pinctrl_gpio_leds: gpioledgrp {
872		fsl,pins = <
873			MX8MM_IOMUXC_SAI5_RXD0_GPIO3_IO21	0x19
874			MX8MM_IOMUXC_SAI5_RXD2_GPIO3_IO23	0x19
875			MX8MM_IOMUXC_SAI5_RXD1_GPIO3_IO22	0x19
876			MX8MM_IOMUXC_SAI5_RXC_GPIO3_IO20	0x19
877			MX8MM_IOMUXC_SAI5_MCLK_GPIO3_IO25	0x19
878		>;
879	};
880
881	pinctrl_pcie0: pciegrp {
882		fsl,pins = <
883			MX8MM_IOMUXC_SAI1_RXD3_GPIO4_IO5	0x41
884		>;
885	};
886
887	pinctrl_pmic: pmicgrp {
888		fsl,pins = <
889			MX8MM_IOMUXC_NAND_DATA02_GPIO3_IO8	0x41
890		>;
891	};
892
893	pinctrl_pps: ppsgrp {
894		fsl,pins = <
895			MX8MM_IOMUXC_SAI5_RXD3_GPIO3_IO24	0x141 /* PPS */
896		>;
897	};
898
899	pinctrl_reg_wl: regwlgrp {
900		fsl,pins = <
901			MX8MM_IOMUXC_SD2_RESET_B_GPIO2_IO19	0x41 /* WLAN_WLON */
902		>;
903	};
904
905	pinctrl_reg_usb1: regusb1grp {
906		fsl,pins = <
907			MX8MM_IOMUXC_SD1_DATA5_GPIO2_IO7	0x41
908		>;
909	};
910
911	pinctrl_sai3: sai3grp {
912		fsl,pins = <
913			MX8MM_IOMUXC_SAI3_MCLK_SAI3_MCLK	0xd6
914			MX8MM_IOMUXC_SAI3_RXD_SAI3_RX_DATA0	0xd6
915			MX8MM_IOMUXC_SAI3_TXC_SAI3_TX_BCLK	0xd6
916			MX8MM_IOMUXC_SAI3_TXD_SAI3_TX_DATA0	0xd6
917			MX8MM_IOMUXC_SAI3_TXFS_SAI3_TX_SYNC	0xd6
918		>;
919	};
920
921	pinctrl_spi1: spi1grp {
922		fsl,pins = <
923			MX8MM_IOMUXC_ECSPI1_SCLK_ECSPI1_SCLK	0x82
924			MX8MM_IOMUXC_ECSPI1_MOSI_ECSPI1_MOSI	0x82
925			MX8MM_IOMUXC_ECSPI1_MISO_ECSPI1_MISO	0x82
926			MX8MM_IOMUXC_ECSPI1_SS0_GPIO5_IO9	0x40
927			MX8MM_IOMUXC_SD1_DATA1_GPIO2_IO3	0x140 /* CAN_IRQ# */
928		>;
929	};
930
931	pinctrl_spi2: spi2grp {
932		fsl,pins = <
933			MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK	0x82
934			MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI	0x82
935			MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO	0x82
936			MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13	0x40 /* SS0 */
937		>;
938	};
939
940	pinctrl_uart1: uart1grp {
941		fsl,pins = <
942			MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX	0x140
943			MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX	0x140
944			MX8MM_IOMUXC_SAI1_TXFS_GPIO4_IO10	0x140 /* RTS */
945			MX8MM_IOMUXC_SAI2_TXFS_GPIO4_IO24	0x140 /* CTS */
946		>;
947	};
948
949	pinctrl_uart1_gpio: uart1gpiogrp {
950		fsl,pins = <
951			MX8MM_IOMUXC_SAI2_TXD0_GPIO4_IO26	0x40000110 /* HALF */
952			MX8MM_IOMUXC_SAI2_TXC_GPIO4_IO25	0x40000110 /* TERM */
953			MX8MM_IOMUXC_SAI2_RXD0_GPIO4_IO23	0x40000110 /* RS485 */
954		>;
955	};
956
957	pinctrl_uart2: uart2grp {
958		fsl,pins = <
959			MX8MM_IOMUXC_UART2_RXD_UART2_DCE_RX	0x140
960			MX8MM_IOMUXC_UART2_TXD_UART2_DCE_TX	0x140
961		>;
962	};
963
964	pinctrl_uart3_gpio: uart3_gpiogrp {
965		fsl,pins = <
966			MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12	0x41 /* BT_EN# */
967		>;
968	};
969
970	pinctrl_uart3: uart3grp {
971		fsl,pins = <
972			MX8MM_IOMUXC_UART3_RXD_UART3_DCE_RX	0x140
973			MX8MM_IOMUXC_UART3_TXD_UART3_DCE_TX	0x140
974			MX8MM_IOMUXC_SD1_CLK_GPIO2_IO0		0x140 /* CTS */
975			MX8MM_IOMUXC_SD1_CMD_GPIO2_IO1		0x140 /* RTS */
976		>;
977	};
978
979	pinctrl_uart4: uart4grp {
980		fsl,pins = <
981			MX8MM_IOMUXC_UART4_RXD_UART4_DCE_RX	0x140
982			MX8MM_IOMUXC_UART4_TXD_UART4_DCE_TX	0x140
983			MX8MM_IOMUXC_SAI1_RXC_GPIO4_IO1		0x140 /* CTS */
984			MX8MM_IOMUXC_SAI1_RXD0_GPIO4_IO2	0x140 /* RTS */
985			MX8MM_IOMUXC_SAI1_RXD1_GPIO4_IO3	0x140 /* DTR */
986			MX8MM_IOMUXC_SAI1_RXD2_GPIO4_IO4	0x140 /* DSR */
987			MX8MM_IOMUXC_SAI1_RXD4_GPIO4_IO6	0x140 /* DCD */
988			MX8MM_IOMUXC_SAI1_RXD5_GPIO4_IO7	0x140 /* RI */
989			MX8MM_IOMUXC_SAI1_RXFS_GPIO4_IO0	0x140 /* GNSS_PPS */
990			MX8MM_IOMUXC_GPIO1_IO06_GPIO1_IO6	0x141 /* GNSS_GASP */
991		>;
992	};
993
994	pinctrl_usdhc2: usdhc2grp {
995		fsl,pins = <
996			MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK		0x190
997			MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD		0x1d0
998			MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0	0x1d0
999			MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1	0x1d0
1000			MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2	0x1d0
1001			MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3	0x1d0
1002		>;
1003	};
1004
1005	pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp {
1006		fsl,pins = <
1007			MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK		0x194
1008			MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD		0x1d4
1009			MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0	0x1d4
1010			MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1	0x1d4
1011			MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2	0x1d4
1012			MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3	0x1d4
1013		>;
1014	};
1015
1016	pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp {
1017		fsl,pins = <
1018			MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK		0x196
1019			MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD		0x1d6
1020			MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0	0x1d6
1021			MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1	0x1d6
1022			MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2	0x1d6
1023			MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3	0x1d6
1024		>;
1025	};
1026
1027	pinctrl_usdhc3: usdhc3grp {
1028		fsl,pins = <
1029			MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK	0x190
1030			MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD	0x1d0
1031			MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0	0x1d0
1032			MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1	0x1d0
1033			MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2	0x1d0
1034			MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3	0x1d0
1035			MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4	0x1d0
1036			MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5	0x1d0
1037			MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6	0x1d0
1038			MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7	0x1d0
1039			MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE	0x190
1040		>;
1041	};
1042
1043	pinctrl_usdhc3_100mhz: usdhc3-100mhzgrp {
1044		fsl,pins = <
1045			MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK	0x194
1046			MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD	0x1d4
1047			MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0	0x1d4
1048			MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1	0x1d4
1049			MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2	0x1d4
1050			MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3	0x1d4
1051			MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4	0x1d4
1052			MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5	0x1d4
1053			MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6	0x1d4
1054			MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7	0x1d4
1055			MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE	0x194
1056		>;
1057	};
1058
1059	pinctrl_usdhc3_200mhz: usdhc3-200mhzgrp {
1060		fsl,pins = <
1061			MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK	0x196
1062			MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD	0x1d6
1063			MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0	0x1d6
1064			MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1	0x1d6
1065			MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2	0x1d6
1066			MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3	0x1d6
1067			MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4	0x1d6
1068			MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5	0x1d6
1069			MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6	0x1d6
1070			MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7	0x1d6
1071			MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE	0x196
1072		>;
1073	};
1074
1075	pinctrl_wdog: wdoggrp {
1076		fsl,pins = <
1077			MX8MM_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B	0xc6
1078		>;
1079	};
1080};
1081