Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp37870ybg; Mon, 27 Jul 2020 22:39:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3G1t9aU+yjL2acyJzyz5fCj6oJirBSbtBurHiYmY0PybAiN1GqKw6R/mVRcUObzDpqRD3 X-Received: by 2002:aa7:c40f:: with SMTP id j15mr6833128edq.64.1595914779552; Mon, 27 Jul 2020 22:39:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595914779; cv=none; d=google.com; s=arc-20160816; b=J9Sud4iXXVvQB4V0F7OJolEHRDygCtb9s4w/uqqQTbNu6JrptF0gFu52pZiQZenJhB 8EACjSBL0jovvtnc8cN3GMIftnUdY5ri3igFpay3+RrKCjUSd7BRTQbct+54LFoyplnk jgLQF3yshsVwaXc2l2Fbi+7Wi3+IlfqE5e2+RlDEkWqNbrY6vTbNOO8UIUeZR4bkIXBb KZtQjetBPbzkWUhDA0pFDFehVagrZ66edBUnUr1OjtPP3hFgzR1UDEjURyJ7wZqwpBye xuad2vl7AFzohPVeAVRn9C8Pj8XdDnz46Hr/pKmi7lbsTlzW5+Ohcoqbn5qdLN9ZQwPv ohlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=L6tv155ue/cM7vpR05om5vGytaUQTI2e5heAOFzZ2iI=; b=BZo3zuVDVkIvpdQ+BMV/UG8sYJ1haIRFd2yzFsID453Wq1eP4AZuslmpIpX9OQInHm 3saFLCmFyG311ZBXUz17oINPh2+w+n8taupemrA7FXkAq5XVfW+moso5mNRHBeiHAtaZ sdhvXaWsMN9D172uDZjsICC+gkhzj3+do1+V4Dv6yy28LZuUhWwCOHYk9a+6b1iJPF2L yAD/tUpiUgDBzA4oBfl7rzU1Ky03dkFQ3w8ljl18FjkVfs1DDH6CZBS6kQKMzNUs1fwP QzZ1Ef3aYRP4nqIL+1IJ42gUYmDdTuzeIkGbMnORCB9TQQYm2l8qOj3psV0UEnjqYZ2e Dqbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=NSUnyWdI; 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 d21si7240161eja.703.2020.07.27.22.39.17; Mon, 27 Jul 2020 22:39:39 -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=NSUnyWdI; 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 S1726913AbgG1Fit (ORCPT + 99 others); Tue, 28 Jul 2020 01:38:49 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:58227 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726251AbgG1Fit (ORCPT ); Tue, 28 Jul 2020 01:38:49 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1595914728; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=L6tv155ue/cM7vpR05om5vGytaUQTI2e5heAOFzZ2iI=; b=NSUnyWdIGyQBIc7FiPYJ9v/QAXm9BwwfyrQuWZPOcZN8wTRPQhgMaJfJxR/X6uMmmt5HbuQf R8M2D8mRadiV0lT1VtyShVXhyqVIMsZBsN9061oyQJXPkbDOoHmblaDwp4doOcrBkdaQyfuA sf2pLET0r0vMh2dG8tyFiTx0upc= 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-n10.prod.us-west-2.postgun.com with SMTP id 5f1fb9e735f3e3d3168ffca0 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 28 Jul 2020 05:38:47 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id CEB4AC433CB; Tue, 28 Jul 2020 05:38:47 +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.8 required=2.0 tests=ALL_TRUSTED,NICE_REPLY_A, SPF_NONE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [192.168.0.13] (unknown [183.83.138.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: akashast) by smtp.codeaurora.org (Postfix) with ESMTPSA id C39CFC433C9; Tue, 28 Jul 2020 05:38:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C39CFC433C9 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=akashast@codeaurora.org Subject: Re: [PATCH V2 2/3] arm64: dts: qcom: sc7180: Add sleep pin ctrl for BT uart To: satya priya , Bjorn Andersson , gregkh@linuxfoundation.org Cc: Andy Gross , Rob Herring , Matthias Kaehlcke , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, rojay@codeaurora.org, msavaliy@qti.qualcomm.com References: <1595563082-2353-1-git-send-email-skakit@codeaurora.org> <1595563082-2353-3-git-send-email-skakit@codeaurora.org> From: Akash Asthana Message-ID: Date: Tue, 28 Jul 2020 11:08:40 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1595563082-2353-3-git-send-email-skakit@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/24/2020 9:28 AM, satya priya wrote: > Add sleep pin ctrl for BT uart, and also change the bias > configuration to match Bluetooth module. Reviewed-by: Akash Asthana > 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 */ > 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 */ > + pins = "gpio40"; > + drive-strength = <2>; > + bias-disable; > output-high; > }; > > + pinconf-rx { > + /* > + * Configure a pull-up on 41 (RX). This is needed to avoid > + * garbage data when the TX pin of the Bluetooth module is > + * in tri-state (module powered off or not driving the > + * signal yet). > + */ > + pins = "gpio41"; > + bias-pull-up; > + }; > +}; > + > +&qup_uart3_sleep { > + pinconf-cts { > + /* Configure no-pull on 38 (CTS) to match Bluetooth module */ > + pins = "gpio38"; > + bias-disable; > + }; > + > pinconf-rts { > - /* We'll drive 39 (RTS), so no pull */ > + /* We'll drive 39 (RTS), so configure pull-down */ > pins = "gpio39"; > drive-strength = <2>; > - bias-disable; > + bias-pull-down; > }; > > pinconf-tx { -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,\na Linux Foundation Collaborative Project