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

Commit c10b1984 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

ARM: dts: msm: enter Wipower ICL ranges for MTP8994



The PMI8994 separates the input current limit (ICL) into three
discrete operating ranges:
When the stark is in pass through mode
When the stark is in div2 mode with DCIN voltage  < 6.5V
When the stark is in div2 mode with DCIN voltage  > 6.5V

These three modes cover the entire range of DCIN voltage but only have
three entries for ICL. This may lead to unoptimized power draw if the
operating voltage falls at the lower side of the range.

A sw algorithm was introduced to reprogram the ICL based on the input
voltage and the div2 signal. Provide the voltage range and ICL data
for this sw algorithm.

Change-Id: I901cb0ddef8bf40ab9e25d3ce35575c195879e5d
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent fd0c0023
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -729,6 +729,17 @@
&pmi8994_charger {
	qcom,ext-sense-type;
	qcom,dc-psy-type = "Wipower";
	qcom,dcin-vadc = <&pmi8994_vadc>;
	qcom,wipower-default-ilim-map = <4000000 20000000 550 700 300>;
	qcom,wipower-pt-ilim-map = <4000000 7140000 550 700 300>,
					<7140000 8140000 550 700 300>,
					<8140000 9140000 500 700 300>,
					<9140000 9950000 500 700 300>;
	qcom,wipower-div2-ilim-map = <4000000 4820000 550 700 300>,
					<4820000 5820000 550 700 300>,
					<5820000 6820000 550 650 650>,
					<6820000 7820000 550 700 600>,
					<7820000 8500000 550 700 550>;
};

&cnss {