Skip to content

mmc: sdhci-cadence6: harden PHY config tables and enable Agilex5 UHS modes

[email protected] u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v14 patches 10 repliesSuperseded

Changes in v2 from the cover letter

- Patch 1 unchanged.
- Drop a double blank line from patch 2.
- Patch 3 derive phony_dqs_timing from the extended-read setting instead of a fixed per-mode default, and the override moved from raw cdns,phy-ctrl-* to cdns,ddr-phony-dqs-timing, plus the expanded commit message.
- Patch 4 drops the now-redundant per-mode PHY control overrides and express the modular board's DDR read-path value via cdns,ddr-phony-dqs-timing.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mmc: sdhci-cadence6: use const PHY config tables with per-call overridesdrivers/mmc/sdhci-cadence6.c+49 -390 replies
2/4mmc: sdhci-cadence6: name PHY and controller config table slotsdrivers/mmc/sdhci-cadence6.c+43 -110 replies
3/4mmc: sdhci-cadence6: configure PHY control register per speed modedrivers/mmc/sdhci-cadence6.c+34 -00 replies
4/4arm: dts: socfpga: agilex5: add SD/eMMC UHS PHY timingarch/arm/dts/socfpga_agilex5_socdk-u-boot.dtsi arch/arm/dts/socfpga_agilex5_socdk_013b-u-boot.dtsi arch/arm/dts/socfpga_agilex5_socdk_013b.dts +2 more+67 -30 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/4] mmc: sdhci-cadence6: harden PHY config tables and enable Agilex5 UHS modes

From: Tze Yee Ng <[email protected]>

This series hardens the per-mode PHY/controller configuration handling in the Cadence SD6HC (v6) driver and then enables the UHS-I higher-speed modes (SDR104 and DDR50, plus eMMC DDR52) on the Agilex5 SoCDK and its 013B and modular variants:

- const config tables + per-call copies, so device-tree overrides can

    no longer mutate the shared defaults and leak between controllers;

- named enum slots for the PHY/HRS config tables, so reordering or inserting an entry cannot silently reprogram the wrong register (no functional change);
- program the PHY control register (0x2080) on every speed-mode update, keeping the documented reset bits and deriving its phony_dqs_timing field from the per-mode extended-read setting instead of carrying a fixed default, with an optional DDR read-path device-tree override (cdns,ddr-phony-dqs-timing);
- add the SDR104 (emmc-hs200) and DDR50 (emmc-ddr) PHY timing for the Agilex5 SoCDK, 013B and modular boards and advertise the matching sd-uhs-* / mmc-ddr-1_8v capabilities.
---
Changes in v2:
- Patch 1 unchanged.
- Drop a double blank line from patch 2.
- Patch 3 derive phony_dqs_timing from the extended-read setting instead of a fixed per-mode default, and the override moved from raw cdns,phy-ctrl-* to cdns,ddr-phony-dqs-timing, plus the expanded commit message.
- Patch 4 drops the now-redundant per-mode PHY control overrides and express the modular board's DDR read-path value via cdns,ddr-phony-dqs-timing.

v1: https://patchwork.ozlabs.org/project/uboot/cover/[email protected]/

Dependencies
------------
The device-tree patch (4) additionally depends on two Agilex5 board patches still under review, as it extends the .dts/.dtsi files they add:

"arm: dts: socfpga: Add MDK support with external GPIO expander"
- Tanmay Kathpalia (series=530199)
"arm: dts: socfpga: Add Agilex5 E-Series 013B SoCDK variant"
- Dinesh Maniyam (series=522479)
---
Tze Yee Ng (4):
mmc: sdhci-cadence6: use const PHY config tables with per-call
overrides
mmc: sdhci-cadence6: name PHY and controller config table slots
mmc: sdhci-cadence6: configure PHY control register per speed mode
arm: dts: socfpga: agilex5: add SD/eMMC UHS PHY timing

 .../arm/dts/socfpga_agilex5_socdk-u-boot.dtsi |  12 ++
 .../socfpga_agilex5_socdk_013b-u-boot.dtsi    |  23 ++-
 arch/arm/dts/socfpga_agilex5_socdk_013b.dts   |   4 +-
 arch/arm/dts/socfpga_agilex5_socdk_emmc.dts   |  12 ++
 .../arm/dts/socfpga_agilex5_socdk_modular.dts |  19 +++
 drivers/mmc/sdhci-cadence6.c                  | 158 +++++++++++++-----
 6 files changed, 184 insertions(+), 44 deletions(-)
Signature · 1 line
2.43.7