]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: qcom: sdm845-oneplus-*: set constant-charge-current-max-microamp
authorCasey Connolly <casey.connolly@linaro.org>
Thu, 19 Jun 2025 14:55:10 +0000 (16:55 +0200)
committerBjorn Andersson <andersson@kernel.org>
Sun, 24 Aug 2025 01:48:33 +0000 (20:48 -0500)
Set the maximum constant charge current to use for this battery. While
the battery is likely comfortably capable of 4A or so, OnePlus didn't
include a secondary charger IC for parallel charging (instead they have
their proprietary Dash Charging). It's possible that this value could be
safely increased after some testing (and when we have support for
modelling the charger as a cooling device properly), but for now this
value is acceptable.

This is references from qcom,usb-icl-ua property in the downstream
vendor devicetree.

Signed-off-by: Casey Connolly <casey.connolly@linaro.org>
Link: https://lore.kernel.org/r/20250619-smb2-smb5-support-v1-2-ac5dec51b6e1@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dts
arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dts

index cd5546b69d13d8d7f29373aebab1cfda79666900..bfbc3e6e71bb5dc846f84260d2effe0b8af628c6 100644 (file)
                charge-full-design-microamp-hours = <3300000>;
                voltage-min-design-microvolt = <3400000>;
                voltage-max-design-microvolt = <4400000>;
+
+               /*
+                * Typical designs have multiple charger ICs which can handle more
+                * current but the OnePlus 6/T do not, hence the lower limit. This
+                * does not apply when using the Dash Charger, however this is not
+                * yet supported.
+                */
+               constant-charge-current-max-microamp = <1800000>;
        };
 };
 
index b4212626b42954e10974ec087db2b42b07979f72..7e75decfda052b9639f2c0ecdac5a71196fc702f 100644 (file)
                charge-full-design-microamp-hours = <3700000>;
                voltage-min-design-microvolt = <3400000>;
                voltage-max-design-microvolt = <4400000>;
+
+               /*
+                * Typical designs have multiple charger ICs which can handle more
+                * current but the OnePlus 6/T do not, hence the lower limit. This
+                * does not apply when using the Dash Charger, however this is not
+                * yet supported.
+                */
+               constant-charge-current-max-microamp = <1800000>;
        };
 };