Debian Codegraph @

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