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

Fix I2C GPIO interrupts with ATX-PSU POWER_GOOD input #81

Merged
merged 11 commits into from
Oct 19, 2024

Conversation

SpComb
Copy link
Member

@SpComb SpComb commented Sep 1, 2024

If the ATX-PSU POWER_GOOD input is connected to an PCA9554 I2C GPIO expander which is also connected to a shared I2C bus interrupt pin, then changes in the ATX-PSU POWER_GOOD state will block the I2C bus interrupts until the GPIO inputs are read.

Add support for multiple gpio_i2c_dev sharing the same int_pin.

Move I2C GPIO timeout to the gpio_i2c_dev.

Change atx_psu to use interrupts and polling for the power_good input state.

TODO

  • Document use of i2c timeout for shared gpio_i2c_dev
  • Fix ESP8266

@SpComb SpComb force-pushed the atx-psu-gpio-intr branch from b5ce47f to 2cac77c Compare October 19, 2024 21:06
@SpComb SpComb force-pushed the atx-psu-gpio-intr branch from 2cac77c to a264306 Compare October 19, 2024 21:46
@SpComb SpComb merged commit acdb297 into master Oct 19, 2024
3 checks passed
@SpComb SpComb deleted the atx-psu-gpio-intr branch October 19, 2024 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant