Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4342760ybv; Sun, 16 Feb 2020 20:02:57 -0800 (PST) X-Google-Smtp-Source: APXvYqxxcyqZvJMufbkmbHrXr5fprFZ6Ow43s3rjoVbN67Zeb1uMpNlcUKMvZF0NBfmIDaDeYkBU X-Received: by 2002:a9d:7f11:: with SMTP id j17mr11454370otq.281.1581912177805; Sun, 16 Feb 2020 20:02:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581912177; cv=none; d=google.com; s=arc-20160816; b=GStB+Q2Wy5CgT4VvFiV3Jx9PjJviXbTrt2jCjJrGv1l1PCWUcOzvaHNmmYpHI4cA+E G4+t6z78p415HBhcgxKAra1v6V4zhUOcvQyzxkUwydlAMzizW9i/eI9/jh5X43qOEP3V vHJteeCO4za62wu4t+Go8dZdXEgRUI/VZju7z8KM8HR1SkBK8JI5c8ctQPvjhqXtoNZW vZy/VYrV6DEc2huPpi8+ekkRhuBg2pIwJYhqOEmA2AJrFSK1/WmXUcYmwTHhkF8MiFfg Fe2sSe1qHhco493IQtNpmkhG8O+AXxT08lxbjlDd1IJLyFYcnHa93gxd3tsL1w9ho6qs 1M5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=oD006TWN40sjT8luSG+sLvrv0gDQkUu8i0frCILT0AQ=; b=KK4g5pLbjYaVOfVt4azDZV9+K3e0wLlCXjenOnEVqNsWr9eKruFcvqvC/7X7506eTr Etg+mjXrvLWYyqH0i4QmbI/fFsUyFvjknMQxt/xcH4jIygqx7b6geFeiMjsvw0UmhyB0 RnXZ6QlFY29XVg0olg1m4NSoTGiSMByATwf5QKVfZvRMxsFBm85ZiMEebEyXZsjLfKEG eqBpGcjzq00k0kDB0+/ruhkllnAbuB63okSbr3Lc0qiSP+1wb2V6iDtils2pIjZrmHCk YBorEO1WFPIn3Zq3+8ZwoT8LtbDnykDc5zO9nJgbgBqH6EcD1LOrEB9/NR/Idcc097IY qNjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nTXTxTvI; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10si6434930otn.122.2020.02.16.20.02.45; Sun, 16 Feb 2020 20:02:57 -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; dkim=pass header.i=@kernel.org header.s=default header.b=nTXTxTvI; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727901AbgBQEC1 (ORCPT + 99 others); Sun, 16 Feb 2020 23:02:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:33058 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726498AbgBQEC1 (ORCPT ); Sun, 16 Feb 2020 23:02:27 -0500 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 38D9020726; Mon, 17 Feb 2020 04:02:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581912146; bh=XQOujdjrFUN4YnehuiyzCYCn7bsdy4tjBnZOyqleE4Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nTXTxTvIL6ZEDXx7KAe7ydIxNsxkLHOOXEfj+RpLf/d3uxiAko6HxUi7ilWRVHPPr TtjmLOxI8MkfFHFjcGF4bEIlGO/QL3e9qF95w9caYwnLT5FnXwXVFdZyjXPmXHyWfa kYG9AedJRjrajjd05pwy1ZuvqA/xTZNTSITOkDh0= Date: Mon, 17 Feb 2020 12:02:17 +0800 From: Shawn Guo To: Martin Kepplinger Cc: robh@kernel.org, mark.rutland@arm.com, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, 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: Re: [PATCH v1 03/12] arm64: dts: librem5-devkit: allow modem to wake the system from suspend Message-ID: <20200217040216.GD5395@dragon> References: <20200205143003.28408-1-martin.kepplinger@puri.sm> <20200205143003.28408-4-martin.kepplinger@puri.sm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200205143003.28408-4-martin.kepplinger@puri.sm> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 05, 2020 at 03:29:54PM +0100, Martin Kepplinger wrote: > 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 Why not just add it to pinctrl_gpio_keys to make the change minimal. > + >; > + }; > + > + 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 Unnecessary changes. Shawn > >; > }; > }; > -- > 2.20.1 >