Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3026505rwb; Mon, 15 Aug 2022 16:24:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR6rYTOa2cX675GtGe+5RGnA7IUL2U1Z+pl+oL3IELtu31YEB+KAShwmZuVL/y91ZSLHZKAY X-Received: by 2002:a05:6402:22bc:b0:43d:73a7:370a with SMTP id cx28-20020a05640222bc00b0043d73a7370amr16263986edb.120.1660605877173; Mon, 15 Aug 2022 16:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605877; cv=none; d=google.com; s=arc-20160816; b=jNblMTREYZ8FzE+upEeFDXmyDTVHnFFV7j+bhkr9dIjL02gzDE7UzI8VGndw41kkUV jMdReHvpxU9Jy/EBAghbymmPdmR9c2hrC3JRsB1gT0oUzCrl8fUrumxRah1ngo9YPMZb jahEqhAen8KrPOgWFEH8Mi8IKDxsXCI6yRPhH6vQU20z7yY4bhdu1t2IS/tqQlBB702+ 0nz712v7zPs3OowBFTyAxoBSeomr5Fz9CXSSo+AtOtSYm2028IYAd1j5Zo+bCfPn5KWn Y7o+IWRUhHkw3OzH89IngA2JPqelw4D9eipfAuVUeSOmFzR9t9LaC2OUJ6+ik3aa4iXR eGnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=M1gB1Fwbjt31K0G9NEWdbo66mcO/4/LOmKEdeGeaH/c=; b=OdFURrhg0OqJdE/U2XmSXEzN5C8z8zKeAcj1a9Sl8U/iI9Hqy89gKlB//Y2IJmYOP8 XKoPIUcYrZCdOwt0v4xw4FtUjba8tS3y7LzYbtR1RqDrkxg612tD14Bo5wDCoRfsEQua 7puvZEYatKGNdsa3ctKfUFzcU9UEDOStWORvMgO0UMvRAUKgJER7VBypodW3KKM/vYSo zR4tn/chFY9l2u0buf0cICdFSw8n7AeZqVbv+j8dWpJ1BDR3MDriAVsx7Hqit60stepz sEf875lrXC3wHCkQ275SD+1tUkMDZpj/DTPcUnqoTjOe1aoPFYrXk9y967Y5LRLXMJbe s11w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RJoEgCRt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y16-20020a056402359000b0043d32528589si9286564edc.549.2022.08.15.16.24.12; Mon, 15 Aug 2022 16:24:37 -0700 (PDT) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RJoEgCRt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350738AbiHOWnD (ORCPT + 99 others); Mon, 15 Aug 2022 18:43:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351212AbiHOWht (ORCPT ); Mon, 15 Aug 2022 18:37:49 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 796E112F71A; Mon, 15 Aug 2022 12:50:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id AC02BB80EAB; Mon, 15 Aug 2022 19:50:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A3AAC433D6; Mon, 15 Aug 2022 19:50:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660593056; bh=UcJUPZ1QbSmS9xdHVvp7rd9UQ+GV5ASMhZ482Ly/dV4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RJoEgCRtzjPAH3ZU8gc+iqlDqaTRmnQNqqecvJtbHZoAsTBzqWGYq0zBtgi/2O1GG v9ALjWhMrDb/YDxSRXBBdkueaN/jc8HA4h1NMT/oyUqSkCiNoaykBMBg3tNfE8cTDg rqLD3F13LpOkvigKT635cfKWOchYWgtbFCLVf3+U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Oleksandr Suvorov , Marcel Ziswiler , Shawn Guo , Sasha Levin Subject: [PATCH 5.19 0206/1157] ARM: dts: imx7-colibri: improve wake-up with gpio key Date: Mon, 15 Aug 2022 19:52:42 +0200 Message-Id: <20220815180447.892699167@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: Oleksandr Suvorov [ Upstream commit fd5d2974652c96935d94301af6eaf6b3585ab330 ] 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 Signed-off-by: Shawn Guo Signed-off-by: Sasha Levin --- 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 950b4e5f6cf4..69ee85084ad4 100644 --- a/arch/arm/boot/dts/imx7-colibri-aster.dtsi +++ b/arch/arm/boot/dts/imx7-colibri-aster.dtsi @@ -16,7 +16,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 17ad9065646d..d6775e3c64f1 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; -- 2.35.1