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

Commit a01aac93 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: qpnp-fg-gen3: Increase temperature threshold for capacity learning



Default high temperature threshold for capacity learning is 45 C.
Change it to 50 C to allow capacity learning to happen with high
current chargers that can increase battery temperature go past
45 C (JEITA warm zone) for few minutes during charging.

CRs-Fixed: 2124739
Change-Id: I50d72c993be14406dce19e7a31263f17271fb8ca
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent ef69cf22
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -208,14 +208,14 @@ First Level Node - FG Gen3 device
	Value type: <u32>
	Definition: Lower limit of battery temperature to start the capacity
		    learning. If this is not specified, then the default value
		    used will be 150. Unit is in decidegC.
		    used will be 150 (15 C). Unit is in decidegC.

- qcom,cl-max-temp
	Usage:      optional
	Value type: <u32>
	Definition: Upper limit of battery temperature to start the capacity
		    learning. If this is not specified, then the default value
		    used will be 450 (45C). Unit is in decidegC.
		    used will be 500 (50 C). Unit is in decidegC.

- qcom,cl-max-increment
	Usage:      optional
+1 −1
Original line number Diff line number Diff line
@@ -4642,7 +4642,7 @@ static int fg_parse_ki_coefficients(struct fg_chip *chip)
#define DEFAULT_BATT_TEMP_HOT		50
#define DEFAULT_CL_START_SOC		15
#define DEFAULT_CL_MIN_TEMP_DECIDEGC	150
#define DEFAULT_CL_MAX_TEMP_DECIDEGC	450
#define DEFAULT_CL_MAX_TEMP_DECIDEGC	500
#define DEFAULT_CL_MAX_INC_DECIPERC	5
#define DEFAULT_CL_MAX_DEC_DECIPERC	100
#define DEFAULT_CL_MIN_LIM_DECIPERC	0