From patchwork Mon Jan 9 13:19:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13093563 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 B0207C5479D for ; Mon, 9 Jan 2023 13:26:51 +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=5DAtRiSdFYiCY2z3eTLsrQYI40KDV3oryjxlNkejAkk=; b=zTX18PYOU8ocB4 Cx9Dsfly9ZaPkHUwbTe5LA5/1smgw2DQlVVC6dOUblLTb6Sox8ws38+1QkAT1gc4trWiLbz4W6dCJ 33URwIan6biEOFY75g02eCGo5N6FLgd+wzd+OrqavS6Qobv78RNHv0DRlop6pSCgjVO4YV2oFqIha yt9A1KQ0BsThgJ/BWy1HCRCi6Fc/VBar32lKSQP+VbHf9lTXRvbqIBT8QjZYYXdNycEnoHMPezxly z0ktAgE8Pe1+D7rw/1xuYaXaGBAdix33CAhYH27GYfdLVZVOu6GM+UzZEMFAuUk5OUqHYH3RDz6AV 1KxF3DIedoGZs/tt+ASA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pEs9x-001ZdI-Sr; Mon, 09 Jan 2023 13:25:54 +0000 Received: from mout.perfora.net ([74.208.4.197]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pEs9q-001Zae-2B for linux-arm-kernel@lists.infradead.org; Mon, 09 Jan 2023 13:25:47 +0000 Received: from toolbox.toradex.int ([31.10.206.125]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MVNsG-1pGc7M491y-00YgcH; Mon, 09 Jan 2023 14:20:15 +0100 From: Marcel Ziswiler To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, Marcel Ziswiler , Fabio Estevam , Krzysztof Kozlowski , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo Subject: [PATCH v1 1/4] ARM: dts: colibri-imx6: improve wake-up with gpio key Date: Mon, 9 Jan 2023 14:19:58 +0100 Message-Id: <20230109132001.43489-2-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230109132001.43489-1-marcel@ziswiler.com> References: <20230109132001.43489-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:6y1cfSpqEZ9wRkfdX3Y020ea3gH+k7UBkwdukIQsHIR2Jr5dVms ffe+yN7qTiVCZruM88hL63mbubt0KL1A0MPDAYcW/T/N+du0HFojZu56DWq4aakfsstXjr2 qAZHQeIXiy9XJhebz503NrVx4KBBVbF2EVAU1tQuo7xEe4QTMlUW0UUeb+etsLEwpe1aA8i UW2PJk2cFDBaEgkSv/ueQ== UI-OutboundReport: notjunk:1;M01:P0:qXvdVXbqAxw=;d5Qsr99zX6dKDuyqoZvkGcLUJ9l aDhhFCNxhRqM7jWYUONQZMr8BrdtbjsfISVwmvfUbciyNU5KHh5643yx2b6UIzxkK1OikKprJ 8zM9SQgwyewHvhN3d2DHqk0TZ4EHxror5K1NdfybV2kb2eRAfWV6MDBnSvEpqZos2o7MMdQ/r qV41EvY3RF7mLS+/w47SjN9D4hlGl43XP0yVb7cNz001BeV0RCpS1iyWMTsZLESi9V4sqBSve 8VFMn6cWHaV3JpECen/6vDWYteyTsGt4cTGHfQq6c6bk4guvHuMsKFFGP3KWMPV/Z6L86+/pe zvAmeJ6LOi99PaGxUmNDl5MP1eq9a4R3qtSFZrqt1PKOUYaHKqey1BLQFunDOwbDO4YeOamWC iLz7fwrzHjODmeEBnkm5+R2wuw6IAiB6Bt4VxqSN45phd+LolWQmU9Ayb/3MJTrkQSUQD4Nog RfUdPsO2F4XK4cvruZ5VehWZpEdmdplvBeqKUIFYaIP+jLfaNwKV5tHzXfiIzkT4NeUdukrkS lxOggk+FHNNL3b/bfZEDnWriA1+5duY3KpXF6Dsz2/tQsujH9tz/8GP43mFzIhlfRgLPKAJgX 7+27oQC7Q9jpC003DXiVP4nmS487sW7uhcOHxCVqXvgGCBL3IH43fegbrIPgKtwQeQSPT5wKP VPv8le2zl+61dM531GpxzwLgCQlW5zSn+iE0GMqWbg== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230109_052546_427342_38552C7D X-CRM114-Status: UNSURE ( 9.68 ) X-CRM114-Notice: Please train this message. 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 From: Marcel Ziswiler The pin GPIO2_IO22 externally pulls down, it is required to sequentially connect this pin (signal WAKE_MICO#) to +3v3 and then disconnect it to trigger a wakeup interrupt. Adding the flag GPIO_PULL_DOWN allows the system to be woken up just connecting the pin GPIO2_IO22 to +3v3. Signed-off-by: Marcel Ziswiler --- arch/arm/boot/dts/imx6qdl-colibri.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/arm/boot/dts/imx6qdl-colibri.dtsi index d8f985f297e4..9abce6bc6dd4 100644 --- a/arch/arm/boot/dts/imx6qdl-colibri.dtsi +++ b/arch/arm/boot/dts/imx6qdl-colibri.dtsi @@ -38,7 +38,7 @@ gpio-keys { wakeup { debounce-interval = <10>; - gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; /* SODIMM 45 */ + gpios = <&gpio2 22 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* SODIMM 45 */ label = "Wake-Up"; linux,code = ; wakeup-source;