Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp609933pxk; Thu, 3 Sep 2020 08:11:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXfmUgTAqdi1ZBwdqvakNrFjolXO6iSjEcrqwrC92cTooHsvhXwYxLdqNXtsceScbBr6HH X-Received: by 2002:a17:907:444d:: with SMTP id on21mr2495909ejb.329.1599145866676; Thu, 03 Sep 2020 08:11:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599145866; cv=none; d=google.com; s=arc-20160816; b=kkPi64YcK7TVtEMNazpKxbipukqId1jvVB63uRFHDPM62A1HFLBl6/bYLD7Li6fdnw bh612rAqvx4anJZ2OPAmY39OKTbp2R4+/sZRTgpxt1HOW8AgGJ/yGJyvTUzvzODvs3py vsb8tE8pswludYnJtrlTZ+6t7pv99R8A7P+cMQzVJgUrtyZpIc3TTxxubfDf9t0XjEwL 77RgxjwNdoaXkNIKKeVXw5B9i07qBsrnMDSatDTWzEN3vhTKdEVkv5HCZwJekUpdaYF/ Slff9otA9HAG3xfYfAMnbWd0pLKvzu6P0Ryhb7jlmMsQO7b3lRGLL07MfUWCdriP3qL7 f2+g== 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=7FRuQlbcT9teKHnP4xmsVkWmv6imjsPKWBibqT2oPww=; b=jtCvTJXObnoS2K25oyPml6rqPpd9uu5yGuc0wiJb+FwXXv2Jo2F9j5+9nc6hcKiT/V NhiVWppsJmKp68nzMQtij58wgkTXa0klnQSbxLmkB9rTXhWOcaK3tqkxMdmf2Oo0iDdg jIREavILYR5PjkPi/KGgK2YNb4pd8K6fH9ZnRYIvLkjwTXUJEoQ+voN6dQkQZaiUmq7C GfTKS5mYkdyX+Fo0q4yxr2lnDKRBGmUsAW1yAwhJR3aaJXvWcjNhZp3peIg+DuZ3VN/c hAcL5bH6SzzPnyPn4SRA1W6tVaBqCJmpU6kHU2TVGqmlm68D9krE7TWqd9ZIgtaPD9nY zpsg== 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 f2si1849160edy.125.2020.09.03.08.10.42; Thu, 03 Sep 2020 08:11:06 -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 S1729043AbgICPHw (ORCPT + 99 others); Thu, 3 Sep 2020 11:07:52 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:45300 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729499AbgICPFi (ORCPT ); Thu, 3 Sep 2020 11:05:38 -0400 Received: from ironmsg07-lv.qualcomm.com (HELO ironmsg07-lv.qulacomm.com) ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 03 Sep 2020 08:05:34 -0700 Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg07-lv.qulacomm.com with ESMTP/TLS/AES256-SHA; 03 Sep 2020 08:05:32 -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; 03 Sep 2020 20:35:05 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id CE84C44AA; Thu, 3 Sep 2020 20:35:04 +0530 (IST) From: satya priya To: Bjorn Andersson Cc: Matthias Kaehlcke , 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, satya priya Subject: [PATCH V4 3/4] arm64: dts: qcom: sc7180: Add sleep state for BT UART Date: Thu, 3 Sep 2020 20:34:57 +0530 Message-Id: <1599145498-20707-4-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1599145498-20707-1-git-send-email-skakit@codeaurora.org> References: <1599145498-20707-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 state for BT uart to support the wakeup feature. Signed-off-by: satya priya Reviewed-by: Akash Asthana --- Changes in V2: - This patch adds sleep state for BT UART. Newly added in V2. Changes in V3: - Remove "output-high" for TX from both sleep and default states as it is not required. Configure pull-up for TX in sleep state. Changes in V4: - As per Matthias's comment, removed drive-strength for sleep state and fixed nit-pick. arch/arm64/boot/dts/qcom/sc7180-idp.dts | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180-idp.dts b/arch/arm64/boot/dts/qcom/sc7180-idp.dts index cecac3e..77e3523 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-idp.dts +++ b/arch/arm64/boot/dts/qcom/sc7180-idp.dts @@ -507,6 +507,43 @@ }; }; +&qup_uart3_sleep { + pinconf-cts { + /* + * Configure no-pull on CTS. As this is driven by BT, do not + * specify any pull in order to not conflict with BT pulls. + */ + pins = "gpio38"; + bias-disable; + }; + + pinconf-rts { + /* + * Configure pull-down on RTS to make sure that the BT SoC can + * wake up the system by sending wakeup bytes during suspend. + */ + pins = "gpio39"; + bias-pull-down; + }; + + pinconf-tx { + /* Configure pull-up on TX when it isn't actively driven */ + pins = "gpio40"; + bias-pull-up; + }; + + pinconf-rx { + /* + * Configure a pull-up on 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_uart8_default { pinconf-tx { pins = "gpio44"; -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation