AnsweredAssumed Answered

Issue in Wake from Standby using GPIO

Question asked by Pankaj Dhule on Jul 27, 2015
Latest reply on Aug 1, 2015 by igorpadykov

Hi,

 

We are designing a system based on the iMX6DL.

 

We want to use GPIO1_IO14 to wakeup processor from Standby mode.

 

Following command is used to send processor into standby mode. "echo standby>/Sys/power/state"

 

Below code is used to define the GPIO pin as wakeup.

 

static struct gpio_keys_button imx6q_buttons[] = {

      //GPIO_BUTTON(SABRESD_VOLUME_UP, KEY_VOLUMEUP, 1, "volume-up", 0, 1),

      //GPIO_BUTTON(SABRESD_VOLUME_DN, KEY_VOLUMEDOWN, 1, "volume-down", 0, 1),

      //GPIO_BUTTON(SABRESD_PWR_SW_DETECT, KEY_WAKEUP, 0, "power", 1, 1),

      GPIO_BUTTON(SABRESD_WAKEUP_SW, KEY_POWER, 1, "power", 1, 1),

};

 

 

Issue:

 

With above configuration sometimes processor wakes up from standby mode using GPIO1_IO14 (switch is connected to this GPIO). But most of the times processor stuck in standby mode and not able to wakeup even if we pressed wakeup switch multiple times.

 

 

Please help us to resolve this issue.

 

Regards,

Pankaj

Outcomes