1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
4 * Copyright (C) 2017-2018 Pengutronix, Lucas Stach <kernel@pengutronix.de>
12 model = "NXP i.MX8MQ EVK";
13 compatible = "fsl,imx8mq-evk", "fsl,imx8mq";
20 device_type = "memory";
21 reg = <0x00000000 0x40000000 0 0xc0000000>;
24 pcie0_refclk: pcie0-refclk {
25 compatible = "fixed-clock";
27 clock-frequency = <100000000>;
30 reg_usdhc2_vmmc: regulator-vsd-3v3 {
31 pinctrl-names = "default";
32 pinctrl-0 = <&pinctrl_reg_usdhc2>;
33 compatible = "regulator-fixed";
34 regulator-name = "VSD_3V3";
35 regulator-min-microvolt = <3300000>;
36 regulator-max-microvolt = <3300000>;
37 gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
41 buck2_reg: regulator-buck2 {
42 pinctrl-names = "default";
43 pinctrl-0 = <&pinctrl_buck2>;
44 compatible = "regulator-gpio";
45 regulator-name = "vdd_arm";
46 regulator-min-microvolt = <900000>;
47 regulator-max-microvolt = <1000000>;
48 gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
56 compatible = "gpio-ir-receiver";
57 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
58 pinctrl-names = "default";
59 pinctrl-0 = <&pinctrl_ir>;
60 linux,autosuspend-period = <125>;
64 #sound-dai-cells = <0>;
65 compatible = "wlf,wm8524";
66 wlf,mute-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
70 compatible = "simple-audio-card";
71 simple-audio-card,name = "wm8524-audio";
72 simple-audio-card,format = "i2s";
73 simple-audio-card,frame-master = <&cpudai>;
74 simple-audio-card,bitclock-master = <&cpudai>;
75 simple-audio-card,widgets =
76 "Line", "Left Line Out Jack",
77 "Line", "Right Line Out Jack";
78 simple-audio-card,routing =
79 "Left Line Out Jack", "LINEVOUTL",
80 "Right Line Out Jack", "LINEVOUTR";
82 cpudai: simple-audio-card,cpu {
86 link_codec: simple-audio-card,codec {
87 sound-dai = <&wm8524>;
88 clocks = <&clk IMX8MQ_CLK_SAI2_ROOT>;
93 compatible = "fsl,imx-audio-spdif";
95 spdif-controller = <&spdif1>;
101 compatible = "fsl,imx-audio-spdif";
102 model = "imx-hdmi-arc";
103 spdif-controller = <&spdif2>;
109 cpu-supply = <&buck2_reg>;
113 cpu-supply = <&buck2_reg>;
117 cpu-supply = <&buck2_reg>;
121 cpu-supply = <&buck2_reg>;
125 operating-points-v2 = <&ddrc_opp_table>;
127 ddrc_opp_table: opp-table {
128 compatible = "operating-points-v2";
131 opp-hz = /bits/ 64 <25000000>;
135 opp-hz = /bits/ 64 <100000000>;
139 * On imx8mq B0 PLL can't be bypassed so low bus is 166M
142 opp-hz = /bits/ 64 <166935483>;
146 opp-hz = /bits/ 64 <800000000>;
156 pinctrl-names = "default";
157 pinctrl-0 = <&pinctrl_fec1>;
158 phy-mode = "rgmii-id";
159 phy-handle = <ðphy0>;
164 #address-cells = <1>;
167 ethphy0: ethernet-phy@0 {
168 compatible = "ethernet-phy-ieee802.3-c22";
170 reset-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
171 reset-assert-us = <10000>;
177 pinctrl-names = "default";
178 pinctrl-0 = <&pinctrl_wifi_reset>;
182 gpios = <29 GPIO_ACTIVE_HIGH>;
188 clock-frequency = <100000>;
189 pinctrl-names = "default";
190 pinctrl-0 = <&pinctrl_i2c1>;
194 compatible = "fsl,pfuze100";
199 regulator-min-microvolt = <825000>;
200 regulator-max-microvolt = <1100000>;
204 regulator-min-microvolt = <825000>;
205 regulator-max-microvolt = <1100000>;
209 regulator-min-microvolt = <1100000>;
210 regulator-max-microvolt = <1100000>;
215 regulator-min-microvolt = <825000>;
216 regulator-max-microvolt = <1100000>;
221 regulator-min-microvolt = <1800000>;
222 regulator-max-microvolt = <1800000>;
227 regulator-min-microvolt = <5000000>;
228 regulator-max-microvolt = <5150000>;
232 regulator-min-microvolt = <1000000>;
233 regulator-max-microvolt = <3000000>;
242 regulator-min-microvolt = <800000>;
243 regulator-max-microvolt = <1550000>;
247 regulator-min-microvolt = <850000>;
248 regulator-max-microvolt = <975000>;
253 regulator-min-microvolt = <1675000>;
254 regulator-max-microvolt = <1975000>;
259 regulator-min-microvolt = <1625000>;
260 regulator-max-microvolt = <1875000>;
265 regulator-min-microvolt = <3075000>;
266 regulator-max-microvolt = <3625000>;
271 regulator-min-microvolt = <1800000>;
272 regulator-max-microvolt = <3300000>;
283 #address-cells = <1>;
288 pinctrl-0 = <&pinctrl_mipi_dsi>;
289 pinctrl-names = "default";
290 compatible = "raydium,rm67191";
292 reset-gpios = <&gpio5 6 GPIO_ACTIVE_LOW>;
297 remote-endpoint = <&mipi_dsi_out>;
305 mipi_dsi_out: endpoint {
306 remote-endpoint = <&panel_in>;
313 pinctrl-names = "default";
314 pinctrl-0 = <&pinctrl_pcie0>;
315 reset-gpio = <&gpio5 28 GPIO_ACTIVE_LOW>;
316 clocks = <&clk IMX8MQ_CLK_PCIE1_ROOT>,
317 <&clk IMX8MQ_CLK_PCIE1_AUX>,
318 <&clk IMX8MQ_CLK_PCIE1_PHY>,
320 clock-names = "pcie", "pcie_aux", "pcie_phy", "pcie_bus";
325 power-supply = <&sw1a_reg>;
329 pinctrl-names = "default";
330 pinctrl-0 = <&pinctrl_qspi>;
335 #address-cells = <1>;
337 compatible = "micron,n25q256a", "jedec,spi-nor";
338 spi-max-frequency = <29000000>;
343 pinctrl-names = "default";
344 pinctrl-0 = <&pinctrl_sai2>;
345 assigned-clocks = <&clk IMX8MQ_AUDIO_PLL1_BYPASS>, <&clk IMX8MQ_CLK_SAI2>;
346 assigned-clock-parents = <&clk IMX8MQ_AUDIO_PLL1>, <&clk IMX8MQ_AUDIO_PLL1_OUT>;
347 assigned-clock-rates = <0>, <24576000>;
356 pinctrl-names = "default";
357 pinctrl-0 = <&pinctrl_spdif1>;
358 assigned-clocks = <&clk IMX8MQ_CLK_SPDIF1>;
359 assigned-clock-parents = <&clk IMX8MQ_AUDIO_PLL1_OUT>;
360 assigned-clock-rates = <24576000>;
365 assigned-clocks = <&clk IMX8MQ_CLK_SPDIF2>;
366 assigned-clock-parents = <&clk IMX8MQ_AUDIO_PLL1_OUT>;
367 assigned-clock-rates = <24576000>;
372 pinctrl-names = "default";
373 pinctrl-0 = <&pinctrl_uart1>;
387 assigned-clocks = <&clk IMX8MQ_CLK_USDHC1>;
388 assigned-clock-rates = <400000000>;
389 pinctrl-names = "default", "state_100mhz", "state_200mhz";
390 pinctrl-0 = <&pinctrl_usdhc1>;
391 pinctrl-1 = <&pinctrl_usdhc1_100mhz>;
392 pinctrl-2 = <&pinctrl_usdhc1_200mhz>;
393 vqmmc-supply = <&sw4_reg>;
402 assigned-clocks = <&clk IMX8MQ_CLK_USDHC2>;
403 assigned-clock-rates = <200000000>;
404 pinctrl-names = "default", "state_100mhz", "state_200mhz";
405 pinctrl-0 = <&pinctrl_usdhc2>;
406 pinctrl-1 = <&pinctrl_usdhc2_100mhz>;
407 pinctrl-2 = <&pinctrl_usdhc2_200mhz>;
408 cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
409 vmmc-supply = <®_usdhc2_vmmc>;
414 pinctrl-names = "default";
415 pinctrl-0 = <&pinctrl_wdog>;
416 fsl,ext-reset-output;
421 pinctrl_buck2: vddarmgrp {
423 MX8MQ_IOMUXC_GPIO1_IO13_GPIO1_IO13 0x19
428 pinctrl_fec1: fec1grp {
430 MX8MQ_IOMUXC_ENET_MDC_ENET1_MDC 0x3
431 MX8MQ_IOMUXC_ENET_MDIO_ENET1_MDIO 0x23
432 MX8MQ_IOMUXC_ENET_TD3_ENET1_RGMII_TD3 0x1f
433 MX8MQ_IOMUXC_ENET_TD2_ENET1_RGMII_TD2 0x1f
434 MX8MQ_IOMUXC_ENET_TD1_ENET1_RGMII_TD1 0x1f
435 MX8MQ_IOMUXC_ENET_TD0_ENET1_RGMII_TD0 0x1f
436 MX8MQ_IOMUXC_ENET_RD3_ENET1_RGMII_RD3 0x91
437 MX8MQ_IOMUXC_ENET_RD2_ENET1_RGMII_RD2 0x91
438 MX8MQ_IOMUXC_ENET_RD1_ENET1_RGMII_RD1 0x91
439 MX8MQ_IOMUXC_ENET_RD0_ENET1_RGMII_RD0 0x91
440 MX8MQ_IOMUXC_ENET_TXC_ENET1_RGMII_TXC 0x1f
441 MX8MQ_IOMUXC_ENET_RXC_ENET1_RGMII_RXC 0x91
442 MX8MQ_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x91
443 MX8MQ_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f
444 MX8MQ_IOMUXC_GPIO1_IO09_GPIO1_IO9 0x19
448 pinctrl_i2c1: i2c1grp {
450 MX8MQ_IOMUXC_I2C1_SCL_I2C1_SCL 0x4000007f
451 MX8MQ_IOMUXC_I2C1_SDA_I2C1_SDA 0x4000007f
457 MX8MQ_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x4f
461 pinctrl_mipi_dsi: mipidsigrp {
463 MX8MQ_IOMUXC_ECSPI1_SCLK_GPIO5_IO6 0x16
467 pinctrl_pcie0: pcie0grp {
469 MX8MQ_IOMUXC_I2C4_SCL_PCIE1_CLKREQ_B 0x76
470 MX8MQ_IOMUXC_UART4_RXD_GPIO5_IO28 0x16
474 pinctrl_qspi: qspigrp {
476 MX8MQ_IOMUXC_NAND_ALE_QSPI_A_SCLK 0x82
477 MX8MQ_IOMUXC_NAND_CE0_B_QSPI_A_SS0_B 0x82
478 MX8MQ_IOMUXC_NAND_DATA00_QSPI_A_DATA0 0x82
479 MX8MQ_IOMUXC_NAND_DATA01_QSPI_A_DATA1 0x82
480 MX8MQ_IOMUXC_NAND_DATA02_QSPI_A_DATA2 0x82
481 MX8MQ_IOMUXC_NAND_DATA03_QSPI_A_DATA3 0x82
486 pinctrl_reg_usdhc2: regusdhc2gpiogrp {
488 MX8MQ_IOMUXC_SD2_RESET_B_GPIO2_IO19 0x41
492 pinctrl_sai2: sai2grp {
494 MX8MQ_IOMUXC_SAI2_TXFS_SAI2_TX_SYNC 0xd6
495 MX8MQ_IOMUXC_SAI2_TXC_SAI2_TX_BCLK 0xd6
496 MX8MQ_IOMUXC_SAI2_MCLK_SAI2_MCLK 0xd6
497 MX8MQ_IOMUXC_SAI2_TXD0_SAI2_TX_DATA0 0xd6
498 MX8MQ_IOMUXC_GPIO1_IO08_GPIO1_IO8 0xd6
502 pinctrl_spdif1: spdif1grp {
504 MX8MQ_IOMUXC_SPDIF_TX_SPDIF1_OUT 0xd6
505 MX8MQ_IOMUXC_SPDIF_RX_SPDIF1_IN 0xd6
509 pinctrl_uart1: uart1grp {
511 MX8MQ_IOMUXC_UART1_RXD_UART1_DCE_RX 0x49
512 MX8MQ_IOMUXC_UART1_TXD_UART1_DCE_TX 0x49
516 pinctrl_usdhc1: usdhc1grp {
518 MX8MQ_IOMUXC_SD1_CLK_USDHC1_CLK 0x83
519 MX8MQ_IOMUXC_SD1_CMD_USDHC1_CMD 0xc3
520 MX8MQ_IOMUXC_SD1_DATA0_USDHC1_DATA0 0xc3
521 MX8MQ_IOMUXC_SD1_DATA1_USDHC1_DATA1 0xc3
522 MX8MQ_IOMUXC_SD1_DATA2_USDHC1_DATA2 0xc3
523 MX8MQ_IOMUXC_SD1_DATA3_USDHC1_DATA3 0xc3
524 MX8MQ_IOMUXC_SD1_DATA4_USDHC1_DATA4 0xc3
525 MX8MQ_IOMUXC_SD1_DATA5_USDHC1_DATA5 0xc3
526 MX8MQ_IOMUXC_SD1_DATA6_USDHC1_DATA6 0xc3
527 MX8MQ_IOMUXC_SD1_DATA7_USDHC1_DATA7 0xc3
528 MX8MQ_IOMUXC_SD1_STROBE_USDHC1_STROBE 0x83
529 MX8MQ_IOMUXC_SD1_RESET_B_USDHC1_RESET_B 0xc1
533 pinctrl_usdhc1_100mhz: usdhc1-100grp {
535 MX8MQ_IOMUXC_SD1_CLK_USDHC1_CLK 0x8d
536 MX8MQ_IOMUXC_SD1_CMD_USDHC1_CMD 0xcd
537 MX8MQ_IOMUXC_SD1_DATA0_USDHC1_DATA0 0xcd
538 MX8MQ_IOMUXC_SD1_DATA1_USDHC1_DATA1 0xcd
539 MX8MQ_IOMUXC_SD1_DATA2_USDHC1_DATA2 0xcd
540 MX8MQ_IOMUXC_SD1_DATA3_USDHC1_DATA3 0xcd
541 MX8MQ_IOMUXC_SD1_DATA4_USDHC1_DATA4 0xcd
542 MX8MQ_IOMUXC_SD1_DATA5_USDHC1_DATA5 0xcd
543 MX8MQ_IOMUXC_SD1_DATA6_USDHC1_DATA6 0xcd
544 MX8MQ_IOMUXC_SD1_DATA7_USDHC1_DATA7 0xcd
545 MX8MQ_IOMUXC_SD1_STROBE_USDHC1_STROBE 0x8d
546 MX8MQ_IOMUXC_SD1_RESET_B_USDHC1_RESET_B 0xc1
550 pinctrl_usdhc1_200mhz: usdhc1-200grp {
552 MX8MQ_IOMUXC_SD1_CLK_USDHC1_CLK 0x9f
553 MX8MQ_IOMUXC_SD1_CMD_USDHC1_CMD 0xdf
554 MX8MQ_IOMUXC_SD1_DATA0_USDHC1_DATA0 0xdf
555 MX8MQ_IOMUXC_SD1_DATA1_USDHC1_DATA1 0xdf
556 MX8MQ_IOMUXC_SD1_DATA2_USDHC1_DATA2 0xdf
557 MX8MQ_IOMUXC_SD1_DATA3_USDHC1_DATA3 0xdf
558 MX8MQ_IOMUXC_SD1_DATA4_USDHC1_DATA4 0xdf
559 MX8MQ_IOMUXC_SD1_DATA5_USDHC1_DATA5 0xdf
560 MX8MQ_IOMUXC_SD1_DATA6_USDHC1_DATA6 0xdf
561 MX8MQ_IOMUXC_SD1_DATA7_USDHC1_DATA7 0xdf
562 MX8MQ_IOMUXC_SD1_STROBE_USDHC1_STROBE 0x9f
563 MX8MQ_IOMUXC_SD1_RESET_B_USDHC1_RESET_B 0xc1
567 pinctrl_usdhc2: usdhc2grp {
569 MX8MQ_IOMUXC_SD2_CLK_USDHC2_CLK 0x83
570 MX8MQ_IOMUXC_SD2_CMD_USDHC2_CMD 0xc3
571 MX8MQ_IOMUXC_SD2_DATA0_USDHC2_DATA0 0xc3
572 MX8MQ_IOMUXC_SD2_DATA1_USDHC2_DATA1 0xc3
573 MX8MQ_IOMUXC_SD2_DATA2_USDHC2_DATA2 0xc3
574 MX8MQ_IOMUXC_SD2_DATA3_USDHC2_DATA3 0xc3
575 MX8MQ_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0xc1
579 pinctrl_usdhc2_100mhz: usdhc2-100grp {
581 MX8MQ_IOMUXC_SD2_CLK_USDHC2_CLK 0x85
582 MX8MQ_IOMUXC_SD2_CMD_USDHC2_CMD 0xc5
583 MX8MQ_IOMUXC_SD2_DATA0_USDHC2_DATA0 0xc5
584 MX8MQ_IOMUXC_SD2_DATA1_USDHC2_DATA1 0xc5
585 MX8MQ_IOMUXC_SD2_DATA2_USDHC2_DATA2 0xc5
586 MX8MQ_IOMUXC_SD2_DATA3_USDHC2_DATA3 0xc5
587 MX8MQ_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0xc1
591 pinctrl_usdhc2_200mhz: usdhc2-200grp {
593 MX8MQ_IOMUXC_SD2_CLK_USDHC2_CLK 0x87
594 MX8MQ_IOMUXC_SD2_CMD_USDHC2_CMD 0xc7
595 MX8MQ_IOMUXC_SD2_DATA0_USDHC2_DATA0 0xc7
596 MX8MQ_IOMUXC_SD2_DATA1_USDHC2_DATA1 0xc7
597 MX8MQ_IOMUXC_SD2_DATA2_USDHC2_DATA2 0xc7
598 MX8MQ_IOMUXC_SD2_DATA3_USDHC2_DATA3 0xc7
599 MX8MQ_IOMUXC_GPIO1_IO04_USDHC2_VSELECT 0xc1
603 pinctrl_wdog: wdog1grp {
605 MX8MQ_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0xc6
609 pinctrl_wifi_reset: wifiresetgrp {
611 MX8MQ_IOMUXC_UART4_TXD_GPIO5_IO29 0x16