All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] power: supply: battery: Allow separate charging limits vs. discharging
@ 2026-11-09  9:41 Alexey Charkov
  2026-11-09  9:41 ` [PATCH 1/3] dt-bindings: power: supply: battery: Add a charging temperature range Alexey Charkov
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Alexey Charkov @ 2026-11-09  9:41 UTC (permalink / raw)
  To: Sebastian Reichel, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-pm, devicetree, linux-kernel, Alexey Charkov

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@flipper.net>
---
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@flipper.net>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-10 23:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-09  9:41 [PATCH 0/3] power: supply: battery: Allow separate charging limits vs. discharging Alexey Charkov
2026-11-09  9:41 ` [PATCH 1/3] dt-bindings: power: supply: battery: Add a charging temperature range Alexey Charkov
2026-11-09  9:41 ` [PATCH 2/3] power: supply: core: Read the charging temperature range and alert settings Alexey Charkov
2026-11-10 23:24   ` sashiko-bot
2026-11-09  9:41 ` [PATCH 3/3] power: supply: samsung-sdi-battery: Set the charging temperature range Alexey Charkov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.