Defining flexspi node in device tree but pin control (pinctrl) doesn't work. #77886
-
Hi, Hope you are all well. I want to define a node for flexspi in imx8mp. In nxp_imx8ml_m7.dtsi:
In imx8mp_evk_mimx8ml8_m7.dts:
In prj.conf:
The code is compiled without issue. After loading the code on CM7 it booted and call the flexspi driver but it is expected to change the pinmux for flexspi pins to 1 but it is still 5.
I can change the pinmux to 1 by memory mapping and it works fine. However, it doesn't work when I use pinctrl? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
With your changes, the flexspi is not configured in Kconfig system. So the compilation does not pull in flexspi driver. That is why the pin control does not take effect. I added the followings to the end of boards/nxp/imx8mp_evk/Kconfig.defconfig config MEMC_MCUX_FLEXSPI Now it starts to compile flexspi related code, and compilation fails due to error. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply I added it but I get this error:
I also clone the last version but I get the same error. |
Beta Was this translation helpful? Give feedback.
-
Yes. I got the same error. Additional porting work is needed to get flexspi to work for imx8mp. |
Beta Was this translation helpful? Give feedback.
With your changes, the flexspi is not configured in Kconfig system. So the compilation does not pull in flexspi driver. That is why the pin control does not take effect.
I added the followings to the end of boards/nxp/imx8mp_evk/Kconfig.defconfig
config MEMC
default y
config MEMC_MCUX_FLEXSPI
default y
Now it starts to compile flexspi related code, and compilation fails due to error.
Additional porting work is needed to get flexspi to work for imx8mp.