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

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

bindings: power: supply: Add thermal mitigation for qcom,battery-charger

Add "qcom,thermal-mitigation" property to configure fast charging
current for different system thermal mitigation levels.

Change-Id: Ia07b24d85d904e6e623ba547973f5a5779305784
parent 47e2b20a
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -12,6 +12,16 @@ information on "qcom,pmic_glink" device which is used in the example below.
	Value type: <stringlist>
	Definition: must be "qcom,battery-charger"

- qcom,thermal-mitigation:
	Usage: optional
	Value type: <prop-encoded-array>
	Definition: Array of fast charge current limit values for different
		    system thermal mitigation levels. This should be a flat
		    array that denotes the maximum charging current (in uA) for
		    each thermal level. Elements should be defined in such a
		    way that the next element is always less than or equal to
		    the current element (descending order).

= EXAMPLE

&soc {
@@ -19,6 +29,8 @@ information on "qcom,pmic_glink" device which is used in the example below.
		...
		qcom,battery_charger {
			compatible = "qcom,battery-charger";
			qcom,thermal-mitigation =
					<3000000 1500000 1000000 500000>;
		};
		...
	};