From 5c5fb0afd78dcac86fdaba650d0c5fa719775b99 Mon Sep 17 00:00:00 2001 From: Minghao Zhang Date: Fri, 29 Mar 2024 15:07:07 +0800 Subject: [PATCH] dt-bindings: Update dt-binding for cpuss sleep stats v4 This change updates dt-bindings for qcom_cpuss_sleep_stats_v4 driver that lpm count and residency can be read. Change-Id: Ia5dc8fc905610a61561dfba0e8235a4d9dddcf9c Signed-off-by: Minghao Zhang --- bindings/soc/qcom/cpuss-sleep-stats.yaml | 33 +++++++++++++++++++----- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/bindings/soc/qcom/cpuss-sleep-stats.yaml b/bindings/soc/qcom/cpuss-sleep-stats.yaml index 9803b839..46b007d3 100644 --- a/bindings/soc/qcom/cpuss-sleep-stats.yaml +++ b/bindings/soc/qcom/cpuss-sleep-stats.yaml @@ -7,19 +7,21 @@ $schema: "http://devicetree.org/meta-schemas/core.yaml#" title: Qualcomm Technologies, Inc. cpuss sleep stats maintainers: - - Maulik Shah + - Maulik Shah + - Minghao Zhang description: - The low power mode counts and residency in the low power mode is maintained in - the hardware. The cpu sleep stats allows to read this configuration and display - the same. - This driver creates debugfs entry for all enabled lpm and provide LPM count and - Residency. + The low power mode counts and residency in the low power mode is maintained in + the hardware. The cpu sleep stats allows to read this configuration and display + the same. + This driver creates debugfs entry for all enabled lpm and provide LPM count and + residency. properties: compatible: enum: - qcom,cpuss-sleep-stats + - qcom,cpuss-sleep-stats-v4 reg: maxItems: 10 @@ -37,6 +39,7 @@ properties: - const: seq_lpm_cntr_cfg_cpu7 - const: l3_seq_lpm_cntr_cfg - const: apss_seq_mem_base + - const: base num-cpus: const: 8 @@ -46,7 +49,16 @@ required: - compatible - reg - reg-names - - num-cpus + +if: + properties: + compatible: + contains: + enum: + - qcom,cpuss-sleep-stats +then: + required: + - num-cpus allOf: - if: @@ -84,3 +96,10 @@ examples: "l3_seq_lpm_cntr_cfg", "apss_seq_mem_base"; num-cpus = <8>; }; + + - | + cpuss-sleep-stats@17850000 { + compatible = "qcom,cpuss-sleep-stats-v4"; + reg = <0x17850000 0x4000>; + reg-names = "base"; + };