From patchwork Wed Aug 16 07:54:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13354641 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 D9F14C001B0 for ; Wed, 16 Aug 2023 07:55:34 +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=aSxl2fKNomqb94/IFbToJanxyhQsA9idLLGSZCZHK8I=; b=aCM3m64N1IL666 MKWICLRapntF5xAC3bbyQsYx1+Q0teSbwa5u1qX1m8Cl6niur2sI9h1OJ/o8OqSi5frCQH0yvLlVs DncGBP2W810Jj4fhk30TeaQUihdldaJaeuRiRTAtWScw0PL4vVjzQtTna+oMfajxmJNVAsf7Jpmr4 CP2eGk9RwVjMXDydUps21LJCLCo0R0EMYStoKR7vTaKkm+6Y50rmV6S2CP1y4KT4EsKeaiZnG+BHa 3IGEH//+aE74VQj049XEUHOlsnyDHgC9we5X0ycehOM42hbjJZ0I/MBHavVEeylVuYnYekuNpgYjM ej4kx8roXTRS2dFH/rMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qWBN0-003RfC-1G; Wed, 16 Aug 2023 07:55:10 +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 1qWBMt-003Rby-2F for linux-arm-kernel@lists.infradead.org; Wed, 16 Aug 2023 07:55:05 +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=1692172503; x=1723708503; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=RrEZu8OuIeXk0Xs9UoLulZqFfS8lw6TgMjGx1L/t7AQ=; b=eTv9BWp27kxNCk+AXFWTMmPwoLFfUPyLeRdij+zP3jBl9mCqyV37Xe7i w3uRlkQzLOg3livTcqTceeZc86+/o0iLYy4eahfBftxGKFGnw1YBQxcn8 ZSrMgwh43P+kguOEcAxa1dzVCekxy19CseFpPKyqO1WwvYk8j0G1hlB+f 1n1b6a6QfJ3pxw+JtQ78CMXzOrs3VrY2AoblYK2LmNWOJdqlPGBZpHyHd 27lyfQmlEAN2XJzzWf+ZO5ruortyNd9vaxX97hLafzkef3LM4DeUrVerW mbj88OrC206z01HRX5VruWCGZnRSmeAt4EQkjEDYXcNs7f803tGhKE6zH A==; X-IronPort-AV: E=Sophos;i="6.01,176,1684792800"; d="scan'208";a="32465155" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 16 Aug 2023 09:54:57 +0200 Received: from steina-w.tq-net.de (steina-w.tq-net.de [10.123.53.21]) (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 E4A4F280078; Wed, 16 Aug 2023 09:54:56 +0200 (CEST) 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 , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/2] ARM: dts: imx6ul: mba6ulx: Mark gpio-buttons as wakeup-source Date: Wed, 16 Aug 2023 09:54:51 +0200 Message-Id: <20230816075452.606704-2-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230816075452.606704-1-alexander.stein@ew.tq-group.com> References: <20230816075452.606704-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-20230816_005504_036624_D1D50429 X-CRM114-Status: GOOD ( 10.09 ) 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/mba6ulx.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/nxp/imx/mba6ulx.dtsi b/arch/arm/boot/dts/nxp/imx/mba6ulx.dtsi index ebf97fcdd8ea..632ceadcca41 100644 --- a/arch/arm/boot/dts/nxp/imx/mba6ulx.dtsi +++ b/arch/arm/boot/dts/nxp/imx/mba6ulx.dtsi @@ -39,18 +39,21 @@ button1 { label = "s14"; linux,code = ; gpios = <&expander_in0 0 GPIO_ACTIVE_LOW>; + wakeup-source; }; button2 { label = "s6"; linux,code = ; gpios = <&expander_in0 1 GPIO_ACTIVE_LOW>; + wakeup-source; }; button3 { label = "s7"; linux,code = ; gpios = <&expander_in0 2 GPIO_ACTIVE_LOW>; + wakeup-source; }; power-button {