AnsweredAssumed Answered

How to switch EIM control pin to GPIO mode?

Question asked by long hao on Oct 22, 2019
Latest reply on Oct 24, 2019 by long hao

Hello everyone!
      Now I can use EIM and FPGA communication in normal use of imx6sx. the bsp is 4.14.98.CS pin and other control pins are used in EIM.

      As the pins are relatively tight now, I want to switch the CS pins and others used by these EIM to GPIO mode when upgrading FPGA firmware, and then control this pin in the driver. How should we operate to achieve such a function?

      I refer to the pinctrl_select_state() function used in sdhci-eshdc-imx..c to switch SDIO pin speed, but an error is reported when I @ using devm_pinctrl_get() to apply for pinctrl.

Outcomes