My question is how do I actually make the link from this gpio expander to an actual interrupt? For example I would like the system to receive an interrupt when say GPIO0 asserts. How could this be done? I'm not sure in this case what exactly would be the interrupt parent. This chip (tca6408) has a interrupt output pin so in order to assign pin 0 as an interrupt would I have to route the TCA6408's interrupt back into the GIC as well as assign the tca6408_u53 node as an interrupt controller?
For example say I route back the tca6408_u53 interrupt pin to GIC pin 1 and would like the processor to trigger on the rising edge of tca6408_u53 GPIO0. I want to say my device tree will look like the following:
Another question I have is what is the best method to refer to an interrupt of this type from the user space? If a pin on the TCA asserts as an interrupt what is the best way to link this interrupt to a driver or application?