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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

778 次查看
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.

标签 (1)
3 回复数

653 次查看
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 项奖励

653 次查看
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 项奖励

653 次查看
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.