IMX8MP Sharing GPIO With Coprocessor

It’s not 100% true.
Please, have a look to https://community.toradex.com/t/interrupts-not-fired-on-m7-when-torizon-os-is-running/23771 and in particular to scl-gpios and sda-gpios by @rudhi.tx
If you read carefully that topi you see that the main issue is with the interrupts:

  • to use interrupt from M7 you MUST disable the whole GPIO back from Linux side (in the device tree)
  • and so, GPIO3 and GPIO5 are the only banks that can be disabled (this is because of the poins used by Toradex INSIDE the SoM). I’ve already suggested Toradex to review the design and remap all these pins into a signle GPIO bank, so that more banks can be left to the user (especially GPIO1 that has individual interrupts too)
  • GPIO5 needs an additional step, because scl-gpios and sda-gpios must be disabled too
  • if you don’t need GPIO interupts, you can use more or less whatever you need

With all the above steps, at the moment I can go on (not happy, but I can go), but my test is not finished yet.

1 Like