Prioritize the GPIO interrupt

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Prioritize the GPIO interrupt

1,621 Views
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?

 

Labels (1)
0 Kudos
Reply
6 Replies

1,560 Views
AMBh
Contributor I

Hi,

Any updates?

0 Kudos
Reply

1,605 Views
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 Kudos
Reply

1,518 Views
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 Kudos
Reply

1,501 Views
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 Kudos
Reply

1,418 Views
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 Kudos
Reply

1,608 Views
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 Kudos
Reply