2018-08-29 01:51:17

by Anson Huang

[permalink] [raw]
Subject: [PATCH] ARM: dts: imx7d-sdb: enable gpio buttons as wakeup source

This patch enables i.MX7D SDB board's below GPIO buttons
as wakeup sources:

S1(FUNC1): KEY_VOLUMEUP
S3(FUNC2): KEY_VOLUMEDOWN

Signed-off-by: Anson Huang <[email protected]>
---
arch/arm/boot/dts/imx7d-sdb.dts | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts
index c9b3c60..f1bafda 100644
--- a/arch/arm/boot/dts/imx7d-sdb.dts
+++ b/arch/arm/boot/dts/imx7d-sdb.dts
@@ -27,12 +27,14 @@
label = "Volume Up";
gpios = <&gpio5 11 GPIO_ACTIVE_LOW>;
linux,code = <KEY_VOLUMEUP>;
+ wakeup-source;
};

volume-down {
label = "Volume Down";
gpios = <&gpio5 10 GPIO_ACTIVE_LOW>;
linux,code = <KEY_VOLUMEDOWN>;
+ wakeup-source;
};
};

--
2.7.4



2018-08-29 13:34:12

by Fabio Estevam

[permalink] [raw]
Subject: Re: [PATCH] ARM: dts: imx7d-sdb: enable gpio buttons as wakeup source

On Tue, Aug 28, 2018 at 10:45 PM, Anson Huang <[email protected]> wrote:
> This patch enables i.MX7D SDB board's below GPIO buttons
> as wakeup sources:
>
> S1(FUNC1): KEY_VOLUMEUP
> S3(FUNC2): KEY_VOLUMEDOWN
>
> Signed-off-by: Anson Huang <[email protected]>

Reviewed-by: Fabio Estevam <[email protected]>

2018-09-03 00:57:15

by Shawn Guo

[permalink] [raw]
Subject: Re: [PATCH] ARM: dts: imx7d-sdb: enable gpio buttons as wakeup source

On Wed, Aug 29, 2018 at 09:45:38AM +0800, Anson Huang wrote:
> This patch enables i.MX7D SDB board's below GPIO buttons
> as wakeup sources:
>
> S1(FUNC1): KEY_VOLUMEUP
> S3(FUNC2): KEY_VOLUMEDOWN
>
> Signed-off-by: Anson Huang <[email protected]>

Applied, thanks.