ARM: dts: imx7-colibri: improve wake-up with gpio key
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>
Mon, 16 May 2022 13:47:16 +0000 (15:47 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sat, 11 Jun 2022 09:13:16 +0000 (17:13 +0800)
The pin GPIO1_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 GPIO1_IO01 to +3v3.

Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx7-colibri-aster.dtsi
arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi

index bfadb3a..9148c54 100644 (file)
@@ -15,7 +15,7 @@
 
                power {
                        label = "Wake-Up";
-                       gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio1 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
                        linux,code = <KEY_WAKEUP>;
                        debounce-interval = <10>;
                        wakeup-source;
index 074c96f..4a7e593 100644 (file)
@@ -34,7 +34,7 @@
 
                power {
                        label = "Wake-Up";
-                       gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio1 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
                        linux,code = <KEY_WAKEUP>;
                        debounce-interval = <10>;
                        wakeup-source;