ARM: dts: imx6ull-colibri: Add general wakeup key used on Colibri
authorPhilippe Schenker <philippe.schenker@toradex.com>
Tue, 27 Aug 2019 13:18:40 +0000 (13:18 +0000)
committerShawn Guo <shawnguo@kernel.org>
Wed, 2 Oct 2019 01:09:51 +0000 (09:09 +0800)
This adds the possibility to wake the module with an external signal
as defined in the Colibri standard

Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi

index b6147c7..a78849f 100644 (file)
@@ -8,6 +8,20 @@
                stdout-path = "serial0:115200n8";
        };
 
+       gpio-keys {
+               compatible = "gpio-keys";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_snvs_gpiokeys>;
+
+               power {
+                       label = "Wake-Up";
+                       gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
+                       linux,code = <KEY_WAKEUP>;
+                       debounce-interval = <10>;
+                       wakeup-source;
+               };
+       };
+
        /* fixed crystal dedicated to mcp2515 */
        clk16m: clk16m {
                compatible = "fixed-clock";