AnsweredAssumed Answered

How to setup pad configurations for iomux in imx8mm

Question asked by Hao Qian on Apr 3, 2020
Latest reply on Apr 3, 2020 by igorpadykov

Hi,

 

I know that pinctrl drivers (pinctrl-imx.c and pinctrl-imx8mm.c) do PAD settings on boot time following device tree.

 

I have needs to change PAD's setting temporary in other driver's feature like:

        1. initialize GPIO5_19 to I2C3_SDA by pinctrl at boot time

        2. change I2C3_SDA into GPIO pin and output HIGH level in eeprom driver after boot

        3. change GPIO5_19 back to I2C3_SDA at end

 

I notice that I can use "mxc_iomux_v3_setup_pad()" which is defined in 'arch/arm/mach-imx/iomux-v3.h' for imx6dl.

Can I use that too for imx8mm ?

 

If it can't, is there any function to set IOMUX's PAD after pinctrl ?

 

Thank you,

Qian

Outcomes