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
Hi Qian
>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 ?
yes seems it can be used, as there is in fsl-imx8mm.dtsi:
gpio1: gpio@30200000 {
compatible = .. "fsl,imx35-gpio";
fsl-imx8mm.dtsi\freescale\dts\boot\arm64\arch - linux-imx - i.MX Linux kernel
and iomux-mx35.h has #include "iomux-v3.h"
iomux-mx35.h\mach-imx\arm\arch - linux-imx - i.MX Linux kernel
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------