Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp447279pxt; Thu, 12 Aug 2021 02:09:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwtHbXXj+OVQdK39TkdYnMDfR+BYBrgHshbkQkl7JHxnJAperKwjP56pm7l5IQ/UxNmKCK X-Received: by 2002:a92:c08a:: with SMTP id h10mr2089871ile.202.1628759361698; Thu, 12 Aug 2021 02:09:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628759361; cv=none; d=google.com; s=arc-20160816; b=CFQjlbseCa8Op9Nj6O9Ts65nz1CWhWhuMma9pca2+yK5poEPT53U1aqLMUD2ra0jQV wKD0o5MWv2l0Et3gbH7+pt25EfbbssooGvKUq8o7mPY2hyl4dgo9DFK8qEtHSgSVuNLf /+YcjaFae/xIhk92U3/LmcgEXlyw05FfSTrAF/FucUmjAje11Dq32DNlHXQwE4d4QUBy O7/yQ23gndKC0utvdG651gIx2onqdpX4T+v72dHc+BC2XPrzz+rCGdhcdywKXzp19Z6u f+CMn16Z8cw7a7wC7ZKEWTT4umBOoPF79aqk1PINUKeJkWWmbL9MDcqAMvl7gC4mfjbf QQOw== 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=T8PsPR8bOa8yxReaBdS0rV0PeQoTOAxOR2YDloFlRp8=; b=FpLeMuaKV7XEXH8dwfoLa9YbUTuVyG91CMGEA9zQdG9aJS8vJMVSRhrafzu/TVMR3r 997EMBWdleZgdo7CKdo8LIXRPmMKPmMF6sqegrURcfdkekM5EFX4k6sCs8W3VtCvLYFY RnaP4Q/tZhHwmKrK0J9e7NYiLJJYYjABMuGCpCMk8tzAofM/gfvp14WvNmDRwmLcBokO UpSRE/UA1M65NofGoNkzoyi8V8Hc1hyzaikA80a8+2pyLvN+3uHGdptpBe2KqZ5SLK1G khZCU2UzjMky+hhHvpKka6Qsr9avfRObcViBHzkqB7mNLJvjU/bFvuputm8Q93awU7bv byDg== 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 h12si3028498ild.123.2021.08.12.02.09.10; Thu, 12 Aug 2021 02:09:21 -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 S234855AbhHLHnO (ORCPT + 99 others); Thu, 12 Aug 2021 03:43:14 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:34292 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234841AbhHLHnN (ORCPT ); Thu, 12 Aug 2021 03:43:13 -0400 Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 12 Aug 2021 00:42:48 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 12 Aug 2021 00:42:47 -0700 X-QCInternal: smtphost Received: from rajpat-linux.qualcomm.com ([10.206.21.0]) by ironmsg01-blr.qualcomm.com with ESMTP; 12 Aug 2021 13:12:20 +0530 Received: by rajpat-linux.qualcomm.com (Postfix, from userid 2344945) id CAFCB2150A; Thu, 12 Aug 2021 13:12:18 +0530 (IST) From: Rajesh Patil To: Andy Gross , Bjorn Andersson , Rob Herring Cc: swboyd@chromium.org, 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, Rajesh Patil Subject: [PATCH V5 6/7] arm64: dts: sc7280: Configure uart7 to support bluetooth on sc7280-idp Date: Thu, 12 Aug 2021 13:11:17 +0530 Message-Id: <1628754078-29779-7-git-send-email-rajpat@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1628754078-29779-1-git-send-email-rajpat@codeaurora.org> References: <1628754078-29779-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 --- 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