MIMX8MM5xxxKZ Wakeup by GPIO Interrupt

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

MIMX8MM5xxxKZ Wakeup by GPIO Interrupt

Jump to solution
455 Views
adrianwojak
Contributor I

Hello,

I am trying to implement wake up Linux from sleep mode. To enter sleep I use 'echo mem > /sys/power/state' command. To wake up I would like to use GPIO interrupt on IOMUXC_UART1_RXD_GPIO5_IO22 pin. I use example from:

https://source.codeaurora.org/external/imx/linux-imx/commit/?h=imx_4.14.98_2.0.0_ga&id=e302a6ad960e9....

For that purpose I create overlay for gpio5, like below:

&gpio5 {
	status = "okay";
	pad-wakeup-num = <1>;
	pad-wakeup = <pad_id SC_PAD_WAKEUP_HIGH_LVL 22>;
};

But I can't find what mean pad_id ? Where I should looking for pad_id ? Is working this solution for IMX8MM ?

0 Kudos
1 Solution
444 Views
joanxie
NXP TechSupport
NXP TechSupport

the link you sent is for imx8qm, you can refer to the topic as below which has the similar topic

"https://community.nxp.com/t5/i-MX-Processors/GPIO-based-wake-from-deep-sleep-for-I-mx8-mini/td-p/132..."

View solution in original post

0 Kudos
2 Replies
445 Views
joanxie
NXP TechSupport
NXP TechSupport

the link you sent is for imx8qm, you can refer to the topic as below which has the similar topic

"https://community.nxp.com/t5/i-MX-Processors/GPIO-based-wake-from-deep-sleep-for-I-mx8-mini/td-p/132..."

0 Kudos
438 Views
adrianwojak
Contributor I

Thanks, solution what you shared, works fine

0 Kudos