Prioritize the GPIO interrupt

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

Prioritize the GPIO interrupt

2,692 次查看
AMBh
Contributor I

I am using IMX8M-Mini controller on Linux platform. In my driver code GPIO is acting as interrupt to handle button press event.

But now i want to prioritize the interrupts for each button.

How to achieve this?

 

标签 (1)
0 项奖励
回复
6 回复数

2,631 次查看
AMBh
Contributor I

Hi,

Any updates?

0 项奖励
回复

2,675 次查看
AMBh
Contributor I

Hi,

See the attachment. I want to make sure that when both button pressed at a time. Both interrupts can be served.

I observed that one of them doesn't serve sometimes. 

Version- 5.4.70

 

0 项奖励
回复

2,588 次查看
joanxie
NXP TechSupport
NXP TechSupport

pls check if your dts settings is correct or not, also double check the IOMUX settings, you can refer to the document as below

"https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Enable-RGB-LED-s-and-push-buttons-on-8MI...

"https://www.emcraft.com/som/vf6/controlling-gpio-from-linux"

you also can find the example how to test gpio

0 项奖励
回复

2,571 次查看
AMBh
Contributor I

Hi,

Can you tell me how to give priority to the GPIO using as an interrupts.

As per my understanding every GPIO can be configured as interrupt As they have separate IRQ numbers assigned.

So is there any way to prioritize them?

0 项奖励
回复

2,488 次查看
joanxie
NXP TechSupport
NXP TechSupport

yes, GPIO can be configured as interrupt, if you refer to the patch I sent to you

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Enable-RGB-LED-s-and-push-buttons-on-8MI...

you can find "interrupts" which is defined in the dts file, tell you how to set it proper

0 项奖励
回复

2,678 次查看
joanxie
NXP TechSupport
NXP TechSupport

But now i want to prioritize the interrupts for each button.

>do you mind sharing more detailed information for this use case? do you mind sharing your code to show your use case? and what bsp version do you use?

0 项奖励
回复