1861032_en-US

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

1861032_en-US

1861032_en-US

implement gpio-imx-rpmsg driver on imx8mn

Hi everyone 

I am writing an application that both M7 core and A53 use different gpio in one port ( ex: A53 use GPIO1_IO_10 , M7 core use GPIO1_IO_11 ), this will make kernel linux stuck forever .

So my solution is Cortex-M will do physical writes/reads to GPIO and send RPMSG messages to core A53 when interrupt happens. All GPIO pins references from disabled &gpio could be easily remapped to virtual GPIO. libgpiod with Linux gpio-imx-rpmsg.c driver, base on this post IMX8M PLUS: GPIO Interrupt conflicts between M7 and A53 - Technical Support - Toradex Community

I have download SDK for M7 core application for IMX8mn chip and has no example implement to service with gpio-imx-rpmsg diver from linux for M7 core. Anyone can help me solve this problem ?

Regards

congphuong


Re: implement gpio-imx-rpmsg driver on imx8mn

Hi @phuongnguyen1 

gpio-imx-rpmsg driver in kernel is for i.MX7ULP and i.MX8ULP, you can download imx7ul/imx8ulp SDK for reference.

For example, evkmimx8ulp_power_mode_switch\app_srtm.c and evkmimx8ulp_power_mode_switch\srtm\services\srtm_io_service.c



标记 (1)
无评分
版本历史
最后更新:
‎11-21-2025 10:26 PM
更新人: