Skip to content

arm64: dts: imx: Disable PCIe by default and add overlay support for M.2 connector

Sherry Sun imx linux-arm-kernel linux-devicetree lkml 5 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 1 replyApplied
  2. v33 patches 2 repliesSuperseded
  3. v2 posting 2/21 patch 5 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/21 patch0 repliesSuperseded
v11 patch4 repliesSuperseded

Changes in v4 from the cover letter

1. Rebase the patch set to Frank's repo imx/dt64 branch and add base-commit information.

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/3arm64: dts: imx8mp-evk: Disable PCIe bus in the default dtsarch/arm64/boot/dts/freescale/imx8mp-evk.dts+2 -20 replies
2/3arm64: dts: imx95-15x15-evk: Disable PCIe bus in the default dtsarch/arm64/boot/dts/freescale/imx95-15x15-evk.dts+2 -20 replies
3/3arm64: dts: imx: Add common imx-m2-pcie.dtso to enable PCIe on M.2 connectorarch/arm64/boot/dts/freescale/Makefile arch/arm64/boot/dts/freescale/imx-m2-pcie.dtso+22 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH V4 0/3] arm64: dts: imx: Disable PCIe by default and add overlay support for M.2 connector

On both i.MX8MP EVK and i.MX95-15x15 EVK boards, the M.2 connector shares a common regulator between USDHC (for SDIO WiFi) and PCIe controllers. The non-deterministic probe order between these two buses can break the PCIe initialization sequence, causing PCIe devices to fail detection intermittently.

The out-of-box module on i.MX8MP EVK and i.MX95-15x15 EVK are SDIO WiFi (IW612), this series changes the default configuration to match the out-of-box hardware (SDIO WiFi) and provides a device tree overlay for users who need PCIe functionality:
1. Disable PCIe in the default device tree
2. Keep USDHC enabled for SDIO WiFi
3. Add 'm2_usdhc' label to support overlay
4. Provide a common overlay (imx-m2-pcie.dtso) to enable PCIe and disable USDHC when needed

---
changes in v4:
1. Rebase the patch set to Frank's repo imx/dt64 branch and add base-commit information.

Changes in V3:
1. Add a common overlay imx-m2-pcie.dtso for both i.MX8MP EVK and i.MX95-15x15 EVK.
2. Add 'm2_usdhc' label to support overlay.

Changes in V2:
1. Improve the commit message to clarify SDIO WiFi is the out-of-box module on i.MX8MP EVK and i.MX95-15x15 EVK.
---
Sherry Sun (3):
arm64: dts: imx8mp-evk: Disable PCIe bus in the default dts
arm64: dts: imx95-15x15-evk: Disable PCIe bus in the default dts
arm64: dts: imx: Add common imx-m2-pcie.dtso to enable PCIe on M.2
connector

 arch/arm64/boot/dts/freescale/Makefile            |  9 +++++++--
 arch/arm64/boot/dts/freescale/imx-m2-pcie.dtso    | 15 +++++++++++++++
 arch/arm64/boot/dts/freescale/imx8mp-evk.dts      |  4 ++--
 arch/arm64/boot/dts/freescale/imx95-15x15-evk.dts |  4 ++--
 4 files changed, 26 insertions(+), 6 deletions(-)
 create mode 100644 arch/arm64/boot/dts/freescale/imx-m2-pcie.dtso

base-commit: ebdfb84ecf7a0bba26d7a04edae98dd600fd4b42

Signature · 1 line
2.37.1