Skip to content

power: supply: add LT8491 battery charger driver - #3702

Open
jemfgeronimo wants to merge 3 commits into
analogdevicesinc:mainfrom
jemfgeronimo:dev/lt8491
Open

jemfgeronimo wants to merge 3 commits into
analogdevicesinc:mainfrom
jemfgeronimo:dev/lt8491

Conversation

@jemfgeronimo

@jemfgeronimo jemfgeronimo commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

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:

The two upstream patches apply to this tree without changes. Two ADI-only commits follow: one adds imply CHARGER_LT8491 to Kconfig.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

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have conducted a self-review of my own code changes
  • I have compiled my changes, including the documentation
  • I have tested the changes on the relevant hardware
  • I have updated the documentation outside this repo accordingly
  • I have provided links for the relevant upstream lore

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>
@jemfgeronimo

Copy link
Copy Markdown
Contributor Author

Changelog (push 2026-12-03, a3faf8b098b0 -> 26cdbb1b4e17)

  • Add power: supply: lt8491: update copyright headers, an ADI-only commit on top (the two upstream commits and the Kconfig.adi commit are unchanged):
    • dt-bindings: add the ADI copyright header to adi,lt8491.yaml.
    • driver: update the copyright years to 2024-2026.
    • Fixes the failing checks / checks job ("Check copyright and license").

@nunojsa nunojsa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comment from me. Other than that no complains

Comment thread drivers/power/supply/lt8491_charger.c Outdated
* Analog Devices LT8491 Battery Charger
*
* Copyright 2024 Analog Devices Inc.
* Copyright 2024-2026 Analog Devices Inc.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit confused, we don't want to add a copyright on this file? If so, just add it to .copyrightignore.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC, not usual to see it on bindings!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.c
  • Documentation/devicetree/bindings/power/supply/adi,lt8491.yaml

Until then checks / checks is expected to fail on the copyright step only.

@jemfgeronimo

Copy link
Copy Markdown
Contributor Author

Changelog (push 2026-12-04, 26cdbb1b4e17 -> a3faf8b098b0)

  • Drop power: supply: lt8491: update copyright headers, as the upstream driver and binding should be carried unchanged. The PR is back to 3 commits: the two upstream patches and Kconfig.adi: imply CHARGER_LT8491.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants