Apalis IMx8 - Using GPIOs with interrupts on M4

Hello,

On the Apalis imx8 can certain I2c and SPI interfaces be assigned and controlled by M4 using RTOS , while the other I2C, UART and SPI interfaces be assigned to A53 / Linux.

Can interrupts on the GPIOs assigned to M4 be available on the RTOS/m4 without linux interfering ?

Hi @pymenow

Thanks for writing to the Toradex Community!

On the Apalis imx8 can certain I2c and SPI interfaces be assigned and controlled by M4 using RTOS , while the other I2C, UART and SPI interfaces be assigned to A53 / Linux.

Yes, this is true.

Can interrupts on the GPIOs assigned to M4 be available on the RTOS/m4 without linux interfering ?

Yes, you just need to disable the use of or not use the same GPIOs in Linux. Then these Gpios can use as interrupt in M4. The only thing which we are not sure about is if you have to disable the complete GPIO bank in Linux if you want to use a GPIO as Interrrupt. This was the case for iMX7. You might check this in Reference Manual of iMX8QM.

Best regards,
Jaski

Hi @jaski.tx and @pymenow,
Did you manage to resolve this? I have a similar problem on IMX8 Verdin. I can read the pins ok on the M4 and see their values changed but the GPIO and GPT interrupts do not seem to trigger.

Thanks

Ed