How to enter the suspend/resume mode in i.MX233

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

How to enter the suspend/resume mode in i.MX233

759 Views
eric_kang
Contributor II

Dear Fabio Estevam,
I saw the comments for the i.MX233 Wake-Up in the below NXP Community, the comments were written by you.
So I want to discuss with you for my promblem.
- How can I use GPIO key button to wake up from sleep mode in I.Mx233
  . https://community.nxp.com/message/353893

I want to know how to wakeup/resume from sleep/suspend by using some interrupt.
Please let me know how to do that.

Generally i.MX6 series are using the Wakeup IRQ for this.
But I couldn't find the wakeup IRQ in i.MX233.

Best Regards,
Eric.

Labels (1)
3 Replies

634 Views
fabio_estevam
NXP Employee
NXP Employee

In the device tree you need to delclare the gpio-keys with the wakeup-source property:

gpio-keys {
compatible = "gpio-keys";

volume-up {
label = "Volume Up";
gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
linux,code = <KEY_VOLUMEUP>;
wakeup-source;
};

};

Regards,

Fabio Estevam

0 Kudos

634 Views
eric_kang
Contributor II

Hi Fabio Estevam,
Thanks for your response.

I'm using the i.MX233 / Linux 2.6.31.
I think your Linux version is different from my version.
Could you tell me how to wakeup/resume from sleep/suspend by using some interrupt in Linux 2.6.31?


Best Regards,
Eric.

0 Kudos

634 Views
fabio_estevam
NXP Employee
NXP Employee

Hi Eric,

2.6.31 is a very old kernel release and it is no longer supported. I suggest you to migrate to a newer kernel version, such as 4.19 for example.