From: Sneh Mankad <sneh.mankad@oss.qualcomm.com>
To: Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Maulik Shah <quic_mkshah@quicinc.com>
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Sneh Mankad <sneh.mankad@oss.qualcomm.com>
Subject: [PATCH v4 1/3] dt-bindings: soc: qcom: stats: Add compatible for Shikra
Date: Mon, 07 Sep 2026 19:17:53 +0530 [thread overview]
Message-ID: <20260907-shikra_stats-v4-1-3825351f9740@oss.qualcomm.com> (raw)
In-Reply-To: <20260907-shikra_stats-v4-0-3825351f9740@oss.qualcomm.com>
SoC LPM stats are present in RPM MSGRAM and subsystem LPM stats are present
in SMEM for Shikra.
A generic "qcom,rpm-stats" compatible only reads SoC LPM stats like vmin
and vlow.
Document shikra rpm compatible to read subsystem LPM stats too along with
SoC LPM stats.
Keep "qcom,rpm-stats" as a fallback for RPM targets, so that SoC level
stats are still shown even without subsystem level stats support. A plain
enum can't express that, since it caps compatible at one item. Add a oneOf
branch with items for this pattern.
Signed-off-by: Sneh Mankad <sneh.mankad@oss.qualcomm.com>
---
.../devicetree/bindings/soc/qcom/qcom-stats.yaml | 25 ++++++++++++++--------
1 file changed, 16 insertions(+), 9 deletions(-)
diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml
index 686a7ef2f48af11a0e63904ff979e40d7538de65..b384a5983d43358d9fceb6fa305f20d6a0c76504 100644
--- a/Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml
+++ b/Documentation/devicetree/bindings/soc/qcom/qcom-stats.yaml
@@ -18,15 +18,22 @@ description:
properties:
compatible:
- enum:
- - qcom,rpmh-stats
- - qcom,sdm845-rpmh-stats
- - qcom,rpm-stats
- # For older RPM firmware versions with fixed offset for the sleep stats
- - qcom,apq8084-rpm-stats
- - qcom,msm8226-rpm-stats
- - qcom,msm8916-rpm-stats
- - qcom,msm8974-rpm-stats
+ oneOf:
+ - enum:
+ - qcom,rpmh-stats
+ - qcom,sdm845-rpmh-stats
+ - qcom,rpm-stats
+ # For older RPM firmware versions with fixed offset for the sleep stats
+ - qcom,apq8084-rpm-stats
+ - qcom,msm8226-rpm-stats
+ - qcom,msm8916-rpm-stats
+ - qcom,msm8974-rpm-stats
+ # SoC-specific compatibles that also read subsystem-level stats,
+ # falling back to "qcom,rpm-stats" for SoC-level stats only
+ - items:
+ - enum:
+ - qcom,shikra-rpm-stats
+ - const: qcom,rpm-stats
reg:
maxItems: 1
--
2.34.1
next prev parent reply other threads:[~2026-09-07 13:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-07 13:47 [PATCH v4 0/3] Add subsystem LPM stats support " Sneh Mankad
2026-09-07 13:47 ` Sneh Mankad [this message]
2026-09-13 18:10 ` [PATCH v4 1/3] dt-bindings: soc: qcom: stats: Add compatible " Komal Bajaj
2026-09-07 13:47 ` [PATCH v4 2/3] soc: qcom: stats: Add stats compatible and config " Sneh Mankad
2026-09-13 18:11 ` Komal Bajaj
2026-09-14 13:57 ` Abel Vesa
2026-09-07 13:47 ` [PATCH v4 3/3] arm64: dts: qcom: shikra: Update rpm-stats compatible to SoC specific Sneh Mankad
2026-09-13 18:11 ` Komal Bajaj
2026-09-14 13:58 ` Abel Vesa
2026-09-29 3:15 ` [PATCH v4 0/3] Add subsystem LPM stats support for Shikra Bjorn Andersson
2026-10-01 14:39 ` (subset) " Bjorn Andersson
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=20260907-shikra_stats-v4-1-3825351f9740@oss.qualcomm.com \
--to=sneh.mankad@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=quic_mkshah@quicinc.com \
--cc=robh@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®