Tool/software:
I'm prototyping some interfaces that will make use of the GPIO pins. I can toggle the LD5 IO_EXP_TEST_LED using the command gpioset 5 23=1
and I can read the SW5 SoC INTn button with gpioget 3 23
. Now I would like to do something as an interrupt when SW5 is pressed. gpiomon
looks like it should do it, but it appears another IRQ is already registered for that gpio.
root@am62axx-evm:~# gpiomon 3 23
[89790.006734] genirq: Flags mismatch irq 418. 00002003 (gpiomon) vs. 00002082 (1-0022)
gpiomon: error waiting for events: Device or resource busy
1-0022 seems to be an i2c GPIO multiplexer?
root@am62axx-evm:~# dmesg | grep 0022
[ 2.527415] pca953x 1-0022: supply vcc not found, using dummy regulator
[ 2.534178] pca953x 1-0022: using AI
But I can't find a reference to it in the DTS. Do I need to somehow setup an interrupt on the multiplexer instead?