[PATCH 0/8] mmc: sdhci-cadence: Improvements and fixes for Cadence SDHCI driver

Tanmay Kathpalia tanmay.kathpalia at altera.com
Mon Nov 10 18:37:29 CET 2025


This patch series introduces improvements and fixes to the Cadence SDHCI
driver, correct timing mode handling, device tree integration, SD/eMMC
tuning, and compliance with SDHCI specification updates.

Summary of changes:

- Add reset control support
  Ensures proper controller reset during probe for reliable initialization.

- Respect max-frequency from device tree
  Uses the max-frequency property for configuration instead of default
  hardware values.

- Correct timing mode and PHY/control configuration
  Refactors timing mode selection for SD and eMMC cards, implements new
  mode mapping, and updates PHY/control settings for UHS and legacy modes.

- Add SDHCI_SPEC_400, _410, _420 defines
  Introduces new specification macros for SDHCI v4.0+ compatibility.

- Use hardware version field for controller detection
  Switches from compatible string checks to hardware version detection for
  controller capabilities.

- Enable software tuning for SD and eMMC
  Extends tuning logic to support both SD and eMMC devices, improving
  reliability.

- Fix device tree property naming conventions
  Updates DT property names for compliance and corrects minor typos.

- Add DLL master control and improve tuning reliability
  Adds support for PHY DLL master control and enhances tuning robustness.

Please review the series and provide your feedback.

Regards,
Tanmay Kathpalia
tanmay.kathpalia at altera.com

Tanmay Kathpalia (8):
  mmc: sdhci-cadence: Add reset control support
  mmc: sdhci-cadence: Use max-frequency property from device tree
  mmc: sdhci-cadence: Set controller and PHY speed modes for SD and eMMC
    cards
  mmc: sdhci: Add SDHCI_SPEC_400, _410, and _420 version defines
  mmc: sdhci-cadence: Use hardware version field for Cadence SDHCI
    controller
  mmc: sdhci-cadence: Enable software tuning for both SD and eMMC
    interfaces
  mmc: sdhci-cadence6: socfpga: Fix DT property naming convention
  mmc: sdhci-cadence6: Add DLL master control and improve tuning
    reliability

 drivers/mmc/sdhci-cadence.c  | 100 ++++++++++++++++++++++++-----------
 drivers/mmc/sdhci-cadence6.c |  82 +++++++++++++++++++++-------
 include/sdhci.h              |   3 ++
 3 files changed, 137 insertions(+), 48 deletions(-)

-- 
2.19.0



More information about the U-Boot mailing list