From patchwork Mon May 16 13:47:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 12850867 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 A6751C433EF for ; Mon, 16 May 2022 13:50:52 +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=OXEZpiL5lSmIM9w9ap8+dtOQ0iN/IGYk+7i+dvxU0RE=; b=TyPq73aWx9Nboo JOUFeJo1ZWmabue0AOfTjhozJPBfD48KpHC5+cDm4wOTfMWtiVjLiekzSBXzwgIQ0r8Y8Wo29H5bj AMhHOuFAtKpkXnDM0yWH6zW4KDskFhvTBpi3TxxopthDKYsiWijQ3uyJrbYwaIM+WokdMCXwxPU06 urKMKJ8JkEda7WMK7aHltxL81dW3rkJiYR9u7Np1kyV8pjDFjnSqUBjGW5cJIJPbfd4Bw2k+8t4lQ tgUEia+L9uqY5VG94bQFNdN981opFaQd6Btn7EBxIzSgzfO7lLuvT8KhVPm1E52raIpE/nfs3Woki 4xtRlyU0+H8npqxhwFmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqb6c-0083EL-8x; Mon, 16 May 2022 13:49:50 +0000 Received: from mout.perfora.net ([74.208.4.196]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqb5E-0082X9-2G for linux-arm-kernel@lists.infradead.org; Mon, 16 May 2022 13:48:25 +0000 Received: from toolbox.int.toradex.com ([81.221.85.15]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0Lb44F-1nSr6m1rWT-00kk0I; Mon, 16 May 2022 15:48:17 +0200 From: Marcel Ziswiler To: linux-arm-kernel@lists.infradead.org Cc: Oleksandr Suvorov , Marcel Ziswiler , Fabio Estevam , Frank Rowand , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Russell King , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 06/24] ARM: dts: imx7-colibri: improve wake-up with gpio key Date: Mon, 16 May 2022 15:47:16 +0200 Message-Id: <20220516134734.493065-7-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220516134734.493065-1-marcel@ziswiler.com> References: <20220516134734.493065-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:/ponqe1H3vjWt2YFBxn3029qEl7K0GNOHiM0G3kQYKbz8vORuas vNCrh8JPHZ/po0uB1H2UhjIayfrRD8thP/SvG4HQYeO3NPIqgL6guVInHsIR7QM9A93A+EH tjOzBOips5ct+XLosB9wBd3b/DO+uzPETN+oGZ1otJLAqtRjfIxrW5drSW+iYmm8Nj98ca9 Jg7Y/QlMhMcJYmPheW90g== X-UI-Out-Filterresults: notjunk:1;V03:K0:W6RXeQ9k9M8=:s2u3Y6s22Dh8v2+pj97wU9 b8RT5XGKR0yDuLGGAtBaTsqicUwhl5fbYFkNvZSmegSnqF3eq5wclmhvhicuDYUhhEefnPbg8 9LJw0d9tPFjcTOcHWD/bK/2jGV62Xl0Km24m3++L/WVgPS2BpextPxiB0EZCKRnhyuoM1z1xP VgH5A3MsaSZuJ68G7P6MN/BlsSAKJdGPdxaONcaH2NabbomQN1ZFvTuz5gqtuvsBA4HDZSuP9 nvzpSFeShokPTvB+9BA1NqsZ67rDayvWtVfx1R76+lo46WA/JMcVPK67t231GDkw695llMKua tDVdd8n/vhSB9oAvyHu+SqzduxkzMyJlMaypnNwV6V7G3ZbyU5He0x+WEQatLTuGy2lAdhxUH anLac2pj4M30BS89CO7zJhasWNjH1OlB2KK0qmrzLqCfrgcVRJ8qq3TOvn0sl1Qat4Hl+7x2X R/NsFVMcaQIPNyV0ofd56ZH28oJRnbtfLle3CZleBnO+dhdjtcZz8Nv3d5y2mNHhK6L4MH32w iKZO+fpyBoJLwahzmdUrnLC573TwhA+0/0MeyEN0fyFntbEB9dChUMfVckct9W5inc0Cq0yBs u7J0EwjiVvY4aROIusVm0/bnDdBY3geM/UG7L5WNL27ZTibs6dknuVXlzxLqqjG5OJb6Cc4BD wRMJPa+JpotSsCPeN2C2Tb+jE6OJwJKKhUiZxWqDVpdm2VGqdlQPHnnhgXLzk1z+M87/vAVZK K7DkVbvrPmyeuJvx X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220516_064824_222346_53B5BCC7 X-CRM114-Status: GOOD ( 10.57 ) 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: Oleksandr Suvorov The pin GPIO1_IO01 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 GPIO1_IO01 to +3v3. Signed-off-by: Oleksandr Suvorov Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/boot/dts/imx7-colibri-aster.dtsi | 2 +- arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx7-colibri-aster.dtsi b/arch/arm/boot/dts/imx7-colibri-aster.dtsi index bfadb3a3124a..9148c54403f3 100644 --- a/arch/arm/boot/dts/imx7-colibri-aster.dtsi +++ b/arch/arm/boot/dts/imx7-colibri-aster.dtsi @@ -15,7 +15,7 @@ gpio-keys { power { label = "Wake-Up"; - gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; + gpios = <&gpio1 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; linux,code = ; debounce-interval = <10>; wakeup-source; diff --git a/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi b/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi index 074c96f09191..4a7e593e9ac6 100644 --- a/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi +++ b/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi @@ -34,7 +34,7 @@ gpio-keys { power { label = "Wake-Up"; - gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; + gpios = <&gpio1 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; linux,code = ; debounce-interval = <10>; wakeup-source;