How can I use GPIO key button to wake up from sleep mode in I.Mx233

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

How can I use GPIO key button to wake up from sleep mode in I.Mx233

2,179 Views
mithunp_s
Contributor III

Dear All,

Please let me know How can I  use GPIO key button to wake up from sleep mode in I.Mx233.

Please help if example code is available.

Regards

Mithun

Labels (1)
0 Kudos
2 Replies

930 Views
fabio_estevam
NXP Employee
NXP Employee

If you use a device tree kernel, all you have to do is to pass 'gpio-key,wakeup;'. You can reference this commit:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/arch/arm/boot/dts/imx6qdl-sab...

0 Kudos

930 Views
mithunp_s
Contributor III

Hi Fabio,

Actually my customer is doing a smart watch on I.MX233, now every smartphone comes with power button which can be used to put phone active/sleep mode. We want to implement the same with I.MX233 how this can be achived.

Thanks in advance.

Regards

Mithun

0 Kudos