Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp341578ybv; Wed, 5 Feb 2020 06:32:22 -0800 (PST) X-Google-Smtp-Source: APXvYqzZ94Js1VtFIrN4Rcbtv9kYkjwzH5AgmuYnxbkxlr7QfVG6QUDIXQRM86VlhDJhpz6mngIT X-Received: by 2002:a05:6830:18f5:: with SMTP id d21mr25914678otf.225.1580913142406; Wed, 05 Feb 2020 06:32:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580913142; cv=none; d=google.com; s=arc-20160816; b=TPnh7EwpDPwQMtrmGA+rh9UdD5da3Jo2A9qD6M5aGboiuNxYRCvXo/6EcFXgLqXmF0 1VXtBt6DlMrcDex/Jpmy8fTllVXlFIsyElViAYRVPmtf82MK3EHI3XdMKhkUxhCkYOFW KnSnHIiAiem6kD6fbD0EZb4o9hZHCc8sdrCpwqy2E0abjBqg+4C36ANg2Ek1qj0i91IS DsZ+az01rhCoxC4LRJv0eXWj6Tt0COxg6vjaA8mjbMD5HZN6cE7KZvPkxl9umlzBpdh6 MlUQ+eLPm1CEGYtqCD6q6JtYUzoo/XU4WRKnu+wQN8PZ2M/BphUxN/+IaVGwaXcwbQ6f akpA== 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=y5HJgNqvRLFe6cvr07jgackiAdHeuuEXVXYuuwl1MG8=; b=MCJ2ROlGN1/wDeCouLIGGEhKboedhqtAmjPvzpCbfSQ13C78mMGCxxOxhyYgISFlRD MerVDi/AflI/xWPuVwLyUSI8eJGJzf8ojAVP+hbyeRc1TDWOg3syA1isZZTgfWuDkOLt doi4cdJQLESk3Nv2AM4T+WEWa1dFKByseu7qOIESRGL4hHNOKpaPK2Jl8rGymuhtvEsw /dfdvWa3VepLrV2X0tf6K3rV+Ad8o52HpmrZgmJRCfvF3CiQ00hhFvco1gGolZQeUffZ IowOEg/n/TiNBkTqxNcyYos691dPIFf1k/kgUEGTBLIndMgfs0zssX9OzP6LX2ecxY5/ Izow== 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 u18si16947oif.66.2020.02.05.06.32.09; Wed, 05 Feb 2020 06:32:22 -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 S1727453AbgBEObB (ORCPT + 99 others); Wed, 5 Feb 2020 09:31:01 -0500 Received: from comms.puri.sm ([159.203.221.185]:48826 "EHLO comms.puri.sm" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726046AbgBEObB (ORCPT ); Wed, 5 Feb 2020 09:31:01 -0500 Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 999CBE049D; Wed, 5 Feb 2020 06:31:00 -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 8X0Ugy737Zw9; Wed, 5 Feb 2020 06:30:59 -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)" Subject: [PATCH v1 03/12] arm64: dts: librem5-devkit: allow modem to wake the system from suspend Date: Wed, 5 Feb 2020 15:29:54 +0100 Message-Id: <20200205143003.28408-4-martin.kepplinger@puri.sm> In-Reply-To: <20200205143003.28408-1-martin.kepplinger@puri.sm> References: <20200205143003.28408-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) --- .../dts/freescale/imx8mq-librem5-devkit.dts | 27 +++++++++++++++---- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts index 8162576e8f3d..ac6ba227e1da 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts @@ -33,7 +33,7 @@ gpio-keys { compatible = "gpio-keys"; pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_gpio_keys>; + pinctrl-0 = <&pinctrl_gpio_keys>, <&pinctrl_wwan_in>; btn1 { label = "VOL_UP"; @@ -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 { @@ -767,11 +776,19 @@ >; }; - pinctrl_wwan: wwangrp { + pinctrl_wwan_in: wwaningrp { + fsl,pins = < + /* nWoWWAN */ + MX8MQ_IOMUXC_NAND_DATA02_GPIO3_IO8 0x80 + >; + }; + + pinctrl_wwan_out: wwanoutgrp { fsl,pins = < - MX8MQ_IOMUXC_NAND_CE3_B_GPIO3_IO4 0x09 /* nWWAN_DISABLE */ - MX8MQ_IOMUXC_NAND_DATA02_GPIO3_IO8 0x80 /* nWoWWAN */ - MX8MQ_IOMUXC_NAND_DATA03_GPIO3_IO9 0x19 /* WWAN_RESET */ + /* nWWAN_DISABLE */ + MX8MQ_IOMUXC_NAND_CE3_B_GPIO3_IO4 0x09 + /* WWAN_RESET */ + MX8MQ_IOMUXC_NAND_DATA03_GPIO3_IO9 0x19 >; }; }; -- 2.20.1