Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2497346pxa; Mon, 17 Aug 2020 11:04:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWXmMJOs0jXcz3n38F8WI3G5DJv9klVUnHDta0EN7O5EkEIs1SwVV5TpJFDrsBH0GMDoUR X-Received: by 2002:a50:a69a:: with SMTP id e26mr15911088edc.260.1597687483404; Mon, 17 Aug 2020 11:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597687483; cv=none; d=google.com; s=arc-20160816; b=BnY7PZDGaMSfjLMg6Dy4eN2dseGH1rKik5x3P7rudu/qJijZtGgG0rULZK0AQaSVQa brQHx9O7z8iC1533poCLj00MylPIZqvhI6Xq0qrak/FMstWCadUZZbQF/i5Lk1OFxth9 q7teRwQmqp8uCg1HHDgpgbjWhWxGfWAYqrG9YsfobC448vaeaHKYX5oL2TkkNE3k5FZV CczREfOJbPMsa75xkHq9BxX7oF/vWTNaO9IKDe7Hnmr1iXcmRRnyj90pulRODIlUN7+K rtVvxLU3MDuBKF49jb6K2ReKZ/zncOGCmNaGgAEsJ4QVn6pjEJtMblWY7coh/AskfPrQ NGSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=WDw5eMluEqJ71UREIfdhLPB079gyndxPuX/d/PHa2Q8=; b=HzFWlaPmwZPMU3t48e3JXz1L7vKrSRUApPnqXT1sXu2M45fQIUG30JaP+SAVjWmBen ok7gebfi+EawRIIfng5Vp/xkAp/UKqMDGIqTNb0mA9EDwz4Ad2pPtoirYoexDjd6zvlN 4L4ADzG12p4lrJNPezwhUc+QFKbzLb9ANmmiJKUue45pwwSkNJn0xFf3ld+4qj/vA7Vk 2VTyY036tKeLKmQ5ZVNaPV8B4vK2/Hk37LYv45/UXkjaLzYOAiplF1DhHxgvoSuu/rwt f03OcP+w3C5Gzdtb9LjYijDlzLdFkO83Zy7kT70R8rQKvlx/INbcZz3vrsHGHnjO2p18 luPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lH4mJXL6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g9si11311287edm.327.2020.08.17.11.04.20; Mon, 17 Aug 2020 11:04:43 -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=pass header.i=@chromium.org header.s=google header.b=lH4mJXL6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390211AbgHQSCY (ORCPT + 99 others); Mon, 17 Aug 2020 14:02:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389624AbgHQSCB (ORCPT ); Mon, 17 Aug 2020 14:02:01 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1976CC061342 for ; Mon, 17 Aug 2020 11:02:00 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id y6so7923125plt.3 for ; Mon, 17 Aug 2020 11:02:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=WDw5eMluEqJ71UREIfdhLPB079gyndxPuX/d/PHa2Q8=; b=lH4mJXL67WGnjmOPFlC/XMt7+biiQPvdCIitAOA7CnDS96ZV60CLgfv8bglKeuCSu6 4SfaZpWGc+jg2/VTpMrRebhg63dsBW0e+GKH7i2JdiltjEMkX8M2aFxFahU6JdFifONV t8EVV3qa9mFYayJE4ty3p9v42scjEUUEmPDpc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=WDw5eMluEqJ71UREIfdhLPB079gyndxPuX/d/PHa2Q8=; b=ivXNdqY8k9beUfPUZIMcGccG9Azs2uQx7aJuvdk+bLYV0IkCYxoUK0AvzQLQLycFA1 B9sBEMVLf2oJghuTe3OR3MgUQWk8VRZBKmYwFcDIoZu+RcRonC3R4qOAIE8/RP7r6YlI +uqiNg6bmNVt/g5UXV4Vayu4A4HWTuHWjFpxdTPDkMelgk0fr8IjRjn/wF8ldRIsorNC zgmesu1qbxbNqIKgdEsJfoGmVjIv9EEg0ciujdhBjRkoUzkKBDK9lMljAPuBjCrqTKwA B8R9S4owAAep+/yU0zQJBoLdFQj4xJ2CyebabTdEm+rde5QG2xdabnQkSJs5dXI74d0r f/Yg== X-Gm-Message-State: AOAM530PfoAE+pn+pAfWGzmx/8mIcsYztw41WEIhQIRtrXHVlReel8WZ tAe2V/hK2T2VMM4JhfoEJ7XkKw== X-Received: by 2002:a17:90b:3891:: with SMTP id mu17mr13119099pjb.160.1597687320442; Mon, 17 Aug 2020 11:02:00 -0700 (PDT) Received: from localhost ([2620:15c:202:1:f693:9fff:fef4:e70a]) by smtp.gmail.com with ESMTPSA id x136sm20161179pfc.28.2020.08.17.11.01.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Aug 2020 11:01:59 -0700 (PDT) Date: Mon, 17 Aug 2020 11:01:58 -0700 From: Matthias Kaehlcke To: satya priya 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 Message-ID: <20200817180158.GD2995789@google.com> References: <1595563082-2353-1-git-send-email-skakit@codeaurora.org> <1595563082-2353-3-git-send-email-skakit@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1595563082-2353-3-git-send-email-skakit@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > 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.