Devicetree
 help / color / mirror / Atom feed
* [PATCH v3 0/2] mmc: sdhci-msm: Add firmware-managed resource support for Nord SDCC
@ 2026-12-05  2:36 Anjana Hari
  2026-12-05  2:36 ` [PATCH v3 1/2] dt-bindings: mmc: sdhci-msm: Document " Anjana Hari
  2026-12-05  2:36 ` [PATCH v3 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  2:36 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
attached via devm_pm_domain_attach_list() with PD_FLAG_DEV_LINK_ON:

  - "power": controls the SDCC rail. The device link created by
    PD_FLAG_DEV_LINK_ON drives the full runtime PM lifecycle; no manual
    pm_runtime calls are made on the domain device.

  - "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 v3:
- Fix uninitialized ret in sdhci_msm_runtime_resume() [sashiko-bot]
- Fix unused label out in sdhci_msm_runtime_resume() [sashiko-bot]
- Fix ignored error from msm_fw_set_clock_rate_for_bus_mode() in tuning [sashiko-bot]
- Switch to devm_pm_domain_attach_list() to fix pwr_irq use-after-free in remove() [sashiko-bot]
- Fix log messages to use desired_rate instead of pre-multiplication clock [sashiko-bot]
- Fix %d -> %u for num_pd_names format specifier [sashiko-bot]
- Fix probe comment to describe PD_FLAG_DEV_LINK_ON / DL_FLAG_RPM_ACTIVE correctly [sashiko-bot]
- Fix Co-developed-by: trailer missing hyphen [sashiko-bot]
- dt-bindings: drop reg-names from required [sashiko-bot]
- dt-bindings: fix 9-digit reg address in example [sashiko-bot]

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]

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         |  88 ++++++++
 drivers/mmc/host/sdhci-msm.c                  | 189 +++++++++++++++++-
 2 files changed, 270 insertions(+), 7 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  2:59 UTC | newest]

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

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