[PATCH v2 v2 0/2] mmc: sdhci-msm: Add firmware-managed resource support for Nord SDCC
From: Anjana Hari
Date: Fri Dec 04 2026 - 19:22:14 EST
On certain Qualcomm automotive SoCs such as Nord, platform resources
including clocks, interconnect bandwidth, resets, and regulators are
owned and managed by firmware rather than directly by Linux. The
firmware abstracts these resources behind logical power domains and
exposes control through the SCMI power protocol.
This series extends the sdhci-msm driver to support this
firmware-managed model. Instead of directly programming GCC clocks and
PMIC regulators, the driver operates through two logical power domains:
- "power": controls the SDCC rail. The driver requests power state
transitions via pm_runtime_resume_and_get() / pm_runtime_put_sync()
on the domain device, which are forwarded to firmware as SCMI
power-state messages.
- "perf": the SCMI perf domain driver dynamically registers the
supported clock frequencies as OPPs by querying firmware at probe
time. Clock rate selection uses dev_pm_opp_find_freq_floor() and
dev_pm_opp_set_opp() on this domain.
Patch 1 adds the Device Tree binding for the new "qcom,nord-sdhci"
compatible string, documenting the two power-domain properties and the
absence of clock, interconnect, reset, and regulator entries.
Patch 2 introduces the firmware-managed variant in the driver. A new
sdhci_msm_fw_v5_var descriptor is added with its pd_data populated;
probe detects this and selects firmware-specific platform data and ops.
The new ops implement clock rate selection through the perf domain OPP
path and route suspend/resume through SCMI power-state transitions
rather than local clock and regulator management.
Changes in v2:
- dt-bindings: drop redundant "bindings" from subject [Krzysztof Kozlowski]
- dt-bindings: remove driver implementation details from commit message [Krzysztof Kozlowski]
- dt-bindings: document that CQHCI is not supported on this interface [Krzysztof Kozlowski]
- dt-bindings: drop redundant description from iommus property [Krzysztof Kozlowski]
- Fix host->runtime_suspended not updated on fw_managed runtime PM paths [sashiko-bot]
- Fix NULL deref and PM refcount underflow in sdhci_msm_remove() [sashiko-bot]
- Remove redundant pwr_dev RPM refs under PD_FLAG_DEV_LINK_ON [sashiko-bot]
- Fix unused label fw_detach causing build failure with CONFIG_WERROR=y [sashiko-bot]
Signed-off-by: Anjana Hari <anjana.hari@xxxxxxxxxxxxxxxx>
---
Anjana Hari (2):
dt-bindings: mmc: sdhci-msm: Document Nord SDCC
mmc: sdhci-msm: Add support for firmware-managed resource platforms
.../bindings/mmc/qcom,nord-sdhci.yaml | 89 ++++++++
drivers/mmc/host/sdhci-msm.c | 192 +++++++++++++++++-
2 files changed, 275 insertions(+), 6 deletions(-)
create mode 100644 Documentation/devicetree/bindings/mmc/qcom,nord-sdhci.yaml
--
2.34.1