]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
arm64: dts: librem5-devkit: allow modem to wake the system from suspend
authorAngus Ainslie (Purism) <angus@akkea.ca>
Thu, 27 Feb 2020 13:17:29 +0000 (14:17 +0100)
committerShawn Guo <shawnguo@kernel.org>
Wed, 11 Mar 2020 07:59:09 +0000 (15:59 +0800)
Connect the WoWWAN signal to a gpio key to wake up the system from suspend.

Signed-off-by: Angus Ainslie (Purism) <angus@akkea.ca>
Signed-off-by: Martin Kepplinger <martin.kepplinger@puri.sm>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts

index 84443e4857d51561fec9feb3bcacdafc95a36d09..823d5c60a8fad2bb9807f2de47a6172a5894e15d 100644 (file)
                        wakeup-source;
                        linux,code = <KEY_HP>;
                };
+
+               wwan-wake {
+                       label = "WWAN_WAKE";
+                       gpios = <&gpio3 8 GPIO_ACTIVE_LOW>;
+                       interrupt-parent = <&gpio3>;
+                       interrupts = <8 GPIO_ACTIVE_LOW>;
+                       wakeup-source;
+                       linux,code = <KEY_PHONE>;
+               };
        };
 
        leds {
                        MX8MQ_IOMUXC_SAI2_RXFS_GPIO4_IO21       0x16
                        MX8MQ_IOMUXC_SAI2_RXC_GPIO4_IO22        0x16
                        MX8MQ_IOMUXC_SAI5_RXC_GPIO3_IO20        0x180  /* HP_DET */
+                       MX8MQ_IOMUXC_NAND_DATA02_GPIO3_IO8      0x80   /* nWoWWAN */
                >;
        };