Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2569658ybl; Mon, 19 Aug 2019 04:19:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqjABSctxPltRpCkK+GQKYmnDhqMdvlz0qtUPuyYwtZOLzQqiXKXfSQBbjJt4JSxXOehlM X-Received: by 2002:aa7:8753:: with SMTP id g19mr4423544pfo.249.1566213547519; Mon, 19 Aug 2019 04:19:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566213547; cv=none; d=google.com; s=arc-20160816; b=nz2vYa9Q16SJrOUojHJKtzRbGw33Hbi+b8WydsuPttutMXwEZ5n7Ze2vW4gjokBB1G yasM99OGXVM7jcpbRzp4wU5Vti0VwaMm5EtdNyNCebGkh3KuvkQLmF5bmvlU/5d2Qs1n Zrs3JrLkxf3PGHihZrXIL2wnKVrAFzRC9Szx/Kj48QWTnGPaaXeYYP3ZSaEr+i7rCUfn qq167MFvqHonHN2wbzd1Tk6v7haCaQI68sLCcZ82jRKnmJSpaSHADqbzIheLNDmF54UI 835RdrwK4Cu650tqFojhbikdncku/5pevnH8ySGPkN6C/4Q+0n61jIGnsoWd8XCfDijR zdNg== 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=g78x+AiMMeMOFcy+4XNwXkbYIx2R3s10N2+KTUpo+1Y=; b=jaP7ZxE1ZodgGQNHBkl9rrdspyWNtIR9k3vuRsZriJx84vU+Q2VO0PRwTzT2HwtsTa gynm0NGhGfcp9cLh8tE3mjVAGPBymsBSk4H7/ZpK3uibBDGGjHi8vhT00NNdAWPywlou wq2rYeBOMatuj+LPoPnae6VR2jE2ND+ab+ZRvtqezcJQf9DF23fLrQl5SXFD2icDhwbL O4FMVOBTFKM8EdwbcuEtI1oh/OF824F5wIuuPABUOgjICZIpNwyMJU5JYDCAGnpJ+db3 zRItK31RlvXzz582t083ULK9WUIFUra2iwCCIB7Y66HbHDz4oQyLKDvXRUwMeTm04+wu T1kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="nvK/FQ2i"; 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 l185si9615026pgd.379.2019.08.19.04.18.51; Mon, 19 Aug 2019 04:19:07 -0700 (PDT) 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="nvK/FQ2i"; 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 S1727427AbfHSLRX (ORCPT + 99 others); Mon, 19 Aug 2019 07:17:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:32828 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726987AbfHSLRX (ORCPT ); Mon, 19 Aug 2019 07:17:23 -0400 Received: from X250 (37.80-203-192.nextgentel.com [80.203.192.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7669A2086C; Mon, 19 Aug 2019 11:17:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566213441; bh=SBx9yLs7l7QkTChHV7UVCy8UM+MrlbLRIJn2z15OfDI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nvK/FQ2iXY/JDm0pIrjZFcxpZ/5Ywrn8G3rCKnH9pItCtPhu7x5KaNQZPPfN78WNp kGo3pDamxs/iuZmVVggukIKtRPhZMg+WoK+lqft8ohEvxYp0bc1VPbXeThX7GLJjcW fR0R7Bzkj+hUa5CZ0qceHa/iLb2woHraePmuuOX4= Date: Mon, 19 Aug 2019 13:17:08 +0200 From: Shawn Guo To: Philippe Schenker Cc: Marcel Ziswiler , Max Krummenacher , "stefan@agner.ch" , "devicetree@vger.kernel.org" , Rob Herring , Mark Rutland , Michal =?utf-8?B?Vm9rw6HEjQ==?= , Fabio Estevam , Stefan Agner , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Pengutronix Kernel Team , NXP Linux Team , Sascha Hauer Subject: Re: [PATCH v4 06/21] ARM: dts: imx7-colibri: add GPIO wakeup key Message-ID: <20190819111707.GP5999@X250> References: <20190812142105.1995-1-philippe.schenker@toradex.com> <20190812142105.1995-7-philippe.schenker@toradex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190812142105.1995-7-philippe.schenker@toradex.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 12, 2019 at 02:21:23PM +0000, Philippe Schenker wrote: > From: Stefan Agner > > Add wakeup GPIO key which is able to wake the system from sleep > modes (e.g. Suspend-to-Memory). > > Signed-off-by: Stefan Agner > Signed-off-by: Philippe Schenker > Acked-by: Marcel Ziswiler > > --- > > Changes in v4: > - Add Marcel Ziswiler's Ack > > Changes in v3: None > Changes in v2: None > > arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 14 ++++++++++++++ > arch/arm/boot/dts/imx7-colibri.dtsi | 7 ++++++- > 2 files changed, 20 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi b/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi > index 3f2746169181..d4dbc4fc1adf 100644 > --- a/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi > +++ b/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi > @@ -52,6 +52,20 @@ > clock-frequency = <16000000>; > }; > > + gpio-keys { > + compatible = "gpio-keys"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_gpiokeys>; > + > + power { > + label = "Wake-Up"; > + gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; > + linux,code = ; > + debounce-interval = <10>; > + gpio-key,wakeup; Please check Documentation/devicetree/bindings/power/wakeup-source.txt Shawn > + }; > + }; > + > panel: panel { > compatible = "edt,et057090dhu"; > backlight = <&bl>; > diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi b/arch/arm/boot/dts/imx7-colibri.dtsi > index cab40d22d24e..5347ed38acb2 100644 > --- a/arch/arm/boot/dts/imx7-colibri.dtsi > +++ b/arch/arm/boot/dts/imx7-colibri.dtsi > @@ -741,12 +741,17 @@ > > pinctrl_gpio_lpsr: gpio1-grp { > fsl,pins = < > - MX7D_PAD_LPSR_GPIO1_IO01__GPIO1_IO1 0x59 > MX7D_PAD_LPSR_GPIO1_IO02__GPIO1_IO2 0x59 > MX7D_PAD_LPSR_GPIO1_IO03__GPIO1_IO3 0x59 > >; > }; > > + pinctrl_gpiokeys: gpiokeysgrp { > + fsl,pins = < > + MX7D_PAD_LPSR_GPIO1_IO01__GPIO1_IO1 0x19 > + >; > + }; > + > pinctrl_i2c1: i2c1-grp { > fsl,pins = < > MX7D_PAD_LPSR_GPIO1_IO05__I2C1_SDA 0x4000007f > -- > 2.22.0 >