-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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][gpio]: Support TCA9536 #84057
base: main
Are you sure you want to change the base?
Conversation
e244497
to
4a6d047
Compare
Bump |
@RafaelLaya now that user can put any ngpios, should the driver check for valid inputs (8 or 4) and handle errors accordingly? also can you update the commit title to follow the pattern followed in the subsystem ? do a |
4a6d047
to
9cfdc3b
Compare
Thanks! I've addressed validation with a build-assert checking for 4 or 8 on the gpios property and fixed the git commit title |
9cfdc3b
to
f17515a
Compare
Latest version fixes syntax error introduced on the previous revision |
Any reviewers? |
f17515a
to
69756c8
Compare
Rebased |
69756c8
to
41e78d4
Compare
The PCA953x driver supports the TCA953x family To properly support TCA953x, we need to allow ngpios!=8 This change allows this posibility in the driver Signed-off-by: Rafael Laya <[email protected]>
41e78d4
to
27e0b75
Compare
The PCA953x driver supports the TCA953x family of GPIO expanders from TI. Currently, it makes the assumption that there are always 8 pins on the module. However, the variant TCA9536 is identical to TCA9538 except it only has 4 output pins.
To properly support TCA953x, we need to allow for a number of GPIOs that aren't 8. This change allows this in the driver.
There seem to be no DTS definitions in the Zephyr tree where
ngpios
isn't explicitly selected for this driver, so no definitions are changing besides just the driver in this PR.