implement gpio-imx-rpmsg driver on imx8mn

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

implement gpio-imx-rpmsg driver on imx8mn

ソリューションへジャンプ
1,171件の閲覧回数
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,136件の閲覧回数
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,137件の閲覧回数
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 件の賞賛
返信