summaryrefslogtreecommitdiff
path: root/bindings/power
diff options
context:
space:
mode:
authorAnirudh Ghayal <aghayal@qti.qualcomm.com>2019-07-21 10:10:15 +0530
committerAnirudh Ghayal <aghayal@qti.qualcomm.com>2019-07-21 10:10:15 +0530
commit148749807684ae170c7de737f6d3d70c9654d57a (patch)
tree07fc690e57ebf4598103ff430c4b952105cace97 /bindings/power
parente725f28d5c14e0193895ddd236e9c2c086ef30c4 (diff)
downloaddevicetree-148749807684ae170c7de737f6d3d70c9654d57a.tar.gz
dt-bindings: qpnp-qg: Add properties to specify S2 config in sleep
Allow configuring the FIFO length, accumulator length and accumulator interval when system goes to sleep during discharge. Change-Id: I8018f8033d05273320fd92cc7d21fcdce0885df6
Diffstat (limited to 'bindings/power')
-rw-r--r--bindings/power/supply/qcom/qpnp-qg.txt32
1 files changed, 32 insertions, 0 deletions
diff --git a/bindings/power/supply/qcom/qpnp-qg.txt b/bindings/power/supply/qcom/qpnp-qg.txt
index a22bf8c7..ceb9888e 100644
--- a/bindings/power/supply/qcom/qpnp-qg.txt
+++ b/bindings/power/supply/qcom/qpnp-qg.txt
@@ -357,6 +357,38 @@ First Level Node - QGAUGE device
the available power. If this property is not specified,
then the default value used is 2800 mV.
+- qcom,qg-sleep-config
+ Usage: optional
+ Value type: bool
+ Definition: Enables sleep-state configurtion for QG. This
+ allows configuring the FIFO length, accumulator
+ interval and the accumulator length when system
+ enters sleep.
+
+- qcom,sleep-s2-fifo-length
+ Usage: optional
+ Value type: <u32>
+ Definition: The FIFO length to be applied when system enters sleep
+ while discharging. Takes effect only if
+ 'qcom,qg-sleep-config' is enabled. the default value
+ if not specified is 8.
+
+- qcom,sleep-s2-acc-length
+ Usage: optional
+ Value type: <u32>
+ Definition: The accululator length to be applied when system
+ enters sleep while discharging. Takes effect only if
+ 'qcom,qg-sleep-config' is enabled. the default value
+ if not specified is 256.
+
+- qcom,sleep-s2-acc-intvl-ms
+ Usage: optional
+ Value type: <u32>
+ Definition: The accululator count to be applied when system
+ enters sleep while discharging. Takes effect only if
+ 'qcom,qg-sleep-config' is enabled. the default value
+ if not specified is 200ms.
+
==========================================================
Second Level Nodes - Peripherals managed by QGAUGE driver
==========================================================