OSDN Git Service

arm64: dts: imx8mq-librem5: make the volume buttons a wakeup source
authorMartin Kepplinger <martin.kepplinger@puri.sm>
Mon, 28 Feb 2022 13:12:18 +0000 (14:12 +0100)
committerShawn Guo <shawnguo@kernel.org>
Fri, 8 Apr 2022 10:40:34 +0000 (18:40 +0800)
They turn on the display currently so to be consistent, let's make
them wake the system from suspend as well.

Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi

index 05c1637..0d39146 100644 (file)
@@ -42,6 +42,7 @@
                        gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_VOLUMEDOWN>;
                        debounce-interval = <50>;
+                       wakeup-source;
                };
 
                vol-up {
@@ -49,6 +50,7 @@
                        gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_VOLUMEUP>;
                        debounce-interval = <50>;
+                       wakeup-source;
                };
        };