Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp131733pxb; Thu, 2 Sep 2021 21:32:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNbmw8KSNsvFGa1YsZQXoAGZdRHORRNbT4HA2ZpjyXlFdsgr50yv0v1ANM1V2zmhbYhcE5 X-Received: by 2002:a05:6402:1248:: with SMTP id l8mr1852928edw.94.1630643563555; Thu, 02 Sep 2021 21:32:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630643563; cv=none; d=google.com; s=arc-20160816; b=p1vJFcaofL/096NTqFx0fuDuiatCUH4IhN95vV7zZ9KYFa2ZPgfqF563T05NvAiKS8 sR0EU3A4E4n7dfi+X11c4KsuwWpZG0haWPnb9wnADZHpTRNNZbbc1y+hCdk7zhVXtemV 7HIlaAU01JPiWIj5AWoRNjemnKWo56Mm+LHMNdw+ij3Vj3nSRLL6K2RBVvjcUhs6abe0 6nFSKPg25vQ6TX43iJLTffkGcza2YJg9RTGmoiSM2mAENWB2+MkJ0ffN9G+ZJ61R7vUB OFpIb0p/e8Vmiy7B5y3JBq8Y/xf+1rHyofP6tXkHGOwPFa4etfbsHkQjKh+ZyZAiYioR rjxA== 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=Xl6G8fTWnnoHcZqplCTq/u5sq3g3zDmJVFXE6HAyyxw=; b=YJcRgZmV7ggLbYksm9iAVhzKLnEyltRMQgbIOKi8qbZRkozabV3YolHGMpyKfzvmDU FF00UdyDEb6Gqw68IyUyRi5ek7fUzzuKX0OIS5/pmahV+LcMfCqSSNElq/M0lzruZ/1D hky1pZy6+CQDXXBq9XXMehpnj+gkhfJyLxT5RK+HLLOuGfMj3LZufieAB0KsXaASmIeV 21piwljAkGgq38eqeknr4XOSO5ScXDnxpHvic8vOXuewfNK5HSaSvPitXn8DObP5ic9o /WduNRgzxkLWI8gFfqOtP2Ggdzw+eLa8+xVYPvVGXMae9HdRUSsOm12D/14voyUWY8bn VCLA== 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 dm14si4306600ejc.226.2021.09.02.21.32.20; Thu, 02 Sep 2021 21:32: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; 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 S232184AbhICEam (ORCPT + 99 others); Fri, 3 Sep 2021 00:30:42 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:47062 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232036AbhICEaf (ORCPT ); Fri, 3 Sep 2021 00:30:35 -0400 Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 02 Sep 2021 21:29:36 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/AES256-SHA; 02 Sep 2021 21:29:34 -0700 X-QCInternal: smtphost Received: from rajpat-linux.qualcomm.com ([10.206.21.0]) by ironmsg01-blr.qualcomm.com with ESMTP; 03 Sep 2021 09:59:17 +0530 Received: by rajpat-linux.qualcomm.com (Postfix, from userid 2344945) id 104F121442; Fri, 3 Sep 2021 09:59:16 +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 V7 5/7] arm64: dts: sc7280: Configure uart7 to support bluetooth on sc7280-idp Date: Fri, 3 Sep 2021 09:58:58 +0530 Message-Id: <1630643340-10373-6-git-send-email-rajpat@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1630643340-10373-1-git-send-email-rajpat@codeaurora.org> References: <1630643340-10373-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 --- 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 53993b3..7c106c0 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi @@ -297,6 +297,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 { @@ -322,6 +332,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