cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting wakeup source of STM32MP151

AShar.10
Associate II

Hello ST Community,

 

We are developing a product based on STM32MP151 which has 2 (WKUP) GPIOs connected to wake our battery-powered product from sleep or shutdown. Can somebody please let us know how we can detect which GPIO triggered the wakeup in linux userspace?

 

We have to execute specific functions in our C application based on which GPIO triggered wakeup of our STM32MP151 based product. We are using latest openstlinux distribution package and we are open to creating a kernel module if that's required, but need some basic guidance on where to look at.

 

Please note: We also use "rtcwake" to wakeup our product at regular intervals. Our product needs both GPIO and RTC wakeup sources.

 

Best Regards,

Ayush Sharma

0 REPLIES 0