-
Notifications
You must be signed in to change notification settings - Fork 8.3k
drivers: fuelgauge: Add Onsemi LC709203F driver #89000
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
drivers: fuelgauge: Add Onsemi LC709203F driver #89000
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds an Onsemi LC709203F fuel gauge driver along with samples, DTS binding, header updates, and an emulator implementation.
- Introduces main sample application to demonstrate fuel gauge usage.
- Updates fuel gauge header definitions and DTS binding to support new properties.
- Provides an emulator implementation for testing.
Reviewed Changes
Copilot reviewed 13 out of 27 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| samples/fuel_gauge/lc709203f/src/main.c | Implements sample app; contains a redundant dev check. |
| samples/fuel_gauge/lc709203f/sample.yaml | Provides sample configuration for the fuel gauge. |
| include/zephyr/drivers/fuel_gauge.h | Adds new fuel gauge properties. |
| dts/bindings/fuel-gauge/onnn,lc709203f.yaml | Adds DTS binding for the LC709203F fuel gauge. |
| drivers/fuel_gauge/lc709203f/lc709203f.h | Declares registers and APIs for the new driver. |
| drivers/fuel_gauge/lc709203f/emul_lc709203f.c | Implements an emulator for the LC709203F fuel gauge. |
Files not reviewed (14)
- boards/adafruit/feather_esp32s2/doc/adafruit_feather_esp32s2.rst: Language not supported
- boards/adafruit/feather_esp32s2/doc/adafruit_feather_esp32s2_tft.rst: Language not supported
- boards/adafruit/feather_esp32s2/doc/adafruit_feather_esp32s2_tft_reverse.rst: Language not supported
- drivers/fuel_gauge/CMakeLists.txt: Language not supported
- drivers/fuel_gauge/Kconfig: Language not supported
- drivers/fuel_gauge/lc709203f/CMakeLists.txt: Language not supported
- drivers/fuel_gauge/lc709203f/Kconfig: Language not supported
- samples/fuel_gauge/lc709203f/CMakeLists.txt: Language not supported
- samples/fuel_gauge/lc709203f/README.rst: Language not supported
- samples/fuel_gauge/lc709203f/boards/adafruit_feather_esp32s2.conf: Language not supported
- samples/fuel_gauge/lc709203f/boards/adafruit_feather_esp32s2.overlay: Language not supported
- samples/fuel_gauge/lc709203f/boards/adafruit_feather_esp32s2_tft.conf: Language not supported
- samples/fuel_gauge/lc709203f/boards/adafruit_feather_esp32s2_tft.overlay: Language not supported
- samples/fuel_gauge/lc709203f/prj.conf: Language not supported
b168287 to
aedd521
Compare
kartben
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some early feedback
boards/adafruit/feather_esp32s2/doc/adafruit_feather_esp32s2.rst
Outdated
Show resolved
Hide resolved
kartben
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also please separate in multiple commits as it is doing more than just adding a new driver (i.e. adding new fuel gauge property typed)
I will split the commits asap |
Thanks a lot for this fast reply! |
b1096dd to
7569d0a
Compare
I split up the commit into multiple commits in a way which I think makes sense |
|
overview which is still missing or needs/should/wished to be changed
|
ddebd24 to
d9af45c
Compare
|
|
I messed up the commits due to GitHub's merge conflict solver, therefore I will close this PR and recreate the PR see #90310 |




Add driver for the Onsemi LC709203F fuel gauge