Prioritize the GPIO interrupt

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

Prioritize the GPIO interrupt

2,693件の閲覧回数
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,632件の閲覧回数
AMBh
Contributor I

Hi,

Any updates?

0 件の賞賛
返信

2,676件の閲覧回数
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,589件の閲覧回数
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,572件の閲覧回数
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,489件の閲覧回数
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,679件の閲覧回数
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 件の賞賛
返信