Re: [PATCH 1/3] dt-bindings: power: supply: battery: Add a charging temperature range
From: Rob Herring
Date: Thu Nov 19 2026 - 17:59:02 EST
On Mon, Nov 09, 2026 at 01:41:48PM +0400, Alexey Charkov wrote:
> Describe batteries rated for separate charging and discharging
> temperature ranges, such as 0-45C for charging and -20-60C for
> discharging, often with a reduced charge current near the ends of the
> charging range: operating-range-celsius holds a single range, and
> existing users read it both as the limit for any use of the battery and
> as the limit for charging.
>
> Add charge-temp-range-celsius for the charging range, falling back to
> operating-range-celsius when absent, and state that
> operating-range-celsius covers discharging. Add the charge current and
> voltage to use between alert-celsius and the charging range limits, to
> describe a reduced charge rate near those limits and none beyond them.
>
> A missing half of an alert charge current and voltage pair falls back to
> the matching constant-charge-* setting. alert-celsius is expected to fully
> fall inside charge-temp-range-celsius, but when it does not,
> charge-temp-range-celsius takes precedence to ensure no charge occurs
> outside the allowed range.
>
> Signed-off-by: Alexey Charkov <alchark@xxxxxxxxxxx>
> ---
> .../devicetree/bindings/power/supply/battery.yaml | 45 +++++++++++++++++++++-
> 1 file changed, 43 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/power/supply/battery.yaml b/Documentation/devicetree/bindings/power/supply/battery.yaml
> index 9575ee1491bb..d2f2ed9a01fe 100644
> --- a/Documentation/devicetree/bindings/power/supply/battery.yaml
> +++ b/Documentation/devicetree/bindings/power/supply/battery.yaml
> @@ -111,11 +111,21 @@ properties:
> for each of the battery capacity lookup table.
>
> operating-range-celsius:
> - description: operating temperature range of a battery
> + description: operating temperature range of a battery, in which it can be
> + discharged. Charging may be further restricted by
> + charge-temp-range-celsius.
> items:
> - description: minimum temperature at which battery can operate
> - description: maximum temperature at which battery can operate
>
> + charge-temp-range-celsius:
'temp' is kind of redundant with 'celsius' and a departure from all the
other temperature properties here.
Rob