Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea593089 authored by Umang Agrawal's avatar Umang Agrawal
Browse files

dt-bindings: qpnp-qg: Add support for weighted capacity learning

Add support to loosen capacity learning qualifying criterion.
This helps to learn capacity from any starting battery SOC to
any ending battery SOC, provided, battery SOC changes by at least
10 % during charging. Assign weight to this capacity learning
event based on the change in battery SOC.

Change-Id: I3cdf7d6fe8d53f5b96aab4fad6b7bc293cf523c7
parent c6c37440
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -262,6 +262,21 @@ First Level Node - QGAUGE device
		    capacity learning cycle. If this is not specified, then
		    the default value is 0. Unit is in decipercentage.

- qcom,cl-min-delta-batt-soc
	Usage:      optional
	Value type: <u32>
	Definition: Minimum change in battery SOC to qualify for capacity
		    learning. If this is not specified, then the default
		    value is 10. Unit is in percentage.

- qcom,cl-wt-enable
	Usage:      optional
	Value type: <bool>
	Definition: A boolean property to enable weighted capacity learning
		    based on change in battery SOC during a charging cycle.
		    If this is specified, then "qcom,cl-min-start-soc" and
		    "qcom,cl-max-start-soc" is not used.

- qcom,esr-disable
	Usage:      optional
	Value type: <bool>