qcom-stats.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. title: Qualcomm Technologies, Inc. (QTI) Stats
  7. maintainers:
  8. - Maulik Shah <quic_mkshah@quicinc.com>
  9. description:
  10. Always On Processor/Resource Power Manager maintains statistics of the SoC
  11. sleep modes involving powering down of the rails and oscillator clock.
  12. Statistics includes SoC sleep mode type, number of times low power mode were
  13. entered, time of last entry, time of last exit and accumulated sleep duration.
  14. properties:
  15. compatible:
  16. enum:
  17. - qcom,rpmh-stats
  18. - qcom,sdm845-rpmh-stats
  19. - qcom,rpm-stats
  20. # For older RPM firmware versions with fixed offset for the sleep stats
  21. - qcom,apq8084-rpm-stats
  22. - qcom,msm8226-rpm-stats
  23. - qcom,msm8916-rpm-stats
  24. - qcom,msm8974-rpm-stats
  25. reg:
  26. maxItems: 1
  27. qcom,qmp:
  28. $ref: /schemas/types.yaml#/definitions/phandle
  29. description: Reference to the AOSS side-channel message RAM
  30. required:
  31. - compatible
  32. - reg
  33. allOf:
  34. - if:
  35. not:
  36. properties:
  37. compatible:
  38. const: qcom,rpmh-stats
  39. then:
  40. properties:
  41. qcom,qmp: false
  42. additionalProperties: false
  43. examples:
  44. # Example of rpmh sleep stats
  45. - |
  46. sram@c3f0000 {
  47. compatible = "qcom,rpmh-stats";
  48. reg = <0x0c3f0000 0x400>;
  49. };
  50. # Example of rpm sleep stats
  51. - |
  52. sram@4690000 {
  53. compatible = "qcom,rpm-stats";
  54. reg = <0x04690000 0x10000>;
  55. };
  56. ...