Repository navigation
power: supply: add LT8491 battery charger driver - #3702
jemfgeronimo wants to merge 3 commits into
Conversation
Add the devicetree binding for the Analog Devices LT8491, a high voltage buck-boost battery charge controller with an I2C interface. The values of the PCB resistors used by the chip's telemetry are described as properties. Signed-off-by: John Erasmus Mari Geronimo <johnerasmusmari.geronimo@analog.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Link: https://patch.msgid.link/20261110023140.468-2-johnerasmusmari.geronimo@analog.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Add support for the Analog Devices LT8491 buck-boost battery charge controller connected over I2C. The driver registers a power supply exposing the charging status, battery voltage, current, power and temperature, and the battery temperature limits. The PCB resistor values needed by the chip's telemetry are read from the devicetree and written to the chip at probe. Signed-off-by: John Erasmus Mari Geronimo <johnerasmusmari.geronimo@analog.com> Link: https://patch.msgid.link/20261110023140.468-3-johnerasmusmari.geronimo@analog.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Build the LT8491 battery charger driver as part of the KERNEL_ALL_ADI_DRIVERS configuration. Signed-off-by: John Erasmus Mari Geronimo <johnerasmusmari.geronimo@analog.com>
c61dbeb to
a3faf8b
Compare
|
Changelog (push 2026-12-03,
|
nunojsa
left a comment
There was a problem hiding this comment.
Small comment from me. Other than that no complains
| * Analog Devices LT8491 Battery Charger | ||
| * | ||
| * Copyright 2024 Analog Devices Inc. | ||
| * Copyright 2024-2026 Analog Devices Inc. |
There was a problem hiding this comment.
What is this commit about?? I guess it's new copyright stuff from @ioanachelaru? If so, we do have an issue as I don't really want these changes from the upstream driver. So either this is accepted upstream or we drop it in here. Also don't think it's usual to have the Copyright on bindings
There was a problem hiding this comment.
I'm a bit confused, we don't want to add a copyright on this file? If so, just add it to .copyrightignore.
There was a problem hiding this comment.
IIRC, not usual to see it on bindings!
There was a problem hiding this comment.
Dropped the commit, thanks. It was only there to fix the new Check copyright and license CI job, which failed on these two files: the binding has no ADI copyright header, and the driver header says Copyright 2024 while git says 2026. These files are carried exactly as applied upstream (power-supply tree), so I would rather not change them here.
@ioanachelaru the .copyrightignore can't be fixed from the PR: checks.yml on the ci branch recreates it on every run (cat > .copyrightignore, only .github/ and docs/conf.py), so a file committed here gets overwritten. Could you add these two paths to that list?
drivers/power/supply/lt8491_charger.cDocumentation/devicetree/bindings/power/supply/adi,lt8491.yaml
Until then checks / checks is expected to fail on the copyright step only.
26cdbb1 to
a3faf8b
Compare
|
Changelog (push 2026-12-04,
|
PR Description
Add support for the LT8491 buck-boost battery charge controller (I2C). This replaces the closed #2639 (the old driver was a pre-upstream version).
Upstream status: applied. The series (v4) was applied by the power supply maintainer, Sebastian Reichel, on 2026-12-01, following our upstream-first workflow:
dt-bindings: power: supply: add adi,lt8491.yaml(Reviewed-by: Krzysztof Kozlowski), upstream commit6086bc27cfe9power: supply: add LT8491 battery charger driver, upstream commit9a045d3274daThe two upstream patches apply to this tree without changes. Two ADI-only commits follow: one adds
imply CHARGER_LT8491toKconfig.adi, the other adds the copyright header to the binding and updates the driver's copyright years, as required by the ADI tree checks.Build-tested on this tree (ARM multi_v7,
W=1,CONFIG_CHARGER_LT8491=m): no warnings. Tested on a DC2703A-A-KIT evaluation board with a Raspberry Pi 4B (6.12 tree) with no battery connected: probe, telemetry reads and module load/unload. Charging with a battery was not tested.PR Type
PR Checklist