1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Copyright 2022 Toradex
4 */
5
6#include <dt-bindings/phy/phy-imx8-pcie.h>
7#include <dt-bindings/pwm/pwm.h>
8#include "imx8mm.dtsi"
9
10/ {
11	chosen {
12		stdout-path = &uart1;
13	};
14
15	aliases {
16		rtc0 = &rtc_i2c;
17		rtc1 = &snvs_rtc;
18	};
19
20	backlight: backlight {
21		compatible = "pwm-backlight";
22		brightness-levels = <0 45 63 88 119 158 203 255>;
23		default-brightness-level = <4>;
24		/* Verdin I2S_2_D_OUT (DSI_1_BKL_EN/DSI_1_BKL_EN_LVDS, SODIMM 46) */
25		enable-gpios = <&gpio3 24 GPIO_ACTIVE_HIGH>;
26		pinctrl-names = "default";
27		pinctrl-0 = <&pinctrl_i2s_2_d_out_dsi_1_bkl_en>;
28		power-supply = <&reg_3p3v>;
29		/* Verdin PWM_3_DSI/PWM_3_DSI_LVDS (SODIMM 19) */
30		pwms = <&pwm1 0 6666667 PWM_POLARITY_INVERTED>;
31		status = "disabled";
32	};
33
34	/* Fixed clock dedicated to SPI CAN controller */
35	clk40m: oscillator {
36		compatible = "fixed-clock";
37		#clock-cells = <0>;
38		clock-frequency = <40000000>;
39	};
40
41	gpio-keys {
42		compatible = "gpio-keys";
43		pinctrl-names = "default";
44		pinctrl-0 = <&pinctrl_gpio_keys>;
45
46		key-wakeup {
47			debounce-interval = <10>;
48			/* Verdin CTRL_WAKE1_MICO# (SODIMM 252) */
49			gpios = <&gpio4 28 GPIO_ACTIVE_LOW>;
50			label = "Wake-Up";
51			linux,code = <KEY_WAKEUP>;
52			wakeup-source;
53		};
54	};
55
56	hdmi_connector: hdmi-connector {
57		compatible = "hdmi-connector";
58		ddc-i2c-bus = <&i2c2>;
59		label = "hdmi";
60		type = "a";
61		status = "disabled";
62	};
63
64	panel_lvds: panel-lvds {
65		compatible = "panel-lvds";
66		backlight = <&backlight>;
67		data-mapping = "vesa-24";
68		status = "disabled";
69	};
70
71	/* Carrier Board Supplies */
72	reg_1p8v: regulator-1p8v {
73		compatible = "regulator-fixed";
74		regulator-max-microvolt = <1800000>;
75		regulator-min-microvolt = <1800000>;
76		regulator-name = "+V1.8_SW";
77	};
78
79	reg_3p3v: regulator-3p3v {
80		compatible = "regulator-fixed";
81		regulator-max-microvolt = <3300000>;
82		regulator-min-microvolt = <3300000>;
83		regulator-name = "+V3.3_SW";
84	};
85
86	reg_5p0v: regulator-5p0v {
87		compatible = "regulator-fixed";
88		regulator-max-microvolt = <5000000>;
89		regulator-min-microvolt = <5000000>;
90		regulator-name = "+V5_SW";
91	};
92
93	/* Non PMIC On-module Supplies */
94	reg_ethphy: regulator-ethphy {
95		compatible = "regulator-fixed";
96		enable-active-high;
97		gpio = <&gpio2 20 GPIO_ACTIVE_HIGH>; /* PMIC_EN_ETH */
98		off-on-delay = <500000>;
99		pinctrl-names = "default";
100		pinctrl-0 = <&pinctrl_reg_eth>;
101		regulator-boot-on;
102		regulator-max-microvolt = <3300000>;
103		regulator-min-microvolt = <3300000>;
104		regulator-name = "On-module +V3.3_ETH";
105		startup-delay-us = <200000>;
106	};
107
108	reg_usb_otg1_vbus: regulator-usb-otg1 {
109		compatible = "regulator-fixed";
110		enable-active-high;
111		/* Verdin USB_1_EN (SODIMM 155) */
112		gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
113		pinctrl-names = "default";
114		pinctrl-0 = <&pinctrl_reg_usb1_en>;
115		regulator-max-microvolt = <5000000>;
116		regulator-min-microvolt = <5000000>;
117		regulator-name = "USB_1_EN";
118	};
119
120	reg_usb_otg2_vbus: regulator-usb-otg2 {
121		compatible = "regulator-fixed";
122		enable-active-high;
123		/* Verdin USB_2_EN (SODIMM 185) */
124		gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>;
125		pinctrl-names = "default";
126		pinctrl-0 = <&pinctrl_reg_usb2_en>;
127		regulator-max-microvolt = <5000000>;
128		regulator-min-microvolt = <5000000>;
129		regulator-name = "USB_2_EN";
130	};
131
132	reg_usdhc2_vmmc: regulator-usdhc2 {
133		compatible = "regulator-fixed";
134		enable-active-high;
135		/* Verdin SD_1_PWR_EN (SODIMM 76) */
136		gpio = <&gpio3 5 GPIO_ACTIVE_HIGH>;
137		off-on-delay = <100000>;
138		pinctrl-names = "default";
139		pinctrl-0 = <&pinctrl_usdhc2_pwr_en>;
140		regulator-max-microvolt = <3300000>;
141		regulator-min-microvolt = <3300000>;
142		regulator-name = "+V3.3_SD";
143		startup-delay-us = <2000>;
144	};
145
146	reserved-memory {
147		#address-cells = <2>;
148		#size-cells = <2>;
149		ranges;
150
151		/* Use the kernel configuration settings instead */
152		/delete-node/ linux,cma;
153	};
154};
155
156&A53_0 {
157	cpu-supply = <&reg_vdd_arm>;
158};
159
160&A53_1 {
161	cpu-supply = <&reg_vdd_arm>;
162};
163
164&A53_2 {
165	cpu-supply = <&reg_vdd_arm>;
166};
167
168&A53_3 {
169	cpu-supply = <&reg_vdd_arm>;
170};
171
172&cpu_alert0 {
173	temperature = <95000>;
174};
175
176&cpu_crit0 {
177	temperature = <105000>;
178};
179
180&ddrc {
181	operating-points-v2 = <&ddrc_opp_table>;
182
183	ddrc_opp_table: opp-table {
184		compatible = "operating-points-v2";
185
186		opp-25M {
187			opp-hz = /bits/ 64 <25000000>;
188		};
189
190		opp-100M {
191			opp-hz = /bits/ 64 <100000000>;
192		};
193
194		opp-750M {
195			opp-hz = /bits/ 64 <750000000>;
196		};
197	};
198};
199
200/* Verdin SPI_1 */
201&ecspi2 {
202	#address-cells = <1>;
203	#size-cells = <0>;
204	cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
205	pinctrl-names = "default";
206	pinctrl-0 = <&pinctrl_ecspi2>;
207};
208
209/* Verdin CAN_1 (On-module) */
210&ecspi3 {
211	#address-cells = <1>;
212	#size-cells = <0>;
213	cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>;
214	pinctrl-names = "default";
215	pinctrl-0 = <&pinctrl_ecspi3>;
216	status = "okay";
217
218	can1: can@0 {
219		compatible = "microchip,mcp251xfd";
220		clocks = <&clk40m>;
221		interrupts-extended = <&gpio1 6 IRQ_TYPE_LEVEL_LOW>;
222		pinctrl-names = "default";
223		pinctrl-0 = <&pinctrl_can1_int>;
224		reg = <0>;
225		spi-max-frequency = <8500000>;
226	};
227};
228
229/* Verdin ETH_1 (On-module PHY) */
230&fec1 {
231	fsl,magic-packet;
232	phy-handle = <&ethphy0>;
233	phy-mode = "rgmii-id";
234	phy-supply = <&reg_ethphy>;
235	pinctrl-names = "default", "sleep";
236	pinctrl-0 = <&pinctrl_fec1>;
237	pinctrl-1 = <&pinctrl_fec1_sleep>;
238
239	mdio {
240		#address-cells = <1>;
241		#size-cells = <0>;
242
243		ethphy0: ethernet-phy@7 {
244			compatible = "ethernet-phy-ieee802.3-c22";
245			interrupt-parent = <&gpio1>;
246			interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
247			micrel,led-mode = <0>;
248			reg = <7>;
249		};
250	};
251};
252
253/* Verdin QSPI_1 */
254&flexspi {
255	pinctrl-names = "default";
256	pinctrl-0 = <&pinctrl_flexspi0>;
257};
258
259&gpio1 {
260	gpio-line-names = "SODIMM_216",
261			  "SODIMM_19",
262			  "",
263			  "",
264			  "",
265			  "",
266			  "",
267			  "",
268			  "SODIMM_220",
269			  "SODIMM_222",
270			  "",
271			  "SODIMM_218",
272			  "SODIMM_155",
273			  "SODIMM_157",
274			  "SODIMM_185",
275			  "SODIMM_187";
276};
277
278&gpio2 {
279	gpio-line-names = "",
280			  "",
281			  "",
282			  "",
283			  "",
284			  "",
285			  "",
286			  "",
287			  "",
288			  "",
289			  "",
290			  "",
291			  "SODIMM_84",
292			  "SODIMM_78",
293			  "SODIMM_74",
294			  "SODIMM_80",
295			  "SODIMM_82",
296			  "SODIMM_70",
297			  "SODIMM_72";
298};
299
300&gpio5 {
301	gpio-line-names = "SODIMM_131",
302			  "",
303			  "SODIMM_91",
304			  "SODIMM_16",
305			  "SODIMM_15",
306			  "SODIMM_208",
307			  "SODIMM_137",
308			  "SODIMM_139",
309			  "SODIMM_141",
310			  "SODIMM_143",
311			  "SODIMM_196",
312			  "SODIMM_200",
313			  "SODIMM_198",
314			  "SODIMM_202",
315			  "",
316			  "",
317			  "SODIMM_55",
318			  "SODIMM_53",
319			  "SODIMM_95",
320			  "SODIMM_93",
321			  "SODIMM_14",
322			  "SODIMM_12",
323			  "",
324			  "",
325			  "",
326			  "",
327			  "SODIMM_210",
328			  "SODIMM_212",
329			  "SODIMM_151",
330			  "SODIMM_153";
331
332	ctrl-sleep-moci-hog {
333		gpio-hog;
334		/* Verdin CTRL_SLEEP_MOCI# (SODIMM 256) */
335		gpios = <1 GPIO_ACTIVE_HIGH>;
336		line-name = "CTRL_SLEEP_MOCI#";
337		output-high;
338		pinctrl-names = "default";
339		pinctrl-0 = <&pinctrl_ctrl_sleep_moci>;
340	};
341};
342
343/* On-module I2C */
344&i2c1 {
345	clock-frequency = <400000>;
346	pinctrl-names = "default", "gpio";
347	pinctrl-0 = <&pinctrl_i2c1>;
348	pinctrl-1 = <&pinctrl_i2c1_gpio>;
349	scl-gpios = <&gpio5 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
350	sda-gpios = <&gpio5 15 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
351	status = "okay";
352
353	pca9450: pmic@25 {
354		compatible = "nxp,pca9450a";
355		interrupt-parent = <&gpio1>;
356		/* PMIC PCA9450 PMIC_nINT GPIO1_IO3 */
357		interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
358		pinctrl-names = "default";
359		pinctrl-0 = <&pinctrl_pmic>;
360		reg = <0x25>;
361		sd-vsel-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
362
363		/*
364		 * The bootloader is expected to switch on the I2C level shifter for the TLA2024 ADC
365		 * behind this PMIC.
366		 */
367
368		regulators {
369			reg_vdd_soc: BUCK1 {
370				nxp,dvs-run-voltage = <850000>;
371				nxp,dvs-standby-voltage = <800000>;
372				regulator-always-on;
373				regulator-boot-on;
374				regulator-max-microvolt = <850000>;
375				regulator-min-microvolt = <800000>;
376				regulator-name = "On-module +VDD_SOC (BUCK1)";
377				regulator-ramp-delay = <3125>;
378			};
379
380			reg_vdd_arm: BUCK2 {
381				nxp,dvs-run-voltage = <950000>;
382				nxp,dvs-standby-voltage = <850000>;
383				regulator-always-on;
384				regulator-boot-on;
385				regulator-max-microvolt = <1050000>;
386				regulator-min-microvolt = <805000>;
387				regulator-name = "On-module +VDD_ARM (BUCK2)";
388				regulator-ramp-delay = <3125>;
389			};
390
391			reg_vdd_dram: BUCK3 {
392				regulator-always-on;
393				regulator-boot-on;
394				regulator-max-microvolt = <1000000>;
395				regulator-min-microvolt = <805000>;
396				regulator-name = "On-module +VDD_GPU_VPU_DDR (BUCK3)";
397			};
398
399			reg_vdd_3v3: BUCK4 {
400				regulator-always-on;
401				regulator-boot-on;
402				regulator-max-microvolt = <3300000>;
403				regulator-min-microvolt = <3300000>;
404				regulator-name = "On-module +V3.3 (BUCK4)";
405			};
406
407			reg_vdd_1v8: BUCK5 {
408				regulator-always-on;
409				regulator-boot-on;
410				regulator-max-microvolt = <1800000>;
411				regulator-min-microvolt = <1800000>;
412				regulator-name = "PWR_1V8_MOCI (BUCK5)";
413			};
414
415			reg_nvcc_dram: BUCK6 {
416				regulator-always-on;
417				regulator-boot-on;
418				regulator-max-microvolt = <1100000>;
419				regulator-min-microvolt = <1100000>;
420				regulator-name = "On-module +VDD_DDR (BUCK6)";
421			};
422
423			reg_nvcc_snvs: LDO1 {
424				regulator-always-on;
425				regulator-boot-on;
426				regulator-max-microvolt = <1800000>;
427				regulator-min-microvolt = <1800000>;
428				regulator-name = "On-module +V1.8_SNVS (LDO1)";
429			};
430
431			reg_vdd_snvs: LDO2 {
432				regulator-always-on;
433				regulator-boot-on;
434				regulator-max-microvolt = <800000>;
435				regulator-min-microvolt = <800000>;
436				regulator-name = "On-module +V0.8_SNVS (LDO2)";
437			};
438
439			reg_vdda: LDO3 {
440				regulator-always-on;
441				regulator-boot-on;
442				regulator-max-microvolt = <1800000>;
443				regulator-min-microvolt = <1800000>;
444				regulator-name = "On-module +V1.8A (LDO3)";
445			};
446
447			reg_vdd_phy: LDO4 {
448				regulator-always-on;
449				regulator-boot-on;
450				regulator-max-microvolt = <900000>;
451				regulator-min-microvolt = <900000>;
452				regulator-name = "On-module +V0.9_MIPI (LDO4)";
453			};
454
455			reg_nvcc_sd: LDO5 {
456				regulator-max-microvolt = <3300000>;
457				regulator-min-microvolt = <1800000>;
458				regulator-name = "On-module +V3.3_1.8_SD (LDO5)";
459			};
460		};
461	};
462
463	rtc_i2c: rtc@32 {
464		compatible = "epson,rx8130";
465		reg = <0x32>;
466	};
467
468	adc@49 {
469		compatible = "ti,ads1015";
470		reg = <0x49>;
471		#address-cells = <1>;
472		#size-cells = <0>;
473
474		/* Verdin I2C_1 (ADC_4 - ADC_3) */
475		channel@0 {
476			reg = <0>;
477			ti,datarate = <4>;
478			ti,gain = <2>;
479		};
480
481		/* Verdin I2C_1 (ADC_4 - ADC_1) */
482		channel@1 {
483			reg = <1>;
484			ti,datarate = <4>;
485			ti,gain = <2>;
486		};
487
488		/* Verdin I2C_1 (ADC_3 - ADC_1) */
489		channel@2 {
490			reg = <2>;
491			ti,datarate = <4>;
492			ti,gain = <2>;
493		};
494
495		/* Verdin I2C_1 (ADC_2 - ADC_1) */
496		channel@3 {
497			reg = <3>;
498			ti,datarate = <4>;
499			ti,gain = <2>;
500		};
501
502		/* Verdin I2C_1 ADC_4 */
503		channel@4 {
504			reg = <4>;
505			ti,datarate = <4>;
506			ti,gain = <2>;
507		};
508
509		/* Verdin I2C_1 ADC_3 */
510		channel@5 {
511			reg = <5>;
512			ti,datarate = <4>;
513			ti,gain = <2>;
514		};
515
516		/* Verdin I2C_1 ADC_2 */
517		channel@6 {
518			reg = <6>;
519			ti,datarate = <4>;
520			ti,gain = <2>;
521		};
522
523		/* Verdin I2C_1 ADC_1 */
524		channel@7 {
525			reg = <7>;
526			ti,datarate = <4>;
527			ti,gain = <2>;
528		};
529	};
530
531	eeprom@50 {
532		compatible = "st,24c02";
533		pagesize = <16>;
534		reg = <0x50>;
535	};
536};
537
538/* Verdin I2C_2_DSI */
539&i2c2 {
540	clock-frequency = <10000>;
541	pinctrl-names = "default", "gpio";
542	pinctrl-0 = <&pinctrl_i2c2>;
543	pinctrl-1 = <&pinctrl_i2c2_gpio>;
544	scl-gpios = <&gpio5 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
545	sda-gpios = <&gpio5 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
546	status = "disabled";
547};
548
549/* Verdin I2C_3_HDMI N/A */
550
551/* Verdin I2C_4_CSI */
552&i2c3 {
553	clock-frequency = <400000>;
554	pinctrl-names = "default", "gpio";
555	pinctrl-0 = <&pinctrl_i2c3>;
556	pinctrl-1 = <&pinctrl_i2c3_gpio>;
557	scl-gpios = <&gpio5 18 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
558	sda-gpios = <&gpio5 19 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
559};
560
561/* Verdin I2C_1 */
562&i2c4 {
563	clock-frequency = <400000>;
564	pinctrl-names = "default", "gpio";
565	pinctrl-0 = <&pinctrl_i2c4>;
566	pinctrl-1 = <&pinctrl_i2c4_gpio>;
567	scl-gpios = <&gpio5 20 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
568	sda-gpios = <&gpio5 21 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
569
570	gpio_expander_21: gpio-expander@21 {
571		compatible = "nxp,pcal6416";
572		#gpio-cells = <2>;
573		gpio-controller;
574		reg = <0x21>;
575		vcc-supply = <&reg_3p3v>;
576		status = "disabled";
577	};
578
579	lvds_ti_sn65dsi84: bridge@2c {
580		compatible = "ti,sn65dsi84";
581		/* Verdin GPIO_9_DSI (SN65DSI84 IRQ, SODIMM 17, unused) */
582		/* Verdin GPIO_10_DSI (SODIMM 21) */
583		enable-gpios = <&gpio3 3 GPIO_ACTIVE_HIGH>;
584		pinctrl-names = "default";
585		pinctrl-0 = <&pinctrl_gpio_10_dsi>;
586		reg = <0x2c>;
587		status = "disabled";
588	};
589
590	/* Current measurement into module VCC */
591	hwmon: hwmon@40 {
592		compatible = "ti,ina219";
593		reg = <0x40>;
594		shunt-resistor = <10000>;
595		status = "disabled";
596	};
597
598	hdmi_lontium_lt8912: hdmi@48 {
599		compatible = "lontium,lt8912b";
600		pinctrl-names = "default";
601		pinctrl-0 = <&pinctrl_gpio_10_dsi>, <&pinctrl_pwm_3_dsi_hpd_gpio>;
602		reg = <0x48>;
603		/* Verdin GPIO_9_DSI (LT8912 INT, SODIMM 17, unused) */
604		/* Verdin GPIO_10_DSI (SODIMM 21) */
605		reset-gpios = <&gpio3 3 GPIO_ACTIVE_LOW>;
606		status = "disabled";
607	};
608
609	atmel_mxt_ts: touch@4a {
610		compatible = "atmel,maxtouch";
611		/*
612		 * Verdin GPIO_9_DSI
613		 * (TOUCH_INT#, SODIMM 17, also routed to SN65DSI84 IRQ albeit currently unused)
614		 */
615		interrupt-parent = <&gpio3>;
616		interrupts = <15 IRQ_TYPE_EDGE_FALLING>;
617		pinctrl-names = "default";
618		pinctrl-0 = <&pinctrl_gpio_9_dsi>, <&pinctrl_i2s_2_bclk_touch_reset>;
619		reg = <0x4a>;
620		/* Verdin I2S_2_BCLK (TOUCH_RESET#, SODIMM 42) */
621		reset-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
622		status = "disabled";
623	};
624
625	/* Temperature sensor on carrier board */
626	hwmon_temp: sensor@4f {
627		compatible = "ti,tmp75c";
628		reg = <0x4f>;
629		status = "disabled";
630	};
631
632	/* EEPROM on display adapter (MIPI DSI Display Adapter) */
633	eeprom_display_adapter: eeprom@50 {
634		compatible = "st,24c02";
635		pagesize = <16>;
636		reg = <0x50>;
637		status = "disabled";
638	};
639
640	/* EEPROM on carrier board */
641	eeprom_carrier_board: eeprom@57 {
642		compatible = "st,24c02";
643		pagesize = <16>;
644		reg = <0x57>;
645		status = "disabled";
646	};
647};
648
649/* Verdin PCIE_1 */
650&pcie0 {
651	assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>,
652			  <&clk IMX8MM_CLK_PCIE1_CTRL>;
653	assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_50M>,
654				 <&clk IMX8MM_SYS_PLL2_250M>;
655	assigned-clock-rates = <10000000>, <250000000>;
656	clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>,
657		 <&clk IMX8MM_CLK_PCIE1_AUX>,
658		 <&clk IMX8MM_CLK_PCIE1_PHY>;
659	clock-names = "pcie", "pcie_aux", "pcie_bus";
660	pinctrl-names = "default";
661	pinctrl-0 = <&pinctrl_pcie0>;
662	/* PCIE_1_RESET# (SODIMM 244) */
663	reset-gpio = <&gpio3 19 GPIO_ACTIVE_LOW>;
664};
665
666&pcie_phy {
667	clocks = <&clk IMX8MM_CLK_PCIE1_PHY>;
668	clock-names = "ref";
669	fsl,clkreq-unsupported;
670	fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_OUTPUT>;
671	fsl,tx-deemph-gen1 = <0x2d>;
672	fsl,tx-deemph-gen2 = <0xf>;
673};
674
675/* Verdin PWM_3_DSI */
676&pwm1 {
677	pinctrl-names = "default";
678	pinctrl-0 = <&pinctrl_pwm_1>;
679	#pwm-cells = <3>;
680};
681
682/* Verdin PWM_1 */
683&pwm2 {
684	pinctrl-names = "default";
685	pinctrl-0 = <&pinctrl_pwm_2>;
686	#pwm-cells = <3>;
687};
688
689/* Verdin PWM_2 */
690&pwm3 {
691	pinctrl-names = "default";
692	pinctrl-0 = <&pinctrl_pwm_3>;
693	#pwm-cells = <3>;
694};
695
696/* Verdin I2S_1 */
697&sai2 {
698	#sound-dai-cells = <0>;
699	assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>;
700	assigned-clock-rates = <24576000>;
701	assigned-clocks = <&clk IMX8MM_CLK_SAI2>;
702	pinctrl-names = "default";
703	pinctrl-0 = <&pinctrl_sai2>;
704};
705
706&snvs_pwrkey {
707	status = "okay";
708};
709
710/* Verdin UART_3, used as the Linux console */
711&uart1 {
712	pinctrl-names = "default";
713	pinctrl-0 = <&pinctrl_uart1>;
714};
715
716/* Verdin UART_1 */
717&uart2 {
718	pinctrl-names = "default";
719	pinctrl-0 = <&pinctrl_uart2>;
720	uart-has-rtscts;
721};
722
723/* Verdin UART_2 */
724&uart3 {
725	pinctrl-names = "default";
726	pinctrl-0 = <&pinctrl_uart3>;
727	uart-has-rtscts;
728};
729
730/*
731 * Verdin UART_4
732 * Resource allocated to M4 by default, must not be accessed from Cortex-A35 or you get an OOPS
733 */
734&uart4 {
735	pinctrl-names = "default";
736	pinctrl-0 = <&pinctrl_uart4>;
737};
738
739/* Verdin USB_1 */
740&usbotg1 {
741	adp-disable;
742	dr_mode = "otg";
743	hnp-disable;
744	over-current-active-low;
745	samsung,picophy-dc-vol-level-adjust = <7>;
746	samsung,picophy-pre-emp-curr-control = <3>;
747	srp-disable;
748	vbus-supply = <&reg_usb_otg1_vbus>;
749};
750
751/* Verdin USB_2 */
752&usbotg2 {
753	dr_mode = "host";
754	over-current-active-low;
755	samsung,picophy-dc-vol-level-adjust = <7>;
756	samsung,picophy-pre-emp-curr-control = <3>;
757	vbus-supply = <&reg_usb_otg2_vbus>;
758};
759
760&usbphynop1 {
761	vcc-supply = <&reg_vdd_3v3>;
762};
763
764&usbphynop2 {
765	power-domains = <&pgc_otg2>;
766	vcc-supply = <&reg_vdd_3v3>;
767};
768
769/* On-module eMMC */
770&usdhc1 {
771	bus-width = <8>;
772	keep-power-in-suspend;
773	non-removable;
774	pinctrl-names = "default", "state_100mhz", "state_200mhz";
775	pinctrl-0 = <&pinctrl_usdhc1>;
776	pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
777	pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
778	status = "okay";
779};
780
781/* Verdin SD_1 */
782&usdhc2 {
783	bus-width = <4>;
784	cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
785	disable-wp;
786	pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep";
787	pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_cd>;
788	pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_cd>;
789	pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_cd>;
790	pinctrl-3 = <&pinctrl_usdhc2_sleep>, <&pinctrl_usdhc2_cd_sleep>;
791	vmmc-supply = <&reg_usdhc2_vmmc>;
792};
793
794&wdog1 {
795	fsl,ext-reset-output;
796	pinctrl-names = "default";
797	pinctrl-0 = <&pinctrl_wdog>;
798	status = "okay";
799};
800
801&iomuxc {
802	pinctrl-names = "default";
803	pinctrl-0 = <&pinctrl_gpio1>, <&pinctrl_gpio2>,
804		    <&pinctrl_gpio3>, <&pinctrl_gpio4>,
805		    <&pinctrl_gpio7>, <&pinctrl_gpio8>,
806		    <&pinctrl_gpio_hog1>, <&pinctrl_gpio_hog2>, <&pinctrl_gpio_hog3>,
807		    <&pinctrl_pmic_tpm_ena>;
808
809	pinctrl_can1_int: can1intgrp {
810		fsl,pins =
811			<MX8MM_IOMUXC_GPIO1_IO06_GPIO1_IO6		0x146>;	/* CAN_1_SPI_INT#_1.8V */
812	};
813
814	pinctrl_can2_int: can2intgrp {
815		fsl,pins =
816			<MX8MM_IOMUXC_GPIO1_IO07_GPIO1_IO7		0x106>;	/* CAN_2_SPI_INT#_1.8V, unused */
817	};
818
819	pinctrl_ctrl_sleep_moci: ctrlsleepmocigrp {
820		fsl,pins =
821			<MX8MM_IOMUXC_SAI3_TXD_GPIO5_IO1		0x106>;	/* SODIMM 256 */
822	};
823
824	pinctrl_ecspi2: ecspi2grp {
825		fsl,pins =
826			<MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO		0x6>,	/* SODIMM 198 */
827			<MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI		0x6>,	/* SODIMM 200 */
828			<MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK		0x6>,	/* SODIMM 196 */
829			<MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13		0x6>;	/* SODIMM 202 */
830	};
831
832	pinctrl_ecspi3: ecspi3grp {
833		fsl,pins =
834			<MX8MM_IOMUXC_GPIO1_IO05_GPIO1_IO5		0x146>,	/* CAN_2_SPI_CS#_1.8V */
835			<MX8MM_IOMUXC_UART1_RXD_ECSPI3_SCLK		0x6>,	/* CAN_SPI_SCK_1.8V */
836			<MX8MM_IOMUXC_UART1_TXD_ECSPI3_MOSI		0x6>,	/* CAN_SPI_MOSI_1.8V */
837			<MX8MM_IOMUXC_UART2_RXD_ECSPI3_MISO		0x6>,	/* CAN_SPI_MISO_1.8V */
838			<MX8MM_IOMUXC_UART2_TXD_GPIO5_IO25		0x6>;	/* CAN_1_SPI_CS_1.8V# */
839	};
840
841	pinctrl_fec1: fec1grp {
842		fsl,pins =
843			<MX8MM_IOMUXC_ENET_MDC_ENET1_MDC		0x3>,
844			<MX8MM_IOMUXC_ENET_MDIO_ENET1_MDIO		0x3>,
845			<MX8MM_IOMUXC_ENET_RD0_ENET1_RGMII_RD0		0x91>,
846			<MX8MM_IOMUXC_ENET_RD1_ENET1_RGMII_RD1		0x91>,
847			<MX8MM_IOMUXC_ENET_RD2_ENET1_RGMII_RD2		0x91>,
848			<MX8MM_IOMUXC_ENET_RD3_ENET1_RGMII_RD3		0x91>,
849			<MX8MM_IOMUXC_ENET_RXC_ENET1_RGMII_RXC		0x91>,
850			<MX8MM_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL	0x91>,
851			<MX8MM_IOMUXC_ENET_TD0_ENET1_RGMII_TD0		0x1f>,
852			<MX8MM_IOMUXC_ENET_TD1_ENET1_RGMII_TD1		0x1f>,
853			<MX8MM_IOMUXC_ENET_TD2_ENET1_RGMII_TD2		0x1f>,
854			<MX8MM_IOMUXC_ENET_TD3_ENET1_RGMII_TD3		0x1f>,
855			<MX8MM_IOMUXC_ENET_TXC_ENET1_RGMII_TXC		0x1f>,
856			<MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL	0x1f>,
857			<MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10		0x146>;
858	};
859
860	pinctrl_fec1_sleep: fec1-sleepgrp {
861		fsl,pins =
862			<MX8MM_IOMUXC_ENET_MDC_ENET1_MDC		0x3>,
863			<MX8MM_IOMUXC_ENET_MDIO_ENET1_MDIO		0x3>,
864			<MX8MM_IOMUXC_ENET_RD0_ENET1_RGMII_RD0		0x91>,
865			<MX8MM_IOMUXC_ENET_RD1_ENET1_RGMII_RD1		0x91>,
866			<MX8MM_IOMUXC_ENET_RD2_ENET1_RGMII_RD2		0x91>,
867			<MX8MM_IOMUXC_ENET_RD3_ENET1_RGMII_RD3		0x91>,
868			<MX8MM_IOMUXC_ENET_RXC_ENET1_RGMII_RXC		0x91>,
869			<MX8MM_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL	0x91>,
870			<MX8MM_IOMUXC_ENET_TD0_GPIO1_IO21		0x1f>,
871			<MX8MM_IOMUXC_ENET_TD1_GPIO1_IO20		0x1f>,
872			<MX8MM_IOMUXC_ENET_TD2_GPIO1_IO19		0x1f>,
873			<MX8MM_IOMUXC_ENET_TD3_GPIO1_IO18		0x1f>,
874			<MX8MM_IOMUXC_ENET_TXC_GPIO1_IO23		0x1f>,
875			<MX8MM_IOMUXC_ENET_TX_CTL_GPIO1_IO22		0x1f>,
876			<MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10		0x106>;
877	};
878
879	pinctrl_flexspi0: flexspi0grp {
880		fsl,pins =
881			<MX8MM_IOMUXC_NAND_ALE_QSPI_A_SCLK		0x106>,	/* SODIMM 52 */
882			<MX8MM_IOMUXC_NAND_CE0_B_QSPI_A_SS0_B		0x106>,	/* SODIMM 54 */
883			<MX8MM_IOMUXC_NAND_CE1_B_QSPI_A_SS1_B		0x106>,	/* SODIMM 64 */
884			<MX8MM_IOMUXC_NAND_DATA00_QSPI_A_DATA0		0x106>,	/* SODIMM 56 */
885			<MX8MM_IOMUXC_NAND_DATA01_QSPI_A_DATA1		0x106>,	/* SODIMM 58 */
886			<MX8MM_IOMUXC_NAND_DATA02_QSPI_A_DATA2		0x106>,	/* SODIMM 60 */
887			<MX8MM_IOMUXC_NAND_DATA03_QSPI_A_DATA3		0x106>,	/* SODIMM 62 */
888			<MX8MM_IOMUXC_NAND_DQS_QSPI_A_DQS		0x106>;	/* SODIMM 66 */
889	};
890
891	pinctrl_gpio1: gpio1grp {
892		fsl,pins =
893			<MX8MM_IOMUXC_NAND_CE3_B_GPIO3_IO4		0x106>;	/* SODIMM 206 */
894	};
895
896	pinctrl_gpio2: gpio2grp {
897		fsl,pins =
898			<MX8MM_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5		0x106>;	/* SODIMM 208 */
899	};
900
901	pinctrl_gpio3: gpio3grp {
902		fsl,pins =
903			<MX8MM_IOMUXC_UART3_RXD_GPIO5_IO26		0x106>;	/* SODIMM 210 */
904	};
905
906	pinctrl_gpio4: gpio4grp {
907		fsl,pins =
908			<MX8MM_IOMUXC_UART3_TXD_GPIO5_IO27		0x106>;	/* SODIMM 212 */
909	};
910
911	pinctrl_gpio5: gpio5grp {
912		fsl,pins =
913			<MX8MM_IOMUXC_GPIO1_IO00_GPIO1_IO0		0x106>;	/* SODIMM 216 */
914	};
915
916	pinctrl_gpio6: gpio6grp {
917		fsl,pins =
918			<MX8MM_IOMUXC_GPIO1_IO11_GPIO1_IO11		0x106>;	/* SODIMM 218 */
919	};
920
921	pinctrl_gpio7: gpio7grp {
922		fsl,pins =
923			<MX8MM_IOMUXC_GPIO1_IO08_GPIO1_IO8		0x106>;	/* SODIMM 220 */
924	};
925
926	pinctrl_gpio8: gpio8grp {
927		fsl,pins =
928			<MX8MM_IOMUXC_GPIO1_IO09_GPIO1_IO9		0x106>;	/* SODIMM 222 */
929	};
930
931	/* Verdin GPIO_9_DSI (pulled-up as active-low) */
932	pinctrl_gpio_9_dsi: gpio9dsigrp {
933		fsl,pins =
934			<MX8MM_IOMUXC_NAND_RE_B_GPIO3_IO15		0x146>;	/* SODIMM 17 */
935	};
936
937	/* Verdin GPIO_10_DSI (pulled-up as active-low) */
938	pinctrl_gpio_10_dsi: gpio10dsigrp {
939		fsl,pins =
940			<MX8MM_IOMUXC_NAND_CE2_B_GPIO3_IO3		0x146>;	/* SODIMM 21 */
941	};
942
943	pinctrl_gpio_hog1: gpiohog1grp {
944		fsl,pins =
945			<MX8MM_IOMUXC_SAI1_MCLK_GPIO4_IO20		0x106>,	/* SODIMM 88 */
946			<MX8MM_IOMUXC_SAI1_RXC_GPIO4_IO1		0x106>,	/* SODIMM 90 */
947			<MX8MM_IOMUXC_SAI1_RXD0_GPIO4_IO2		0x106>,	/* SODIMM 92 */
948			<MX8MM_IOMUXC_SAI1_RXD1_GPIO4_IO3		0x106>,	/* SODIMM 94 */
949			<MX8MM_IOMUXC_SAI1_RXD2_GPIO4_IO4		0x106>,	/* SODIMM 96 */
950			<MX8MM_IOMUXC_SAI1_RXD3_GPIO4_IO5		0x106>,	/* SODIMM 100 */
951			<MX8MM_IOMUXC_SAI1_RXFS_GPIO4_IO0		0x106>,	/* SODIMM 102 */
952			<MX8MM_IOMUXC_SAI1_TXC_GPIO4_IO11		0x106>,	/* SODIMM 104 */
953			<MX8MM_IOMUXC_SAI1_TXD0_GPIO4_IO12		0x106>,	/* SODIMM 106 */
954			<MX8MM_IOMUXC_SAI1_TXD1_GPIO4_IO13		0x106>,	/* SODIMM 108 */
955			<MX8MM_IOMUXC_SAI1_TXD2_GPIO4_IO14		0x106>,	/* SODIMM 112 */
956			<MX8MM_IOMUXC_SAI1_TXD3_GPIO4_IO15		0x106>,	/* SODIMM 114 */
957			<MX8MM_IOMUXC_SAI1_TXD4_GPIO4_IO16		0x106>,	/* SODIMM 116 */
958			<MX8MM_IOMUXC_SAI1_TXD6_GPIO4_IO18		0x106>,	/* SODIMM 118 */
959			<MX8MM_IOMUXC_SAI1_TXFS_GPIO4_IO10		0x106>;	/* SODIMM 120 */
960	};
961
962	pinctrl_gpio_hog2: gpiohog2grp {
963		fsl,pins =
964			<MX8MM_IOMUXC_SAI3_MCLK_GPIO5_IO2		0x106>;	/* SODIMM 91 */
965	};
966
967	pinctrl_gpio_hog3: gpiohog3grp {
968		fsl,pins =
969			<MX8MM_IOMUXC_GPIO1_IO13_GPIO1_IO13		0x146>,	/* SODIMM 157 */
970			<MX8MM_IOMUXC_GPIO1_IO15_GPIO1_IO15		0x146>;	/* SODIMM 187 */
971	};
972
973	pinctrl_gpio_keys: gpiokeysgrp {
974		fsl,pins =
975			<MX8MM_IOMUXC_SAI3_RXFS_GPIO4_IO28		0x146>;	/* SODIMM 252 */
976	};
977
978	/* On-module I2C */
979	pinctrl_i2c1: i2c1grp {
980		fsl,pins =
981			<MX8MM_IOMUXC_I2C1_SCL_I2C1_SCL			0x40000146>,	/* PMIC_I2C_SCL */
982			<MX8MM_IOMUXC_I2C1_SDA_I2C1_SDA			0x40000146>;	/* PMIC_I2C_SDA */
983	};
984
985	pinctrl_i2c1_gpio: i2c1gpiogrp {
986		fsl,pins =
987			<MX8MM_IOMUXC_I2C1_SCL_GPIO5_IO14		0x146>,	/* PMIC_I2C_SCL */
988			<MX8MM_IOMUXC_I2C1_SDA_GPIO5_IO15		0x146>;	/* PMIC_I2C_SDA */
989	};
990
991	/* Verdin I2C_4_CSI */
992	pinctrl_i2c2: i2c2grp {
993		fsl,pins =
994			<MX8MM_IOMUXC_I2C2_SCL_I2C2_SCL			0x40000146>,	/* SODIMM 55 */
995			<MX8MM_IOMUXC_I2C2_SDA_I2C2_SDA			0x40000146>;	/* SODIMM 53 */
996	};
997
998	pinctrl_i2c2_gpio: i2c2gpiogrp {
999		fsl,pins =
1000			<MX8MM_IOMUXC_I2C2_SCL_GPIO5_IO16		0x146>,	/* SODIMM 55 */
1001			<MX8MM_IOMUXC_I2C2_SDA_GPIO5_IO17		0x146>;	/* SODIMM 53 */
1002	};
1003
1004	/* Verdin I2C_2_DSI */
1005	pinctrl_i2c3: i2c3grp {
1006		fsl,pins =
1007			<MX8MM_IOMUXC_I2C3_SCL_I2C3_SCL			0x40000146>,	/* SODIMM 95 */
1008			<MX8MM_IOMUXC_I2C3_SDA_I2C3_SDA			0x40000146>;	/* SODIMM 93 */
1009	};
1010
1011	pinctrl_i2c3_gpio: i2c3gpiogrp {
1012		fsl,pins =
1013			<MX8MM_IOMUXC_I2C3_SCL_GPIO5_IO18		0x146>,	/* SODIMM 95 */
1014			<MX8MM_IOMUXC_I2C3_SDA_GPIO5_IO19		0x146>;	/* SODIMM 93 */
1015	};
1016
1017	/* Verdin I2C_1 */
1018	pinctrl_i2c4: i2c4grp {
1019		fsl,pins =
1020			<MX8MM_IOMUXC_I2C4_SCL_I2C4_SCL			0x40000146>,	/* SODIMM 14 */
1021			<MX8MM_IOMUXC_I2C4_SDA_I2C4_SDA			0x40000146>;	/* SODIMM 12 */
1022	};
1023
1024	pinctrl_i2c4_gpio: i2c4gpiogrp {
1025		fsl,pins =
1026			<MX8MM_IOMUXC_I2C4_SCL_GPIO5_IO20		0x146>,	/* SODIMM 14 */
1027			<MX8MM_IOMUXC_I2C4_SDA_GPIO5_IO21		0x146>;	/* SODIMM 12 */
1028	};
1029
1030	/* Verdin I2S_2_BCLK (TOUCH_RESET#) */
1031	pinctrl_i2s_2_bclk_touch_reset: i2s2bclktouchresetgrp {
1032		fsl,pins =
1033			<MX8MM_IOMUXC_SAI5_RXD2_GPIO3_IO23		0x6>;	/* SODIMM 42 */
1034	};
1035
1036	/* Verdin I2S_2_D_OUT shared with SAI5 */
1037	pinctrl_i2s_2_d_out_dsi_1_bkl_en: i2s2doutdsi1bklengrp {
1038		fsl,pins =
1039			<MX8MM_IOMUXC_SAI5_RXD3_GPIO3_IO24		0x6>;	/* SODIMM 46 */
1040	};
1041
1042	pinctrl_pcie0: pcie0grp {
1043		fsl,pins =
1044			<MX8MM_IOMUXC_SAI5_RXFS_GPIO3_IO19		0x6>,	/* SODIMM 244 */
1045			/* PMIC_EN_PCIe_CLK, unused */
1046			<MX8MM_IOMUXC_SD2_RESET_B_GPIO2_IO19		0x6>;
1047	};
1048
1049	pinctrl_pmic: pmicirqgrp {
1050		fsl,pins =
1051			<MX8MM_IOMUXC_GPIO1_IO03_GPIO1_IO3		0x141>;	/* PMIC_INT# */
1052	};
1053
1054	/* Verdin PWM_3_DSI shared with GPIO1_IO1 */
1055	pinctrl_pwm_1: pwm1grp {
1056		fsl,pins =
1057			<MX8MM_IOMUXC_GPIO1_IO01_PWM1_OUT		0x6>;	/* SODIMM 19 */
1058	};
1059
1060	pinctrl_pwm_2: pwm2grp {
1061		fsl,pins =
1062			<MX8MM_IOMUXC_SPDIF_RX_PWM2_OUT			0x6>;	/* SODIMM 15 */
1063	};
1064
1065	pinctrl_pwm_3: pwm3grp {
1066		fsl,pins =
1067			<MX8MM_IOMUXC_SPDIF_TX_PWM3_OUT			0x6>;	/* SODIMM 16 */
1068	};
1069
1070	/* Verdin PWM_3_DSI (pulled-down as active-high) shared with PWM1_OUT */
1071	pinctrl_pwm_3_dsi_hpd_gpio: pwm3dsihpdgpiogrp {
1072		fsl,pins =
1073			<MX8MM_IOMUXC_GPIO1_IO01_GPIO1_IO1		0x106>;	/* SODIMM 19 */
1074	};
1075
1076	pinctrl_reg_eth: regethgrp {
1077		fsl,pins =
1078			<MX8MM_IOMUXC_SD2_WP_GPIO2_IO20			0x146>;	/* PMIC_EN_ETH */
1079	};
1080
1081	pinctrl_reg_usb1_en: regusb1engrp {
1082		fsl,pins =
1083			<MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12		0x106>;	/* SODIMM 155 */
1084	};
1085
1086	pinctrl_reg_usb2_en: regusb2engrp {
1087		fsl,pins =
1088			<MX8MM_IOMUXC_GPIO1_IO14_GPIO1_IO14		0x106>;	/* SODIMM 185 */
1089	};
1090
1091	pinctrl_sai2: sai2grp {
1092		fsl,pins =
1093			<MX8MM_IOMUXC_SAI2_MCLK_SAI2_MCLK		0x6>,	/* SODIMM 38 */
1094			<MX8MM_IOMUXC_SAI2_TXC_SAI2_TX_BCLK		0x6>,	/* SODIMM 30 */
1095			<MX8MM_IOMUXC_SAI2_TXFS_SAI2_TX_SYNC		0x6>,	/* SODIMM 32 */
1096			<MX8MM_IOMUXC_SAI2_RXD0_SAI2_RX_DATA0		0x6>,	/* SODIMM 36 */
1097			<MX8MM_IOMUXC_SAI2_TXD0_SAI2_TX_DATA0		0x6>;	/* SODIMM 34 */
1098	};
1099
1100	pinctrl_sai5: sai5grp {
1101		fsl,pins =
1102			<MX8MM_IOMUXC_SAI5_RXD0_SAI5_RX_DATA0		0x6>,	/* SODIMM 48 */
1103			<MX8MM_IOMUXC_SAI5_RXD1_SAI5_TX_SYNC		0x6>,	/* SODIMM 44 */
1104			<MX8MM_IOMUXC_SAI5_RXD2_SAI5_TX_BCLK		0x6>,	/* SODIMM 42 */
1105			<MX8MM_IOMUXC_SAI5_RXD3_SAI5_TX_DATA0		0x6>;	/* SODIMM 46 */
1106	};
1107
1108	/* control signal for optional ATTPM20P or SE050 */
1109	pinctrl_pmic_tpm_ena: pmictpmenagrp {
1110		fsl,pins =
1111			<MX8MM_IOMUXC_SAI1_TXD7_GPIO4_IO19		0x106>;	/* PMIC_TPM_ENA */
1112	};
1113
1114	pinctrl_tsp: tspgrp {
1115		fsl,pins =
1116			<MX8MM_IOMUXC_SAI1_RXD4_GPIO4_IO6		0x6>,	/* SODIMM 148 */
1117			<MX8MM_IOMUXC_SAI1_RXD5_GPIO4_IO7		0x6>,	/* SODIMM 152 */
1118			<MX8MM_IOMUXC_SAI1_RXD6_GPIO4_IO8		0x6>,	/* SODIMM 154 */
1119			<MX8MM_IOMUXC_SAI1_RXD7_GPIO4_IO9		0x146>,	/* SODIMM 174 */
1120			<MX8MM_IOMUXC_SAI1_TXD5_GPIO4_IO17		0x6>;	/* SODIMM 150 */
1121	};
1122
1123	pinctrl_uart1: uart1grp {
1124		fsl,pins =
1125			<MX8MM_IOMUXC_SAI2_RXC_UART1_DCE_RX		0x146>,	/* SODIMM 147 */
1126			<MX8MM_IOMUXC_SAI2_RXFS_UART1_DCE_TX		0x146>;	/* SODIMM 149 */
1127	};
1128
1129	pinctrl_uart2: uart2grp {
1130		fsl,pins =
1131			<MX8MM_IOMUXC_SAI3_RXC_UART2_DCE_CTS_B		0x146>,	/* SODIMM 133 */
1132			<MX8MM_IOMUXC_SAI3_RXD_UART2_DCE_RTS_B		0x146>,	/* SODIMM 135 */
1133			<MX8MM_IOMUXC_SAI3_TXC_UART2_DCE_TX		0x146>,	/* SODIMM 131 */
1134			<MX8MM_IOMUXC_SAI3_TXFS_UART2_DCE_RX		0x146>;	/* SODIMM 129 */
1135	};
1136
1137	pinctrl_uart3: uart3grp {
1138		fsl,pins =
1139			<MX8MM_IOMUXC_ECSPI1_MISO_UART3_DCE_CTS_B	0x146>,	/* SODIMM 141 */
1140			<MX8MM_IOMUXC_ECSPI1_MOSI_UART3_DCE_TX		0x146>,	/* SODIMM 139 */
1141			<MX8MM_IOMUXC_ECSPI1_SCLK_UART3_DCE_RX		0x146>,	/* SODIMM 137 */
1142			<MX8MM_IOMUXC_ECSPI1_SS0_UART3_DCE_RTS_B	0x146>;	/* SODIMM 143 */
1143	};
1144
1145	pinctrl_uart4: uart4grp {
1146		fsl,pins =
1147			<MX8MM_IOMUXC_UART4_RXD_UART4_DCE_RX		0x146>,	/* SODIMM 151 */
1148			<MX8MM_IOMUXC_UART4_TXD_UART4_DCE_TX		0x146>;	/* SODIMM 153 */
1149	};
1150
1151	pinctrl_usdhc1: usdhc1grp {
1152		fsl,pins =
1153			<MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK		0x190>,
1154			<MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD		0x1d0>,
1155			<MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0		0x1d0>,
1156			<MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1		0x1d0>,
1157			<MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2		0x1d0>,
1158			<MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3		0x1d0>,
1159			<MX8MM_IOMUXC_SD1_DATA4_USDHC1_DATA4		0x1d0>,
1160			<MX8MM_IOMUXC_SD1_DATA5_USDHC1_DATA5		0x1d0>,
1161			<MX8MM_IOMUXC_SD1_DATA6_USDHC1_DATA6		0x1d0>,
1162			<MX8MM_IOMUXC_SD1_DATA7_USDHC1_DATA7		0x1d0>,
1163			<MX8MM_IOMUXC_SD1_RESET_B_USDHC1_RESET_B	0x1d1>,
1164			<MX8MM_IOMUXC_SD1_STROBE_USDHC1_STROBE		0x190>;
1165	};
1166
1167	pinctrl_usdhc1_100mhz: usdhc1-100mhzgrp {
1168		fsl,pins =
1169			<MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK		0x194>,
1170			<MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD		0x1d4>,
1171			<MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0		0x1d4>,
1172			<MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1		0x1d4>,
1173			<MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2		0x1d4>,
1174			<MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3		0x1d4>,
1175			<MX8MM_IOMUXC_SD1_DATA4_USDHC1_DATA4		0x1d4>,
1176			<MX8MM_IOMUXC_SD1_DATA5_USDHC1_DATA5		0x1d4>,
1177			<MX8MM_IOMUXC_SD1_DATA6_USDHC1_DATA6		0x1d4>,
1178			<MX8MM_IOMUXC_SD1_DATA7_USDHC1_DATA7		0x1d4>,
1179			<MX8MM_IOMUXC_SD1_RESET_B_USDHC1_RESET_B	0x1d1>,
1180			<MX8MM_IOMUXC_SD1_STROBE_USDHC1_STROBE		0x194>;
1181	};
1182
1183	pinctrl_usdhc1_200mhz: usdhc1-200mhzgrp {
1184		fsl,pins =
1185			<MX8MM_IOMUXC_SD1_CLK_USDHC1_CLK		0x196>,
1186			<MX8MM_IOMUXC_SD1_CMD_USDHC1_CMD		0x1d6>,
1187			<MX8MM_IOMUXC_SD1_DATA0_USDHC1_DATA0		0x1d6>,
1188			<MX8MM_IOMUXC_SD1_DATA1_USDHC1_DATA1		0x1d6>,
1189			<MX8MM_IOMUXC_SD1_DATA2_USDHC1_DATA2		0x1d6>,
1190			<MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3		0x1d6>,
1191			<MX8MM_IOMUXC_SD1_DATA4_USDHC1_DATA4		0x1d6>,
1192			<MX8MM_IOMUXC_SD1_DATA5_USDHC1_DATA5		0x1d6>,
1193			<MX8MM_IOMUXC_SD1_DATA6_USDHC1_DATA6		0x1d6>,
1194			<MX8MM_IOMUXC_SD1_DATA7_USDHC1_DATA7		0x1d6>,
1195			<MX8MM_IOMUXC_SD1_RESET_B_USDHC1_RESET_B	0x1d1>,
1196			<MX8MM_IOMUXC_SD1_STROBE_USDHC1_STROBE		0x196>;
1197	};
1198
1199	pinctrl_usdhc2_cd: usdhc2cdgrp {
1200		fsl,pins =
1201			<MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12		0x6>;	/* SODIMM 84 */
1202	};
1203
1204	pinctrl_usdhc2_cd_sleep: usdhc2cdslpgrp {
1205		fsl,pins =
1206			<MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12		0x0>;	/* SODIMM 84 */
1207	};
1208
1209	pinctrl_usdhc2_pwr_en: usdhc2pwrengrp {
1210		fsl,pins =
1211			<MX8MM_IOMUXC_NAND_CLE_GPIO3_IO5		0x6>;	/* SODIMM 76 */
1212	};
1213
1214	/*
1215	 * Note: Due to ERR050080 we use discrete external on-module resistors pulling-up to the
1216	 * on-module +V3.3_1.8_SD (LDO5) rail and explicitly disable the internal pull-ups here.
1217	 */
1218	pinctrl_usdhc2: usdhc2grp {
1219		fsl,pins =
1220			<MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT		0x10>,
1221			<MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK		0x90>,	/* SODIMM 78 */
1222			<MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD		0x90>,	/* SODIMM 74 */
1223			<MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0		0x90>,	/* SODIMM 80 */
1224			<MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1		0x90>,	/* SODIMM 82 */
1225			<MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2		0x90>,	/* SODIMM 70 */
1226			<MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3		0x90>;	/* SODIMM 72 */
1227	};
1228
1229	pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp {
1230		fsl,pins =
1231			<MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT		0x10>,
1232			<MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK		0x94>,
1233			<MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD		0x94>,
1234			<MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0		0x94>,
1235			<MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1		0x94>,
1236			<MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2		0x94>,
1237			<MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3		0x94>;
1238	};
1239
1240	pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp {
1241		fsl,pins =
1242			<MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT		0x10>,
1243			<MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK		0x96>,
1244			<MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD		0x96>,
1245			<MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0		0x96>,
1246			<MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1		0x96>,
1247			<MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2		0x96>,
1248			<MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3		0x96>;
1249	};
1250
1251	/* Avoid backfeeding with removed card power */
1252	pinctrl_usdhc2_sleep: usdhc2slpgrp {
1253		fsl,pins =
1254			<MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT		0x0>,
1255			<MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK		0x0>,
1256			<MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD		0x0>,
1257			<MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0		0x0>,
1258			<MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1		0x0>,
1259			<MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2		0x0>,
1260			<MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3		0x0>;
1261	};
1262
1263	/*
1264	 * On-module Wi-Fi/BT or type specific SDHC interface
1265	 * (e.g. on X52 extension slot of Verdin Development Board)
1266	 */
1267	pinctrl_usdhc3: usdhc3grp {
1268		fsl,pins =
1269			<MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0		0x150>,
1270			<MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1		0x150>,
1271			<MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2		0x150>,
1272			<MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3		0x150>,
1273			<MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK		0x150>,
1274			<MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD		0x150>;
1275	};
1276
1277	pinctrl_usdhc3_100mhz: usdhc3-100mhzgrp {
1278		fsl,pins =
1279			<MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0		0x154>,
1280			<MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1		0x154>,
1281			<MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2		0x154>,
1282			<MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3		0x154>,
1283			<MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK		0x154>,
1284			<MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD		0x154>;
1285	};
1286
1287	pinctrl_usdhc3_200mhz: usdhc3-200mhzgrp {
1288		fsl,pins =
1289			<MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0		0x156>,
1290			<MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1		0x156>,
1291			<MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2		0x156>,
1292			<MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3		0x156>,
1293			<MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK		0x156>,
1294			<MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD		0x156>;
1295	};
1296
1297	pinctrl_wdog: wdoggrp {
1298		fsl,pins =
1299			<MX8MM_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B		0x166>;	/* PMIC_WDI */
1300	};
1301
1302	pinctrl_wifi_ctrl: wifictrlgrp {
1303		fsl,pins =
1304			<MX8MM_IOMUXC_NAND_READY_B_GPIO3_IO16		0x46>,	/* WIFI_WKUP_BT */
1305			<MX8MM_IOMUXC_SAI1_RXD7_GPIO4_IO9		0x146>,	/* WIFI_W_WKUP_HOST */
1306			<MX8MM_IOMUXC_SAI5_RXC_GPIO3_IO20		0x46>;	/* WIFI_WKUP_WLAN */
1307	};
1308
1309	pinctrl_wifi_i2s: bti2sgrp {
1310		fsl,pins =
1311			<MX8MM_IOMUXC_SAI1_RXD4_SAI6_TX_BCLK		0x6>,	/* WIFI_TX_BCLK */
1312			<MX8MM_IOMUXC_SAI1_RXD5_SAI6_TX_DATA0		0x6>,	/* WIFI_TX_DATA0 */
1313			<MX8MM_IOMUXC_SAI1_RXD6_SAI6_TX_SYNC		0x6>,	/* WIFI_TX_SYNC */
1314			<MX8MM_IOMUXC_SAI1_TXD5_SAI6_RX_DATA0		0x6>;	/* WIFI_RX_DATA0 */
1315	};
1316
1317	pinctrl_wifi_pwr_en: wifipwrengrp {
1318		fsl,pins =
1319			<MX8MM_IOMUXC_SAI5_MCLK_GPIO3_IO25		0x6>;	/* PMIC_EN_WIFI */
1320	};
1321};
1322