From: Rob Herring <robh@kernel.org>
To: Alexey Charkov <alchark@flipper.net>
Cc: Sebastian Reichel <sre@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] dt-bindings: power: supply: battery: Add a charging temperature range
Date: Thu, 19 Nov 2026 16:58:08 -0600 [thread overview]
Message-ID: <20261119225808.GA1121782-robh@kernel.org> (raw)
In-Reply-To: <20261109-battery-charge-temp-range-v1-1-a967abd8b80c@flipper.net>
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@flipper.net>
> ---
> .../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
next prev parent reply other threads:[~2026-11-19 22:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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-19 22:58 ` Rob Herring [this message]
2026-11-20 14:45 ` 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261119225808.GA1121782-robh@kernel.org \
--to=robh@kernel.org \
--cc=alchark@flipper.net \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=sre@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.