[PATCH] ARM: dts: imx6sx-sdb: Allow wakeup from buttons

Shawn Guo shawn.guo at linaro.org
Sun Nov 2 22:21:15 PST 2014


On Wed, Oct 29, 2014 at 06:25:11PM -0200, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam at freescale.com>
> 
> Allow the two button wakeup the system from low power mode.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
> ---
>  arch/arm/boot/dts/imx6sx-sdb.dts | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/imx6sx-sdb.dts b/arch/arm/boot/dts/imx6sx-sdb.dts
> index 448489b..80ae281 100644
> --- a/arch/arm/boot/dts/imx6sx-sdb.dts
> +++ b/arch/arm/boot/dts/imx6sx-sdb.dts
> @@ -39,12 +39,14 @@
>  		volume-up {
>  			label = "Volume Up";
>  			gpios = <&gpio1 18 GPIO_ACTIVE_LOW>;
> +			gpio-key,wakeup;

I can understand that this is convenient for developers, but I'm not
really sure if it's reasonable for users.  IOW, is it expected that
volume keys can wake up system from low power mode?  Or we should only
allow that from power key?

Shawn

>  			linux,code = <KEY_VOLUMEUP>;
>  		};
>  
>  		volume-down {
>  			label = "Volume Down";
>  			gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
> +			gpio-key,wakeup;
>  			linux,code = <KEY_VOLUMEDOWN>;
>  		};
>  	};
> -- 
> 1.9.1
> 



More information about the linux-arm-kernel mailing list