Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1858525ybh; Thu, 23 Jul 2020 20:59:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJqv49yXWTZVh3DoJ3ck4OfuVzHO+111hRAwe6BbB9okiObsHcAO0e0mB0DTD/p8xo5ASS X-Received: by 2002:a17:906:7e04:: with SMTP id e4mr7782673ejr.83.1595563188532; Thu, 23 Jul 2020 20:59:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595563188; cv=none; d=google.com; s=arc-20160816; b=ZBlND41vNetmrvI8YJswTW8/nMkn1lIhGuU/KYYoHZZN46krXr02eWN9kq8hFbuBi8 neK+VtyhWnA2jP1feSsTJmHrchAFq3nm8aHkvJtYqsg7UBQXaP+T86hoYJWSsaxttswi yO/6E2La7RB3AHcFLSOU74juV2n9F6M4sA3kmW29c8lubuwxc3jY/TxzBCi+u5rTsULQ l3qFta6fwHq2VqQ82UWqGRWsJUcIzxwkjDl62MkZMuOksBHrQ/eJ9EcrymSTg2fjkfvY fG/dDZsiK8SZ5bQ+PZ/cfzqg8M3aW+1nJW0OifiSUA5Gca+SxWqidFx6w4yE45Bv9lwd LW2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=vOsMmFLujW8DTTulJXTBSpfa7iK7AOOsQyam7l7OWmQ=; b=ndYFkBwB3bN+QddicME9cSqjd+OKxE5EMluybVZCIO6Ya3n4AqKalezI91C5dI6nmY OmgtX6cG2KjJwpEipPVhEPEXwyP0HWY3aT0c5WyYIKMeMBFEOV/eD+2jEI6V9TSL9uv5 8t6vZmwaRIhdOuUq6rZlfpeliAkFrXCmF+ctOECVTYh+xPEb+cDSQnNfxBxHWTPSXrDS 5xxpsBFRPj5oWpdFY9Hj0e4fk8UTtnG4+fUr9F7/KS4sbJDkKnnHRNkBYArOEQkMS6J5 1sKDdjSthimNOd5RABfIrcJ5OGfBCSdR9NqEtaPBtzPwXUjQYpaDuuajpfR/r9jPyvze CgMg== ARC-Authentication-Results: i=1; mx.google.com; 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 mc27si3313256ejb.272.2020.07.23.20.59.26; Thu, 23 Jul 2020 20:59:48 -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; 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 S1726877AbgGXD6z (ORCPT + 99 others); Thu, 23 Jul 2020 23:58:55 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:26142 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726780AbgGXD6s (ORCPT ); Thu, 23 Jul 2020 23:58:48 -0400 Received: from ironmsg07-lv.qualcomm.com (HELO ironmsg07-lv.qulacomm.com) ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 23 Jul 2020 20:58:47 -0700 Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg07-lv.qulacomm.com with ESMTP/TLS/AES256-SHA; 23 Jul 2020 20:58:46 -0700 Received: from c-skakit-linux.ap.qualcomm.com (HELO c-skakit-linux.qualcomm.com) ([10.242.51.242]) by ironmsg02-blr.qualcomm.com with ESMTP; 24 Jul 2020 09:28:23 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 1686E4272; Fri, 24 Jul 2020 09:28:22 +0530 (IST) From: satya priya To: 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, akashast@codeaurora.org, rojay@codeaurora.org, msavaliy@qti.qualcomm.com, satya priya Subject: [PATCH V2 2/3] arm64: dts: qcom: sc7180: Add sleep pin ctrl for BT uart Date: Fri, 24 Jul 2020 09:28:01 +0530 Message-Id: <1595563082-2353-3-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595563082-2353-1-git-send-email-skakit@codeaurora.org> References: <1595563082-2353-1-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 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 */ 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 { -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation