Skip to contentSkip to conversation

arm64: dts: imx8mp-evk: Disable PCIe bus in the default dts

PATCH Superseded Sherry Sun 2 participants 6 messages Mar 20 – Mar 25

Subsystems (2)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Sherry Sun

author
#0 lore raw

PATCH v2 1/1 arm64: dts: imx8mp-evk: Disable PCIe bus in the default dts

Disable the PCIe bus in the default device tree to avoid shared regulator conflicts between SDIO and PCIe buses. The non-deterministic probe order between these two buses can break the PCIe initialization sequence, causing PCIe devices to fail detection intermittently.

On i.MX8MP EVK board, the M.2 connector is physically wired to both USDHC1 and PCIe0, however the out-of-box module is SDIO IW612 WiFi, so enable the SDIO WiFi in the default imx8mp-evk.dts, and provide a separate device tree overlay (imx8mp-evk-pcie.dtso) to enable the PCIe bus when needed.

---
Chanegs in V2:
1. Improve the commit message to clarify SDIO WiFi is the out-of-box module on i.MX8MP EVK board.

---
 arch/arm64/boot/dts/freescale/Makefile        |  4 +++-
 .../boot/dts/freescale/imx8mp-evk-pcie.dtso   | 19 +++++++++++++++++++
 arch/arm64/boot/dts/freescale/imx8mp-evk.dts  |  4 ++--
 3 files changed, 24 insertions(+), 3 deletions(-)
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso
arch/arm64/boot/dts/freescale/Makefile +3 -1
index 780682258e71..107ca270ef32 100644
@@ -333,12 +333,14 @@ imx8mp-evk-lvds0-imx-lvds-hdmi-dtbs += imx8mp-evk.dtb imx8mp-evk-lvds0-imx-lvds-
 imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0-dtbs += imx8mp-evk.dtb imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtbo
 imx8mp-evk-lvds1-imx-lvds-hdmi-dtbs += imx8mp-evk.dtb imx8mp-evk-lvds1-imx-lvds-hdmi.dtbo
 imx8mp-evk-mx8-dlvds-lcd1-dtbs += imx8mp-evk.dtb imx8mp-evk-mx8-dlvds-lcd1.dtbo
-imx8mp-evk-pcie-ep-dtbs += imx8mp-evk.dtb imx-pcie0-ep.dtbo
+imx8mp-evk-pcie-dtbs := imx8mp-evk.dtb imx8mp-evk-pcie.dtbo
+imx8mp-evk-pcie-ep-dtbs += imx8mp-evk-pcie.dtb imx-pcie0-ep.dtbo
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-lvds0-imx-dlvds-hdmi-channel0.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-lvds0-imx-lvds-hdmi.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-lvds1-imx-lvds-hdmi.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-mx8-dlvds-lcd1.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-pcie.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-pcie-ep.dtb
 
 imx8mp-tqma8mpql-mba8mpxl-lvds-tm070jvhg33-dtbs += imx8mp-tqma8mpql-mba8mpxl.dtb imx8mp-tqma8mpql-mba8mpxl-lvds-tm070jvhg33.dtbo
arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso new file +19 -0
new file mode 100644
index 000000000000..4f6546d442bf
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2026 NXP
+ */
+
+/dts-v1/;
+/plugin/;
+
+&pcie_phy {
+	status = "okay";
+};
+
+&pcie0 {
+	status = "okay";
+};
+
+&usdhc1 {
+	status = "disabled";
+};
arch/arm64/boot/dts/freescale/imx8mp-evk.dts +2 -2
index aedc09937716..f09335e6388d 100644
@@ -763,7 +763,7 @@ &pcie_phy {
 	fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>;
 	clocks = <&pcie0_refclk>;
 	clock-names = "ref";
-	status = "okay";
+	status = "disabled";
 };
 
 &pcie0 {
@@ -773,7 +773,7 @@ &pcie0 {
 	vpcie-supply = <&reg_pcie0>;
 	vpcie3v3aux-supply = <&reg_pcie0>;
 	supports-clkreq;
-	status = "okay";
+	status = "disabled";
 };
 
 &pcie0_ep {
Signature · 1 line
2.37.1
maintainer
#1 lore raw
Quoted 58 lines · Sherry Sun

Disable the PCIe bus in the default device tree to avoid shared regulator conflicts between SDIO and PCIe buses. The non-deterministic probe order between these two buses can break the PCIe initialization sequence, causing PCIe devices to fail detection intermittently.

On i.MX8MP EVK board, the M.2 connector is physically wired to both USDHC1 and PCIe0, however the out-of-box module is SDIO IW612 WiFi, so enable the SDIO WiFi in the default imx8mp-evk.dts, and provide a separate device tree overlay (imx8mp-evk-pcie.dtso) to enable the PCIe bus when needed.

---
Chanegs in V2:
1. Improve the commit message to clarify SDIO WiFi is the out-of-box module on i.MX8MP EVK board.

---
 arch/arm64/boot/dts/freescale/Makefile        |  4 +++-
 .../boot/dts/freescale/imx8mp-evk-pcie.dtso   | 19 +++++++++++++++++++
 arch/arm64/boot/dts/freescale/imx8mp-evk.dts  |  4 ++--
 3 files changed, 24 insertions(+), 3 deletions(-)
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso
arch/arm64/boot/dts/freescale/Makefile +3 -1
index 780682258e71..107ca270ef32 100644
@@ -333,12 +333,14 @@ imx8mp-evk-lvds0-imx-lvds-hdmi-dtbs += imx8mp-evk.dtb imx8mp-evk-lvds0-imx-lvds-
 imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0-dtbs += imx8mp-evk.dtb imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtbo
 imx8mp-evk-lvds1-imx-lvds-hdmi-dtbs += imx8mp-evk.dtb imx8mp-evk-lvds1-imx-lvds-hdmi.dtbo
 imx8mp-evk-mx8-dlvds-lcd1-dtbs += imx8mp-evk.dtb imx8mp-evk-mx8-dlvds-lcd1.dtbo
-imx8mp-evk-pcie-ep-dtbs += imx8mp-evk.dtb imx-pcie0-ep.dtbo
+imx8mp-evk-pcie-dtbs := imx8mp-evk.dtb imx8mp-evk-pcie.dtbo
+imx8mp-evk-pcie-ep-dtbs += imx8mp-evk-pcie.dtb imx-pcie0-ep.dtbo
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-lvds0-imx-dlvds-hdmi-channel0.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-lvds0-imx-lvds-hdmi.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-lvds1-imx-lvds-hdmi.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-mx8-dlvds-lcd1.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-pcie.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-pcie-ep.dtb
 
 imx8mp-tqma8mpql-mba8mpxl-lvds-tm070jvhg33-dtbs += imx8mp-tqma8mpql-mba8mpxl.dtb imx8mp-tqma8mpql-mba8mpxl-lvds-tm070jvhg33.dtbo
arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso new file +9 -0
new file mode 100644
index 000000000000..4f6546d442bf
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2026 NXP
+ */
+
+/dts-v1/;
+/plugin/;
+
+&pcie_phy {

arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso line 19

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso new file +10 -0
+	status = "okay";
+};
+
+&pcie0 {
+	status = "okay";
+};
+
+&usdhc1 {
+	status = "disabled";
+};

Please use one overlay for both imx95 and imx8mp to enable pcie0 and disable usdhc1.

Frank

Quoted 25 lines
arch/arm64/boot/dts/freescale/imx8mp-evk.dts +2 -3
index aedc09937716..f09335e6388d 100644
@@ -763,7 +763,7 @@ &pcie_phy {
 	fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>;
 	clocks = <&pcie0_refclk>;
 	clock-names = "ref";
-	status = "okay";
+	status = "disabled";
 };
 
 &pcie0 {
@@ -773,7 +773,7 @@ &pcie0 {
 	vpcie-supply = <&reg_pcie0>;
 	vpcie3v3aux-supply = <&reg_pcie0>;
 	supports-clkreq;
-	status = "okay";
+	status = "disabled";
 };
 
 &pcie0_ep {
--

2.37.1

author
#2 lore raw
Quoted 78 lines

Subject: Re: [PATCH V2] arm64: dts: imx8mp-evk: Disable PCIe bus in the default dts

Quoted 11 lines · Sherry Sun

Disable the PCIe bus in the default device tree to avoid shared regulator conflicts between SDIO and PCIe buses. The non-deterministic probe order between these two buses can break the PCIe initialization sequence, causing PCIe devices to fail detection intermittently.

On i.MX8MP EVK board, the M.2 connector is physically wired to both USDHC1 and PCIe0, however the out-of-box module is SDIO IW612 WiFi, so enable the SDIO WiFi in the default imx8mp-evk.dts, and provide a separate device tree overlay (imx8mp-evk-pcie.dtso) to enable the PCIe bus when needed.

Quoted 4 lines

---
Chanegs in V2:
1. Improve the commit message to clarify SDIO WiFi is the out-of-box

module on

Quoted 58 lines

i.MX8MP EVK board.

---
 arch/arm64/boot/dts/freescale/Makefile        |  4 +++-
 .../boot/dts/freescale/imx8mp-evk-pcie.dtso   | 19 +++++++++++++++++++
 arch/arm64/boot/dts/freescale/imx8mp-evk.dts  |  4 ++--
 3 files changed, 24 insertions(+), 3 deletions(-)  create mode 100644

arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso

arch/arm64/boot/dts/freescale/Makefile +0 -0
index 780682258e71..107ca270ef32 100644
@@ -333,12 +333,14 @@ imx8mp-evk-lvds0-imx-lvds-hdmi-dtbs +=

imx8mp-evk.dtb imx8mp-evk-lvds0-imx-lvds- imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0-dtbs += imx8mp-evk.dtb imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtbo
imx8mp-evk-lvds1-imx-lvds-hdmi-dtbs += imx8mp-evk.dtb
imx8mp-evk-lvds1-imx-lvds-hdmi.dtbo
imx8mp-evk-mx8-dlvds-lcd1-dtbs += imx8mp-evk.dtb
imx8mp-evk-mx8-dlvds-lcd1.dtbo -imx8mp-evk-pcie-ep-dtbs += imx8mp-evk.dtb imx-pcie0-ep.dtbo

arch/arm64/boot/dts/freescale/Makefile +2 -0
+imx8mp-evk-pcie-dtbs := imx8mp-evk.dtb imx8mp-evk-pcie.dtbo
+imx8mp-evk-pcie-ep-dtbs += imx8mp-evk-pcie.dtb imx-pcie0-ep.dtbo
 dtb-$(CONFIG_ARCH_MXC) +=

imx8mp-evk-lvds0-imx-dlvds-hdmi-channel0.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-lvds0-imx-lvds-hdmi.dtb dtb-$(CONFIG_ARCH_MXC) +=
imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-lvds1-imx-lvds-hdmi.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-mx8-dlvds-lcd1.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-pcie.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-pcie-ep.dtb

imx8mp-tqma8mpql-mba8mpxl-lvds-tm070jvhg33-dtbs +=
imx8mp-tqma8mpql-mba8mpxl.dtb imx8mp-tqma8mpql-mba8mpxl-lvds-tm070jvhg33.dtbo

arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso new file +14 -0
new file mode 100644
index 000000000000..4f6546d442bf
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2026 NXP
+ */
+
+/dts-v1/;
+/plugin/;
+
+&pcie_phy {
+	status = "okay";
+};
+
+&pcie0 {
+	status = "okay";
Quoted 8 lines

arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso line 19

Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso new file +5 -0
+};
+
+&usdhc1 {
+	status = "disabled";
+};

Please use one overlay for both imx95 and imx8mp to enable pcie0 and disable usdhc1.

Hi Frank,

imx8mp has a specific pcie_phy, I disabled it in the default imx8mp-evk.dts and enabled it in xxx-pcie.dtso, if we use one overlay for both imx95 and imx8mp, is it acceptable that we need to keep the 8mp pcie_phy enabled even in non-PCIe usage scenarios?

Best Regards
Sherry

Quoted 29 lines

Frank

Quoted 26 lines
arch/arm64/boot/dts/freescale/imx8mp-evk.dts +2 -3
index aedc09937716..f09335e6388d 100644
@@ -763,7 +763,7 @@ &pcie_phy {
 	fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_INPUT>;
 	clocks = <&pcie0_refclk>;
 	clock-names = "ref";
-	status = "okay";
+	status = "disabled";
 };
 
 &pcie0 {
@@ -773,7 +773,7 @@ &pcie0 {
 	vpcie-supply = <&reg_pcie0>;
 	vpcie3v3aux-supply = <&reg_pcie0>;
 	supports-clkreq;
-	status = "okay";
+	status = "disabled";
 };
 
 &pcie0_ep {
--

2.37.1

author
#3 lore raw
Quoted 89 lines
Quoted 8 lines

Subject: Re: [PATCH V2] arm64: dts: imx8mp-evk: Disable PCIe bus in the default dts

Quoted 4 lines · Sherry Sun

Disable the PCIe bus in the default device tree to avoid shared regulator conflicts between SDIO and PCIe buses. The non-deterministic probe order between these two buses can break the PCIe initialization sequence, causing PCIe devices to fail detection

intermittently.

Quoted 7 lines
Quoted 7 lines

On i.MX8MP EVK board, the M.2 connector is physically wired to both USDHC1 and PCIe0, however the out-of-box module is SDIO IW612 WiFi, so enable the SDIO WiFi in the default imx8mp-evk.dts, and provide a separate device tree overlay (imx8mp-evk-pcie.dtso) to enable the PCIe bus when needed.

Quoted 9 lines
Quoted 4 lines

---
Chanegs in V2:
1. Improve the commit message to clarify SDIO WiFi is the out-of-box

module on

Quoted 4 lines

i.MX8MP EVK board.

---
 arch/arm64/boot/dts/freescale/Makefile        |  4 +++-
 .../boot/dts/freescale/imx8mp-evk-pcie.dtso   | 19

+++++++++++++++++++

Quoted 54 lines
Quoted 54 lines
 arch/arm64/boot/dts/freescale/imx8mp-evk.dts  |  4 ++--
 3 files changed, 24 insertions(+), 3 deletions(-)  create mode

100644 arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso

arch/arm64/boot/dts/freescale/Makefile +0 -0
index 780682258e71..107ca270ef32 100644
@@ -333,12 +333,14 @@ imx8mp-evk-lvds0-imx-lvds-hdmi-dtbs +=

imx8mp-evk.dtb imx8mp-evk-lvds0-imx-lvds- imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0-dtbs += imx8mp-evk.dtb imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtbo
imx8mp-evk-lvds1-imx-lvds-hdmi-dtbs += imx8mp-evk.dtb
imx8mp-evk-lvds1-imx-lvds-hdmi.dtbo
imx8mp-evk-mx8-dlvds-lcd1-dtbs += imx8mp-evk.dtb
imx8mp-evk-mx8-dlvds-lcd1.dtbo -imx8mp-evk-pcie-ep-dtbs += imx8mp-evk.dtb imx-pcie0-ep.dtbo

arch/arm64/boot/dts/freescale/Makefile +2 -0
+imx8mp-evk-pcie-dtbs := imx8mp-evk.dtb imx8mp-evk-pcie.dtbo
+imx8mp-evk-pcie-ep-dtbs += imx8mp-evk-pcie.dtb imx-pcie0-ep.dtbo
 dtb-$(CONFIG_ARCH_MXC) +=

imx8mp-evk-lvds0-imx-dlvds-hdmi-channel0.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-lvds0-imx-lvds-hdmi.dtb dtb-$(CONFIG_ARCH_MXC) +=
imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-lvds1-imx-lvds-hdmi.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-mx8-dlvds-lcd1.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-pcie.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-pcie-ep.dtb

imx8mp-tqma8mpql-mba8mpxl-lvds-tm070jvhg33-dtbs +=
imx8mp-tqma8mpql-mba8mpxl.dtb imx8mp-tqma8mpql-mba8mpxl-lvds-tm070jvhg33.dtbo

arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso new file +14 -0
new file mode 100644
index 000000000000..4f6546d442bf
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2026 NXP
+ */
+
+/dts-v1/;
+/plugin/;
+
+&pcie_phy {
+	status = "okay";
+};
+
+&pcie0 {
+	status = "okay";
Quoted 8 lines

arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso line 19

Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso new file +5 -0
+};
+
+&usdhc1 {
+	status = "disabled";
+};

Please use one overlay for both imx95 and imx8mp to enable pcie0 and disable usdhc1.

Quoted 7 lines

Hi Frank,

imx8mp has a specific pcie_phy, I disabled it in the default imx8mp-evk.dts and enabled it in xxx-pcie.dtso, if we use one overlay for both imx95 and imx8mp, is it acceptable that we need to keep the 8mp pcie_phy enabled even in non-PCIe usage scenarios?

In addition, another difference between imx8mp and imx95 is that imx8mp connects usdhc1 to the M.2 connector, while imx95 connects usdhc3 to the M.2 connector. The usdhc interfaces are different, so we cannot use the same DTSO file.

Best Regards
Sherry

maintainer
#4 lore raw
Quoted 89 lines · Sherry Sun
Quoted 89 lines
Quoted 8 lines

Subject: Re: [PATCH V2] arm64: dts: imx8mp-evk: Disable PCIe bus in the default dts

Quoted 4 lines · Sherry Sun

Disable the PCIe bus in the default device tree to avoid shared regulator conflicts between SDIO and PCIe buses. The non-deterministic probe order between these two buses can break the PCIe initialization sequence, causing PCIe devices to fail detection

intermittently.

Quoted 7 lines
Quoted 7 lines

On i.MX8MP EVK board, the M.2 connector is physically wired to both USDHC1 and PCIe0, however the out-of-box module is SDIO IW612 WiFi, so enable the SDIO WiFi in the default imx8mp-evk.dts, and provide a separate device tree overlay (imx8mp-evk-pcie.dtso) to enable the PCIe bus when needed.

Quoted 9 lines
Quoted 4 lines

---
Chanegs in V2:
1. Improve the commit message to clarify SDIO WiFi is the out-of-box

module on

Quoted 4 lines

i.MX8MP EVK board.

---
 arch/arm64/boot/dts/freescale/Makefile        |  4 +++-
 .../boot/dts/freescale/imx8mp-evk-pcie.dtso   | 19

+++++++++++++++++++

Quoted 62 lines
Quoted 49 lines
 arch/arm64/boot/dts/freescale/imx8mp-evk.dts  |  4 ++--
 3 files changed, 24 insertions(+), 3 deletions(-)  create mode

100644 arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso

arch/arm64/boot/dts/freescale/Makefile +0 -0
index 780682258e71..107ca270ef32 100644
@@ -333,12 +333,14 @@ imx8mp-evk-lvds0-imx-lvds-hdmi-dtbs +=

imx8mp-evk.dtb imx8mp-evk-lvds0-imx-lvds- imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0-dtbs += imx8mp-evk.dtb imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtbo
imx8mp-evk-lvds1-imx-lvds-hdmi-dtbs += imx8mp-evk.dtb
imx8mp-evk-lvds1-imx-lvds-hdmi.dtbo
imx8mp-evk-mx8-dlvds-lcd1-dtbs += imx8mp-evk.dtb
imx8mp-evk-mx8-dlvds-lcd1.dtbo -imx8mp-evk-pcie-ep-dtbs += imx8mp-evk.dtb imx-pcie0-ep.dtbo

arch/arm64/boot/dts/freescale/Makefile +2 -0
+imx8mp-evk-pcie-dtbs := imx8mp-evk.dtb imx8mp-evk-pcie.dtbo
+imx8mp-evk-pcie-ep-dtbs += imx8mp-evk-pcie.dtb imx-pcie0-ep.dtbo
 dtb-$(CONFIG_ARCH_MXC) +=

imx8mp-evk-lvds0-imx-dlvds-hdmi-channel0.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-lvds0-imx-lvds-hdmi.dtb dtb-$(CONFIG_ARCH_MXC) +=
imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-lvds1-imx-lvds-hdmi.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-mx8-dlvds-lcd1.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-pcie.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-pcie-ep.dtb

imx8mp-tqma8mpql-mba8mpxl-lvds-tm070jvhg33-dtbs +=
imx8mp-tqma8mpql-mba8mpxl.dtb imx8mp-tqma8mpql-mba8mpxl-lvds-tm070jvhg33.dtbo

arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso new file +9 -0
new file mode 100644
index 000000000000..4f6546d442bf
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2026 NXP
+ */
+
+/dts-v1/;
+/plugin/;
+
+&pcie_phy {

arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso line 19

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso new file +10 -0
+	status = "okay";
+};
+
+&pcie0 {
+	status = "okay";
+};
+
+&usdhc1 {
+	status = "disabled";
+};

Please use one overlay for both imx95 and imx8mp to enable pcie0 and disable usdhc1.

Quoted 3 lines
Quoted 3 lines

Hi Frank,

imx8mp has a specific pcie_phy, I disabled it in the default imx8mp-evk.dts

Suppose, you needn't disable phy.

Quoted 6 lines
Quoted 4 lines

and enabled it in xxx-pcie.dtso, if we use one overlay for both imx95 and imx8mp, is it acceptable that we need to keep the 8mp pcie_phy enabled even in non-PCIe usage scenarios?

In addition, another difference between imx8mp and imx95 is that imx8mp connects usdhc1 to the M.2 connector, while imx95 connects usdhc3 to the M.2 connector. The usdhc interfaces are different, so we cannot use the same DTSO file.

you use addtional label.

for example

m2_usdhc: &usdhc1 {
	...
};

in overlay file

&m2_usdhc {
	status = "disabled";
}

Frank

Quoted 3 lines

Best Regards
Sherry

author
#5 lore raw
Quoted 119 lines · Sherry Sun
Quoted 93 lines
Quoted 93 lines
Quoted 9 lines

Subject: Re: [PATCH V2] arm64: dts: imx8mp-evk: Disable PCIe bus in the default dts

Quoted 5 lines · Sherry Sun

Disable the PCIe bus in the default device tree to avoid shared regulator conflicts between SDIO and PCIe buses. The non-deterministic probe order between these two buses can break the PCIe initialization sequence, causing PCIe devices to fail detection

intermittently.

Quoted 8 lines
Quoted 8 lines

On i.MX8MP EVK board, the M.2 connector is physically wired to both
USDHC1 and PCIe0, however the out-of-box module is SDIO IW612 WiFi, so enable the SDIO WiFi in the default imx8mp-evk.dts, and provide a separate device tree overlay (imx8mp-evk-pcie.dtso) to enable the PCIe bus when needed.

Quoted 10 lines
Quoted 5 lines

---
Chanegs in V2:
1. Improve the commit message to clarify SDIO WiFi is the out-of-box

module on

Quoted 4 lines

i.MX8MP EVK board.

---
 arch/arm64/boot/dts/freescale/Makefile        |  4 +++-
 .../boot/dts/freescale/imx8mp-evk-pcie.dtso   | 19

+++++++++++++++++++

Quoted 63 lines
Quoted 50 lines
 arch/arm64/boot/dts/freescale/imx8mp-evk.dts  |  4 ++--
 3 files changed, 24 insertions(+), 3 deletions(-)  create mode

100644 arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso

arch/arm64/boot/dts/freescale/Makefile +0 -0
index 780682258e71..107ca270ef32 100644
@@ -333,12 +333,14 @@ imx8mp-evk-lvds0-imx-lvds-hdmi-dtbs +=

imx8mp-evk.dtb imx8mp-evk-lvds0-imx-lvds- imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0-dtbs += imx8mp-evk.dtb imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtbo
imx8mp-evk-lvds1-imx-lvds-hdmi-dtbs += imx8mp-evk.dtb
imx8mp-evk-lvds1-imx-lvds-hdmi.dtbo
imx8mp-evk-mx8-dlvds-lcd1-dtbs += imx8mp-evk.dtb
imx8mp-evk-mx8-dlvds-lcd1.dtbo -imx8mp-evk-pcie-ep-dtbs += imx8mp-evk.dtb imx-pcie0-ep.dtbo

arch/arm64/boot/dts/freescale/Makefile +3 -0
+imx8mp-evk-pcie-dtbs := imx8mp-evk.dtb imx8mp-evk-pcie.dtbo
+imx8mp-evk-pcie-ep-dtbs += imx8mp-evk-pcie.dtb
+imx-pcie0-ep.dtbo
 dtb-$(CONFIG_ARCH_MXC) +=

imx8mp-evk-lvds0-imx-dlvds-hdmi-channel0.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-lvds0-imx-lvds-hdmi.dtb dtb-$(CONFIG_ARCH_MXC) +=
imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-lvds1-imx-lvds-hdmi.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-mx8-dlvds-lcd1.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-pcie.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-pcie-ep.dtb

imx8mp-tqma8mpql-mba8mpxl-lvds-tm070jvhg33-dtbs +=
imx8mp-tqma8mpql-mba8mpxl.dtb imx8mp-tqma8mpql-mba8mpxl-lvds-tm070jvhg33.dtbo

arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso new file +9 -0
new file mode 100644
index 000000000000..4f6546d442bf
@@ -0,0 +1,19 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2026 NXP
+ */
+
+/dts-v1/;
+/plugin/;
+
+&pcie_phy {

arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso line 19

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mp-evk-pcie.dtso new file +10 -0
+	status = "okay";
+};
+
+&pcie0 {
+	status = "okay";
+};
+
+&usdhc1 {
+	status = "disabled";
+};

Please use one overlay for both imx95 and imx8mp to enable pcie0 and disable usdhc1.

Quoted 4 lines
Quoted 4 lines

Hi Frank,

imx8mp has a specific pcie_phy, I disabled it in the default imx8mp-evk.dts

Suppose, you needn't disable phy.

Quoted 6 lines
Quoted 4 lines

and enabled it in xxx-pcie.dtso, if we use one overlay for both imx95 and imx8mp, is it acceptable that we need to keep the 8mp pcie_phy enabled even in non-PCIe usage scenarios?

In addition, another difference between imx8mp and imx95 is that imx8mp

connects usdhc1 to the M.2 connector, while imx95 connects usdhc3 to the M.2 connector. The usdhc interfaces are different, so we cannot use the same DTSO file.

you use addtional label.

for example

m2_usdhc: &usdhc1 {
	...
};
Quoted 6 lines

in overlay file

&m2_usdhc {
	status = "disabled";
}

Ok, thanks for the suggestion, will try this in next version.

Best Regards
Sherry