From: Anjana Hari <anjana.hari@oss.qualcomm.com>
To: Ulf Hansson <ulfh@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Adrian Hunter <adrian.hunter@intel.com>,
Anjana Hari <anjana.hari@oss.qualcomm.com>
Cc: linux-arm-msm@vger.kernel.org, linux-mmc@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Shazad Hussain <shazad.hussain@oss.qualcomm.com>,
Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>,
Nitin Rawat <nitin.rawat@oss.qualcomm.com>,
Ram Gupta <ram.gupta@oss.qualcomm.com>
Subject: [PATCH 1/2] dt-bindings: mmc: sdhci-msm: Document bindings for Nord SDCC
Date: Mon, 02 Nov 2026 19:33:41 +0530 [thread overview]
Message-ID: <20261102-sdcc_scmi-v1-1-244dbd893051@oss.qualcomm.com> (raw)
In-Reply-To: <20261102-sdcc_scmi-v1-0-244dbd893051@oss.qualcomm.com>
Add Device Tree binding for the Nord SDHCI variant of the Qualcomm
sdhci-msm controller, where platform resources are managed by firmware
through the SCMI power protocol rather than being directly accessible
to Linux.
Unlike existing sdhci-msm variants, this binding does not require
clock, interconnect, reset, or regulator properties. Instead, platform
resource control is abstracted behind two logical power domains:
- "power": controls the SDCC rail power state. The kernel requests
power-on and power-off transitions via the runtime PM framework;
these are forwarded to firmware as SCMI power-state messages.
- "perf": exposes the supported clock frequencies as OPPs populated
dynamically by the SCMI perf domain driver at probe time via the
SCMI performance protocol. The driver selects operating points via
dev_pm_opp_find_freq_floor() and dev_pm_opp_set_opp().
Both domains must be listed under power-domains with their names
declared in power-domain-names.
The compatible string "qcom,nord-sdhci" selects this variant at probe
time and causes the driver to attach the two power domains via
dev_pm_domain_attach_list() with PD_FLAG_DEV_LINK_ON, ensuring correct
suspend/resume ordering between the SDCC controller and the firmware
power domain devices.
Signed-off-by: Anjana Hari <anjana.hari@oss.qualcomm.com>
---
.../devicetree/bindings/mmc/qcom,nord-sdhci.yaml | 89 ++++++++++++++++++++++
1 file changed, 89 insertions(+)
diff --git a/Documentation/devicetree/bindings/mmc/qcom,nord-sdhci.yaml b/Documentation/devicetree/bindings/mmc/qcom,nord-sdhci.yaml
new file mode 100644
index 000000000000..c512628617b0
--- /dev/null
+++ b/Documentation/devicetree/bindings/mmc/qcom,nord-sdhci.yaml
@@ -0,0 +1,89 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mmc/qcom,nord-sdhci.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm Nord SDHCI Controller
+
+maintainers:
+ - Anjana Hari <anjana.hari@oss.qualcomm.com>
+
+description:
+ SDHCI (SD Host Controller Interface) present on Qualcomm Nord SoC.
+ Clock and power resources are managed by firmware through an SCMI
+ server, so no clock entries are required in the device tree node.
+
+properties:
+ compatible:
+ const: qcom,nord-sdhci
+
+ reg:
+ maxItems: 1
+
+ reg-names:
+ items:
+ - const: hc
+
+ interrupts:
+ maxItems: 2
+
+ interrupt-names:
+ items:
+ - const: hc_irq
+ - const: pwr_irq
+
+ iommus:
+ maxItems: 1
+ description: phandle to the apps SMMU node with SID mask.
+
+ dma-coherent: true
+
+ power-domains:
+ maxItems: 2
+
+ power-domain-names:
+ items:
+ - const: power
+ - const: perf
+
+required:
+ - compatible
+ - reg
+ - reg-names
+ - interrupts
+ - interrupt-names
+ - iommus
+ - dma-coherent
+ - power-domains
+ - power-domain-names
+
+allOf:
+ - $ref: sdhci-common.yaml#
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+ mmc@b84000 {
+ compatible = "qcom,nord-sdhci";
+ reg = <0x000b84000 0x1000>;
+ reg-names = "hc";
+
+ interrupts = <GIC_SPI 261 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 227 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "hc_irq", "pwr_irq";
+
+ bus-width = <4>;
+ no-sd;
+ no-mmc;
+ non-removable;
+
+ iommus = <&apps_smmu 0x1580 0x0>;
+ dma-coherent;
+
+ power-domains = <&scmi34_pd 0>, <&scmi34_dvfs 0>;
+ power-domain-names = "power", "perf";
+ };
--
2.34.1
next prev parent reply other threads:[~2026-11-02 14:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-02 14:03 [PATCH 0/2] mmc: sdhci-msm: Add firmware-managed resource support " Anjana Hari
2026-11-02 14:03 ` Anjana Hari [this message]
2026-11-02 14:03 ` [PATCH 2/2] mmc: sdhci-msm: Add support for firmware-managed resource platforms Anjana Hari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261102-sdcc_scmi-v1-1-244dbd893051@oss.qualcomm.com \
--to=anjana.hari@oss.qualcomm.com \
--cc=adrian.hunter@intel.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=manivannan.sadhasivam@oss.qualcomm.com \
--cc=nitin.rawat@oss.qualcomm.com \
--cc=ram.gupta@oss.qualcomm.com \
--cc=robh@kernel.org \
--cc=shazad.hussain@oss.qualcomm.com \
--cc=ulfh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®