Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5630283ybv; Tue, 18 Feb 2020 00:51:15 -0800 (PST) X-Google-Smtp-Source: APXvYqwc6HyXYjSlj4mQtIf5qK5h1KaD/PgiDm6wJpqDoFbQz9q8jZ1qmX+fdl8puSOZpqdB7hkZ X-Received: by 2002:a05:6830:22e2:: with SMTP id t2mr15347824otc.129.1582015875348; Tue, 18 Feb 2020 00:51:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582015875; cv=none; d=google.com; s=arc-20160816; b=CeUfu2prQnJbqn+KYQGe0bxTkuvZ8/meIL1jDwbppoGFTblOhSVPfdwvhgBmRsHfIo g6YsfgvXTUmcD8SSTz0OHf/WJCepElchRhE6/SlssxWwMiSljd2KsQcBlHFKKJ24PBTS y7dGCfi0xhuFDEr/K/rMJw2Bb3rRzjug7jLybM/qoWaDC7NuDclVROzoXbXfi976uYD4 oAMMr5EfAxEATb4GWIHWc7qboNcNZreNUJcX4nR6URaFC1ZZJcxB+zbLHbuD92QbaP8R y29/fj+9QNyST/OtqXgmp9vOsIvK1430w9bbuLWmXw1HgO2USytTvAj5IUu8qj/N8w6j 9oGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:references :in-reply-to:message-id:date:subject:cc:to:from; bh=kg5w8ZFea3zOyMxgaMxmZGJVcbfya5Q1WoA4wP3R1Gg=; b=MPkV4diesrTDRcvuLbc7nYtShaj0+DmtQvnlDDlwu2IngEDAvs4FtY5tSzadMjwTJK SkyvXcHl7jfnbPqXBPnnf8t/5xIgIet5A2ej3vWubtkyVPQRWMLMh6QQ2Q0BzAvNouw/ uA+rq/yhZEBzrqI4QJJtMRZgn9qiRpADBlyGuFK+dxA70bPeyEhuZ1FRQJGa/lr5C5a4 +EzPuOhA1zG6GRFgzSddX2LgtDG2KroR8cf0E2yIpVLymwH7YlL3TA+CCgGVtaHvlGgm GNsne9BtxPHWB/1NTGjoxX7y9N1ittI9YXsBOL+cvKc1wFezqO3/zZdypmu0BIribg/b 3aAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j25si7676544oij.242.2020.02.18.00.51.02; Tue, 18 Feb 2020 00:51:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726539AbgBRIuu (ORCPT + 99 others); Tue, 18 Feb 2020 03:50:50 -0500 Received: from comms.puri.sm ([159.203.221.185]:39802 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726461AbgBRIut (ORCPT ); Tue, 18 Feb 2020 03:50:49 -0500 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 395A9E1137; Tue, 18 Feb 2020 00:50:49 -0800 (PST) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 45fr4mrVkOY8; Tue, 18 Feb 2020 00:50:48 -0800 (PST) From: Martin Kepplinger To: robh@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de Cc: linux-imx@nxp.com, Anson.Huang@nxp.com, devicetree@vger.kernel.org, kernel@puri.sm, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "Angus Ainslie (Purism)" , Martin Kepplinger Subject: [PATCH v2 4/9] arm64: dts: librem5-devkit: allow modem to wake the system from suspend Date: Tue, 18 Feb 2020 09:49:37 +0100 Message-Id: <20200218084942.4884-5-martin.kepplinger@puri.sm> In-Reply-To: <20200218084942.4884-1-martin.kepplinger@puri.sm> References: <20200218084942.4884-1-martin.kepplinger@puri.sm> Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Angus Ainslie (Purism)" Connect the WoWWAN signal to a gpio key to wake up the system from suspend. Signed-off-by: Angus Ainslie (Purism) Signed-off-by: Martin Kepplinger --- .../arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts index ec12477d925d..9c81b07f43f3 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts @@ -55,6 +55,15 @@ wakeup-source; linux,code = ; }; + + wwan_wake { + label = "WWAN_WAKE"; + gpios = <&gpio3 8 GPIO_ACTIVE_LOW>; + interrupt-parent = <&gpio3>; + interrupts = <8 GPIO_ACTIVE_LOW>; + wakeup-source; + linux,code = ; + }; }; leds { @@ -574,6 +583,7 @@ 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 */ >; }; -- 2.20.1