Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2602774pxb; Tue, 21 Sep 2021 03:41:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUkuLx3RYlMR/LdyqgvoCj/b8wu8y72NXQQ0yWEha9XiD59+6p4JvHflpS9C8cLB+izZYu X-Received: by 2002:a17:906:c18d:: with SMTP id g13mr22575398ejz.518.1632220892710; Tue, 21 Sep 2021 03:41:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632220892; cv=none; d=google.com; s=arc-20160816; b=dqDKeRTp0UoKeIW0lOF3jUqsoumpLJRF+nOZg4eUxGy+qVHLso9is8sZOHWGYx3SjH GIjIRq747iy31zthxlORYsie4Ck+5Ini3V60xmXolns9UI2ij/mGtLPcf4gB0fv6O81w /RfCK847eGcvldOJbR82X3nstoXtnNtOfs5C4CLLFs+au3jqG4tjdWEh5A7sFcaz6owC VcbZI9EB7jhsDQOzvgUKNq34LGHXq/F2oV/JQG1I5eXCm/EkZx3KS5+K01qv/O4KRbMI OQ3NdTufCVDffqheEPY2A60JbTdcG1dZjlRoi72Pw1BzvMZ5PYVd6WCcXTIfhe0Az1JK PqZQ== 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=WKXBEgsma5t8EVvNR5YCLPyo1uY5lOmgmu8uEySTD6w=; b=CK1xNnA0EM2ZxQUoDc1rFQDnXJC0/H2EOGSB5Cu617msa2YKoFMLhdP/2UXkXnXQTp y8rp3DYyslDrSXH9vR2Wtq5CS00SI+0N3mZ7ZtQDzGojDpofPor2FDGhu3ZyXa//YJP8 WRIuXxTMcPhOxJrAKzp+LYglsmXTelSPkjniiwvu9HgLw3CqEkREvalXVq5OPSVxw9oP VQ2BXEW+dGnmy8IZ6rCFxR/kF9hbjecSYa9QNYHuAkxEbuJtArsWXb3A+FHpiBVnFqAP W3CpF542RbsRV7EBymZyihmfoqATUTEjL0naQVyIhUVDyW7v29XFTQ9yKaYrCRuF1ow6 6h9w== 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 e8si5969639edm.144.2021.09.21.03.41.03; Tue, 21 Sep 2021 03:41:32 -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 S232089AbhIUKlK (ORCPT + 99 others); Tue, 21 Sep 2021 06:41:10 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:33886 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232060AbhIUKlJ (ORCPT ); Tue, 21 Sep 2021 06:41:09 -0400 Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 21 Sep 2021 03:39:41 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 21 Sep 2021 03:39:39 -0700 X-QCInternal: smtphost Received: from rajpat-linux.qualcomm.com ([10.206.21.0]) by ironmsg01-blr.qualcomm.com with ESMTP; 21 Sep 2021 16:09:24 +0530 Received: by rajpat-linux.qualcomm.com (Postfix, from userid 2344945) id B83E6215F5; Tue, 21 Sep 2021 16:09:22 +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 V9 6/8] arm64: dts: sc7280: Configure uart7 to support bluetooth on sc7280-idp Date: Tue, 21 Sep 2021 16:09:04 +0530 Message-Id: <1632220746-25943-7-git-send-email-rajpat@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1632220746-25943-1-git-send-email-rajpat@codeaurora.org> References: <1632220746-25943-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 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