mbox series

[0/2] Introduce SoC sleep stats driver

Message ID 20190808061228.16573-1-mkshah@codeaurora.org (mailing list archive)
Headers show
Series Introduce SoC sleep stats driver | expand

Message

Maulik Shah Aug. 8, 2019, 6:12 a.m. UTC
Qualcomm Technologies Inc's (QTI) chipsets support SoC level low power modes.
SoCs Always On Processor/Resource Power Manager produces statistics of the SoC 
sleep modes involving lowering or powering down of the backbone rails - Cx and
Mx and the oscillator clock, XO.

Statistics includes SoC sleep mode type, number of times LPM entered, time of
last entry, exit, and accumulated sleep duration.

This series adds a driver to read the stats produced by remote processor and
exports using sysfs.

Maulik Shah (2):
  dt-bindings: Introduce soc sleep stats bindings for Qualcomm SoCs
  drivers: qcom: Add SoC sleep stats driver

 .../bindings/soc/qcom/soc-sleep-stats.txt     |  36 +++
 drivers/soc/qcom/Kconfig                      |   9 +
 drivers/soc/qcom/Makefile                     |   1 +
 drivers/soc/qcom/soc_sleep_stats.c            | 249 ++++++++++++++++++
 4 files changed, 295 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/soc/qcom/soc-sleep-stats.txt
 create mode 100644 drivers/soc/qcom/soc_sleep_stats.c