summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>2017-05-17 17:43:22 -0700
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>2017-05-31 19:01:05 -0700
commit6124f7574427070e5772366e3ceb53151303104f (patch)
tree7bd0c1953d7ddf05765b020c718227f0b747bb17 /Documentation
parent3d1963e351de96cc19d692427d54652fe44bdaf0 (diff)
qpnp-fg-gen3: configure ESR timers dynamically based on charge termination
With ESR discharge timer retry, max having same value, ESR pulse can fire frequently when battery FET is open past charge termination. This frequent ESR pulses increase power consumption when the device is idle. Upon charge termination, change the ESR discharging timer retry to 0 so that ESR pulse can fire less frequently saving power. Add support for this through fg_esr_timer_config() based on end of charge and sleep conditions. Currently, retry/max for ESR charging and discharging timers are configured with the same value specified through device tree. Extend the device tree property to take in different retry/max values for those timers. Change-Id: Ib30b8ae7d893b5cab00ed83dd7318b53e3b63ac1 Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/power/supply/qcom/qpnp-fg-gen3.txt20
1 files changed, 14 insertions, 6 deletions
diff --git a/Documentation/devicetree/bindings/power/supply/qcom/qpnp-fg-gen3.txt b/Documentation/devicetree/bindings/power/supply/qcom/qpnp-fg-gen3.txt
index 12d32ec74369..012368275db3 100644
--- a/Documentation/devicetree/bindings/power/supply/qcom/qpnp-fg-gen3.txt
+++ b/Documentation/devicetree/bindings/power/supply/qcom/qpnp-fg-gen3.txt
@@ -145,22 +145,30 @@ First Level Node - FG Gen3 device
- qcom,fg-esr-timer-charging
Usage: optional
- Value type: <u32>
+ Value type: <prop-encoded-array>
Definition: Number of cycles between ESR pulses while the battery is
- charging.
+ charging. Array of 2 elements if specified.
+ Element 0 - Retry value for timer
+ Element 1 - Maximum value for timer
- qcom,fg-esr-timer-awake
Usage: optional
- Value type: <u32>
+ Value type: <prop-encoded-array>
Definition: Number of cycles between ESR pulses while the system is
- awake and the battery is discharging.
+ awake and the battery is discharging. Array of 2 elements
+ if specified.
+ Element 0 - Retry value for timer
+ Element 1 - Maximum value for timer
- qcom,fg-esr-timer-asleep
Usage: optional
- Value type: <u32>
+ Value type: <prop-encoded-array>
Definition: Number of cycles between ESR pulses while the system is
asleep and the battery is discharging. This option requires
- qcom,fg-esr-timer-awake to be defined.
+ qcom,fg-esr-timer-awake to be defined. Array of 2 elements
+ if specified.
+ Element 0 - Retry value for timer
+ Element 1 - Maximum value for timer
- qcom,fg-esr-pulse-thresh-ma
Usage: optional