blob: 1ec91c5c6a49aed935a15b09d61f1bea5ece5785 [file] [log] [blame]
Tim Harvey5cc5e192022-02-18 15:19:33 -08001// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright 2022 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/phy/phy-imx8-pcie.h>
12
13#include "imx8mm.dtsi"
14
15/ {
16 model = "Gateworks Venice GW7903 i.MX8MM board";
17 compatible = "gw,imx8mm-gw7903", "fsl,imx8mm";
18
19 aliases {
20 ethernet0 = &fec1;
21 usb0 = &usbotg1;
22 };
23
24 chosen {
25 stdout-path = &uart2;
26 };
27
28 memory@40000000 {
29 device_type = "memory";
30 reg = <0x0 0x40000000 0 0x80000000>;
31 };
32
33 gpio-keys {
34 compatible = "gpio-keys";
35
Marcel Ziswiler6dd051a2022-11-07 22:22:41 +010036 key-user-pb {
Tim Harvey5cc5e192022-02-18 15:19:33 -080037 label = "user_pb";
38 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
39 linux,code = <BTN_0>;
40 };
41
Marcel Ziswiler6dd051a2022-11-07 22:22:41 +010042 key-user-pb1x {
Tim Harvey5cc5e192022-02-18 15:19:33 -080043 label = "user_pb1x";
44 linux,code = <BTN_1>;
45 interrupt-parent = <&gsc>;
46 interrupts = <0>;
47 };
48
49 key-erased {
50 label = "key_erased";
51 linux,code = <BTN_2>;
52 interrupt-parent = <&gsc>;
53 interrupts = <1>;
54 };
55
Marcel Ziswiler6dd051a2022-11-07 22:22:41 +010056 key-eeprom-wp {
Tim Harvey5cc5e192022-02-18 15:19:33 -080057 label = "eeprom_wp";
58 linux,code = <BTN_3>;
59 interrupt-parent = <&gsc>;
60 interrupts = <2>;
61 };
62
63 switch-hold {
64 label = "switch_hold";
65 linux,code = <BTN_5>;
66 interrupt-parent = <&gsc>;
67 interrupts = <7>;
68 };
69 };
70
71 led-controller {
72 compatible = "gpio-leds";
73 pinctrl-names = "default";
74 pinctrl-0 = <&pinctrl_gpio_leds>;
75
76 led-0 {
77 function = LED_FUNCTION_STATUS;
78 color = <LED_COLOR_ID_RED>;
79 label = "led01_red";
80 gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>;
81 default-state = "off";
82 };
83
84 led-1 {
85 function = LED_FUNCTION_STATUS;
86 color = <LED_COLOR_ID_GREEN>;
87 label = "led01_grn";
88 gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;
89 default-state = "off";
90 };
91
92 led-2 {
93 function = LED_FUNCTION_STATUS;
94 color = <LED_COLOR_ID_RED>;
95 label = "led02_red";
96 gpios = <&gpio5 2 GPIO_ACTIVE_HIGH>;
97 default-state = "off";
98 };
99
100 led-3 {
101 function = LED_FUNCTION_STATUS;
102 color = <LED_COLOR_ID_GREEN>;
103 label = "led02_grn";
104 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
105 default-state = "off";
106 };
107
108 led-4 {
109 function = LED_FUNCTION_STATUS;
110 color = <LED_COLOR_ID_RED>;
111 label = "led03_red";
112 gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
113 default-state = "off";
114 };
115
116 led-5 {
117 function = LED_FUNCTION_STATUS;
118 color = <LED_COLOR_ID_GREEN>;
119 label = "led03_grn";
120 gpios = <&gpio5 3 GPIO_ACTIVE_HIGH>;
121 default-state = "off";
122 };
123
124 led-6 {
125 function = LED_FUNCTION_STATUS;
126 color = <LED_COLOR_ID_RED>;
127 label = "led04_red";
128 gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;
129 default-state = "off";
130 };
131
132 led-7 {
133 function = LED_FUNCTION_STATUS;
134 color = <LED_COLOR_ID_GREEN>;
135 label = "led04_grn";
136 gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>;
137 default-state = "off";
138 };
139
140 led-8 {
141 function = LED_FUNCTION_STATUS;
142 color = <LED_COLOR_ID_RED>;
143 label = "led05_red";
144 gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
145 default-state = "off";
146 };
147
148 led-9 {
149 function = LED_FUNCTION_STATUS;
150 color = <LED_COLOR_ID_GREEN>;
151 label = "led05_grn";
152 gpios = <&gpio4 31 GPIO_ACTIVE_HIGH>;
153 default-state = "off";
154 };
155
156 led-a {
157 function = LED_FUNCTION_STATUS;
158 color = <LED_COLOR_ID_RED>;
159 label = "led06_red";
160 gpios = <&gpio5 4 GPIO_ACTIVE_HIGH>;
161 default-state = "off";
162 };
163
164 led-b {
165 function = LED_FUNCTION_STATUS;
166 color = <LED_COLOR_ID_GREEN>;
167 label = "led06_grn";
168 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
169 default-state = "off";
170 };
171 };
172
173 pcie0_refclk: pcie0-refclk {
174 compatible = "fixed-clock";
175 #clock-cells = <0>;
176 clock-frequency = <100000000>;
177 };
178
179 reg_3p3v: regulator-3p3v {
180 compatible = "regulator-fixed";
181 regulator-name = "3P3V";
182 regulator-min-microvolt = <3300000>;
183 regulator-max-microvolt = <3300000>;
184 regulator-always-on;
185 };
186};
187
188&A53_0 {
189 cpu-supply = <&buck2>;
190};
191
192&A53_1 {
193 cpu-supply = <&buck2>;
194};
195
196&A53_2 {
197 cpu-supply = <&buck2>;
198};
199
200&A53_3 {
201 cpu-supply = <&buck2>;
202};
203
204&ddrc {
205 operating-points-v2 = <&ddrc_opp_table>;
206
207 ddrc_opp_table: opp-table {
208 compatible = "operating-points-v2";
209
210 opp-25M {
211 opp-hz = /bits/ 64 <25000000>;
212 };
213
214 opp-100M {
215 opp-hz = /bits/ 64 <100000000>;
216 };
217
218 opp-750M {
219 opp-hz = /bits/ 64 <750000000>;
220 };
221 };
222};
223
224&fec1 {
225 pinctrl-names = "default";
226 pinctrl-0 = <&pinctrl_fec1>;
227 phy-mode = "rgmii-id";
228 phy-handle = <&ethphy0>;
229 local-mac-address = [00 00 00 00 00 00];
230 status = "okay";
231
232 mdio {
233 #address-cells = <1>;
234 #size-cells = <0>;
235
236 ethphy0: ethernet-phy@0 {
237 compatible = "ethernet-phy-ieee802.3-c22";
238 reg = <0>;
239 rx-internal-delay-ps = <2000>;
240 tx-internal-delay-ps = <2500>;
241 };
242 };
243};
244
245&gpio1 {
246 gpio-line-names = "", "", "", "", "", "", "", "",
247 "", "", "rs422_en#", "rs485_en#", "rs232_en#", "", "", "",
248 "", "", "", "", "", "", "", "",
249 "", "", "", "", "", "", "", "";
250};
251
252&gpio2 {
Tim Harvey28debca2022-09-09 15:58:42 -0700253 gpio-line-names = "dig2_in", "dig2_out#", "dig2_ctl", "", "", "", "dig1_ctl", "",
Tim Harvey5cc5e192022-02-18 15:19:33 -0800254 "dig1_out#", "dig1_in", "", "", "", "", "", "",
255 "", "", "", "", "", "", "", "",
256 "", "", "", "", "", "", "", "";
257};
258
259&gpio5 {
260 gpio-line-names = "", "", "", "", "", "", "", "sim1_det#",
261 "sim2_det#", "sim2_sel", "", "", "pci_wdis#", "", "", "",
262 "", "", "", "", "", "", "", "",
263 "", "", "", "", "", "", "", "";
264};
265
266&i2c1 {
267 clock-frequency = <100000>;
Tim Harvey1b683fd2022-11-11 08:03:06 -0800268 pinctrl-names = "default", "gpio";
Tim Harvey5cc5e192022-02-18 15:19:33 -0800269 pinctrl-0 = <&pinctrl_i2c1>;
Tim Harvey1b683fd2022-11-11 08:03:06 -0800270 pinctrl-1 = <&pinctrl_i2c1_gpio>;
271 scl-gpios = <&gpio5 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
272 sda-gpios = <&gpio5 15 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Tim Harvey5cc5e192022-02-18 15:19:33 -0800273 status = "okay";
274
275 gsc: gsc@20 {
276 compatible = "gw,gsc";
277 reg = <0x20>;
278 pinctrl-0 = <&pinctrl_gsc>;
279 interrupt-parent = <&gpio4>;
280 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
281 interrupt-controller;
282 #interrupt-cells = <1>;
283
284 adc {
285 compatible = "gw,gsc-adc";
286 #address-cells = <1>;
287 #size-cells = <0>;
288
289 channel@6 {
290 gw,mode = <0>;
291 reg = <0x06>;
292 label = "temp";
293 };
294
295 channel@8 {
296 gw,mode = <1>;
297 reg = <0x08>;
298 label = "vdd_bat";
299 };
300
301 channel@82 {
302 gw,mode = <2>;
303 reg = <0x82>;
304 label = "vin";
305 gw,voltage-divider-ohms = <22100 1000>;
306 gw,voltage-offset-microvolt = <700000>;
307 };
308
309 channel@84 {
310 gw,mode = <2>;
311 reg = <0x84>;
312 label = "vdd_5p0";
313 gw,voltage-divider-ohms = <10000 10000>;
314 };
315
316 channel@86 {
317 gw,mode = <2>;
318 reg = <0x86>;
319 label = "vdd_3p3";
320 gw,voltage-divider-ohms = <10000 10000>;
321 };
322
323 channel@88 {
324 gw,mode = <2>;
325 reg = <0x88>;
326 label = "vdd_0p9";
327 };
328
329 channel@8c {
330 gw,mode = <2>;
331 reg = <0x8c>;
332 label = "vdd_soc";
333 };
334
335 channel@8e {
336 gw,mode = <2>;
337 reg = <0x8e>;
338 label = "vdd_arm";
339 };
340
341 channel@90 {
342 gw,mode = <2>;
343 reg = <0x90>;
344 label = "vdd_1p8";
345 };
346
347 channel@92 {
348 gw,mode = <2>;
349 reg = <0x92>;
350 label = "vdd_dram";
351 };
352
353 channel@a2 {
354 gw,mode = <2>;
355 reg = <0xa2>;
356 label = "vdd_gsc";
357 gw,voltage-divider-ohms = <10000 10000>;
358 };
359 };
360 };
361
362 gpio: gpio@23 {
363 compatible = "nxp,pca9555";
364 reg = <0x23>;
365 gpio-controller;
366 #gpio-cells = <2>;
367 interrupt-parent = <&gsc>;
368 interrupts = <4>;
369 };
370
371 eeprom@50 {
372 compatible = "atmel,24c02";
373 reg = <0x50>;
374 pagesize = <16>;
375 };
376
377 eeprom@51 {
378 compatible = "atmel,24c02";
379 reg = <0x51>;
380 pagesize = <16>;
381 };
382
383 eeprom@52 {
384 compatible = "atmel,24c02";
385 reg = <0x52>;
386 pagesize = <16>;
387 };
388
389 eeprom@53 {
390 compatible = "atmel,24c02";
391 reg = <0x53>;
392 pagesize = <16>;
393 };
394
395 rtc@68 {
396 compatible = "dallas,ds1672";
397 reg = <0x68>;
398 };
399};
400
401&i2c2 {
402 clock-frequency = <400000>;
Tim Harvey1b683fd2022-11-11 08:03:06 -0800403 pinctrl-names = "default", "gpio";
Tim Harvey5cc5e192022-02-18 15:19:33 -0800404 pinctrl-0 = <&pinctrl_i2c2>;
Tim Harvey1b683fd2022-11-11 08:03:06 -0800405 pinctrl-1 = <&pinctrl_i2c2_gpio>;
406 scl-gpios = <&gpio5 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
407 sda-gpios = <&gpio5 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Tim Harvey5cc5e192022-02-18 15:19:33 -0800408 status = "okay";
409
410 pmic@4b {
411 compatible = "rohm,bd71847";
412 reg = <0x4b>;
413 pinctrl-names = "default";
414 pinctrl-0 = <&pinctrl_pmic>;
415 interrupt-parent = <&gpio3>;
416 interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
417 rohm,reset-snvs-powered;
418 #clock-cells = <0>;
419 clocks = <&osc_32k 0>;
420 clock-output-names = "clk-32k-out";
421
422 regulators {
423 /* vdd_soc: 0.805-0.900V (typ=0.8V) */
424 BUCK1 {
425 regulator-name = "buck1";
426 regulator-min-microvolt = <700000>;
427 regulator-max-microvolt = <1300000>;
428 regulator-boot-on;
429 regulator-always-on;
430 regulator-ramp-delay = <1250>;
431 };
432
433 /* vdd_arm: 0.805-1.0V (typ=0.9V) */
434 buck2: BUCK2 {
435 regulator-name = "buck2";
436 regulator-min-microvolt = <700000>;
437 regulator-max-microvolt = <1300000>;
438 regulator-boot-on;
439 regulator-always-on;
440 regulator-ramp-delay = <1250>;
441 rohm,dvs-run-voltage = <1000000>;
442 rohm,dvs-idle-voltage = <900000>;
443 };
444
445 /* vdd_0p9: 0.805-1.0V (typ=0.9V) */
446 BUCK3 {
447 regulator-name = "buck3";
448 regulator-min-microvolt = <700000>;
449 regulator-max-microvolt = <1350000>;
450 regulator-boot-on;
451 regulator-always-on;
452 };
453
454 /* vdd_3p3 */
455 BUCK4 {
456 regulator-name = "buck4";
457 regulator-min-microvolt = <3000000>;
458 regulator-max-microvolt = <3300000>;
459 regulator-boot-on;
460 regulator-always-on;
461 };
462
463 /* vdd_1p8 */
464 BUCK5 {
465 regulator-name = "buck5";
466 regulator-min-microvolt = <1605000>;
467 regulator-max-microvolt = <1995000>;
468 regulator-boot-on;
469 regulator-always-on;
470 };
471
472 /* vdd_dram */
473 BUCK6 {
474 regulator-name = "buck6";
475 regulator-min-microvolt = <800000>;
476 regulator-max-microvolt = <1400000>;
477 regulator-boot-on;
478 regulator-always-on;
479 };
480
481 /* nvcc_snvs_1p8 */
482 LDO1 {
483 regulator-name = "ldo1";
484 regulator-min-microvolt = <1600000>;
485 regulator-max-microvolt = <1900000>;
486 regulator-boot-on;
487 regulator-always-on;
488 };
489
490 /* vdd_snvs_0p8 */
491 LDO2 {
492 regulator-name = "ldo2";
493 regulator-min-microvolt = <800000>;
494 regulator-max-microvolt = <900000>;
495 regulator-boot-on;
496 regulator-always-on;
497 };
498
499 /* vdda_1p8 */
500 LDO3 {
501 regulator-name = "ldo3";
502 regulator-min-microvolt = <1800000>;
503 regulator-max-microvolt = <3300000>;
504 regulator-boot-on;
505 regulator-always-on;
506 };
507
508 LDO4 {
509 regulator-name = "ldo4";
510 regulator-min-microvolt = <900000>;
511 regulator-max-microvolt = <1800000>;
512 regulator-boot-on;
513 regulator-always-on;
514 };
515
516 LDO6 {
517 regulator-name = "ldo6";
518 regulator-min-microvolt = <900000>;
519 regulator-max-microvolt = <1800000>;
520 regulator-boot-on;
521 regulator-always-on;
522 };
523 };
524 };
525};
526
527&i2c3 {
528 clock-frequency = <400000>;
Tim Harvey1b683fd2022-11-11 08:03:06 -0800529 pinctrl-names = "default", "gpio";
Tim Harvey5cc5e192022-02-18 15:19:33 -0800530 pinctrl-0 = <&pinctrl_i2c3>;
Tim Harvey1b683fd2022-11-11 08:03:06 -0800531 pinctrl-1 = <&pinctrl_i2c3_gpio>;
532 scl-gpios = <&gpio5 18 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
533 sda-gpios = <&gpio5 19 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
Tim Harvey5cc5e192022-02-18 15:19:33 -0800534 status = "okay";
535
536 accelerometer@19 {
537 pinctrl-names = "default";
538 pinctrl-0 = <&pinctrl_accel>;
539 compatible = "st,lis2de12";
540 reg = <0x19>;
541 st,drdy-int-pin = <1>;
542 interrupt-parent = <&gpio1>;
543 interrupts = <15 IRQ_TYPE_LEVEL_LOW>;
544 interrupt-names = "INT1";
545 };
546};
547
548&pcie_phy {
549 fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>;
550 fsl,clkreq-unsupported;
551 clocks = <&pcie0_refclk>;
Marcel Ziswilerca453f22022-07-21 15:27:40 +0200552 clock-names = "ref";
Tim Harvey5cc5e192022-02-18 15:19:33 -0800553 status = "okay";
554};
555
556&pcie0 {
557 pinctrl-names = "default";
558 pinctrl-0 = <&pinctrl_pcie0>;
559 reset-gpio = <&gpio5 11 GPIO_ACTIVE_LOW>;
560 clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>, <&clk IMX8MM_CLK_PCIE1_AUX>,
561 <&pcie0_refclk>;
562 clock-names = "pcie", "pcie_aux", "pcie_bus";
563 assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>,
564 <&clk IMX8MM_CLK_PCIE1_CTRL>;
565 assigned-clock-rates = <10000000>, <250000000>;
566 assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_50M>,
567 <&clk IMX8MM_SYS_PLL2_250M>;
568 status = "okay";
569};
570
Marcel Ziswilerca453f22022-07-21 15:27:40 +0200571&pgc_mipi {
572 status = "disabled";
573};
574
Tim Harvey5cc5e192022-02-18 15:19:33 -0800575/* off-board RS232/RS485/RS422 */
576&uart1 {
577 pinctrl-names = "default";
578 pinctrl-0 = <&pinctrl_uart1>;
579 cts-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
580 rts-gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
581 dtr-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
582 dsr-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
583 dcd-gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
584 uart-has-rtscts;
585 status = "okay";
586};
587
588/* console */
589&uart2 {
590 pinctrl-names = "default";
591 pinctrl-0 = <&pinctrl_uart2>;
592 status = "okay";
593};
594
595&usbotg1 {
596 dr_mode = "host";
597 disable-over-current;
598 status = "okay";
599};
600
601/* microSD */
602&usdhc2 {
603 pinctrl-names = "default", "state_100mhz", "state_200mhz";
604 pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
605 pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
606 pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
607 cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
608 bus-width = <4>;
609 vmmc-supply = <&reg_3p3v>;
610 status = "okay";
611};
612
613/* eMMC */
614&usdhc3 {
615 pinctrl-names = "default", "state_100mhz", "state_200mhz";
616 pinctrl-0 = <&pinctrl_usdhc3>;
617 pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
618 pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
619 bus-width = <8>;
620 non-removable;
621 status = "okay";
622};
623
624&wdog1 {
625 pinctrl-names = "default";
626 pinctrl-0 = <&pinctrl_wdog>;
627 fsl,ext-reset-output;
628 status = "okay";
629};
630
631&iomuxc {
632 pinctrl-names = "default";
633 pinctrl-0 = <&pinctrl_hog>;
634
635 pinctrl_hog: hoggrp {
636 fsl,pins = <
637 MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10 0x40000041 /* RS422# */
638 MX8MM_IOMUXC_GPIO1_IO11_GPIO1_IO11 0x40000041 /* RS485# */
639 MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x40000041 /* RS232# */
640 MX8MM_IOMUXC_SD1_DATA7_GPIO2_IO9 0x40000041 /* DIG1_IN */
641 MX8MM_IOMUXC_SD1_DATA6_GPIO2_IO8 0x40000041 /* DIG1_OUT */
Tim Harvey28debca2022-09-09 15:58:42 -0700642 MX8MM_IOMUXC_SD1_DATA4_GPIO2_IO6 0x40000041 /* DIG1_CTL */
643 MX8MM_IOMUXC_SD1_DATA0_GPIO2_IO2 0x40000041 /* DIG2_CTL */
Tim Harvey5cc5e192022-02-18 15:19:33 -0800644 MX8MM_IOMUXC_SD1_CLK_GPIO2_IO0 0x40000041 /* DIG2_IN */
645 MX8MM_IOMUXC_SD1_CMD_GPIO2_IO1 0x40000041 /* DIG2_OUT */
646 MX8MM_IOMUXC_ECSPI1_MOSI_GPIO5_IO7 0x40000041 /* SIM1DET# */
647 MX8MM_IOMUXC_ECSPI1_MISO_GPIO5_IO8 0x40000041 /* SIM2DET# */
648 MX8MM_IOMUXC_ECSPI1_SS0_GPIO5_IO9 0x40000041 /* SIM2SEL */
649 MX8MM_IOMUXC_ECSPI2_MISO_GPIO5_IO12 0x40000041 /* PCI_WDIS# */
650 >;
651 };
652
653 pinctrl_accel: accelgrp {
654 fsl,pins = <
655 MX8MM_IOMUXC_GPIO1_IO15_GPIO1_IO15 0x159
656 >;
657 };
658
659 pinctrl_fec1: fec1grp {
660 fsl,pins = <
661 MX8MM_IOMUXC_ENET_MDC_ENET1_MDC 0x3
662 MX8MM_IOMUXC_ENET_MDIO_ENET1_MDIO 0x3
663 MX8MM_IOMUXC_ENET_TD3_ENET1_RGMII_TD3 0x1f
664 MX8MM_IOMUXC_ENET_TD2_ENET1_RGMII_TD2 0x1f
665 MX8MM_IOMUXC_ENET_TD1_ENET1_RGMII_TD1 0x1f
666 MX8MM_IOMUXC_ENET_TD0_ENET1_RGMII_TD0 0x1f
667 MX8MM_IOMUXC_ENET_RD3_ENET1_RGMII_RD3 0x91
668 MX8MM_IOMUXC_ENET_RD2_ENET1_RGMII_RD2 0x91
669 MX8MM_IOMUXC_ENET_RD1_ENET1_RGMII_RD1 0x91
670 MX8MM_IOMUXC_ENET_RD0_ENET1_RGMII_RD0 0x91
671 MX8MM_IOMUXC_ENET_TXC_ENET1_RGMII_TXC 0x1f
672 MX8MM_IOMUXC_ENET_RXC_ENET1_RGMII_RXC 0x91
673 MX8MM_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x91
674 MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f
675 MX8MM_IOMUXC_SAI2_TXFS_GPIO4_IO24 0x19 /* IRQ# */
676 MX8MM_IOMUXC_SAI2_TXC_GPIO4_IO25 0x19 /* RST# */
677 >;
678 };
679
680 pinctrl_gsc: gscgrp {
681 fsl,pins = <
682 MX8MM_IOMUXC_SAI2_TXD0_GPIO4_IO26 0x159
683 >;
684 };
685
686 pinctrl_i2c1: i2c1grp {
687 fsl,pins = <
688 MX8MM_IOMUXC_I2C1_SCL_I2C1_SCL 0x400001c3
689 MX8MM_IOMUXC_I2C1_SDA_I2C1_SDA 0x400001c3
690 >;
691 };
692
Tim Harvey1b683fd2022-11-11 08:03:06 -0800693 pinctrl_i2c1_gpio: i2c1gpiogrp {
694 fsl,pins = <
695 MX8MM_IOMUXC_I2C1_SCL_GPIO5_IO14 0x400001c3
696 MX8MM_IOMUXC_I2C1_SDA_GPIO5_IO15 0x400001c3
697 >;
698 };
699
Tim Harvey5cc5e192022-02-18 15:19:33 -0800700 pinctrl_i2c2: i2c2grp {
701 fsl,pins = <
702 MX8MM_IOMUXC_I2C2_SCL_I2C2_SCL 0x400001c3
703 MX8MM_IOMUXC_I2C2_SDA_I2C2_SDA 0x400001c3
704 >;
705 };
706
Tim Harvey1b683fd2022-11-11 08:03:06 -0800707 pinctrl_i2c2_gpio: i2c2gpiogrp {
708 fsl,pins = <
709 MX8MM_IOMUXC_I2C2_SCL_GPIO5_IO16 0x400001c3
710 MX8MM_IOMUXC_I2C2_SDA_GPIO5_IO17 0x400001c3
711 >;
712 };
713
Tim Harvey5cc5e192022-02-18 15:19:33 -0800714 pinctrl_i2c3: i2c3grp {
715 fsl,pins = <
716 MX8MM_IOMUXC_I2C3_SCL_I2C3_SCL 0x400001c3
717 MX8MM_IOMUXC_I2C3_SDA_I2C3_SDA 0x400001c3
718 >;
719 };
720
Tim Harvey1b683fd2022-11-11 08:03:06 -0800721 pinctrl_i2c3_gpio: i2c3gpiogrp {
722 fsl,pins = <
723 MX8MM_IOMUXC_I2C3_SCL_GPIO5_IO18 0x400001c3
724 MX8MM_IOMUXC_I2C3_SDA_GPIO5_IO19 0x400001c3
725 >;
726 };
727
Tim Harvey5cc5e192022-02-18 15:19:33 -0800728 pinctrl_gpio_leds: gpioledgrp {
729 fsl,pins = <
730 MX8MM_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5 0x19
731 MX8MM_IOMUXC_SAI3_RXD_GPIO4_IO30 0x19
732 MX8MM_IOMUXC_SAI3_MCLK_GPIO5_IO2 0x19
733 MX8MM_IOMUXC_GPIO1_IO14_GPIO1_IO14 0x19
734 MX8MM_IOMUXC_GPIO1_IO09_GPIO1_IO9 0x19
735 MX8MM_IOMUXC_SPDIF_TX_GPIO5_IO3 0x19
736 MX8MM_IOMUXC_SAI3_RXC_GPIO4_IO29 0x19
737 MX8MM_IOMUXC_SAI3_RXFS_GPIO4_IO28 0x19
738 MX8MM_IOMUXC_GPIO1_IO13_GPIO1_IO13 0x19
739 MX8MM_IOMUXC_SAI3_TXFS_GPIO4_IO31 0x19
740 MX8MM_IOMUXC_SPDIF_RX_GPIO5_IO4 0x19
741 MX8MM_IOMUXC_GPIO1_IO08_GPIO1_IO8 0x19
742 >;
743 };
744
745 pinctrl_pcie0: pciegrp {
746 fsl,pins = <
747 MX8MM_IOMUXC_ECSPI2_MOSI_GPIO5_IO11 0x41
748 >;
749 };
750
751 pinctrl_pmic: pmicgrp {
752 fsl,pins = <
753 MX8MM_IOMUXC_NAND_DATA02_GPIO3_IO8 0x41
754 >;
755 };
756
757 pinctrl_uart1: uart1grp {
758 fsl,pins = <
759 MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140
760 MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140
761 MX8MM_IOMUXC_GPIO1_IO00_GPIO1_IO0 0x140
762 MX8MM_IOMUXC_GPIO1_IO01_GPIO1_IO1 0x140
763 MX8MM_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x140
764 MX8MM_IOMUXC_GPIO1_IO05_GPIO1_IO5 0x140
765 MX8MM_IOMUXC_SAI5_RXD3_GPIO3_IO24 0x140
766 >;
767 };
768
769 pinctrl_uart2: uart2grp {
770 fsl,pins = <
771 MX8MM_IOMUXC_UART2_RXD_UART2_DCE_RX 0x140
772 MX8MM_IOMUXC_UART2_TXD_UART2_DCE_TX 0x140
773 >;
774 };
775
776 pinctrl_usdhc2: usdhc2grp {
777 fsl,pins = <
778 MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x190
779 MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d0
780 MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d0
781 MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d0
782 MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d0
783 MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d0
784 >;
785 };
786
787 pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp {
788 fsl,pins = <
789 MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x194
790 MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d4
791 MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d4
792 MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d4
793 MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d4
794 MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d4
795 >;
796 };
797
798 pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp {
799 fsl,pins = <
800 MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x196
801 MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d6
802 MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d6
803 MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d6
804 MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d6
805 MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d6
806 >;
807 };
808
809 pinctrl_usdhc2_gpio: usdhc2-gpiogrp {
810 fsl,pins = <
811 MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12 0x1c4
812 MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0
813 >;
814 };
815
816 pinctrl_usdhc3: usdhc3grp {
817 fsl,pins = <
818 MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x190
819 MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d0
820 MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d0
821 MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d0
822 MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d0
823 MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d0
824 MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d0
825 MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d0
826 MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d0
827 MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d0
828 MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x190
829 >;
830 };
831
832 pinctrl_usdhc3_100mhz: usdhc3-100mhzgrp {
833 fsl,pins = <
834 MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x194
835 MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d4
836 MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d4
837 MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d4
838 MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d4
839 MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d4
840 MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d4
841 MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d4
842 MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d4
843 MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d4
844 MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x194
845 >;
846 };
847
848 pinctrl_usdhc3_200mhz: usdhc3-200mhzgrp {
849 fsl,pins = <
850 MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x196
851 MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d6
852 MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d6
853 MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d6
854 MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d6
855 MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d6
856 MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d6
857 MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d6
858 MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d6
859 MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d6
860 MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x196
861 >;
862 };
863
864 pinctrl_wdog: wdoggrp {
865 fsl,pins = <
866 MX8MM_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0xc6
867 >;
868 };
869};