From patchwork Mon Dec 18 12:54:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13496887 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8A6BDC35274 for ; Mon, 18 Dec 2023 12:55:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2MZdTMKYN2RXERde9BaJddW74C+/TZXM2sfZQsJYOlM=; b=2zfhG2fcegkrka bLNBjDrEHqmELqmCF2EzEk5K9urBHxlcy6mpru3gm6eDAIEA6gU33HzJFJBl7NgmxUKp7I7jEaEDo G48hazVuR087YmqbatCSVV/+SjNwLBGbuEl5hXI17cV9dMGjSPiHOkhpUMXtOJSK5uf8gySC0QNYs 0oYlComcvXGqb2QbXzHg0LcRyWWIdwXStNi6RenlGlcAgL9NeLTpSzV3A5L6qkge4rlOQOUtlpmez 7Jkq6rRcIMd22FdoipQtbNod46PU0lUhAPgwVKH+Ei9rMxfhYXs7zOPCvNUG/V+3mpCvMaf8unbfy 44PcDWBi1UqfTQ0Uz7ZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rFD9O-00AiiL-2b; Mon, 18 Dec 2023 12:55:14 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rFD9G-00AiXA-1l for linux-arm-kernel@lists.infradead.org; Mon, 18 Dec 2023 12:55:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1702904107; x=1734440107; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FUvfz8pXuv4S3nEyPlU9Lesurxw9nSkYEmdYOQ09Uo4=; b=JRxOXdh9ToHHhhxwItyTC8xv1Az6szqpFt98HHATUaJ/P/2h/j/LLHhj Hd9WYpxhPptZb/X0dZAC+7/tYk6gq/EIwxdPTyK7f6obRfFDUvwnWiyZe sAS5K4h0+c57/aOb5NIvSKkS3BkSJavISi/K+n3VMrWL7VoBZ0wuOr7U9 ul3kiflGE6KkMgnxyIAsZN+2bsoCVz4TqzjEqxE4sCVVSXdZmyVn2Jucn 3V2Nmu5/OhY1FmyAqJPCxhxpA+H1Vl7L5/ifhvx724mOTvk+fKsHm9HYG Jj4lI8pKmhBB+95Zys+md2n4ZkxfO8PWk+VGRrBmuI+W/2OM1yC1B7NmH w==; X-IronPort-AV: E=Sophos;i="6.04,285,1695679200"; d="scan'208";a="34562697" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 18 Dec 2023 13:55:00 +0100 Received: from steina-w.tq-net.de (steina-w.tq-net.de [10.123.53.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 41A2B28008E; Mon, 18 Dec 2023 13:55:00 +0100 (CET) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , linux@ew.tq-group.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 06/23] ARM: dts: imx7-mba7: Mark gpio-buttons as wakeup-source Date: Mon, 18 Dec 2023 13:54:42 +0100 Message-Id: <20231218125459.2769733-7-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231218125459.2769733-1-alexander.stein@ew.tq-group.com> References: <20231218125459.2769733-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231218_045506_919789_8341193C X-CRM114-Status: GOOD ( 10.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org I2C expander is capable of generating an IRQ during powersave, so the attached buttons can be used for waking up the system. Signed-off-by: Alexander Stein --- arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi b/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi index 2aef830cf1f2..bc5d2e4f0eb1 100644 --- a/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi @@ -32,11 +32,18 @@ chosen { gpio_buttons: gpio-keys { compatible = "gpio-keys"; + /* + * NOTE: These buttons are attached to a GPIO-expander. + * Enabling wakeup-source, enables wakeup on all inputs. + * If PE_GPIO[3..6] are used as inputs, they cause a + * wakeup as well. + */ button-0 { /* #SWITCH_A */ label = "S11"; linux,code = ; gpios = <&pca9555 13 GPIO_ACTIVE_LOW>; + wakeup-source; }; button-1 { @@ -44,6 +51,7 @@ button-1 { label = "S12"; linux,code = ; gpios = <&pca9555 14 GPIO_ACTIVE_LOW>; + wakeup-source; }; button-2 { @@ -51,6 +59,7 @@ button-2 { label = "S13"; linux,code = ; gpios = <&pca9555 15 GPIO_ACTIVE_LOW>; + wakeup-source; }; };