diff mbox series

ARM: dts: imx7d-sdb: enable gpio buttons as wakeup source

Message ID 1535507138-4626-1-git-send-email-Anson.Huang@nxp.com (mailing list archive)
State New, archived
Headers show
Series ARM: dts: imx7d-sdb: enable gpio buttons as wakeup source | expand

Commit Message

Anson Huang Aug. 29, 2018, 1:45 a.m. UTC
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 <Anson.Huang@nxp.com>
---
 arch/arm/boot/dts/imx7d-sdb.dts | 2 ++
 1 file changed, 2 insertions(+)

Comments

Fabio Estevam Aug. 29, 2018, 1:32 p.m. UTC | #1
On Tue, Aug 28, 2018 at 10:45 PM, Anson Huang <Anson.Huang@nxp.com> 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 <Anson.Huang@nxp.com>

Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Shawn Guo Sept. 3, 2018, 12:54 a.m. UTC | #2
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 <Anson.Huang@nxp.com>

Applied, thanks.
diff mbox series

Patch

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;
 		};
 	};