Skip to content
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: charger: add initial support for the charger module found in AXP2101 MFD device #88125

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

Conversation

valeriosetti
Copy link
Collaborator

@valeriosetti valeriosetti commented Apr 3, 2025

This PR adds initial support for the charger module which is part of the AXP2101 MFD device. The same IC also implements regulators, but those are already supported in Zephyr.

Finally the DTS of the lilygo/twatch_s3 board is also extended to enable this driver.

Depends on #88053 in order to have CI fully green

@valeriosetti valeriosetti force-pushed the charger_axp2101 branch 6 times, most recently from cb97568 to fd77ae8 Compare April 7, 2025 07:56
@valeriosetti valeriosetti marked this pull request as ready for review April 7, 2025 07:56
@github-actions github-actions bot requested a review from rriveramcrus April 7, 2025 07:56
@rriveramcrus
Copy link
Collaborator

Overall this is looking really good, once the MISRA-C 2012 related fixes are in place I feel ready to approve.

8d321c8#diff-db5eebc0f089960f1220673dde2c861af4e2b36adca08183704729335562c2b5
A bonus item to address, if you have the time, would be to add an entry to tests/drivers/build_all/charger/i2c.dtsi as was done in this commit.

@teburd teburd self-requested a review April 9, 2025 23:30
AXP2101 is MFD device. Zephyr already support the regulator part. This
commit introduces intial support for the charger one.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
Enable the battery charger module form the X-Powers AXP2101 IC.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
Extend the *.dtsi file to include also an "x-powers,axp2101-charger"
instance.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
Copy link
Collaborator

@rriveramcrus rriveramcrus left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution!

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

Successfully merging this pull request may close these issues.

2 participants