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

Commit 33d26173 authored by Ashay Jaiswal's avatar Ashay Jaiswal
Browse files

ARM: dts: msm: enable battery cutoff voltage monitoring for MSM8909W



Add DT configurations to enable battery cutoff voltage monitoring.
This feature will enable FG to report 0% SOC when battery voltage
falls below the cutoff threshold.
While at it, configure relax current threshold to 100mA.

CRs-Fixed: 984825
Change-Id: I84d8d48d9beb2fda85070e39cf3c1e3b268e2186
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
parent c3afd263
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -119,14 +119,14 @@
	st-fg@70 {
		compatible = "st,stc3117";
		reg = <0x70>;
		st,rbatt-mohm = <427>;
		st,rbatt-mohm = <477>;
		st,nom-capacity-mah = <450>;
		st,rsense-mohm = <25>;
		st,float-voltage-mv = <4200>;
		st,alarm-soc = <10>;
		st,alarm-voltage-mv = <3400>;
		st,term-current-ma = <50>;
		st,relax-current-ma = <25>;
		st,relax-current-ma = <100>;
		st,adaptive-capacity-tbl =
			/bits/ 16 <0x00 0x00 0x00 0x05 0x0d 0x2a 0x47>;
		st,ocv-tbl =
@@ -140,5 +140,9 @@
			/bits/ 16 <0x55 0x5a 0x64 0xa0 0x140 0x1b8 0x348>;
		st,temp-tbl =
			/bits/ 16 <60 40 25 10 0 (-10) (-20)>;

		st,empty-soc-uv = <3300000>;
		qcom,fg-vadc = <&pm8916_vadc>;
		qcom,fg-adc_tm = <&pm8916_adc_tm>;
	};
};