blob: 1a74ac3ee4ee90355ebc328fd628c53d264aad30 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright 2019~2020, 2022 NXP
4 */
5
6/dts-v1/;
7
8#include "imx8dxl.dtsi"
9
10/ {
11 model = "Freescale i.MX8DXL EVK";
12 compatible = "fsl,imx8dxl-evk", "fsl,imx8dxl";
13
14 aliases {
15 i2c2 = &i2c2;
16 mmc0 = &usdhc1;
17 mmc1 = &usdhc2;
18 serial0 = &lpuart0;
Tom Rini762f85b2024-07-20 11:15:10 -060019 serial1 = &lpuart1;
20 serial6 = &cm40_lpuart;
Tom Rini53633a82024-02-29 12:33:36 -050021 };
22
23 chosen {
24 stdout-path = &lpuart0;
25 };
26
Tom Rini6b642ac2024-10-01 12:20:28 -060027 imx8dxl-cm4 {
28 compatible = "fsl,imx8qxp-cm4";
29 clocks = <&clk_dummy>;
30 mbox-names = "tx", "rx", "rxdb";
31 mboxes = <&lsio_mu5 0 1 &lsio_mu5 1 1 &lsio_mu5 3 1>;
32 memory-region = <&vdevbuffer>, <&vdev0vring0>, <&vdev0vring1>,
33 <&vdev1vring0>, <&vdev1vring1>, <&rsc_table>;
34 power-domains = <&pd IMX_SC_R_M4_0_PID0>, <&pd IMX_SC_R_M4_0_MU_1A>;
35 fsl,resource-id = <IMX_SC_R_M4_0_PID0>;
36 fsl,entry-address = <0x34fe0000>;
37 };
38
39
Tom Rini53633a82024-02-29 12:33:36 -050040 memory@80000000 {
41 device_type = "memory";
42 reg = <0x00000000 0x80000000 0 0x40000000>;
43 };
44
45 reserved-memory {
46 #address-cells = <2>;
47 #size-cells = <2>;
48 ranges;
49
50 /*
51 * Memory reserved for optee usage. Please do not use.
52 * This will be automatically added to dtb if OP-TEE is installed.
53 * optee@96000000 {
54 * reg = <0 0x96000000 0 0x2000000>;
55 * no-map;
56 * };
57 */
58
59 /* global autoconfigured region for contiguous allocations */
60 linux,cma {
61 compatible = "shared-dma-pool";
62 reusable;
63 size = <0 0x14000000>;
64 alloc-ranges = <0 0x98000000 0 0x14000000>;
65 linux,cma-default;
66 };
Tom Rini6b642ac2024-10-01 12:20:28 -060067
68 vdev0vring0: memory0@90000000 {
69 reg = <0 0x90000000 0 0x8000>;
70 no-map;
71 };
72
73 vdev0vring1: memory@90008000 {
74 reg = <0 0x90008000 0 0x8000>;
75 no-map;
76 };
77
78 vdev1vring0: memory@90010000 {
79 reg = <0 0x90010000 0 0x8000>;
80 no-map;
81 };
82
83 vdev1vring1: memory@90018000 {
84 reg = <0 0x90018000 0 0x8000>;
85 no-map;
86 };
87
88 rsc_table: memory-rsc-table@900ff000 {
89 reg = <0 0x900ff000 0 0x1000>;
90 no-map;
91 };
92
93 vdevbuffer: memory-vdevbuffer@90400000 {
94 compatible = "shared-dma-pool";
95 reg = <0 0x90400000 0 0x100000>;
96 no-map;
97 };
Tom Rini53633a82024-02-29 12:33:36 -050098 };
99
Tom Rini762f85b2024-07-20 11:15:10 -0600100 m2_uart1_sel: regulator-m2uart1sel {
101 compatible = "regulator-fixed";
102 regulator-min-microvolt = <3300000>;
103 regulator-max-microvolt = <3300000>;
104 regulator-name = "m2_uart1_sel";
105 gpio = <&pca6416_1 6 GPIO_ACTIVE_HIGH>;
106 enable-active-high;
107 regulator-always-on;
108 };
109
Tom Rini53633a82024-02-29 12:33:36 -0500110 mux3_en: regulator-0 {
111 compatible = "regulator-fixed";
112 regulator-min-microvolt = <3300000>;
113 regulator-max-microvolt = <3300000>;
114 regulator-name = "mux3_en";
115 gpio = <&pca6416_2 8 GPIO_ACTIVE_LOW>;
116 regulator-always-on;
117 };
118
119 reg_fec1_sel: regulator-1 {
120 compatible = "regulator-fixed";
121 regulator-name = "fec1_supply";
122 regulator-min-microvolt = <3300000>;
123 regulator-max-microvolt = <3300000>;
124 gpio = <&pca6416_1 11 GPIO_ACTIVE_LOW>;
125 regulator-always-on;
126 status = "disabled";
127 };
128
129 reg_fec1_io: regulator-2 {
130 compatible = "regulator-fixed";
131 regulator-name = "fec1_io_supply";
132 regulator-min-microvolt = <1800000>;
133 regulator-max-microvolt = <1800000>;
134 gpio = <&max7322 0 GPIO_ACTIVE_HIGH>;
135 enable-active-high;
136 regulator-always-on;
137 status = "disabled";
138 };
139
Tom Rini6bb92fc2024-05-20 09:54:58 -0600140 reg_can0_stby: regulator-4 {
141 compatible = "regulator-fixed";
142 regulator-name = "can0-stby";
143 regulator-min-microvolt = <3300000>;
144 regulator-max-microvolt = <3300000>;
145 gpio = <&pca6416_3 0 GPIO_ACTIVE_HIGH>;
146 enable-active-high;
147 };
148
149 reg_can1_stby: regulator-5 {
150 compatible = "regulator-fixed";
151 regulator-name = "can1-stby";
152 regulator-min-microvolt = <3300000>;
153 regulator-max-microvolt = <3300000>;
154 gpio = <&pca6416_3 1 GPIO_ACTIVE_HIGH>;
155 enable-active-high;
156 };
157
Tom Rini53633a82024-02-29 12:33:36 -0500158 reg_usdhc2_vmmc: regulator-3 {
159 compatible = "regulator-fixed";
160 regulator-name = "SD1_SPWR";
161 regulator-min-microvolt = <3000000>;
162 regulator-max-microvolt = <3000000>;
163 gpio = <&lsio_gpio4 30 GPIO_ACTIVE_HIGH>;
164 enable-active-high;
165 off-on-delay-us = <3480>;
166 };
167
168 reg_vref_1v8: regulator-adc-vref {
169 compatible = "regulator-fixed";
170 regulator-name = "vref_1v8";
171 regulator-min-microvolt = <1800000>;
172 regulator-max-microvolt = <1800000>;
173 };
174
175 mii_select: regulator-4 {
176 compatible = "regulator-fixed";
177 regulator-name = "mii-select";
178 regulator-min-microvolt = <3300000>;
179 regulator-max-microvolt = <3300000>;
180 gpio = <&scu_gpio 6 GPIO_ACTIVE_HIGH>;
181 enable-active-high;
182 regulator-always-on;
183 };
Tom Rini6b642ac2024-10-01 12:20:28 -0600184
185 bt_sco_codec: audio-codec-bt {
186 compatible = "linux,bt-sco";
187 #sound-dai-cells = <1>;
188 };
189
190 sound-bt-sco {
191 compatible = "simple-audio-card";
192 simple-audio-card,name = "bt-sco-audio";
193 simple-audio-card,format = "dsp_a";
194 simple-audio-card,bitclock-inversion;
195 simple-audio-card,frame-master = <&btcpu>;
196 simple-audio-card,bitclock-master = <&btcpu>;
197
198 btcpu: simple-audio-card,cpu {
199 sound-dai = <&sai0>;
200 dai-tdm-slot-num = <2>;
201 dai-tdm-slot-width = <16>;
202 };
203
204 simple-audio-card,codec {
205 sound-dai = <&bt_sco_codec 1>;
206 };
207 };
208
209 sound-wm8960-1 {
210 compatible = "fsl,imx-audio-wm8960";
211 model = "wm8960-audio";
212 audio-cpu = <&sai1>;
213 audio-codec = <&wm8960_1>;
214 audio-asrc = <&asrc0>;
215 audio-routing = "Headphone Jack", "HP_L",
216 "Headphone Jack", "HP_R",
217 "Ext Spk", "SPK_LP",
218 "Ext Spk", "SPK_LN",
219 "Ext Spk", "SPK_RP",
220 "Ext Spk", "SPK_RN",
221 "LINPUT1", "Mic Jack",
222 "Mic Jack", "MICB";
223 };
224
225 sound-wm8960-2 {
226 compatible = "fsl,imx-audio-wm8960";
227 model = "wm8960-audio-2";
228 audio-cpu = <&sai2>;
229 audio-codec = <&wm8960_2>;
230 audio-routing = "Headphone Jack", "HP_L",
231 "Headphone Jack", "HP_R",
232 "Ext Spk", "SPK_LP",
233 "Ext Spk", "SPK_LN",
234 "Ext Spk", "SPK_RP",
235 "Ext Spk", "SPK_RN",
236 "LINPUT1", "Mic Jack",
237 "Mic Jack", "MICB";
238 };
239
240 sound-wm8960-3 {
241 compatible = "fsl,imx-audio-wm8960";
242 model = "wm8960-audio-3";
243 audio-cpu = <&sai3>;
244 audio-codec = <&wm8960_3>;
245 audio-routing = "Headphone Jack", "HP_L",
246 "Headphone Jack", "HP_R",
247 "Ext Spk", "SPK_LP",
248 "Ext Spk", "SPK_LN",
249 "Ext Spk", "SPK_RP",
250 "Ext Spk", "SPK_RN",
251 "LINPUT1", "Mic Jack",
252 "Mic Jack", "MICB";
253 };
Tom Rini53633a82024-02-29 12:33:36 -0500254};
255
256&adc0 {
257 vref-supply = <&reg_vref_1v8>;
258 status = "okay";
259};
260
Tom Rini6b642ac2024-10-01 12:20:28 -0600261&asrc0 {
262 fsl,asrc-rate = <48000>;
263 status = "okay";
264};
265
Tom Rini53633a82024-02-29 12:33:36 -0500266&eqos {
267 pinctrl-names = "default";
268 pinctrl-0 = <&pinctrl_eqos>;
269 phy-mode = "rgmii-id";
270 phy-handle = <&ethphy0>;
271 nvmem-cells = <&fec_mac1>;
272 nvmem-cell-names = "mac-address";
273 status = "okay";
274
275 mdio {
276 compatible = "snps,dwmac-mdio";
277 #address-cells = <1>;
278 #size-cells = <0>;
279
280 ethphy0: ethernet-phy@0 {
281 compatible = "ethernet-phy-ieee802.3-c22";
282 reg = <0>;
283 eee-broken-1000t;
284 qca,disable-smarteee;
285 qca,disable-hibernation-mode;
286 reset-gpios = <&pca6416_1 2 GPIO_ACTIVE_LOW>;
287 reset-assert-us = <20>;
288 reset-deassert-us = <200000>;
289 vddio-supply = <&vddio0>;
290
291 vddio0: vddio-regulator {
292 regulator-min-microvolt = <1800000>;
293 regulator-max-microvolt = <1800000>;
294 };
295 };
296 };
297};
298
299/*
300 * fec1 shares the some PINs with usdhc2.
301 * by default usdhc2 is enabled in this dts.
302 * Please disable usdhc2 to enable fec1
303 */
304&fec1 {
305 pinctrl-names = "default";
306 pinctrl-0 = <&pinctrl_fec1>;
307 phy-mode = "rgmii-txid";
308 phy-handle = <&ethphy1>;
309 fsl,magic-packet;
310 rx-internal-delay-ps = <2000>;
311 nvmem-cells = <&fec_mac0>;
312 nvmem-cell-names = "mac-address";
313 status = "disabled";
314
315 mdio {
316 #address-cells = <1>;
317 #size-cells = <0>;
318
319 ethphy1: ethernet-phy@1 {
320 compatible = "ethernet-phy-ieee802.3-c22";
321 reg = <1>;
322 reset-gpios = <&pca6416_1 0 GPIO_ACTIVE_LOW>;
323 reset-assert-us = <10000>;
324 qca,disable-smarteee;
325 vddio-supply = <&vddio1>;
326
327 vddio1: vddio-regulator {
328 regulator-min-microvolt = <1800000>;
329 regulator-max-microvolt = <1800000>;
330 };
331 };
332 };
333};
334
335&flexspi0 {
336 pinctrl-names = "default";
337 pinctrl-0 = <&pinctrl_flexspi0>;
338 status = "okay";
339
340 mt35xu512aba0: flash@0 {
341 reg = <0>;
342 #address-cells = <1>;
343 #size-cells = <1>;
344 compatible = "jedec,spi-nor";
345 spi-max-frequency = <133000000>;
346 spi-tx-bus-width = <8>;
347 spi-rx-bus-width = <8>;
348 };
349};
350
351&i2c2 {
352 #address-cells = <1>;
353 #size-cells = <0>;
354 clock-frequency = <100000>;
355 pinctrl-names = "default";
356 pinctrl-0 = <&pinctrl_i2c2>;
357 status = "okay";
358
359 pca6416_1: gpio@20 {
360 compatible = "ti,tca6416";
361 reg = <0x20>;
362 gpio-controller;
363 #gpio-cells = <2>;
364 };
365
366 pca6416_2: gpio@21 {
367 compatible = "ti,tca6416";
368 reg = <0x21>;
369 gpio-controller;
370 #gpio-cells = <2>;
371 };
372
373 pca9548_1: i2c-mux@70 {
374 compatible = "nxp,pca9548";
375 #address-cells = <1>;
376 #size-cells = <0>;
377 reg = <0x70>;
378
379 i2c@0 {
380 #address-cells = <1>;
381 #size-cells = <0>;
382 reg = <0x0>;
383
384 max7322: gpio@68 {
385 compatible = "maxim,max7322";
386 reg = <0x68>;
387 gpio-controller;
388 #gpio-cells = <2>;
389 status = "disabled";
390 };
391 };
392
Tom Rini6b642ac2024-10-01 12:20:28 -0600393 i2c@1 {
394 #address-cells = <1>;
395 #size-cells = <0>;
396 reg = <0x1>;
397
398 wm8960_1: audio-codec@1a {
399 compatible = "wlf,wm8960";
400 reg = <0x1a>;
401 clocks = <&mclkout1_lpcg IMX_LPCG_CLK_0>;
402 clock-names = "mclk";
403 assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>,
404 <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_SLV_BUS>,
405 <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_MST_BUS>,
406 <&mclkout1_lpcg IMX_LPCG_CLK_0>;
407 assigned-clock-rates = <786432000>,
408 <49152000>,
409 <12288000>,
410 <12288000>;
411 wlf,shared-lrclk;
412 wlf,hp-cfg = <2 2 3>;
413 wlf,gpio-cfg = <1 3>;
414 };
415 };
416
417 i2c@2 {
418 #address-cells = <1>;
419 #size-cells = <0>;
420 reg = <0x2>;
421
422 wm8960_2: audio-codec@1a {
423 compatible = "wlf,wm8960";
424 reg = <0x1a>;
425 clocks = <&mclkout1_lpcg IMX_LPCG_CLK_0>;
426 clock-names = "mclk";
427 assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>,
428 <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_SLV_BUS>,
429 <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_MST_BUS>,
430 <&mclkout1_lpcg IMX_LPCG_CLK_0>;
431 assigned-clock-rates = <786432000>,
432 <49152000>,
433 <12288000>,
434 <12288000>;
435 wlf,shared-lrclk;
436 wlf,hp-cfg = <2 2 3>;
437 wlf,gpio-cfg = <1 3>;
438 };
439 };
440
441 i2c@3 {
442 #address-cells = <1>;
443 #size-cells = <0>;
444 reg = <0x3>;
445
446 wm8960_3: audio-codec@1a {
447 compatible = "wlf,wm8960";
448 reg = <0x1a>;
449 clocks = <&mclkout1_lpcg IMX_LPCG_CLK_0>;
450 clock-names = "mclk";
451 assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>,
452 <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_SLV_BUS>,
453 <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_MST_BUS>,
454 <&mclkout1_lpcg IMX_LPCG_CLK_0>;
455 assigned-clock-rates = <786432000>,
456 <49152000>,
457 <12288000>,
458 <12288000>;
459 wlf,shared-lrclk;
460 wlf,hp-cfg = <2 2 3>;
461 wlf,gpio-cfg = <1 3>;
462 };
463 };
464
Tom Rini53633a82024-02-29 12:33:36 -0500465 i2c@4 {
466 #address-cells = <1>;
467 #size-cells = <0>;
468 reg = <0x4>;
469 };
470
471 i2c@5 {
472 #address-cells = <1>;
473 #size-cells = <0>;
474 reg = <0x5>;
475 };
476
477 i2c@6 {
478 #address-cells = <1>;
479 #size-cells = <0>;
480 reg = <0x6>;
481 };
482 };
483};
484
Tom Rini6bb92fc2024-05-20 09:54:58 -0600485&i2c3 {
486 #address-cells = <1>;
487 #size-cells = <0>;
488 clock-frequency = <100000>;
489 pinctrl-names = "default";
490 pinctrl-0 = <&pinctrl_i2c3>;
491 status = "okay";
492
493 pca6416_3: gpio@20 {
494 compatible = "ti,tca6416";
495 reg = <0x20>;
496 gpio-controller;
497 #gpio-cells = <2>;
498 interrupt-parent = <&lsio_gpio2>;
499 interrupts = <5 IRQ_TYPE_EDGE_RISING>;
500 };
501
502 pca9548_2: i2c-mux@70 {
503 compatible = "nxp,pca9548";
504 reg = <0x70>;
505 #address-cells = <1>;
506 #size-cells = <0>;
507
508 i2c@0 {
509 #address-cells = <1>;
510 #size-cells = <0>;
511 reg = <0x0>;
512 };
513
514 i2c@1 {
515 #address-cells = <1>;
516 #size-cells = <0>;
517 reg = <0x1>;
518 };
519
520 i2c@2 {
521 #address-cells = <1>;
522 #size-cells = <0>;
523 reg = <0x2>;
524 };
525
526 i2c@3 {
527 #address-cells = <1>;
528 #size-cells = <0>;
529 reg = <0x3>;
530 };
531
532 i2c@4 {
533 #address-cells = <1>;
534 #size-cells = <0>;
535 reg = <0x4>;
536 };
537 };
538};
539
Tom Rini53633a82024-02-29 12:33:36 -0500540&lpuart0 {
541 pinctrl-names = "default";
542 pinctrl-0 = <&pinctrl_lpuart0>;
543 status = "okay";
544};
545
Tom Rini762f85b2024-07-20 11:15:10 -0600546&lpuart1 {
547 pinctrl-names = "default";
548 pinctrl-0 = <&pinctrl_lpuart1>;
549 status = "okay";
550};
551
Tom Rini6b642ac2024-10-01 12:20:28 -0600552&lsio_mu5 {
553 status = "okay";
554};
555
Tom Rini6bb92fc2024-05-20 09:54:58 -0600556&flexcan2 {
557 pinctrl-names = "default";
558 pinctrl-0 = <&pinctrl_flexcan2>;
559 xceiver-supply = <&reg_can0_stby>;
560 status = "okay";
561};
562
563&flexcan3 {
564 pinctrl-names = "default";
565 pinctrl-0 = <&pinctrl_flexcan3>;
566 xceiver-supply = <&reg_can1_stby>;
567 status = "okay";
568};
569
Tom Rini762f85b2024-07-20 11:15:10 -0600570&cm40_intmux {
571 status = "disabled";
572};
573
574&cm40_lpuart {
575 pinctrl-names = "default";
576 pinctrl-0 = <&pinctrl_cm40_lpuart>;
577 status = "disabled";
578};
579
Tom Rini53633a82024-02-29 12:33:36 -0500580&lsio_gpio4 {
581 status = "okay";
582};
583
584&lsio_gpio5 {
585 status = "okay";
586};
587
Tom Rini6b642ac2024-10-01 12:20:28 -0600588&sai0 {
589 pinctrl-names = "default";
590 pinctrl-0 = <&pinctrl_sai0>;
591 #sound-dai-cells = <0>;
592 assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>,
593 <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_SLV_BUS>,
594 <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_MST_BUS>,
595 <&sai0_lpcg IMX_LPCG_CLK_0>;
596 assigned-clock-rates = <786432000>, <49152000>, <12288000>, <49152000>;
597 status = "okay";
598};
599
600&sai1 {
601 assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>,
602 <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_SLV_BUS>,
603 <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_MST_BUS>,
604 <&sai1_lpcg IMX_LPCG_CLK_0>;
605 assigned-clock-rates = <786432000>, <49152000>, <12288000>, <49152000>;
606 pinctrl-names = "default";
607 pinctrl-0 = <&pinctrl_sai1>;
608 status = "okay";
609};
610
611&sai2 {
612 assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>,
613 <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_SLV_BUS>,
614 <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_MST_BUS>,
615 <&sai2_lpcg IMX_LPCG_CLK_0>;
616 assigned-clock-rates = <786432000>, <49152000>, <12288000>, <49152000>;
617 pinctrl-names = "default";
618 pinctrl-0 = <&pinctrl_sai2>;
619 fsl,sai-asynchronous;
620 status = "okay";
621};
622
623&sai3 {
624 assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>,
625 <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_SLV_BUS>,
626 <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_MST_BUS>,
627 <&sai3_lpcg IMX_LPCG_CLK_0>;
628 assigned-clock-rates = <786432000>, <49152000>, <12288000>, <49152000>;
629 pinctrl-names = "default";
630 pinctrl-0 = <&pinctrl_sai3>;
631 fsl,sai-asynchronous;
632 status = "okay";
633};
634
Tom Rini53633a82024-02-29 12:33:36 -0500635&thermal_zones {
636 pmic-thermal {
637 polling-delay-passive = <250>;
638 polling-delay = <2000>;
639 thermal-sensors = <&tsens IMX_SC_R_PMIC_0>;
640
641 trips {
642 pmic_alert0: trip0 {
643 temperature = <110000>;
644 hysteresis = <2000>;
645 type = "passive";
646 };
647
648 pmic_crit0: trip1 {
649 temperature = <125000>;
650 hysteresis = <2000>;
651 type = "critical";
652 };
653 };
654
655 cooling-maps {
656 map0 {
657 trip = <&pmic_alert0>;
658 cooling-device =
659 <&A35_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
660 <&A35_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
661 };
662 };
663 };
664};
665
666&usbphy1 {
667 /* USB eye diagram tests result */
668 fsl,tx-d-cal = <114>;
669 status = "okay";
670};
671
672&usbotg1 {
673 pinctrl-names = "default";
674 pinctrl-0 = <&pinctrl_usbotg1>;
675 srp-disable;
676 hnp-disable;
677 adp-disable;
678 power-active-high;
679 disable-over-current;
680 status = "okay";
681};
682
683&usbphy2 {
684 /* USB eye diagram tests result */
685 fsl,tx-d-cal = <111>;
686 status = "okay";
687};
688
689&usbotg2 {
690 pinctrl-names = "default";
691 pinctrl-0 = <&pinctrl_usbotg2>;
692 srp-disable;
693 hnp-disable;
694 adp-disable;
695 power-active-high;
696 disable-over-current;
697 status = "okay";
698};
699
700&usdhc1 {
701 pinctrl-names = "default";
702 pinctrl-0 = <&pinctrl_usdhc1>;
703 bus-width = <8>;
704 no-sd;
705 no-sdio;
706 non-removable;
707 status = "okay";
708};
709
710&usdhc2 {
711 pinctrl-names = "default";
712 pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
713 bus-width = <4>;
714 vmmc-supply = <&reg_usdhc2_vmmc>;
715 cd-gpios = <&lsio_gpio5 1 GPIO_ACTIVE_LOW>;
716 wp-gpios = <&lsio_gpio5 0 GPIO_ACTIVE_HIGH>;
717 status = "okay";
718};
719
720&lpspi3 {
721 fsl,spi-only-use-cs1-sel;
722 pinctrl-names = "default";
723 pinctrl-0 = <&pinctrl_lpspi3>;
724 status = "okay";
725
726 spidev0: spi@0 {
727 reg = <0>;
728 compatible = "rohm,dh2228fv";
729 spi-max-frequency = <30000000>;
730 };
731};
732
733&iomuxc {
734 pinctrl-names = "default";
735 pinctrl-0 = <&pinctrl_hog>;
736
737 pinctrl_hog: hoggrp {
738 fsl,pins = <
739 IMX8DXL_COMP_CTL_GPIO_1V8_3V3_GPIORHB_PAD 0x000514a0
740 IMX8DXL_COMP_CTL_GPIO_1V8_3V3_GPIORHK_PAD 0x000014a0
741 IMX8DXL_SPI3_CS0_ADMA_ACM_MCLK_OUT1 0x0600004c
742 IMX8DXL_SNVS_TAMPER_OUT1_LSIO_GPIO2_IO05_IN 0x0600004c
743 >;
744 };
745
746 pinctrl_usbotg1: usbotg1grp {
747 fsl,pins = <
748 IMX8DXL_USB_SS3_TC0_CONN_USB_OTG1_PWR 0x00000021
749 >;
750 };
751
752 pinctrl_usbotg2: usbotg2grp {
753 fsl,pins = <
754 IMX8DXL_USB_SS3_TC1_CONN_USB_OTG2_PWR 0x00000021
755 >;
756 };
757
758 pinctrl_eqos: eqosgrp {
759 fsl,pins = <
760 IMX8DXL_ENET0_MDC_CONN_EQOS_MDC 0x06000020
761 IMX8DXL_ENET0_MDIO_CONN_EQOS_MDIO 0x06000020
762 IMX8DXL_ENET1_RGMII_RXC_CONN_EQOS_RGMII_RXC 0x06000020
763 IMX8DXL_ENET1_RGMII_RXD0_CONN_EQOS_RGMII_RXD0 0x06000020
764 IMX8DXL_ENET1_RGMII_RXD1_CONN_EQOS_RGMII_RXD1 0x06000020
765 IMX8DXL_ENET1_RGMII_RXD2_CONN_EQOS_RGMII_RXD2 0x06000020
766 IMX8DXL_ENET1_RGMII_RXD3_CONN_EQOS_RGMII_RXD3 0x06000020
767 IMX8DXL_ENET1_RGMII_RX_CTL_CONN_EQOS_RGMII_RX_CTL 0x06000020
768 IMX8DXL_ENET1_RGMII_TXC_CONN_EQOS_RGMII_TXC 0x06000020
769 IMX8DXL_ENET1_RGMII_TXD0_CONN_EQOS_RGMII_TXD0 0x06000020
770 IMX8DXL_ENET1_RGMII_TXD1_CONN_EQOS_RGMII_TXD1 0x06000020
771 IMX8DXL_ENET1_RGMII_TXD2_CONN_EQOS_RGMII_TXD2 0x06000020
772 IMX8DXL_ENET1_RGMII_TXD3_CONN_EQOS_RGMII_TXD3 0x06000020
773 IMX8DXL_ENET1_RGMII_TX_CTL_CONN_EQOS_RGMII_TX_CTL 0x06000020
774 >;
775 };
776
777 pinctrl_flexspi0: flexspi0grp {
778 fsl,pins = <
779 IMX8DXL_QSPI0A_DATA0_LSIO_QSPI0A_DATA0 0x06000021
780 IMX8DXL_QSPI0A_DATA1_LSIO_QSPI0A_DATA1 0x06000021
781 IMX8DXL_QSPI0A_DATA2_LSIO_QSPI0A_DATA2 0x06000021
782 IMX8DXL_QSPI0A_DATA3_LSIO_QSPI0A_DATA3 0x06000021
783 IMX8DXL_QSPI0A_DQS_LSIO_QSPI0A_DQS 0x06000021
784 IMX8DXL_QSPI0A_SS0_B_LSIO_QSPI0A_SS0_B 0x06000021
785 IMX8DXL_QSPI0A_SCLK_LSIO_QSPI0A_SCLK 0x06000021
786 IMX8DXL_QSPI0B_SCLK_LSIO_QSPI0B_SCLK 0x06000021
787 IMX8DXL_QSPI0B_DATA0_LSIO_QSPI0B_DATA0 0x06000021
788 IMX8DXL_QSPI0B_DATA1_LSIO_QSPI0B_DATA1 0x06000021
789 IMX8DXL_QSPI0B_DATA2_LSIO_QSPI0B_DATA2 0x06000021
790 IMX8DXL_QSPI0B_DATA3_LSIO_QSPI0B_DATA3 0x06000021
791 IMX8DXL_QSPI0B_DQS_LSIO_QSPI0B_DQS 0x06000021
792 IMX8DXL_QSPI0B_SS0_B_LSIO_QSPI0B_SS0_B 0x06000021
793 >;
794 };
795
Tom Rini6bb92fc2024-05-20 09:54:58 -0600796 pinctrl_flexcan2: flexcan2grp {
797 fsl,pins = <
798 IMX8DXL_UART2_TX_ADMA_FLEXCAN1_TX 0x00000021
799 IMX8DXL_UART2_RX_ADMA_FLEXCAN1_RX 0x00000021
800 >;
801 };
802
803 pinctrl_flexcan3: flexcan3grp {
804 fsl,pins = <
805 IMX8DXL_FLEXCAN2_TX_ADMA_FLEXCAN2_TX 0x00000021
806 IMX8DXL_FLEXCAN2_RX_ADMA_FLEXCAN2_RX 0x00000021
807 >;
808 };
809
Tom Rini53633a82024-02-29 12:33:36 -0500810 pinctrl_fec1: fec1grp {
811 fsl,pins = <
812 IMX8DXL_COMP_CTL_GPIO_1V8_3V3_ENET_ENETB0_PAD 0x000014a0
813 IMX8DXL_COMP_CTL_GPIO_1V8_3V3_ENET_ENETB1_PAD 0x000014a0
814 IMX8DXL_ENET0_MDC_CONN_ENET0_MDC 0x06000020
815 IMX8DXL_ENET0_MDIO_CONN_ENET0_MDIO 0x06000020
816 IMX8DXL_ENET0_RGMII_RXC_CONN_ENET0_RGMII_RXC 0x00000060
817 IMX8DXL_ENET0_RGMII_RXD0_CONN_ENET0_RGMII_RXD0 0x00000060
818 IMX8DXL_ENET0_RGMII_RXD1_CONN_ENET0_RGMII_RXD1 0x00000060
819 IMX8DXL_ENET0_RGMII_RXD2_CONN_ENET0_RGMII_RXD2 0x00000060
820 IMX8DXL_ENET0_RGMII_RXD3_CONN_ENET0_RGMII_RXD3 0x00000060
821 IMX8DXL_ENET0_RGMII_RX_CTL_CONN_ENET0_RGMII_RX_CTL 0x00000060
822 IMX8DXL_ENET0_RGMII_TXC_CONN_ENET0_RGMII_TXC 0x00000060
823 IMX8DXL_ENET0_RGMII_TXD0_CONN_ENET0_RGMII_TXD0 0x00000060
824 IMX8DXL_ENET0_RGMII_TXD1_CONN_ENET0_RGMII_TXD1 0x00000060
825 IMX8DXL_ENET0_RGMII_TXD2_CONN_ENET0_RGMII_TXD2 0x00000060
826 IMX8DXL_ENET0_RGMII_TXD3_CONN_ENET0_RGMII_TXD3 0x00000060
827 IMX8DXL_ENET0_RGMII_TX_CTL_CONN_ENET0_RGMII_TX_CTL 0x00000060
828 >;
829 };
830
831 pinctrl_lpspi3: lpspi3grp {
832 fsl,pins = <
833 IMX8DXL_SPI3_SCK_ADMA_SPI3_SCK 0x6000040
834 IMX8DXL_SPI3_SDO_ADMA_SPI3_SDO 0x6000040
835 IMX8DXL_SPI3_SDI_ADMA_SPI3_SDI 0x6000040
836 IMX8DXL_SPI3_CS1_ADMA_SPI3_CS1 0x6000040
837 >;
838 };
839
840 pinctrl_i2c2: i2c2grp {
841 fsl,pins = <
842 IMX8DXL_SPI1_SCK_ADMA_I2C2_SDA 0x06000021
843 IMX8DXL_SPI1_SDO_ADMA_I2C2_SCL 0x06000021
844 >;
845 };
846
847 pinctrl_cm40_lpuart: cm40lpuartgrp {
848 fsl,pins = <
849 IMX8DXL_ADC_IN2_M40_UART0_RX 0x06000020
850 IMX8DXL_ADC_IN3_M40_UART0_TX 0x06000020
851 >;
852 };
853
854 pinctrl_i2c3: i2c3grp {
855 fsl,pins = <
856 IMX8DXL_SPI1_CS0_ADMA_I2C3_SDA 0x06000021
857 IMX8DXL_SPI1_SDI_ADMA_I2C3_SCL 0x06000021
858 >;
859 };
860
861 pinctrl_lpuart0: lpuart0grp {
862 fsl,pins = <
863 IMX8DXL_UART0_RX_ADMA_UART0_RX 0x06000020
864 IMX8DXL_UART0_TX_ADMA_UART0_TX 0x06000020
865 >;
866 };
867
Tom Rini762f85b2024-07-20 11:15:10 -0600868 pinctrl_lpuart1: lpuart1grp {
869 fsl,pins = <
870 IMX8DXL_UART1_TX_ADMA_UART1_TX 0x06000020
871 IMX8DXL_UART1_RX_ADMA_UART1_RX 0x06000020
872 IMX8DXL_UART1_RTS_B_ADMA_UART1_RTS_B 0x06000020
873 IMX8DXL_UART1_CTS_B_ADMA_UART1_CTS_B 0x06000020
874 >;
875 };
876
Tom Rini6b642ac2024-10-01 12:20:28 -0600877 pinctrl_sai0: sai0grp {
878 fsl,pins = <
879 IMX8DXL_SPI0_CS0_ADMA_SAI0_RXD 0x06000060
880 IMX8DXL_SPI0_CS1_ADMA_SAI0_RXC 0x06000040
881 IMX8DXL_SPI0_SCK_ADMA_SAI0_TXC 0x06000060
882 IMX8DXL_SPI0_SDI_ADMA_SAI0_TXD 0x06000060
883 IMX8DXL_SPI0_SDO_ADMA_SAI0_TXFS 0x06000040
884 >;
885 };
886
887 pinctrl_sai1: sai1grp {
888 fsl,pins = <
889 IMX8DXL_FLEXCAN0_RX_ADMA_SAI1_TXC 0x06000040
890 IMX8DXL_FLEXCAN0_TX_ADMA_SAI1_TXFS 0x06000040
891 IMX8DXL_FLEXCAN1_RX_ADMA_SAI1_TXD 0x06000060
892 IMX8DXL_FLEXCAN1_TX_ADMA_SAI1_RXD 0x06000060
893 >;
894 };
895
896 pinctrl_sai2: sai2grp {
897 fsl,pins = <
898 IMX8DXL_SNVS_TAMPER_OUT3_ADMA_SAI2_RXC 0x06000040
899 IMX8DXL_SNVS_TAMPER_IN0_ADMA_SAI2_RXFS 0x06000040
900 IMX8DXL_SNVS_TAMPER_OUT4_ADMA_SAI2_RXD 0x06000060
901 >;
902 };
903
904 pinctrl_sai3: sai3grp {
905 fsl,pins = <
906 IMX8DXL_SNVS_TAMPER_IN1_ADMA_SAI3_RXC 0x06000040
907 IMX8DXL_SNVS_TAMPER_IN3_ADMA_SAI3_RXFS 0x06000040
908 IMX8DXL_SNVS_TAMPER_IN2_ADMA_SAI3_RXD 0x06000060
909 >;
910 };
911
Tom Rini53633a82024-02-29 12:33:36 -0500912 pinctrl_usdhc1: usdhc1grp {
913 fsl,pins = <
914 IMX8DXL_EMMC0_CLK_CONN_EMMC0_CLK 0x06000041
915 IMX8DXL_EMMC0_CMD_CONN_EMMC0_CMD 0x00000021
916 IMX8DXL_EMMC0_DATA0_CONN_EMMC0_DATA0 0x00000021
917 IMX8DXL_EMMC0_DATA1_CONN_EMMC0_DATA1 0x00000021
918 IMX8DXL_EMMC0_DATA2_CONN_EMMC0_DATA2 0x00000021
919 IMX8DXL_EMMC0_DATA3_CONN_EMMC0_DATA3 0x00000021
920 IMX8DXL_EMMC0_DATA4_CONN_EMMC0_DATA4 0x00000021
921 IMX8DXL_EMMC0_DATA5_CONN_EMMC0_DATA5 0x00000021
922 IMX8DXL_EMMC0_DATA6_CONN_EMMC0_DATA6 0x00000021
923 IMX8DXL_EMMC0_DATA7_CONN_EMMC0_DATA7 0x00000021
924 IMX8DXL_EMMC0_STROBE_CONN_EMMC0_STROBE 0x00000041
925 >;
926 };
927
928 pinctrl_usdhc2_gpio: usdhc2gpiogrp {
929 fsl,pins = <
930 IMX8DXL_ENET0_RGMII_TX_CTL_LSIO_GPIO4_IO30 0x00000040 /* RESET_B */
931 IMX8DXL_ENET0_RGMII_TXD1_LSIO_GPIO5_IO00 0x00000021 /* WP */
932 IMX8DXL_ENET0_RGMII_TXD2_LSIO_GPIO5_IO01 0x00000021 /* CD */
933 >;
934 };
935
936 pinctrl_usdhc2: usdhc2grp {
937 fsl,pins = <
938 IMX8DXL_ENET0_RGMII_RXC_CONN_USDHC1_CLK 0x06000041
939 IMX8DXL_ENET0_RGMII_RX_CTL_CONN_USDHC1_CMD 0x00000021
940 IMX8DXL_ENET0_RGMII_RXD0_CONN_USDHC1_DATA0 0x00000021
941 IMX8DXL_ENET0_RGMII_RXD1_CONN_USDHC1_DATA1 0x00000021
942 IMX8DXL_ENET0_RGMII_RXD2_CONN_USDHC1_DATA2 0x00000021
943 IMX8DXL_ENET0_RGMII_RXD3_CONN_USDHC1_DATA3 0x00000021
944 IMX8DXL_ENET0_RGMII_TXD0_CONN_USDHC1_VSELECT 0x00000021
945 >;
946 };
947};