Skip to content

Conversation

zsaleeba
Copy link
Contributor

Summary

This is an I2C driver for the Awinic AW9523B I/O expander. As well as the supporting usual digital I/Os, this device features the ability to drive LEDs directly, and can control the drive current to each LED individually. The driver was derived from the PCA9555 driver, provides all the standard interfaces of an i/o expander driver. It also features support for the special features of the AW9523B through pin direction IOEXPANDER_DIRECTION_OUT_LED and IOEXPANDER_OPTION_NONGENERIC with AW9523B_OPTION_* options.

The driver has a number of configurable features including interrupt handling and a shadow register mode based on the PCA9555 driver, plus new LED/dimming support.

Impact

Adds configurable support for the AW9523B. It shouldn't affect any existing code.

Testing

Testing was done using a custom ESP32S3 host and an I2C connection to the Adafruit AW9523 breakout board.

@github-actions github-actions bot added Area: Drivers Drivers issues Size: XL The size of the change in this PR is very large. Consider breaking down the PR into smaller pieces. labels Aug 29, 2025
@xiaoxiang781216
Copy link
Contributor

@zsaleeba please squash your patch into one.

This is an I2C driver for the Awinic AW9523B I/O expander. As well
as the supporting usual digital I/Os, this device features the
ability to drive LEDs directly, and can control the drive current
to each LED individually. The driver was derived from the PCA9555
driver, provides all the standard interfaces of an i/o expander
driver. It also features support for the special features of the
AW9523B through pin direction IOEXPANDER_DIRECTION_OUT_LED and
IOEXPANDER_OPTION_NONGENERIC with AW9523B_OPTION_* options.

The driver has a number of configurable features including interrupt
handling and a shadow register mode based on the PCA9555 driver,
plus new LED/dimming support.

Testing was done using an ESP32S3 host and I2C connection to the
Adafruit AW9523 breakout board.

Signed-off-by: Zik Saleeba <zik@zikzak.net>
@zsaleeba zsaleeba force-pushed the feature/aw9523b-driver branch from 80e70f7 to 6717e01 Compare August 29, 2025 05:04
@zsaleeba
Copy link
Contributor Author

@zsaleeba please squash your patch into one.

Now squashed, thanks.

@acassis
Copy link
Contributor

acassis commented Aug 29, 2025

@zsaleeba nice work! Welcome aboard!!!

@acassis acassis merged commit 835c535 into apache:master Aug 29, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Drivers Drivers issues Size: XL The size of the change in this PR is very large. Consider breaking down the PR into smaller pieces.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants