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

Commit 9d613eea authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: qpnp-fg-gen4: Support configure skew in capacity learning algorithm"

parents 562d46f8 da0b8635
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -269,6 +269,12 @@ First Level Node - FG Gen4 device
		    based on change in battery SOC during a charging cycle.
		    If this is specified "qcom,cl-start-capacity" is not used.

- qcom,cl-skew
	Usage:      optional
	Value type: <u32>
	Definition: Skew in decipercentage which when specified will be applied
		    to the final learned capacity.

- qcom,hold-soc-while-full
	Usage:      optional
	Value type: <empty>
+2 −0
Original line number Diff line number Diff line
@@ -4718,6 +4718,8 @@ static int fg_gen4_parse_dt(struct fg_gen4_chip *chip)
	else
		chip->cl->dt.max_cap_limit = temp;

	of_property_read_u32(node, "qcom,cl-skew", &chip->cl->dt.skew_decipct);

	rc = of_property_read_u32(node, "qcom,fg-batt-temp-hot", &temp);
	if (rc < 0)
		chip->dt.batt_temp_hot_thresh = -EINVAL;