AnsweredAssumed Answered

Sleep in android

Question asked by Amit Kulkarni on Oct 17, 2018
Latest reply on Nov 1, 2018 by Amit Kulkarni

We are using imx6q & running on Android 7.1.2

GPIO 4 is configured as wake up gpio. See the below code

 

gpio-keys {
compatible = "gpio-keys";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_keys>;

wakeup {
label = "Wake-Up";
gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WAKEUP>;
debounce-interval = <10>;
gpio-key,wakeup;
};
};

 

I do

echo mem > /sys/power/state

& system goes in sleep. 

 

For wake up how shall i proceed ?
What should be the direction of this GPIO ? In or Out ?

This Gpio doesn't list under /sys/kernel/debug/gpio. What could be the reason ?

Outcomes