Devicetree
 help / color / mirror / Atom feed
* [PATCH v2 v2 0/2] mmc: sdhci-msm: Add firmware-managed resource support for Nord SDCC
@ 2026-12-05  0:21 Anjana Hari
  2026-12-05  0:21 ` [PATCH v2 v2 1/2] dt-bindings: mmc: sdhci-msm: Document " Anjana Hari
  2026-12-05  0:21 ` [PATCH v2 v2 2/2] mmc: sdhci-msm: Add support for firmware-managed resource platforms Anjana Hari
  0 siblings, 2 replies; 5+ messages in thread
From: Anjana Hari @ 2026-12-05  0:21 UTC (permalink / raw)
  To: ulfh, robh, krzk+dt, conor+dt, adrian.hunter, anjana.hari
  Cc: linux-arm-msm, linux-mmc, devicetree, linux-kernel,
	shazad.hussain, manivannan.sadhasivam, nitin.rawat, ram.gupta

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@oss.qualcomm.com>
---
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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-12-05  0:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05  0:21 [PATCH v2 v2 0/2] mmc: sdhci-msm: Add firmware-managed resource support for Nord SDCC Anjana Hari
2026-12-05  0:21 ` [PATCH v2 v2 1/2] dt-bindings: mmc: sdhci-msm: Document " Anjana Hari
2026-12-05  0:35   ` sashiko-bot
2026-12-05  0:21 ` [PATCH v2 v2 2/2] mmc: sdhci-msm: Add support for firmware-managed resource platforms Anjana Hari
2026-12-05  0:39   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox