From patchwork Fri May 6 15:27:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 12841309 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 8003CC433F5 for ; Fri, 6 May 2022 15:30:27 +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=yDc8mEd5LQEzQ0lZTMUn5JRNvTHQBsuz1RfWeP4IOgc=; b=o1aR2wVHpfFkj+ AbqmY//3NtKzXjWaoGnsb652ICstyDHKPsMVIjPM4pzb1Xj5RK4mAx+c/RTxlBAGVtiXjV6La/SUG 2Oic2Zwd0h/SeZ1rMTXz10NSh2IuMTg4fzNvu2XzoGdmJdcWLfGlnPysen39vWo67t9xuAIJ0Ladx 8t67Z4a4ay6yPPaJ/wU9wkK2yXk8JV2c85SD/vuGYATPLszJtoIhVN6xjgVn5vbC6iRakY+JlnFpy jJ7dRobFDQvv/Wd3KDO07AaxgQGOCT685CzDJ7uZiT76tlyWRIiSThsbaJSnL3+sgl70uuVhAv7KZ LzSn+Qe+6LhQs1XS63Ug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmztZ-0043Q0-C4; Fri, 06 May 2022 15:29:29 +0000 Received: from mout.perfora.net ([74.208.4.194]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmzsz-004355-01 for linux-arm-kernel@lists.infradead.org; Fri, 06 May 2022 15:28:54 +0000 Received: from toolbox.int.toradex.com ([81.221.85.15]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1N0naj-1nz0Up2Ju9-00wn49; Fri, 06 May 2022 17:28:43 +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 v1 06/24] ARM: dts: imx7-colibri: improve wake-up with gpio key Date: Fri, 6 May 2022 17:27:51 +0200 Message-Id: <20220506152809.295409-7-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220506152809.295409-1-marcel@ziswiler.com> References: <20220506152809.295409-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:OUON0wBayrK4VSZPx38avOTfrnSMy+YAaQ9kRRRaPgRJlXPV14O /dr2Bgs0C8AxcsVEn3LWmnl5qiOlY9rMUd9VWbggzybDuDCrVrsf1BrT9AnbPbK89wSVY6U HHZVylsjutGIBE410hDpXEF6lHzNtcSo0IfHBGhrmN2QT/w2kDfRES9PVx5u9DW8JvtrIC4 aMTxpJ8tZw+lVQZa2lCCw== X-UI-Out-Filterresults: notjunk:1;V03:K0:WUg0/6t8/6o=:o6s7DxZtPKm3AeNXIJbkth 1JBmx9ce+4RfsCEYFxoUJyAirnQ2xVVLHT0Sh9kiYQONVma7E6wjRLyiBLNTNUTL9FpgOapCG +VBSYfL53RrI/gUunuldU9hMXIfwBISLtG7/0UN1zmMdCLl3PKmh3tZxlbVsz0ktNRKFHWjDL e4zBn5f1q2TAEm/Nj5t3Nvfyh5oePJBha3k5BMXzXrgZGZ5sFuS/KyG/Pbp4juQF8K+LMBSEz DJ+UnAXcpKkcHeSOJBQR5vhTNwTmr9sYCO74YfHri+C3xRM9+hvS9fBgbJGpFsR8rxZFlfBxn huNyKgKqEWc9miD7YsP8wpkNfExQnyRULgoZcQpXPTo9zY5ECkMw6DEfhsixm3g6zIP9uURCS GvMNsOS/j/LXpodVvAEIjZIJyon0IywD047BV7YtT/alN1DH/FSEVkJVttMmZqFZBoyuQeQyA hm/h5cxU03+X74rao3vfc9xYgPDkKH/rdzaI27wDzg/pYlKI+3/8F+p1PiAIRpeV02hNvkSK6 JrVkSCSOk00+lrRxw/MW9GKddNykqZDHtr6XANG0WrYAdel+qrfxUz75SQdVGEUkzftRaHw0F +O8AVk8gpJKpetRqzgBoLFMpeeji4JH7i+N0c9ksARbBmYg5aENMto98n01wexCCAkBlIv4X6 FqHgKpNF2fRen3EcLHKbwuOVh63OcPly8Z3ACiH/mrev9Scn9MR/CV3zLh/6ny7R7efXR9EIq Us0kHHOrGUw2rGg1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220506_082853_176043_4EA12B64 X-CRM114-Status: GOOD ( 11.26 ) 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 --- 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;