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

Commit 067e5ef8 authored by Sahil Chandna's avatar Sahil Chandna
Browse files

dt-bindings: qpnp-fg-gen4: Add properties to support SW based SOC scaling



Add qcom,soc-scale-mode-en, qcom,soc-scale-vbatt-mv, qcom,soc-scale-time-ms
properties to support SW based SOC scaling using filtered battery voltage.
This helps on aged batteries, where SOC calculated by FG can remain high
for low battery voltage.

Change-Id: I0fa462f98eedbb78a2ec6a2f8d49674e88875247
Signed-off-by: default avatarSahil Chandna <chandna@codeaurora.org>
parent e9ab4eff
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -435,6 +435,30 @@ First Level Node - FG Gen4 device
		    resolution of monotonic SOC under CAPACITY_RAW property
		    during charging in the scale of 0-10000.

- qcom,soc-scale-mode-en
	Usage:      optional
	Value type: <boolean>
	Definition: A boolean property that when specified will enable scaling
		    of the SOC linearly, based on the filtered battery voltage
		    after crossing below a Vbatt threshold.

- qcom,soc-scale-vbatt-mv
	Usage:      optional
	Value type: <u32>
	Definition: Threshold voltage to decide when SOC should
		    be scaled based on filtered voltage when
		    qcom,soc-scale-mode-en is specified. If this
		    is not specified, then the default value is 3400.
		    Unit is in mV.

- qcom,soc-scale-time-ms
	Usage:      optional
	Value type: <u32>
	Definition: Timer value for doing SOC calculation based on
		    filtered voltage when qcom,soc-scale-mode-en is
		    specified. If this is not specified, then the
		    default value is 10000. Unit is in ms.

==========================================================
Second Level Nodes - Peripherals managed by FG Gen4 driver
==========================================================