imx233 2.6.31 GPIO as wakeup source

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

imx233 2.6.31 GPIO as wakeup source

跳至解决方案
1,237 次查看
whitewool
Contributor I

Dear all,

we are completing the hw design of a new mobile device based on imx233 and SW developed on L2.631 SDK,

This device is intended to massively use linux standby and suspend to ram to optimize power consumption.

We decided to use a GPIO driven by a micro controller to wake up the OS., but we can test this function only later, when HW has been developed

Please can you let me know if L2.6.31_10.05 BSP support the possibility to set GPIOs as wakeup sources (for example using echo enabled > /sys/class/gpio/gpio<n>/power/wakeup)

really Thanks for any hint

Alberto

标签 (2)
0 项奖励
1 解答
799 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Sorry for the delay.

It is possible to wake up from suspend by GPIO.Actually suspend mode is wait-for-interrupt.  Before enter suspend, you enable the interrupt.And then trigger the interrupt in suspend, system will wake up.You can check function avic_init_irq of arch/arm/plat-mxs/ icoll.c what irq is registered and whether gpio_to_irq() is registered.If not registered,  enable_irq_wake will fail.

Best Regards,

Alejandro

在原帖中查看解决方案

0 项奖励
4 回复数
800 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Sorry for the delay.

It is possible to wake up from suspend by GPIO.Actually suspend mode is wait-for-interrupt.  Before enter suspend, you enable the interrupt.And then trigger the interrupt in suspend, system will wake up.You can check function avic_init_irq of arch/arm/plat-mxs/ icoll.c what irq is registered and whether gpio_to_irq() is registered.If not registered,  enable_irq_wake will fail.

Best Regards,

Alejandro

0 项奖励
799 次查看
whitewool
Contributor I

Thanks so much, Alejandro

Best regards

Alberto

0 项奖励
799 次查看
whitewool
Contributor I

Thanks again for you help Alejandro.

I just catch this occasion for another question.

As you said imx233 bsp currently support only standby (WFI).

Just in the last month our custimers are asking are asking more and more standby time for the device without battery discharge (battery is 2600mAh).

This is hard with WFI only. 20mA normal consumption of the device during "application standby" only reduce at 18mA with Linux standby.

Do you know if and where a suspend to ram implementation for imx233 can be found, can yoy give me a suggestion abaut that?

Thanks

Alberto

0 项奖励
799 次查看
gusarambula
NXP TechSupport
NXP TechSupport

alejandrolozano, would you please comment on this?

0 项奖励