xref: /freebsd/sys/contrib/device-tree/Bindings/soc/qcom/qcom-stats.yaml (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
28cc087a1SEmmanuel Vadot%YAML 1.2
38cc087a1SEmmanuel Vadot---
48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/soc/qcom/qcom-stats.yaml#
58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68cc087a1SEmmanuel Vadot
78bab661aSEmmanuel Vadottitle: Qualcomm Technologies, Inc. (QTI) Stats
88cc087a1SEmmanuel Vadot
98cc087a1SEmmanuel Vadotmaintainers:
10f126890aSEmmanuel Vadot  - Maulik Shah <quic_mkshah@quicinc.com>
118cc087a1SEmmanuel Vadot
128cc087a1SEmmanuel Vadotdescription:
138cc087a1SEmmanuel Vadot  Always On Processor/Resource Power Manager maintains statistics of the SoC
148cc087a1SEmmanuel Vadot  sleep modes involving powering down of the rails and oscillator clock.
158cc087a1SEmmanuel Vadot
168cc087a1SEmmanuel Vadot  Statistics includes SoC sleep mode type, number of times low power mode were
178cc087a1SEmmanuel Vadot  entered, time of last entry, time of last exit and accumulated sleep duration.
188cc087a1SEmmanuel Vadot
198cc087a1SEmmanuel Vadotproperties:
208cc087a1SEmmanuel Vadot  compatible:
218cc087a1SEmmanuel Vadot    enum:
228cc087a1SEmmanuel Vadot      - qcom,rpmh-stats
237ef62cebSEmmanuel Vadot      - qcom,sdm845-rpmh-stats
248cc087a1SEmmanuel Vadot      - qcom,rpm-stats
25e67e8565SEmmanuel Vadot      # For older RPM firmware versions with fixed offset for the sleep stats
26e67e8565SEmmanuel Vadot      - qcom,apq8084-rpm-stats
27e67e8565SEmmanuel Vadot      - qcom,msm8226-rpm-stats
28e67e8565SEmmanuel Vadot      - qcom,msm8916-rpm-stats
29e67e8565SEmmanuel Vadot      - qcom,msm8974-rpm-stats
308cc087a1SEmmanuel Vadot
318cc087a1SEmmanuel Vadot  reg:
328cc087a1SEmmanuel Vadot    maxItems: 1
338cc087a1SEmmanuel Vadot
34*8d13bc63SEmmanuel Vadot  qcom,qmp:
35*8d13bc63SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
36*8d13bc63SEmmanuel Vadot    description: Reference to the AOSS side-channel message RAM
37*8d13bc63SEmmanuel Vadot
388cc087a1SEmmanuel Vadotrequired:
398cc087a1SEmmanuel Vadot  - compatible
408cc087a1SEmmanuel Vadot  - reg
418cc087a1SEmmanuel Vadot
42*8d13bc63SEmmanuel VadotallOf:
43*8d13bc63SEmmanuel Vadot  - if:
44*8d13bc63SEmmanuel Vadot      not:
45*8d13bc63SEmmanuel Vadot        properties:
46*8d13bc63SEmmanuel Vadot          compatible:
47*8d13bc63SEmmanuel Vadot            const: qcom,rpmh-stats
48*8d13bc63SEmmanuel Vadot    then:
49*8d13bc63SEmmanuel Vadot      properties:
50*8d13bc63SEmmanuel Vadot        qcom,qmp: false
51*8d13bc63SEmmanuel Vadot
528cc087a1SEmmanuel VadotadditionalProperties: false
538cc087a1SEmmanuel Vadot
548cc087a1SEmmanuel Vadotexamples:
558cc087a1SEmmanuel Vadot  # Example of rpmh sleep stats
568cc087a1SEmmanuel Vadot  - |
578cc087a1SEmmanuel Vadot    sram@c3f0000 {
588cc087a1SEmmanuel Vadot      compatible = "qcom,rpmh-stats";
598cc087a1SEmmanuel Vadot      reg = <0x0c3f0000 0x400>;
608cc087a1SEmmanuel Vadot    };
618cc087a1SEmmanuel Vadot  # Example of rpm sleep stats
628cc087a1SEmmanuel Vadot  - |
638cc087a1SEmmanuel Vadot    sram@4690000 {
648cc087a1SEmmanuel Vadot      compatible = "qcom,rpm-stats";
658cc087a1SEmmanuel Vadot      reg = <0x04690000 0x10000>;
668cc087a1SEmmanuel Vadot    };
678cc087a1SEmmanuel Vadot...
68