]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: battery: Add trickle-charge upper limit
authorMatti Vaittinen <mazziesaccount@gmail.com>
Mon, 15 Dec 2025 13:17:53 +0000 (15:17 +0200)
committerLee Jones <lee@kernel.org>
Tue, 13 Jan 2026 12:44:31 +0000 (12:44 +0000)
Some of the chargers for lithium-ion batteries use a trickle-charging as
a first charging phase for very empty batteries, to "wake-up" the battery.
Trickle-charging is a low current, constant current phase. After the
voltage of the very empty battery has reached an upper limit for
trickle charging, the pre-charge phase is started with a higher current.

Allow defining the upper limit for trickle charging voltage, after which
the charging should be changed to the pre-charging.

Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/9c3064ec7e32cda442336bf633fb93355ce6a97d.1765804226.git.mazziesaccount@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
Documentation/devicetree/bindings/power/supply/battery.yaml

index bfb7b716ae13ea7ce3504f57d40570d9b17115ca..d1a2080557a00eab91dd1df1ce0665f823e92a67 100644 (file)
@@ -71,6 +71,10 @@ properties:
       NiMh bq24400) - that is different and not controlled by this
       property.
 
+  tricklecharge-upper-limit-microvolt:
+    description: limit when to change to precharge from trickle charge
+      Trickle-charging here refers "wake-up" or "pre-pre" -charging.
+
   precharge-current-microamp:
     description: current for pre-charge phase