[PATCH 0/3] power: supply: battery: Allow separate charging limits vs. discharging

From: Alexey Charkov

Date: Mon Nov 09 2026 - 04:45:14 EST


Some batteries specify different operating temperature ranges when
charging vs. when discharging, e.g. charge at 0C to 45C, but discharge
at up to -20C to 60C. Current DT bindings and power supply core don't
allow that, so extend them with additional properties so that a separate
limit could be programmed for when a charger should cut voltage going into
the battery vs. when the system itself should shut down.

Additionally, allow the DT to specify voltage/current limits to be applied
when the battery is being charged in the "alert" band (either high or low
temperature, which often requires derating especially at the low end).

Signed-off-by: Alexey Charkov <alchark@xxxxxxxxxxx>
---
Alexey Charkov (3):
dt-bindings: power: supply: battery: Add a charging temperature range
power: supply: core: Read the charging temperature range and alert settings
power: supply: samsung-sdi-battery: Set the charging temperature range

.../devicetree/bindings/power/supply/battery.yaml | 45 +++++++++++++++++++++-
drivers/power/supply/power_supply_core.c | 16 ++++++++
drivers/power/supply/samsung-sdi-battery.c | 12 ++++++
include/linux/power_supply.h | 16 ++++++--
4 files changed, 83 insertions(+), 6 deletions(-)
---
base-commit: ddfe51b0a0f5dc9e415cc2c8ad8db17532dd426b
change-id: 20261109-battery-charge-temp-range-37fc54d4e3a3

Best regards,
--
Alexey Charkov <alchark@xxxxxxxxxxx>