implement gpio-imx-rpmsg driver on imx8mn

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

implement gpio-imx-rpmsg driver on imx8mn

跳至解决方案
1,153 次查看
phuongnguyen1
Contributor I

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

 

0 项奖励
回复
1 解答
1,118 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

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

 

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,119 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

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

 

 

0 项奖励
回复