1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
8 #include <dt-bindings/usb/pd.h>
12 model = "FSL i.MX8MM EVK board";
13 compatible = "fsl,imx8mm-evk", "fsl,imx8mm";
20 device_type = "memory";
21 reg = <0x0 0x40000000 0 0x80000000>;
25 compatible = "gpio-leds";
26 pinctrl-names = "default";
27 pinctrl-0 = <&pinctrl_gpio_led>;
31 gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>;
36 reg_usdhc2_vmmc: regulator-usdhc2 {
37 compatible = "regulator-fixed";
38 pinctrl-names = "default";
39 pinctrl-0 = <&pinctrl_reg_usdhc2_vmmc>;
40 regulator-name = "VSD_3V3";
41 regulator-min-microvolt = <3300000>;
42 regulator-max-microvolt = <3300000>;
43 gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
48 #sound-dai-cells = <0>;
49 compatible = "wlf,wm8524";
50 pinctrl-names = "default";
51 pinctrl-0 = <&pinctrl_gpio_wlf>;
52 wlf,mute-gpios = <&gpio5 21 GPIO_ACTIVE_LOW>;
56 compatible = "simple-audio-card";
57 simple-audio-card,name = "wm8524-audio";
58 simple-audio-card,format = "i2s";
59 simple-audio-card,frame-master = <&cpudai>;
60 simple-audio-card,bitclock-master = <&cpudai>;
61 simple-audio-card,widgets =
62 "Line", "Left Line Out Jack",
63 "Line", "Right Line Out Jack";
64 simple-audio-card,routing =
65 "Left Line Out Jack", "LINEVOUTL",
66 "Right Line Out Jack", "LINEVOUTR";
68 cpudai: simple-audio-card,cpu {
70 dai-tdm-slot-num = <2>;
71 dai-tdm-slot-width = <32>;
74 simple-audio-card,codec {
75 sound-dai = <&wm8524>;
76 clocks = <&clk IMX8MM_CLK_SAI3_ROOT>;
82 cpu-supply = <&buck2_reg>;
86 operating-points-v2 = <&ddrc_opp_table>;
88 ddrc_opp_table: opp-table {
89 compatible = "operating-points-v2";
92 opp-hz = /bits/ 64 <25000000>;
96 opp-hz = /bits/ 64 <100000000>;
100 opp-hz = /bits/ 64 <750000000>;
106 pinctrl-names = "default";
107 pinctrl-0 = <&pinctrl_fec1>;
108 phy-mode = "rgmii-id";
109 phy-handle = <ðphy0>;
110 phy-reset-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>;
111 phy-reset-duration = <10>;
116 #address-cells = <1>;
119 ethphy0: ethernet-phy@0 {
120 compatible = "ethernet-phy-ieee802.3-c22";
127 clock-frequency = <400000>;
128 pinctrl-names = "default";
129 pinctrl-0 = <&pinctrl_i2c1>;
133 compatible = "rohm,bd71847";
135 pinctrl-0 = <&pinctrl_pmic>;
136 interrupt-parent = <&gpio1>;
137 interrupts = <3 GPIO_ACTIVE_LOW>;
138 rohm,reset-snvs-powered;
142 regulator-name = "BUCK1";
143 regulator-min-microvolt = <700000>;
144 regulator-max-microvolt = <1300000>;
147 regulator-ramp-delay = <1250>;
151 regulator-name = "BUCK2";
152 regulator-min-microvolt = <700000>;
153 regulator-max-microvolt = <1300000>;
156 regulator-ramp-delay = <1250>;
157 rohm,dvs-run-voltage = <1000000>;
158 rohm,dvs-idle-voltage = <900000>;
162 // BUCK5 in datasheet
163 regulator-name = "BUCK3";
164 regulator-min-microvolt = <700000>;
165 regulator-max-microvolt = <1350000>;
171 // BUCK6 in datasheet
172 regulator-name = "BUCK4";
173 regulator-min-microvolt = <3000000>;
174 regulator-max-microvolt = <3300000>;
180 // BUCK7 in datasheet
181 regulator-name = "BUCK5";
182 regulator-min-microvolt = <1605000>;
183 regulator-max-microvolt = <1995000>;
189 // BUCK8 in datasheet
190 regulator-name = "BUCK6";
191 regulator-min-microvolt = <800000>;
192 regulator-max-microvolt = <1400000>;
198 regulator-name = "LDO1";
199 regulator-min-microvolt = <3000000>;
200 regulator-max-microvolt = <3300000>;
206 regulator-name = "LDO2";
207 regulator-min-microvolt = <900000>;
208 regulator-max-microvolt = <900000>;
214 regulator-name = "LDO3";
215 regulator-min-microvolt = <1800000>;
216 regulator-max-microvolt = <3300000>;
222 regulator-name = "LDO4";
223 regulator-min-microvolt = <900000>;
224 regulator-max-microvolt = <1800000>;
230 regulator-name = "LDO6";
231 regulator-min-microvolt = <900000>;
232 regulator-max-microvolt = <1800000>;
241 clock-frequency = <400000>;
242 pinctrl-names = "default";
243 pinctrl-0 = <&pinctrl_i2c2>;
247 compatible = "nxp,ptn5110";
248 pinctrl-names = "default";
249 pinctrl-0 = <&pinctrl_typec1>;
251 interrupt-parent = <&gpio2>;
256 typec1_dr_sw: endpoint {
257 remote-endpoint = <&usb1_drd_sw>;
261 typec1_con: connector {
262 compatible = "usb-c-connector";
266 try-power-role = "sink";
267 source-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
268 sink-pdos = <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)
269 PDO_VAR(5000, 20000, 3000)>;
270 op-sink-microwatt = <15000000>;
277 clock-frequency = <400000>;
278 pinctrl-names = "default";
279 pinctrl-0 = <&pinctrl_i2c3>;
283 compatible = "ti,tca6416";
291 pinctrl-names = "default";
292 pinctrl-0 = <&pinctrl_sai3>;
293 assigned-clocks = <&clk IMX8MM_CLK_SAI3>;
294 assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>;
295 assigned-clock-rates = <24576000>;
303 &uart2 { /* console */
304 pinctrl-names = "default";
305 pinctrl-0 = <&pinctrl_uart2>;
318 usb1_drd_sw: endpoint {
319 remote-endpoint = <&typec1_dr_sw>;
325 assigned-clocks = <&clk IMX8MM_CLK_USDHC2>;
326 assigned-clock-rates = <200000000>;
327 pinctrl-names = "default", "state_100mhz", "state_200mhz";
328 pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
329 pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
330 pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
331 cd-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
333 vmmc-supply = <®_usdhc2_vmmc>;
338 assigned-clocks = <&clk IMX8MM_CLK_USDHC3_ROOT>;
339 assigned-clock-rates = <400000000>;
340 pinctrl-names = "default", "state_100mhz", "state_200mhz";
341 pinctrl-0 = <&pinctrl_usdhc3>;
342 pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
343 pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
350 pinctrl-names = "default";
351 pinctrl-0 = <&pinctrl_wdog>;
352 fsl,ext-reset-output;
357 pinctrl-names = "default";
359 pinctrl_fec1: fec1grp {
361 MX8MM_IOMUXC_ENET_MDC_ENET1_MDC 0x3
362 MX8MM_IOMUXC_ENET_MDIO_ENET1_MDIO 0x3
363 MX8MM_IOMUXC_ENET_TD3_ENET1_RGMII_TD3 0x1f
364 MX8MM_IOMUXC_ENET_TD2_ENET1_RGMII_TD2 0x1f
365 MX8MM_IOMUXC_ENET_TD1_ENET1_RGMII_TD1 0x1f
366 MX8MM_IOMUXC_ENET_TD0_ENET1_RGMII_TD0 0x1f
367 MX8MM_IOMUXC_ENET_RD3_ENET1_RGMII_RD3 0x91
368 MX8MM_IOMUXC_ENET_RD2_ENET1_RGMII_RD2 0x91
369 MX8MM_IOMUXC_ENET_RD1_ENET1_RGMII_RD1 0x91
370 MX8MM_IOMUXC_ENET_RD0_ENET1_RGMII_RD0 0x91
371 MX8MM_IOMUXC_ENET_TXC_ENET1_RGMII_TXC 0x1f
372 MX8MM_IOMUXC_ENET_RXC_ENET1_RGMII_RXC 0x91
373 MX8MM_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x91
374 MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f
375 MX8MM_IOMUXC_SAI2_RXC_GPIO4_IO22 0x19
379 pinctrl_gpio_led: gpioledgrp {
381 MX8MM_IOMUXC_NAND_READY_B_GPIO3_IO16 0x19
385 pinctrl_gpio_wlf: gpiowlfgrp {
387 MX8MM_IOMUXC_I2C4_SDA_GPIO5_IO21 0xd6
391 pinctrl_i2c1: i2c1grp {
393 MX8MM_IOMUXC_I2C1_SCL_I2C1_SCL 0x400001c3
394 MX8MM_IOMUXC_I2C1_SDA_I2C1_SDA 0x400001c3
398 pinctrl_i2c2: i2c2grp {
400 MX8MM_IOMUXC_I2C2_SCL_I2C2_SCL 0x400001c3
401 MX8MM_IOMUXC_I2C2_SDA_I2C2_SDA 0x400001c3
405 pinctrl_i2c3: i2c3grp {
407 MX8MM_IOMUXC_I2C3_SCL_I2C3_SCL 0x400001c3
408 MX8MM_IOMUXC_I2C3_SDA_I2C3_SDA 0x400001c3
412 pinctrl_pmic: pmicirq {
414 MX8MM_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x41
418 pinctrl_reg_usdhc2_vmmc: regusdhc2vmmc {
420 MX8MM_IOMUXC_SD2_RESET_B_GPIO2_IO19 0x41
424 pinctrl_sai3: sai3grp {
426 MX8MM_IOMUXC_SAI3_TXFS_SAI3_TX_SYNC 0xd6
427 MX8MM_IOMUXC_SAI3_TXC_SAI3_TX_BCLK 0xd6
428 MX8MM_IOMUXC_SAI3_MCLK_SAI3_MCLK 0xd6
429 MX8MM_IOMUXC_SAI3_TXD_SAI3_TX_DATA0 0xd6
433 pinctrl_typec1: typec1grp {
435 MX8MM_IOMUXC_SD1_STROBE_GPIO2_IO11 0x159
439 pinctrl_uart2: uart2grp {
441 MX8MM_IOMUXC_UART2_RXD_UART2_DCE_RX 0x140
442 MX8MM_IOMUXC_UART2_TXD_UART2_DCE_TX 0x140
446 pinctrl_usdhc2_gpio: usdhc2grpgpio {
448 MX8MM_IOMUXC_GPIO1_IO15_GPIO1_IO15 0x1c4
452 pinctrl_usdhc2: usdhc2grp {
454 MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x190
455 MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d0
456 MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d0
457 MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d0
458 MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d0
459 MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d0
460 MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0
464 pinctrl_usdhc2_100mhz: usdhc2grp100mhz {
466 MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x194
467 MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d4
468 MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d4
469 MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d4
470 MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d4
471 MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d4
472 MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0
476 pinctrl_usdhc2_200mhz: usdhc2grp200mhz {
478 MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x196
479 MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d6
480 MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d6
481 MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d6
482 MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d6
483 MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d6
484 MX8MM_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0x1d0
488 pinctrl_usdhc3: usdhc3grp {
490 MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x190
491 MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d0
492 MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d0
493 MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d0
494 MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d0
495 MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d0
496 MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d0
497 MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d0
498 MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d0
499 MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d0
500 MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x190
504 pinctrl_usdhc3_100mhz: usdhc3grp100mhz {
506 MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x194
507 MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d4
508 MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d4
509 MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d4
510 MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d4
511 MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d4
512 MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d4
513 MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d4
514 MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d4
515 MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d4
516 MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x194
520 pinctrl_usdhc3_200mhz: usdhc3grp200mhz {
522 MX8MM_IOMUXC_NAND_WE_B_USDHC3_CLK 0x196
523 MX8MM_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d6
524 MX8MM_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d6
525 MX8MM_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d6
526 MX8MM_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d6
527 MX8MM_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d6
528 MX8MM_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d6
529 MX8MM_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d6
530 MX8MM_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d6
531 MX8MM_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d6
532 MX8MM_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x196
536 pinctrl_wdog: wdoggrp {
538 MX8MM_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0xc6