ARM: dts: colibri-imx6ull: improve wake-up with gpio key
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Mon, 9 Jan 2023 13:19:59 +0000 (14:19 +0100)
committerShawn Guo <shawnguo@kernel.org>
Thu, 26 Jan 2023 00:27:03 +0000 (08:27 +0800)
The pin GPIO5_IO01 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 GPIO5_IO01 to +3v3.

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

index 336ab2e0534c0e05c60fe42f1e627514711b8735..368d11ae7a8a2a847ea2f44c0692b2987356f0ac 100644 (file)
@@ -53,7 +53,7 @@
 
                wakeup {
                        debounce-interval = <10>;
-                       gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>; /* SODIMM 45 */
+                       gpios = <&gpio5 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* SODIMM 45 */
                        label = "Wake-Up";
                        linux,code = <KEY_WAKEUP>;
                        wakeup-source;