Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1196243pxa; Thu, 20 Aug 2020 05:21:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/lyA9EpETJaCxP7Ed0NvgWvgKFyQEYRgnoNYEX4XtqrVRdKZcN4J1/XwzQ/CsPg5OFcxr X-Received: by 2002:a17:906:ae12:: with SMTP id le18mr3010725ejb.38.1597926090177; Thu, 20 Aug 2020 05:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597926090; cv=none; d=google.com; s=arc-20160816; b=yrQtiOHiAcIZ2vV0RDeq4qvvYCVhBtLb7fiu5kSMsuxXew4DyXtmM6kBtGBBjoyew1 DpRLFJebyhobhFGFSqQyMoK/8vbcdDuElnBKi+Jx4WqMTiZ42s4IadiTjUgx9xCZcc4J kNBqlJOl14xG8uCQoQbMHTlt/sncLcFIturKSJsp9+seJZuJcTIwMsIsXCnBLBysJzKy sy006v5oEJSCke0BuLPXRmV3ISxGl4seZ93AcWC2Ms2LaJG4oFi1GA6Mvf3C2jYC4afm oIT6oA1kMHBiMdXDUDs38jARnU3/nOY7Xn3mFrnOXqlwLhldSbKr7wHF26IIXG11AF4s 4CyQ== 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:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=yHVAvexqEWvuHwpqCiJJpqti28GNOsRReJIvgdeT+YM=; b=WFJahpj17HO9cE4nPCW84BFrstnoR+9UIlAp0jn4aAF1uA9BGlU34Sxgmk9O/ixos4 AjRGvLXy6uvh7SZ+OdAKQ7Wakbc5nXimLw04ZQAzAxRKkfND9mfL59ZcupBnkDvTzem1 08VnkhEJveE4Z0nZUGfyKaoNIjO/rMQ+o3j+AMh6nompZnNfuzDJgiPTcafSkVThVRNe Svo/jrNt6czQ1wdhcpgXmqZoXLH5ovc6nif2yHRi7spv6jfWV4Gqy72qPs+4XjmAIDel nhTjL6YC1mW5OzMPr0ejCHZWwQ/3xBQob7KHnD0p2cbC2OHlESgd0CGv2TMWhB5Lp0LM cxUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=UJH6ED2Q; 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 x10si1095520ejv.339.2020.08.20.05.21.05; Thu, 20 Aug 2020 05:21:30 -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=UJH6ED2Q; 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 S1730501AbgHTMUg (ORCPT + 99 others); Thu, 20 Aug 2020 08:20:36 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:60844 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730356AbgHTMUJ (ORCPT ); Thu, 20 Aug 2020 08:20:09 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1597926008; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=yHVAvexqEWvuHwpqCiJJpqti28GNOsRReJIvgdeT+YM=; b=UJH6ED2QZ1Pz2NXTWAreyKLWW5oaCTzZ6SVqFl/GvrhN2NY0V2F38ceiLQ4NBYf1r/DHc0he Il+UcZvZclqQ9nV8WxrNVZ88atoxE9P+tY/0J65t35H4fxkCGz+9/Q64MyMrJrT+92SvKQH3 ObfWUfMl9/JIV4778yQRmK/GM/0= X-Mailgun-Sending-Ip: 104.130.122.29 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-n01.prod.us-west-2.postgun.com with SMTP id 5f3e6a6bc3a55812b159c544 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 20 Aug 2020 12:19:55 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 126D9C433AD; Thu, 20 Aug 2020 12:19:54 +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 BB6EAC433C6; Thu, 20 Aug 2020 12:19:53 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 20 Aug 2020 17:49:53 +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 V2 2/3] arm64: dts: qcom: sc7180: Add sleep pin ctrl for BT uart In-Reply-To: <20200819161311.GF2995789@google.com> References: <1595563082-2353-1-git-send-email-skakit@codeaurora.org> <1595563082-2353-3-git-send-email-skakit@codeaurora.org> <20200817180158.GD2995789@google.com> <1cbbc8cf5c918c6a9eee5ef349707fc6@codeaurora.org> <20200819161311.GF2995789@google.com> Message-ID: <29d523f4a46ecce8e4a62a5310528969@codeaurora.org> 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-19 21:43, Matthias Kaehlcke wrote: > On Wed, Aug 19, 2020 at 07:19:25PM +0530, skakit@codeaurora.org wrote: >> On 2020-08-17 23:31, Matthias Kaehlcke wrote: >> > On Fri, Jul 24, 2020 at 09:28:01AM +0530, satya priya wrote: >> > > Add sleep pin ctrl for BT uart, and also change the bias >> > > configuration to match Bluetooth module. >> > > >> > > Signed-off-by: satya priya >> > > --- >> > > Changes in V2: >> > > - This patch adds sleep state for BT UART. Newly added in V2. >> > > >> > > arch/arm64/boot/dts/qcom/sc7180-idp.dts | 42 >> > > ++++++++++++++++++++++++++++----- >> > > 1 file changed, 36 insertions(+), 6 deletions(-) >> > > >> > > diff --git a/arch/arm64/boot/dts/qcom/sc7180-idp.dts >> > > b/arch/arm64/boot/dts/qcom/sc7180-idp.dts >> > > index 26cc491..bc919f2 100644 >> > > --- a/arch/arm64/boot/dts/qcom/sc7180-idp.dts >> > > +++ b/arch/arm64/boot/dts/qcom/sc7180-idp.dts >> > > @@ -469,20 +469,50 @@ >> > > >> > > &qup_uart3_default { >> > > pinconf-cts { >> > > - /* >> > > - * Configure a pull-down on 38 (CTS) to match the pull of >> > > - * the Bluetooth module. >> > > - */ >> > > + /* Configure no pull on 38 (CTS) to match Bluetooth module */ >> > >> > Has the pull from the Bluetooth module been removed or did the previous >> > config >> > incorrectly claim that the Bluetooth module has a pull-down? >> > >> >> The previous config was incorrect, so we corrected it to match the >> pull of >> BT. > > The pull config of the BT controller varies depending on its state, > could > you clarify which state you intend to match? > Since this line is driven by BT SoC, they could change their pull(although it's less likely). Recently on cherokee we worked with BT team and came to an agreement to keep no-pull from our side in order to not conflict with their pull in any state. >> >> > > pins = "gpio38"; >> > > + bias-disable; >> > > + }; >> > > + >> > > + pinconf-rts { >> > > + /* We'll drive 39 (RTS), so configure pull-down */ >> > > + pins = "gpio39"; >> > > + drive-strength = <2>; >> > > bias-pull-down; >> > > + }; >> > > + >> > > + pinconf-tx { >> > > + /* We'll drive 40 (TX), so no pull */ >> > >> > The rationales for RTS and TX contradict each other. According to the >> > comment >> > the reason to configure a pull-down on RTS is that it is driven by the >> > host. >> > Then for TX the reason to configure no pull is that it is driven by the >> > host. >> > >> > Please make sure the comments *really* describe the rationale, otherwise >> > they >> > are just confusing. >> >> The rationale for RTS is that we don't want it to be floating and want >> to >> make sure that it is pulled down, to receive bytes. Will modify the >> comment >> mentioning the same. > > Could you clarify what you mean with "to receive bytes"? > When we keep no-pull(floating), sometimes it may be pulled high and UART flow will be turned off(RFR_NOT_READY), due to this BT SoC wont be able to send data even though host is ready. > Thanks > > Matthias Thanks, Satya Priya