Skip to content

drivers: fuel_guage: Add support for Analog Devices LTC2959 #90356

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

LostinTimeandspaceYT
Copy link

The LTC®2959 is an ultra-low power battery gas gauge
that accurately measures charge, voltage, current and
temperature. Its wide input voltage range and its low
operating current make the LTC2959 suitable for many
applications, including duty-cycled systems that operate
over long lifetime.

This driver integrates with Zephyr’s fuel gauge subsystem to provide access to telemetry data such as voltage, current, temperature, and accumulated charge.

Tested on custom hardware with known RSENSE configuration and verified against datasheet behavior.

Signed-off-by: Nathan Winslow [email protected]

Copy link

Hello @LostinTimeandspaceYT, and thank you very much for your first pull request to the Zephyr project!
Our Continuous Integration pipeline will execute a series of checks on your Pull Request commit messages and code, and you are expected to address any failures by updating the PR. Please take a look at our commit message guidelines to find out how to format your commit messages, and at our contribution workflow to understand how to update your Pull Request. If you haven't already, please make sure to review the project's Contributor Expectations and update (by amending and force-pushing the commits) your pull request if necessary.
If you are stuck or need help please join us on Discord and ask your question there. Additionally, you can escalate the review when applicable. 😊

@@ -0,0 +1,3 @@
zephyr_library()
zephyr_include_directories(${CMAKE_CURRENT_SOURCE_DIR})
zephyr_library_sources(ltc2959.c)
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like the driver itself is missing.

Choose a reason for hiding this comment

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

My apologies. I was pushing the driver itself in a separate commit.

@fmoessbauer
Copy link
Contributor

IMHO this should go after #90310 (or at least 12a8422) so things can be tested with the generic example.

Copy link

@kartben kartben requested a review from Copilot May 23, 2025 07:06
Copilot

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants