Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2292389pxb; Fri, 17 Sep 2021 06:40:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxMtEjlsOD5aGS14Zm6sWOQ4rIuhV8FWNG8B3YU2UnYKI+79yjBXP7Qn7TFI6q448E7AQX X-Received: by 2002:a17:907:262f:: with SMTP id aq15mr11634349ejc.104.1631886048804; Fri, 17 Sep 2021 06:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631886048; cv=none; d=google.com; s=arc-20160816; b=bS0HzXDdM1VrYh0gJ0jX8R8xInALbpqQjjU8zxLaSQO7NTjB+jxYVmsgN6DUbrkwbA /PiWVlWslsj71TotRKKEC2NEy4AW5tDki46lnwDo3Z/90VwYpGWiKGKoTHUe9qMh6zED nL1xs4xmh4LTCbl+9KZt0O8udROajLzCnR7CDCzrPAVa2IwMEmG0/4F/khbSJKHFXaHp aQYajixPK7lxXkCSoVDk+s9osYOSsFKjYZ07LRLzbG0U5t/hDng+X5t/+V3MQurKNSGP aua0z+HrKNZuSuyOInGk3RxnM3xxl/li+ZjTIjU9JnP43DO/ID5rjwwAmSH7VIls3YcA bibg== 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=QHF8e8OnvbwKFn10vtqkwLbWD/YC6mL2rw/FfUAU0Rk=; b=BHzzEHdFqULUiLd5FbDOUOyEVmPkWfw+NXxUdZMhqePaK5IjoRK0zPNWcup1ijz6wn pr0695HQULf3eDVkuqkNw5tYqV+I2k8tcCKUDOuTMRNC483/kDcnWRmyKLGMmUvJmLtp jkFdQYOLSs6JQMFW/+Mm2UZcSEdZLfLa6GmS061SDUq8h7+/07I91KeSZVPRv6CR7D+F DR9Mp0P33lcbEXWsJ0dKRQNMIupF77/UfhdHMGHZebPHcu8y8gkwyGT4CibX87d+xbcU SnlSJIAWv6galul4APIjMc0Rv1h2kZ+vCFWnD6SgKTjFJQryNvJFOh9yAFG5l41kU+Ah Qcig== 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 o29si7031308edz.353.2021.09.17.06.40.23; Fri, 17 Sep 2021 06:40:48 -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 S1343621AbhIQJvu (ORCPT + 99 others); Fri, 17 Sep 2021 05:51:50 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:10893 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245693AbhIQJuf (ORCPT ); Fri, 17 Sep 2021 05:50:35 -0400 Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 17 Sep 2021 02:49:13 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 17 Sep 2021 02:49:12 -0700 X-QCInternal: smtphost Received: from rajpat-linux.qualcomm.com ([10.206.21.0]) by ironmsg01-blr.qualcomm.com with ESMTP; 17 Sep 2021 15:19:09 +0530 Received: by rajpat-linux.qualcomm.com (Postfix, from userid 2344945) id 5973F21463; Fri, 17 Sep 2021 15:19:08 +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 V8 6/8] arm64: dts: sc7280: Configure uart7 to support bluetooth on sc7280-idp Date: Fri, 17 Sep 2021 15:18:05 +0530 Message-Id: <1631872087-24416-7-git-send-email-rajpat@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1631872087-24416-1-git-send-email-rajpat@codeaurora.org> References: <1631872087-24416-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 --- Changes 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