xref: /freebsd/sys/contrib/device-tree/Bindings/soc/qcom/qcom-stats.yaml (revision b197d4b893974c9eb4d7b38704c6d5c486235d6f)
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 bindings
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,rpm-stats
24      # For older RPM firmware versions with fixed offset for the sleep stats
25      - qcom,apq8084-rpm-stats
26      - qcom,msm8226-rpm-stats
27      - qcom,msm8916-rpm-stats
28      - qcom,msm8974-rpm-stats
29
30  reg:
31    maxItems: 1
32
33required:
34  - compatible
35  - reg
36
37additionalProperties: false
38
39examples:
40  # Example of rpmh sleep stats
41  - |
42    sram@c3f0000 {
43      compatible = "qcom,rpmh-stats";
44      reg = <0x0c3f0000 0x400>;
45    };
46  # Example of rpm sleep stats
47  - |
48    sram@4690000 {
49      compatible = "qcom,rpm-stats";
50      reg = <0x04690000 0x10000>;
51    };
52...
53