Hello,
Is there a problem switching the IOMUXD of a pin in runtime while the hardware peripheral is enabled?
Example M4 I2C is configured as the MUX mode and the I2C HW is in use.
At some point when there is no I2C communication going-on with slave device, can the SW change the IOMUXD to RGPIO (this is supported in that pin) and do some operations via port pin and then later come back to I2C mode by switching back in IOMUXD.
Should I disable the M4 I2C before switch the MUX mode?
Thanks
Arun J
Hello Arun J,
You do not specify which i.MX Processor you are using but, in any case, changes to the IOMUX registers would reflect immediately. Just keep in mind that since these would differ from the information passed on by the Device Tree, the OS would not be aware of this change so please be careful to switch back again before prompting the I2C driver to use this interface. I would recommend disabling the M4 I2C just as a precaution, but you can see more details on how the PADs for the pins work on the Reference Manual of the processor you are using (it’s an added precaution, but in theory you shouldn’t have problems).
I hope this helps!
Regards,