Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1115458ybf; Thu, 27 Feb 2020 05:19:34 -0800 (PST) X-Google-Smtp-Source: APXvYqyp+SeaSy2r7yNA7vEv3350FsbizvrlTUyPHW0uMXH/L4AjU+lxkljeIz/j+NY1HdIMRNYz X-Received: by 2002:a9d:774e:: with SMTP id t14mr3232347otl.358.1582809574426; Thu, 27 Feb 2020 05:19:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582809574; cv=none; d=google.com; s=arc-20160816; b=Zee2wJcRG+UCAJgB/YJ/J2e6mI/ZHWtG5i9blezKEom3IDQ2rCqW+JZTNQFBgGcpu1 kP6eRsH3bnYB3IX1hNpgr1kY6flkL10xBaf4vlTC3TuPOmZAQbWKnEOFi5LSWPwcufyA CgqOv5nZFory2lKOSL7gm+TeqHhmQZYE3GMVJfojPEEnVL+ZeoChQ4QLSw8BE8sw+7Ar CaqnOsFVGZJX/Mg0HdNcEqY/aviOm6kJCBgF8XTH5KMmAcVWv5N61Q2/DF/GkkrkvZym 91cQKCAPITXikDjC2JR1gmVkBNrRIBujGNtDrkm+DzgUDtG9GeHKSz5TpIIOH7XI1ywI rX9w== 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=rl9+7ODDggkLCPOtCQKWOdbcz+nXQfMwa3M5eAEZkz0=; b=wDhYMbknZxzgil6PxIkx1FjHzJWKvRBQl6UUH/lQldigkyRj3Mho3M36713YcEXUJ4 UCPOS7PNf/6JBb5nTmY0hRvsZGVUJnWA2rX4mFQwyZh9LYVd3anjxG8cfG9UYJauZpIm BzEU7emx/bUoLcQqkRWFyAVUnDfmpCPqIgljdpnEb/EUnf4BUk3sQUrT6VTS8kU2Xowl 2OHWZXk9rLJ/bWA+VDCHVdKaQlff8H08o0MkmAvZOK7ek+fXuLscV7Nk1W1YZVPyLb9t lF45OT6TKxsvsH8w7+qDXYsunVc5HWqeBa/KNoTd347CIzPjUy5ICL6PoJHJrepaLIEb FRQg== 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 j16si1560513otq.23.2020.02.27.05.19.22; Thu, 27 Feb 2020 05:19:34 -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 S1729230AbgB0NSB (ORCPT + 99 others); Thu, 27 Feb 2020 08:18:01 -0500 Received: from comms.puri.sm ([159.203.221.185]:39788 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729210AbgB0NR7 (ORCPT ); Thu, 27 Feb 2020 08:17:59 -0500 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 23444DFD30; Thu, 27 Feb 2020 05:17:59 -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 B4fOomCxCS8C; Thu, 27 Feb 2020 05:17:58 -0800 (PST) From: Martin Kepplinger To: robh@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com 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 v4 4/8] arm64: dts: librem5-devkit: allow modem to wake the system from suspend Date: Thu, 27 Feb 2020 14:17:29 +0100 Message-Id: <20200227131733.4228-5-martin.kepplinger@puri.sm> In-Reply-To: <20200227131733.4228-1-martin.kepplinger@puri.sm> References: <20200227131733.4228-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 84443e4857d5..823d5c60a8fa 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 { @@ -576,6 +585,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