Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2091064ybv; Sun, 23 Feb 2020 22:31:25 -0800 (PST) X-Google-Smtp-Source: APXvYqw1tMC7pXo1adHUBdypWTRh/+vXrZS5xKLHIHlG6owvue+gaHr9snIhbo4mgjOB1pFKflR0 X-Received: by 2002:aca:cf12:: with SMTP id f18mr11633827oig.81.1582525884940; Sun, 23 Feb 2020 22:31:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582525884; cv=none; d=google.com; s=arc-20160816; b=lW/6351gv0HeNqPNy9SJIFCRKDsAsLv8vkgpRsKopGOMsoE02Z8ptjFpKGlus7jpI4 BSH95zRaZpuJ1ZoyU9QBQF5V9SNTW4/08ZIVTdBntAqvMwgl4fcG13wYOnBmxq6mDQGu YeXu1NKjth+c73WqV0+XDjtwWOpqEquIcP2qAAlNo0mLA/AvNvZiVtEHBro+gwhnxq1Y mYqxxEjqefu3Ijd2JvLJOVMyrfaEfRB9/Rex666rl2kir9lT7v4e7Pdie1gsPnrXSH6b cNGqKfH4GvEv0Ri0NUAYbEMY0bC+eLXlWj/A2D2V3iJYDf9MBkWbdB+SjG9eWqV0riL4 hLAg== 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=1NOwvNGFbGtC7cBU2zrc/sFDHzPFwfL/GkioIsu69lo=; b=cKPEJYeFscdbxC6U05wZq3C//1sYbYGEj1zrBB2BTEnN3QEzqnGcxmahpUhAU2Z+V/ zWRZwwwi/D5hyzb061yNQ3zWXtI+AG91oEg+G/7N8JiVyrUsYtGZZfLx+pVnQ9wzUVMg 5KAamOE8yN6ig9N2M42hZFDA7wXqQtL9peHgieEkQFDncAw54KpQiCHQVx08jVuzb1hP 9jP7N7DUFRtyfhvLF7cdW3VMg2Z/ZZpIN11k5isp3hMmMIzs0NBnU0EYp57dgvkU9BS1 qxrdktKp1zXX+0D9E/xyCdS9ZdvH8oiATpch0PVLsuc5L5i5LlB/s2X7t+jkkVYOGOts M2Kg== 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 z24si5434380otm.135.2020.02.23.22.31.13; Sun, 23 Feb 2020 22:31:24 -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 S1727268AbgBXGbA (ORCPT + 99 others); Mon, 24 Feb 2020 01:31:00 -0500 Received: from comms.puri.sm ([159.203.221.185]:46882 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbgBXGa7 (ORCPT ); Mon, 24 Feb 2020 01:30:59 -0500 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 5AEA9E031B; Sun, 23 Feb 2020 22:30: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 AnUqeA9WwopK; Sun, 23 Feb 2020 22:30:58 -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 v3 3/8] arm64: dts: librem5-devkit: allow modem to wake the system from suspend Date: Mon, 24 Feb 2020 07:29:12 +0100 Message-Id: <20200224062917.4895-4-martin.kepplinger@puri.sm> In-Reply-To: <20200224062917.4895-1-martin.kepplinger@puri.sm> References: <20200224062917.4895-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 ed4a10255bad..66d6b7c6dca7 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