Tool/software:
Hi Expert:
when configuring GPIO pins as wake-up sources for low-power modes, is there any way to distinguish which specific pin triggered the system's resumption from sleep?
BR
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hi Expert:
when configuring GPIO pins as wake-up sources for low-power modes, is there any way to distinguish which specific pin triggered the system's resumption from sleep?
BR
Hi Xiao-An,
When the system resumes, the wake reason along with the pin that triggered wakeup are printed on the console. The following documentation explains it in depth here: https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/latest/exports/docs/linux/Foundational_Components/Power_Management/pm_wakeup_sources.html#confirming-the-wakeup-event-type
Best,
Kendall
Hi Xiao-An,
Just to clarify, the message with the exact pin information only applies to Linux SDK 11.0+:
[ 249.472314] ti-sci 44043000.system-controller: ti_sci: wakeup source:0x80, pin:0x72, mode:0x1
For SDK version prior to 11.0, the message will return just the source:
[ 37.357710] ti-sci 44043000.system-controller: ti_sci_resume: wakeup source: 0x50
Anshu