Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp453567pxk; Wed, 2 Sep 2020 06:17:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9g3gDqi0/YzfRRgjrpzKRf9y9xEpJETOo4O/fIFUGpIXeF5ri6e4RQVGY04WruFouiO7C X-Received: by 2002:a17:906:5fc5:: with SMTP id k5mr5936672ejv.63.1599052640584; Wed, 02 Sep 2020 06:17:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599052640; cv=none; d=google.com; s=arc-20160816; b=g0NfSfACWwZLhYdOGji3fKCfYgiTdEtMaPuZaXgAwkN8e+lp4Hq6ocFT996nzshs99 TG80Js6AZJM4iHClch2BggT69Ye6umqpaBHFcPSGW+B/N/UFFRrVqogdQTwKiPO133QB pE6BgpbD65tEEvjwDVAiIX09wEGAUFvGpLh/EWCvJ6kOVFEK79rhQnC/jMAbUtnSR3TM haVwKp7Gi8tWbnxqB/h3QoX17jq9f/AkK9oOG/GF7tbANvQrr+j32JXqs93w6xOBgljB xCvDgNWoqY2LZ94PdjiooU7rCLJk+c7a65xm61hDjQxTX4fgyprpnqy/JE3F/W7Hn8tV YZzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:subject:cc:to:from :date:content-transfer-encoding:mime-version:dkim-signature; bh=wBdcPQ/YNiU+WDkJLplCJsZAXQvmVTWpdtx6qvH+ZwA=; b=jddhn4vbwE3sx6Kl2sXHk9e4ZB3xuGD1dBdcMgxsMXolVjWMP+xP0DDw2VnbHeQi77 0JmLwTlPss3+Gi2JepxnWjAECFV9OZJVMXILn/YolRgMiZE/jof7cec7d7j4eiM4vVFu w7Jfq9J7QbspLFtHYzL8BiHe/5KgbgRMK0Eh4qmQ7eOcJxjzimhWuqK77tH2eSUqJBBI O+i5tD+sdtAJ+VWeRDWsfCmiiPiqoU9lAY98rQxcwoBLHu8/d4e3RzCv03fPSqQh3Q7H S8SstGOyve/amfQ8HAcFYfyvDbUxg3KljnqEQHczQqObtmGezkFs6Z9lujzevYvgs4aP bI8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=MWQsoGHW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j12si2291851ejx.16.2020.09.02.06.16.57; Wed, 02 Sep 2020 06:17:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=MWQsoGHW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726183AbgIBNPx (ORCPT + 99 others); Wed, 2 Sep 2020 09:15:53 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:58275 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727019AbgIBNKH (ORCPT ); Wed, 2 Sep 2020 09:10:07 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1599052207; h=Message-ID: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=wBdcPQ/YNiU+WDkJLplCJsZAXQvmVTWpdtx6qvH+ZwA=; b=MWQsoGHWHhFRclmdDj6qIWS2PfvKzai1FcI0B0ZTbrTDh0lKSL/RxPe9lGNJDbVMRyOgYc7V 8WmsLA0yB54D/51GFsc+jVHK4HJ/UjXSmDxAgJdmOUbXjuXfklPcIaMuQvxZRRWUr8nwxUlS Vpn4r78JQOxsAI/Sp5rNBkSY848= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n06.prod.us-east-1.postgun.com with SMTP id 5f4f99964f13e63f04e63665 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 02 Sep 2020 13:09:42 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id B9C55C43395; Wed, 2 Sep 2020 13:09:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: skakit) by smtp.codeaurora.org (Postfix) with ESMTPSA id 10DB5C433C9; Wed, 2 Sep 2020 13:09:41 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 02 Sep 2020 18:39:41 +0530 From: skakit@codeaurora.org To: Matthias Kaehlcke Cc: Bjorn Andersson , gregkh@linuxfoundation.org, Andy Gross , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, akashast@codeaurora.org, rojay@codeaurora.org, msavaliy@qti.qualcomm.com Subject: Re: [PATCH V3 1/3] arm64: dts: sc7180: Add wakeup support over UART RX Message-ID: X-Sender: skakit@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Matthias, On 2020-08-21 21:56, Matthias Kaehlcke wrote: > On Thu, Aug 20, 2020 at 07:21:05PM +0530, satya priya wrote: >> Add the necessary pinctrl and interrupts to make UART >> wakeup capable. >> >> Signed-off-by: satya priya >> Reviewed-by: Akash Asthana >> --- >> Changes in V2: >> - As per Matthias's comment added wakeup support for all the UARTs >> of SC7180. >> >> Changes in V3: >> - No change. >> >> arch/arm64/boot/dts/qcom/sc7180.dtsi | 98 >> ++++++++++++++++++++++++++++++------ >> 1 file changed, 84 insertions(+), 14 deletions(-) >> >> diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi >> b/arch/arm64/boot/dts/qcom/sc7180.dtsi >> index d46b383..855b13e 100644 >> --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi >> +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi >> >> ... >> >> + qup_uart0_sleep: qup-uart0-sleep { >> + pinmux { >> + pins = "gpio34", "gpio35", >> + "gpio36", "gpio37"; >> + function = "gpio"; > > What is the reason that the GPIO function needs to be selected in sleep > mode > to support wakeup? > > This should be explained in the commit message unless it is evident. When QUP function is selected in sleep state, RTS/RFR is pulled high as soon as we enter suspend and not receiving wakeup bytes from BT SoC to wakeup device. Whereas in GPIO mode it is staying low and receiving data. Thanks, Satya Priya