xref: /freebsd/sys/contrib/device-tree/Bindings/soc/qcom/qcom-stats.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/soc/qcom/qcom-stats.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Technologies, Inc. (QTI) Stats
8
9maintainers:
10  - Maulik Shah <mkshah@codeaurora.org>
11
12description:
13  Always On Processor/Resource Power Manager maintains statistics of the SoC
14  sleep modes involving powering down of the rails and oscillator clock.
15
16  Statistics includes SoC sleep mode type, number of times low power mode were
17  entered, time of last entry, time of last exit and accumulated sleep duration.
18
19properties:
20  compatible:
21    enum:
22      - qcom,rpmh-stats
23      - qcom,sdm845-rpmh-stats
24      - qcom,rpm-stats
25      # For older RPM firmware versions with fixed offset for the sleep stats
26      - qcom,apq8084-rpm-stats
27      - qcom,msm8226-rpm-stats
28      - qcom,msm8916-rpm-stats
29      - qcom,msm8974-rpm-stats
30
31  reg:
32    maxItems: 1
33
34required:
35  - compatible
36  - reg
37
38additionalProperties: false
39
40examples:
41  # Example of rpmh sleep stats
42  - |
43    sram@c3f0000 {
44      compatible = "qcom,rpmh-stats";
45      reg = <0x0c3f0000 0x400>;
46    };
47  # Example of rpm sleep stats
48  - |
49    sram@4690000 {
50      compatible = "qcom,rpm-stats";
51      reg = <0x04690000 0x10000>;
52    };
53...
54