Skip to content

Commit

Permalink
ARM: dts: colibri-imx6: improve wake-up with gpio key
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ziswiler authored and Shawn Guo committed Jan 26, 2023
1 parent 9a1bee3 commit 752ddcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/imx6qdl-colibri.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 752ddcd

Please sign in to comment.