Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp418811pxb; Thu, 26 Aug 2021 06:17:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJww1DiIjAtiD9m3ISsmksxeHtD52F3su2gQn0DktnMDOZTO5jezh6uAdJqSKCccRc4SJoR7 X-Received: by 2002:a02:90cb:: with SMTP id c11mr3507766jag.53.1629983862796; Thu, 26 Aug 2021 06:17:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629983862; cv=none; d=google.com; s=arc-20160816; b=MWHIJuUwEPTUyoRGqYBw3HFiOIEqKHEQAFaK95/Beg/at2YjrqnSYe7TKkIRNZ89bO 9PF8H/qlM9KzjPKcFOuqAx7u0mrZPMCGQYbk2JrdUvNftrNCEkL3u6fA6+Ddo1Zyu27g +dGWPa23CyT9AHtYzCDM2WuuHSqkVZkBJk9z158Pg8MqLFysvtrsQM79mi4FYYImXMg7 rLsUvUWqC++9ZhjUB17neTv4zGTM2UPaIdBndxO3+3BVPhKlt4eduVw25gJtu37u/y9Y Q6ahPWIlZJ3tqqtslST9JCZCOm+MZika6gH5Ou1qWsiggIJNeQpmAkh5nqZTC0Vqcjaf U9Bw== 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=ZG/B4rqqDy86Ek7ckW5IMrDpJIowA7HloAnxMNSblHif2phuWBzpnlLFruaXod0OsE g1h5DdgebmZiukyj/jwLSG2KeFvcG+px3Gy1Ei9LRbTt72RbFVML8KFzOxVkODq1/cNJ CFLMh3R4wEj1PUx/xNQ3k4VWDGTYrieQA1jFw/h8cvm9ClzCcnwE63GprcrzdYskb3d0 +cGoACjdq7DvQrELNbBBp7sNbQiHnnB3vsCHlsJlVBbF2qsAujvh+490hoBboWhSauKg ItWJr7YgegyF2+0tP3O0fI+vwpQKyX9PhMYKLWTDDTnC0do4BM7+PMa4pWitNilBkWKg 8o6Q== 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 a10si2649683iow.65.2021.08.26.06.17.28; Thu, 26 Aug 2021 06:17:42 -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 S242689AbhHZNRD (ORCPT + 99 others); Thu, 26 Aug 2021 09:17:03 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:4013 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242667AbhHZNRA (ORCPT ); Thu, 26 Aug 2021 09:17:00 -0400 Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 26 Aug 2021 06:16:13 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 26 Aug 2021 06:16:11 -0700 X-QCInternal: smtphost Received: from rajpat-linux.qualcomm.com ([10.206.21.0]) by ironmsg02-blr.qualcomm.com with ESMTP; 26 Aug 2021 18:45:49 +0530 Received: by rajpat-linux.qualcomm.com (Postfix, from userid 2344945) id 5EFC421288; Thu, 26 Aug 2021 18:45:50 +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, Rajesh Patil Subject: [PATCH V6 5/7] arm64: dts: sc7280: Configure uart7 to support bluetooth on sc7280-idp Date: Thu, 26 Aug 2021 18:45:29 +0530 Message-Id: <1629983731-10595-6-git-send-email-rajpat@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1629983731-10595-1-git-send-email-rajpat@codeaurora.org> References: <1629983731-10595-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