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"; + }; diff --git a/qcom/sun.dtsi b/qcom/sun.dtsi index e18f9097..64702085 100644 --- a/qcom/sun.dtsi +++ b/qcom/sun.dtsi @@ -1667,6 +1667,12 @@ }; }; + cpuss-sleep-stats@17850000 { + compatible = "qcom,cpuss-sleep-stats-v4"; + reg = <0x17850000 0x4000>; + reg-names = "base"; + }; + ram@c3f0000 { compatible = "qcom,rpmh-stats-v4"; reg = <0x0c3f0000 0x400>;