[PATCH v4 1/3] dt-bindings: soc: qcom: stats: Add compatible for Shikra

From: Sneh Mankad

Date: Mon Sep 07 2026 - 09:59:03 EST


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@xxxxxxxxxxxxxxxx>
---
.../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