Debian Codegraph @

arch/arm64/boot/dts/freescale/imx8mn-venice-gw7902.dts

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