Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp515587pxb; Thu, 23 Sep 2021 05:19:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAolAHFfjvOY3PtvlDTdfagbb/AdH2jx3Vv553OkWjTRf8g9kvJPzEdIWWK5mNfMxzE+Wj X-Received: by 2002:a17:907:2659:: with SMTP id ar25mr4521245ejc.541.1632399562871; Thu, 23 Sep 2021 05:19:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632399562; cv=none; d=google.com; s=arc-20160816; b=hR4WfRahETiDXIay6j+I1p50aD63ymDF8hDnMzDJ6Bd/W1REGzoaKvGYSN2vVGX4iC QFHQ5ErQD3fPIJs1GIhMaSxvIjLMZtKyl+RfwYMwnTL86G9F2IGf1RlgAyEUP/VWZRn1 ULYwT04MNfjwkZU8r3sIZ0SBPcARQjb2hDrphlURYJpznFuxpG+j6isMVobxqJWtNOz6 GWf1dBj8CPw8O/3e5nZUu1NhU9X+5/7XzlPvqfDre8yKCjf2hNS3HJ/FKZhx/scwcIZN zrNsAnF8MqJDssW4V0RWVO2baamD87V024Piho/YdQ31kvjtDILpg9OKTUt4ciecAyyA l4FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=0ljwEPzx3//6brmKkLQN9YCUJN15bTm/cPJ0/HdJKGI=; b=e7cQKvJkeHBIMKdr0toHXVJdrfkHfZhYPH7gehG9li1gjACDFoJRroJ3+r5dd+3jJF BKcjxhEwvBUvRSyX1UD4SRCSTekoI4OLT+hZjue1qZY3q/zI/tydBJRq4wWhzDkgTG5l GKoHVxj03X0riG+7qKCxMSQD7AcprNRrjnBe09Cs7E0oRWHFoxvqswMm/D/Cv1fWcwTv u/QHyOaBrEnuw4JXgscVlDgVjgToqAxeyrglrNndm0SD058zOsHAokgC6vh8mrVEdhev 6CLYJmuJxpScRFWtRWaYyRZMnr2ottkag9GSfQ7i9jaP/vTKXFnXHQp7ddvFvLRLc1sR G1oA== 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 f4si6045572ejl.218.2021.09.23.05.18.55; Thu, 23 Sep 2021 05:19:22 -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 S240988AbhIWMSh (ORCPT + 99 others); Thu, 23 Sep 2021 08:18:37 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:37482 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240761AbhIWMSY (ORCPT ); Thu, 23 Sep 2021 08:18:24 -0400 Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 23 Sep 2021 05:16:50 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 23 Sep 2021 05:16:47 -0700 X-QCInternal: smtphost Received: from rajpat-linux.qualcomm.com ([10.206.21.0]) by ironmsg01-blr.qualcomm.com with ESMTP; 23 Sep 2021 17:46:29 +0530 Received: by rajpat-linux.qualcomm.com (Postfix, from userid 2344945) id 1E6542160B; Thu, 23 Sep 2021 17:46:28 +0530 (IST) From: Rajesh Patil To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, rnayak@codeaurora.org, saiprakash.ranjan@codeaurora.org, msavaliy@qti.qualcomm.com, skakit@codeaurora.org, sboyd@kernel.org, mka@chromium.org, dianders@chromium.org, Rajesh Patil Subject: [PATCH V10 6/8] arm64: dts: sc7280: Configure uart7 to support bluetooth on sc7280-idp Date: Thu, 23 Sep 2021 17:46:16 +0530 Message-Id: <1632399378-12229-7-git-send-email-rajpat@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1632399378-12229-1-git-send-email-rajpat@codeaurora.org> References: <1632399378-12229-1-git-send-email-rajpat@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add bluetooth uart pin configuration for sc7280-idp. Signed-off-by: Rajesh Patil Reviewed-by: Matthias Kaehlcke Reviewed-by: Stephen Boyd --- Changes in V10: - No changes Changes in V9: - No changes Change in V8: - No changes arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 85 ++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi index cf82301..52638e2 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi @@ -301,6 +301,16 @@ vdda18-supply = <&vreg_l1c_1p8>; }; +&uart7 { + status = "okay"; + + /delete-property/interrupts; + interrupts-extended = <&intc GIC_SPI 608 IRQ_TYPE_LEVEL_HIGH>, + <&tlmm 31 IRQ_TYPE_EDGE_FALLING>; + pinctrl-names = "default", "sleep"; + pinctrl-1 = <&qup_uart7_sleep_cts>, <&qup_uart7_sleep_rts>, <&qup_uart7_sleep_tx>, <&qup_uart7_sleep_rx>; +}; + /* PINCTRL - additions to nodes defined in sc7280.dtsi */ &qspi_cs0 { @@ -326,6 +336,81 @@ bias-pull-up; }; +&qup_uart7_cts { + /* + * Configure a pull-down on CTS to match the pull of + * the Bluetooth module. + */ + bias-pull-down; +}; + +&qup_uart7_rts { + /* We'll drive RTS, so no pull */ + drive-strength = <2>; + bias-disable; +}; + +&qup_uart7_tx { + /* We'll drive TX, so no pull */ + drive-strength = <2>; + bias-disable; +}; + +&qup_uart7_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). + */ + bias-pull-up; +}; + +&tlmm { + qup_uart7_sleep_cts: qup-uart7-sleep-cts { + pins = "gpio28"; + function = "gpio"; + /* + * Configure a pull-down on CTS to match the pull of + * the Bluetooth module. + */ + bias-pull-down; + }; + + qup_uart7_sleep_rts: qup-uart7-sleep-rts { + pins = "gpio29"; + function = "gpio"; + /* + * Configure pull-down on RTS. As RTS is active low + * signal, pull it low to indicate the BT SoC that it + * can wakeup the system anytime from suspend state by + * pulling RX low (by sending wakeup bytes). + */ + bias-pull-down; + }; + + qup_uart7_sleep_tx: qup-uart7-sleep-tx { + pins = "gpio30"; + function = "gpio"; + /* + * Configure pull-up on TX when it isn't actively driven + * to prevent BT SoC from receiving garbage during sleep. + */ + bias-pull-up; + }; + + qup_uart7_sleep_rx: qup-uart7-sleep-rx { + pins = "gpio31"; + function = "gpio"; + /* + * Configure a pull-up on RX. This is needed to avoid + * garbage data when the TX pin of the Bluetooth module + * is floating which may cause spurious wakeups. + */ + bias-pull-up; + }; +}; + &sdc1_on { clk { bias-disable; -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation