Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5542373ybl; Tue, 27 Aug 2019 06:19:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyut6ZpY0VZzny9Xo0AqrYy2InnwXEY7/lwizHQeAKXM0cAu7bJix3xavQNGYyjE3QODVnr X-Received: by 2002:aa7:8753:: with SMTP id g19mr26290938pfo.249.1566911978119; Tue, 27 Aug 2019 06:19:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1566911978; cv=pass; d=google.com; s=arc-20160816; b=JFo0c7nCpzZSKYNdJ/DO2IChDOjAFYEW+K9jBxNgIX4+azZcfghbtgqy0MhpBQDTzz Bv4DHjZuQw828HXvbY9Yjq4Vt3/C9hUTrrNQvA9G9iLg8+wJIqP45lT3HFZ1Husea93E sLj8v6bRDzMmHlLnV3Ss9hkO1DEryV6Vva3TAoO+B2EQC71G+YmzrQKDKvYTrf/LnBME 1TdSo2Euk/jsQXHTK/BnnG1EbOS+BUjqBx8AOdN1JxWNV6SNeiyZK0W8afhKbXFSS+2X sMZ0WgzkbggodkfTU5gRpkcxgspfMRH3vnpnBjRkon8y0xeFseLjtT7Aqd9DKhtei+JS ImZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=SnrsHGTXKNpzrvD/LD+qtZ9nF871IyK7mqtMED2R7HU=; b=XH8l/EBizEj/6b1AROEdTO70DxqKlwKSaZniw9BD72yRmKgacsM+Zv8O+6y/XD1ivp Tcte9Od4bnxvVW2PfwaX2a15phb3sq547IkgqexL0OsRkTSrLljM6zjy4IxljS1WG7Is jGm+SVUqW18xthdy5JwCV5o4YScMjoMvVbMrRl9+sBQTYSIl4mZtfAim8L36m93LbZ/g f+aHIn1JVvRr8GncduLrDiKu8AExa+fI4YJdkr8iZhMaJzwOHoCt2SMrRet4+FU2ZsdX LOOYynndFUZJKawmbhzlAFX5SGrA6ppvvFQUzhWfrLIsTz5SJTobZxci7ny9JHJzlWV5 hC5w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@toradex.com header.s=selector2 header.b=gb+UV5jp; arc=pass (i=1 spf=pass spfdomain=toradex.com dkim=pass dkdomain=toradex.com dmarc=pass fromdomain=toradex.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=toradex.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x125si12148769pgx.332.2019.08.27.06.19.22; Tue, 27 Aug 2019 06:19:38 -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=@toradex.com header.s=selector2 header.b=gb+UV5jp; arc=pass (i=1 spf=pass spfdomain=toradex.com dkim=pass dkdomain=toradex.com dmarc=pass fromdomain=toradex.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=toradex.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729596AbfH0NSZ (ORCPT + 99 others); Tue, 27 Aug 2019 09:18:25 -0400 Received: from mail-eopbgr50112.outbound.protection.outlook.com ([40.107.5.112]:14974 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728803AbfH0NSX (ORCPT ); Tue, 27 Aug 2019 09:18:23 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RHsTv/hu/exAol3JCdeAz0CYOOn3GA70DxYvKg12593ZAqCv5GNPwFMxarH7FAysE4Q577jdTD3xELCvwmzP5hdPe0jM7p2L+0yXCs4dEsiCZr4AKVKi0NUm8vqc2xWRrcARJBzrKRRgp1iq0pzBoMviZ2l6TLnNilSmnOwyM3TiOiQ16NSh4m3iW9OftWhQkjXKPsrq100ivvJr6/kA+hG3farye+OUTtG188A0i/AnkmNcHezomcRIbwoBOdPyzQmFGDeKPNkmvnChZeYMKC5x5zX7W90Ty1a1PsNEKKXwyn0mv3hwVV9RpVTvP5O54u9FV/WWPuL2oEUCQowgug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SnrsHGTXKNpzrvD/LD+qtZ9nF871IyK7mqtMED2R7HU=; b=KZVGZpzg6QUfDpcnsL/z1oGabj9xa53eezc+jl8UOhQDwsNZs7R9JFOFXGO9Oa66Py/gXvZ8BbhxV07zTePG9RD3ovzszow+2Rp6oATaQqnPmjMQX11Htc110IAZ+9dtDFF8EvnzHJtb/3ilwQ8mZw2aMhHj7V6gCPysm0sHOOCwWqGuqatrXuCAhp7qRM9PTgxlayo0ZIJTwQBXyxSEFr2UmkUHPo8foWuqTZxaiLGIs4nr6/OvcOPTPWptgFHSNTVufoDh2ObkGvvcG3iQWzZp0CEOPD9ctGiqT+/4jNXjvRvedYety6fyAu8/7WZ0yJKPGy/ik2Mw0XaJ3Wzv0Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=toradex.com; dmarc=pass action=none header.from=toradex.com; dkim=pass header.d=toradex.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SnrsHGTXKNpzrvD/LD+qtZ9nF871IyK7mqtMED2R7HU=; b=gb+UV5jpVcmzQRbdak8hINcTkXyEy6ot+FTVWXXo9OH/44dlmL02VbI3hblIiyGpk6nNlU26FzloudtN5fh9/rQB2H5CCFfhSy4KA93PKHk8Aj4rBWsL0+9zlLH0LMn9AaMKcA7j5FuNq48eVb185j5PdcTszj5q/SBL2Md/Q8k= Received: from VI1PR0502MB3965.eurprd05.prod.outlook.com (52.134.17.157) by VI1PR0502MB3872.eurprd05.prod.outlook.com (52.134.5.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2199.21; Tue, 27 Aug 2019 13:18:19 +0000 Received: from VI1PR0502MB3965.eurprd05.prod.outlook.com ([fe80::f59f:a307:9c53:63b9]) by VI1PR0502MB3965.eurprd05.prod.outlook.com ([fe80::f59f:a307:9c53:63b9%6]) with mapi id 15.20.2199.021; Tue, 27 Aug 2019 13:18:18 +0000 From: Philippe Schenker To: Marcel Ziswiler , Max Krummenacher , "stefan @ agner . ch" , "devicetree @ vger . kernel . org" , Rob Herring , Shawn Guo , Mark Rutland , =?iso-8859-2?Q?Michal_Vok=E1=E8?= , Fabio Estevam CC: Stefan Agner , Philippe Schenker , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Pengutronix Kernel Team , NXP Linux Team , Sascha Hauer Subject: [PATCH v5 01/13] ARM: dts: imx7-colibri: add GPIO wakeup key Thread-Topic: [PATCH v5 01/13] ARM: dts: imx7-colibri: add GPIO wakeup key Thread-Index: AQHVXNnk4+XpkBU1SkuLbM+G5tdEAw== Date: Tue, 27 Aug 2019 13:18:18 +0000 Message-ID: <20190827131806.6816-2-philippe.schenker@toradex.com> References: <20190827131806.6816-1-philippe.schenker@toradex.com> In-Reply-To: <20190827131806.6816-1-philippe.schenker@toradex.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM0PR0102CA0031.eurprd01.prod.exchangelabs.com (2603:10a6:208:14::44) To VI1PR0502MB3965.eurprd05.prod.outlook.com (2603:10a6:803:23::29) authentication-results: spf=none (sender IP is ) smtp.mailfrom=philippe.schenker@toradex.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.23.0 x-originating-ip: [46.140.72.82] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 1b7aaa73-c878-466b-7337-08d72af1067d x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:VI1PR0502MB3872; x-ms-traffictypediagnostic: VI1PR0502MB3872: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4502; x-forefront-prvs: 0142F22657 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(4636009)(396003)(376002)(366004)(136003)(346002)(39850400004)(189003)(199004)(8936002)(66946007)(2906002)(11346002)(5660300002)(50226002)(54906003)(110136005)(316002)(14454004)(1076003)(14444005)(256004)(64756008)(6506007)(386003)(7736002)(478600001)(36756003)(53936002)(66556008)(6116002)(66066001)(66446008)(3846002)(6436002)(76176011)(476003)(2616005)(446003)(486006)(6512007)(26005)(305945005)(102836004)(6486002)(71200400001)(186003)(8676002)(86362001)(81166006)(4326008)(71190400001)(81156014)(66476007)(25786009)(99286004)(7416002)(52116002)(44832011);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR0502MB3872;H:VI1PR0502MB3965.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: toradex.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: +wCfqMbb0meOzfF8m7iKMspwvl+NmxMgTd7MoeAreFBbMT0MaRu2sWlFc0JDNfrsJ4k63Gyivz3lNzN19x6XgJcQdwLT5PyBgnxYnA1xJrZt1z7P4fo1I/ZCmiv78Xej4HV4/7AyInw6m7Vj7bCTw7HA756UDnzNfw1BdF6uxkS5wS7XyPqQPFOyywi0eroRNI+os+dzBdPOzwYXK5Ek3wC4ApkojO6k/7HEXpx8FJ8GzuMi6avw2r40NNWkMHX9QrIbUn2J6Auj8GipREyNXHYXcfD2603R9EzgHXWP8NX73dY3PtEi2LVOF/dXgKhxGwBHRil2z/u9yO5IJtFsgVVqVsXcubj/lMocbEYm+dq4b2TR++m6TQrhoUxQsZFw5lCTL/PQZCktPCPD4rWx6wEx+KxodXueecf2IKqr+qs= Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1b7aaa73-c878-466b-7337-08d72af1067d X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Aug 2019 13:18:18.4092 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 6SmUh/ZOP6/Q8GW0WlqZ0fi83dHWzG1ICn19zB97Z4DqiQOMfScD387bdflniv//VFfh9Lc14WF1tDlrYTSdIpVFCvmLcRUicx8Z7/yAYXA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0502MB3872 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 v5: - changed legacy gpio-key,wakeup to wakeup-source 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/dt= s/imx7-colibri-eval-v3.dtsi index 3f2746169181..45c4e721115a 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 =3D <16000000>; }; =20 + gpio-keys { + compatible =3D "gpio-keys"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_gpiokeys>; + + power { + label =3D "Wake-Up"; + gpios =3D <&gpio1 1 GPIO_ACTIVE_HIGH>; + linux,code =3D ; + debounce-interval =3D <10>; + wakeup-source; + }; + }; + panel: panel { compatible =3D "edt,et057090dhu"; backlight =3D <&bl>; diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi b/arch/arm/boot/dts/imx7-c= olibri.dtsi index 895fbde4d433..b72940e7d00b 100644 --- a/arch/arm/boot/dts/imx7-colibri.dtsi +++ b/arch/arm/boot/dts/imx7-colibri.dtsi @@ -682,12 +682,17 @@ =20 pinctrl_gpio_lpsr: gpio1-grp { fsl,pins =3D < - MX7D_PAD_LPSR_GPIO1_IO01__GPIO1_IO1 0x59 MX7D_PAD_LPSR_GPIO1_IO02__GPIO1_IO2 0x59 MX7D_PAD_LPSR_GPIO1_IO03__GPIO1_IO3 0x59 >; }; =20 + pinctrl_gpiokeys: gpiokeysgrp { + fsl,pins =3D < + MX7D_PAD_LPSR_GPIO1_IO01__GPIO1_IO1 0x19 + >; + }; + pinctrl_i2c1: i2c1-grp { fsl,pins =3D < MX7D_PAD_LPSR_GPIO1_IO05__I2C1_SDA 0x4000007f --=20 2.23.0