Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3848616ybl; Mon, 12 Aug 2019 07:23:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYshD/7EbAMFd+Rr4mv7O1m6ShLtEV0YOLq3dk6DyJLYKRl28ENh3iUgBnb/KrJdB+KCkX X-Received: by 2002:a17:90b:911:: with SMTP id bo17mr5741635pjb.40.1565619838951; Mon, 12 Aug 2019 07:23:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1565619838; cv=pass; d=google.com; s=arc-20160816; b=h0ZWb1cF8BbXYdoMDTPRdpf3b4bwdHvvDuEEOAf8DTZjl7Cc3dm6UVBfuWHg4I6rXx UiRxizml0tQmhiNDqJqy2BgWE9l1rsR6rJisVm19Suvr5YVnWcSdjht7V9X+McnVIS5G 8rXlDxn6zmxw1XbhrSbDnyChONDrADuxRkqMuUXDE9IL6Do20nyosoIBeu34QKt+M6mw go0Z15evOnLQ0b8XqHUMgehHrAlSQFv7Wox9xjhaOY5MTLC+rqQglMPYHxFv+5I0zl0P W/thaMEPPJ0ojwIO8blNZTVw9Jo0caMElVGdBgK3kl7yive5u0OMsNVmUK5U4ZzELH2j siWQ== 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=B0BdRznFxAUhNxrspkTK7rwiM+GJQy59F2gJy2dJvFk=; b=EguXdbpqsgZ08c/35zmQm0KmE5lBhqBeotfapE5yMaSIB6JJRQKfXwBDpCbWQjFbox nqXTxqQmwtiaRglDN1rTz72UoTZBqEQToio1d7rr5Yi1Ejy2sTMghZNTo5HNtvgaWijm AY4lXo/dlkOHcbmYqhLaBeXFc8bz6fEx25j49Gk+HRVRFD8ncH9MqKgV23FuHHpzn3q4 TCDHuVyb0+eTHc/uU21PW1gZMmaszUqc9jH6b+YptcmzS1858LM3ggZntXvCMqxv6Gcp QKjdA4Qz+w8PvoB2058D8kGz1HDpnR31G+UXYyLwamll/egkQeN7JQhIg3gZn0C6+ZXg N5kg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@toradex.com header.s=selector2 header.b=cXuOVtHn; 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 y21si55863739plp.332.2019.08.12.07.23.42; Mon, 12 Aug 2019 07:23:58 -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=cXuOVtHn; 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 S1728937AbfHLOWO (ORCPT + 99 others); Mon, 12 Aug 2019 10:22:14 -0400 Received: from mail-eopbgr150103.outbound.protection.outlook.com ([40.107.15.103]:19221 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728123AbfHLOWM (ORCPT ); Mon, 12 Aug 2019 10:22:12 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DlK+arUDOV/84Lxy1+spe/iP1diRVUiaGVrOr73QGmwtsr2psUaNltE6hebQ1u3T3X44DHBM3ZSVZy9UuH/9fJNIq24xQ2eZNKi8uWLvxctl3iN6FCqxWGzcTyXjRot/4oVWDJfNfbBLee1mkgTc2kHMLlKvTjn3T+bOxGSeSxyUA+uO48iAS7IPbd6+5OuIfCI8ckEZdKOVqWz2wxnM8KDx1yXfq9qPk4RczUV4UkkC9YlNLR/KTMc2AxZoiq8V17ZKdu+OUAxfAx3G03gqYOfqebXwJO5zX+WOaq+xNI1PtQYVjcRg5Ex5jMjoDudoMJf28Uk4PMybVp5bm7Xztw== 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=B0BdRznFxAUhNxrspkTK7rwiM+GJQy59F2gJy2dJvFk=; b=k5OkZZHR8CiUxrU1WbQYTFYiqNmD7iaj5nP6ja0MCaj1H8WpgQLcKVoVmmn1i3KVWWTSQulZQGa0OOHLYf9doXWcIBLJw7CEsjJrAY5mRHbXcW93bcW9r35YnaWFbo4xcmlvbx4wgVhMTZgjQQ00nfqiOeqhVsTk40e2YpE5moEpw9NKn29WE5RGTKbIENalxDyV0po3wvn40n/gmSigssv97H0Lew7/xPiIDEaX8LUF4U0L/GsZCrGrLxBNz4r2qzPXHxGF0ucFlFDz9/5vL0BDxYl0FVTSOk2Tkr22ivin7KP6QU9H16TdEhDjWQTXVlsfNZbynYD14dyiEnXTfQ== 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=B0BdRznFxAUhNxrspkTK7rwiM+GJQy59F2gJy2dJvFk=; b=cXuOVtHnO0I8TIb90QA77ueAJ4ehRUuhP34PNWDlTDLQKdgJoC5TEkeo9PxKnfl7sdeUaqq3+UE198tCUUV/ERrznKA0ZiON9P1JZ0wwKeYK5BJeiYJP/ikxYChDpI4IF2+bwgjlKx/ZmRlxbYXOkJBwestxHlu0qLlmfRDOWvk= Received: from VI1PR0502MB3965.eurprd05.prod.outlook.com (52.134.17.157) by VI1PR0502MB2942.eurprd05.prod.outlook.com (10.175.26.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.21; Mon, 12 Aug 2019 14:21:23 +0000 Received: from VI1PR0502MB3965.eurprd05.prod.outlook.com ([fe80::8405:5b51:b25d:39a2]) by VI1PR0502MB3965.eurprd05.prod.outlook.com ([fe80::8405:5b51:b25d:39a2%6]) with mapi id 15.20.2157.022; Mon, 12 Aug 2019 14:21:23 +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 v4 06/21] ARM: dts: imx7-colibri: add GPIO wakeup key Thread-Topic: [PATCH v4 06/21] ARM: dts: imx7-colibri: add GPIO wakeup key Thread-Index: AQHVURk3eaP9B74GN0+d3QWKMOWx0g== Date: Mon, 12 Aug 2019 14:21:23 +0000 Message-ID: <20190812142105.1995-7-philippe.schenker@toradex.com> References: <20190812142105.1995-1-philippe.schenker@toradex.com> In-Reply-To: <20190812142105.1995-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: VI1P194CA0055.EURP194.PROD.OUTLOOK.COM (2603:10a6:803:3c::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.22.0 x-originating-ip: [46.140.72.82] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2405a16f-9c0a-41dc-1770-08d71f305a40 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:VI1PR0502MB2942; x-ms-traffictypediagnostic: VI1PR0502MB2942: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4502; x-forefront-prvs: 012792EC17 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(4636009)(376002)(136003)(39840400004)(346002)(366004)(396003)(199004)(189003)(5660300002)(54906003)(110136005)(316002)(478600001)(6486002)(86362001)(2201001)(66066001)(53936002)(6116002)(1076003)(3846002)(2906002)(4326008)(25786009)(66446008)(64756008)(66556008)(66946007)(66476007)(6436002)(8676002)(11346002)(476003)(2616005)(446003)(256004)(81166006)(81156014)(2501003)(44832011)(6512007)(14444005)(486006)(50226002)(71200400001)(71190400001)(7416002)(8936002)(36756003)(52116002)(7736002)(305945005)(99286004)(102836004)(386003)(14454004)(76176011)(186003)(6506007)(26005);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR0502MB2942;H:VI1PR0502MB3965.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX: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: HEDVro1QxJZ41i8TOh3Jt+7VUKAUTar499Zd/0VBi0V4CRI1nPTU7Tsw6WqAt6Fh+v2bHG+FIMRWh+JCdU9TprmR+uV6U3VlzpvybPnvDFU9uN5+uOEZa5+A7J24d6lbXJNET3OUsGlHn3o0IW9B3Bx5bXQ0VgbeINWQzqK4lhvtPrPu0QmLDAgOwa9jxDz/UQOLhGe7ymZp2UiONnNagWOg50CO4BiQerP2AgY14qRaTAQomjC3T7dqSc3RHt6tnL3XvzRo0Snmj8ID/wHlnICHUomE3+TFahVScoOwRCe/iz10NBrLPPsEkJBWYuGCpDI/K0i9WblndvQcXvZYbu+bR9F7hJNDgiP1UP3JuhhYI+bRfYtTc2Im2bk/+994pMdPWyM9fQyawgzkA73M8kPhqXjKZiVdeQRDqdUotfo= 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: 2405a16f-9c0a-41dc-1770-08d71f305a40 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Aug 2019 14:21:23.1504 (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: CPJxbupaE/jfbhCv/YZYMvQmYAK1peuORlY/sgA5oQYL++0V+nkl+1YRKn67kGrRyG82t7U4aj4+gcZEpIvofxVYEolygMLX/HEmk00ejLc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0502MB2942 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 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..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 =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>; + gpio-key,wakeup; + }; + }; + 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 cab40d22d24e..5347ed38acb2 100644 --- a/arch/arm/boot/dts/imx7-colibri.dtsi +++ b/arch/arm/boot/dts/imx7-colibri.dtsi @@ -741,12 +741,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.22.0