From patchwork Mon Jan 9 13:19:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13093559 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 80717C54EBD for ; Mon, 9 Jan 2023 13:22:15 +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=6OSqdOKlFPM2XsLJI28ge427YVUPjcA+45DB0Btt2l8=; b=DYvQtv9JHP9iIB kENC3l0PzdVf2nKWghnX5OCPdJFk3tbeCShuS9kKZGfNI0wY9FtH7z0B8YK+j0DGhWCWodege+sGU 8kDdQ3AdmvjdI1MQn+3mY3yMLD12m8jC7KYeySmVuhQQTZzWnuPCLqLn1k65ghag5cAvfAKfkhNYp yCjl7lNrf7jTXiAes9PJ9IUyCZk8bZH9XO6yNRrG0r5eTjj9FMlSa1f/TI5QpE0VqHG7oE511nodd 29MNkKCkzi2C1QevYBg2iz02w/cTS07U+6GGeSnGcjHBNRFIpYiL6irCzQNYaz8Wv3UubnKSSkgDg UlOEg94axq4uucOAJ1Rg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pEs5P-001XYn-Hh; Mon, 09 Jan 2023 13:21:11 +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 1pEs4q-001XJe-5t for linux-arm-kernel@lists.infradead.org; Mon, 09 Jan 2023 13:20:38 +0000 Received: from toolbox.toradex.int ([31.10.206.125]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LdpDh-1oXsDy2kzr-00j5YO; Mon, 09 Jan 2023 14:20:18 +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 2/4] ARM: dts: colibri-imx6ull: improve wake-up with gpio key Date: Mon, 9 Jan 2023 14:19:59 +0100 Message-Id: <20230109132001.43489-3-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:iwk28kDmTbG30NxDFZ0mJdTN6LCOY4Ooop7lbpEK6KbsV9r0HnS U9STLh8mM1LMsnhkbhrbZrDVrgmFJhpxxGPaHm4IxX+MBPd+G3/eHZhpUTLtCkbSzl9D8t+ EY2pRhlLTbX9m8/RwyhDuWjkgK96+kNdd4eV8QL5Y7oWAy/up063N3OqY8ETt71TUm4f6cl 0s9mxjPNquGf5247YMd3Q== UI-OutboundReport: notjunk:1;M01:P0:NO27kr/GBQs=;elwqcXqF7YvXGCse2NsLoUSEmVL v7wOotcM+ZolSiC5C+5ljq8LT4nrWCRCoYRcuLbBtvbB3jpP1DWe0wbNuj8n357h+NvDktepv 3sIFa4pZ5aD8XxEMdgZpjqJMRI9chi1DwBy/nnPV+kjx+lV/nfqd28yBHOmpspZxFjptG1o0n WTGCHJTt1+UlOVockefrRYn0MmUYlZkimUu5lc2Dm1Lr4olWo60zj7BX/o2/g8ptfxYwj2so0 a/lf5xGtgGHa4ovGHVobeNNMWRKYP7TOmCxjYgfxfC03uZSyFlTBbkYoENG+dR79XAnd4S8IF LrOEuvf/VXIv2f/wayj3awvTySuwDu7LllPk+X4l/KN2avCGb4hz6W/9kaj/990ljlCG3fZVh zq6jyxyPKDiB4cCnpOoloxUAuQDgFaOJo3nHa2LA8kV6HuLpMZxwkAdGuo3EBq3JD5AFGxyYv 1m8OQ+DWsbJlpcMxlda3mNNwmDs/H/1esyTw7h0zyk0Bcf+XW6qnzDWmKQVeDCEByLjP87hxh TnX9U/MbnwAN7lbNh4ymmiXtGSkQvv6OxJMYjuB8FpgrkDjX2JgnF8408bQqgiEQyIQH74Ad5 TqNpAQBGT2xGFQVdxV0uIsZbG6Az2HGPKJVIQ9Y+H6XysB8RB7ZKM6BtXUdEAXZYlgXCATaJ+ ekK90K/XT88jmes9QtpUTPdFuJnm+lLE9kg5e9GCqA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230109_052036_343191_BE36BA25 X-CRM114-Status: GOOD ( 10.32 ) 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 GPIO5_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 GPIO5_IO01 to +3v3. Signed-off-by: Marcel Ziswiler --- arch/arm/boot/dts/imx6ull-colibri.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6ull-colibri.dtsi b/arch/arm/boot/dts/imx6ull-colibri.dtsi index 336ab2e0534c..368d11ae7a8a 100644 --- a/arch/arm/boot/dts/imx6ull-colibri.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri.dtsi @@ -53,7 +53,7 @@ gpio-keys { wakeup { debounce-interval = <10>; - gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>; /* SODIMM 45 */ + gpios = <&gpio5 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* SODIMM 45 */ label = "Wake-Up"; linux,code = ; wakeup-source;