Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6207212rwl; Mon, 9 Jan 2023 05:40:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXsZPprHBPshuzy2Limb5BgwRemS5e/I3IGk7NV1RN77ctf0OFjQbEQOcAs/QBbX6zyacUDi X-Received: by 2002:a17:907:8744:b0:7c1:277:cb05 with SMTP id qo4-20020a170907874400b007c10277cb05mr72300223ejc.6.1673271658962; Mon, 09 Jan 2023 05:40:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673271658; cv=none; d=google.com; s=arc-20160816; b=buCk8v19+osb24urASZGFf6lmJGfA9vYa2WJORnWIT8jLUHIHlwiuZc1DNH3BDNjkP Wx7LaerWS10kh2zJxT/wr+oBidkqTwEOrlSO916NYVXSrW+wFRwF0RADfUd1TkDtvYk9 6NbENFxYRLzcHvvyHHxsaJ/mwjeM21DU+zlr3exYsvS/iHQMBduHl1tLFrp0rngXhgWR MBfpa1XLjIvxNj8UhOGVR2hJ55oIgsnmBqLASJ2DFL4M0epOZ+68zGj3VL2S2Rr0pAql LBrCOuG/JhNjNTkaMJjpDT8uwDTTyjLr8vRPmmpDH8WB7HST7/rNCU20mkLUndw/dIzl 6PMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=/hZpg0S8gsVaEL+KkYWYivoOHKaTOiNcl6wtaqTMQM0=; b=gM3xewPXT8+WkuPfIkU5NRY7wRzKxcWtuNW419Yq1xjKu+oYSzrbJdXZjbN+OPKq0V smbrcs+TNW50uA+96271bzZ4lk66K1SD8dbgTqGIh+iLgzQyg5X72rqXHGcjEDiTV/Ye ZFHX+5DlaKAtjv/Kpicgkqzk/8oj71r9C5bhjBNmJDn89eZm/JuH3C4+gFUx0dTLXIVi Hmbmrc7L3sg9lZZYR5aFgJUHIF6bKg5jSMnZG9WwzS8KjnoEm9ywkh6UL1/mLlDVBzc8 RZMcaWr9uPUvVUtoTatYI2RlCfw1LK7s5wA6MlSkoMEJVw+nKC9UuxAl4hdSAy2IEEzF YyAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i10-20020a170906264a00b007c500a254e3si7048916ejc.941.2023.01.09.05.40.46; Mon, 09 Jan 2023 05:40:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237101AbjAINUg (ORCPT + 52 others); Mon, 9 Jan 2023 08:20:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236912AbjAINUd (ORCPT ); Mon, 9 Jan 2023 08:20:33 -0500 Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BA07B1F2; Mon, 9 Jan 2023 05:20:31 -0800 (PST) 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 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:6y1cfSpqEZ9wRkfdX3Y020ea3gH+k7UBkwdukIQsHIR2Jr5dVms ffe+yN7qTiVCZruM88hL63mbubt0KL1A0MPDAYcW/T/N+du0HFojZu56DWq4aakfsstXjr2 qAZHQeIXiy9XJhebz503NrVx4KBBVbF2EVAU1tQuo7xEe4QTMlUW0UUeb+etsLEwpe1aA8i UW2PJk2cFDBaEgkSv/ueQ== UI-OutboundReport: notjunk:1;M01:P0:mMzeISvpHW8=;Kiqq4GP+6yZUaqHWbvsd7fLv1iS 5Ti95blx3G+vVKUCW2gc99JhSCjo8nhVe42x/m2PACVJAFWPKj55TI8AZDZCQTwrjG3s+JBrt q9qVdhOHFxMzmZxu5y8WTtKAtXDwiYs7DL71wa+ECmMOWPplEhPaD71Zbds//Vf+JoERrHfFL /PLdDm0lYy+bi2MFspO1xRcuh0XqNiusIZKPOtj2kC00iN3730Y09yxgzpg+cqvlrJyizq6b/ aq2SVW1hyOabE8Nh+laGYOI5CWETvhA6f2N+1cBSxxgNbkA3zPv6HqHUs9LeDC1Kk58xKu9J1 WJang0UAZuYxAWAGfE5xwRNp031wA4S0ptj4dO1AoYVO6cTfqsz+kiC4bBZ6AWgr7WGSZ4+Yq ffXLDRW/dJGvpdHrBKEc6BRc8fqwK6+h4LTq6Ns6i5RSrm3akoWMLiki1lcc4aNwyXHeXc4sb gKg+NtexwQ4grBF7RpxebkpTTDPeURfadqk/y2G87TEcggnTODL289P8dBHxc4SuhK2y5e8xj BSSgV/leiqKGmYLydmW81koOWFB8zT5ttupEc458lOKDf3TdkR5bdXI5BucZDLjAg/qCEKNU0 BQyuQMU2l6E4rdjPkhcG3Ou4to8EQqfveeX9QhYr6z38L4alWqb2k6i5jnRMEf5XD97k5Fe9r k22GLe07NcWC6Dw9IM84qpdQuak3IhRqMXSlT6hcxg== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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; -- 2.35.1