ARM: dts: colibri-imx6: improve wake-up with gpio key
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Mon, 9 Jan 2023 13:19:58 +0000 (14:19 +0100)
committerShawn Guo <shawnguo@kernel.org>
Thu, 26 Jan 2023 00:26:54 +0000 (08:26 +0800)
The pin GPIO2_IO22 externally pulls down, it is required to sequentially
connect this pin (signal WAKE_MICO#) to +3v3 and then disconnect it to
trigger a wakeup interrupt.
Adding the flag GPIO_PULL_DOWN allows the system to be woken up just
connecting the pin GPIO2_IO22 to +3v3.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-colibri.dtsi

index f894d6907604382df643ad23a4415dceed807642..f69fee94a869e1a6bda83cc2fba94c11ee116025 100644 (file)
@@ -38,7 +38,7 @@
 
                wakeup {
                        debounce-interval = <10>;
-                       gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; /* SODIMM 45 */
+                       gpios = <&gpio2 22 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* SODIMM 45 */
                        label = "Wake-Up";
                        linux,code = <KEY_WAKEUP>;
                        wakeup-source;