From nobody Wed Nov 27 11:50:26 2024 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC1281C2435; Thu, 10 Oct 2024 11:05:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728558327; cv=none; b=KbPEBBPR841La/Z0UTA7FEdJiUTEKXscvY0I1QfCXOgda5KXL70Ylx5LzFX0llXeosoTSP26dFYj4WxqhnYtL3UbgH0etL8TX+6dzHOZSPp63w4DbBEpsjW73zjo5OU2rPOumzCoN8hJDJSIvpkwU+wfb+vS1DoCG2GDeEaUbCg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728558327; c=relaxed/simple; bh=udKafIDc42uFlqD8FYMcXGk9+haZ8NhMYW5adVV8SaA=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=ts2SKLkRgLv54Pv1IvKYsDd5ei8v1DnDww30F4Hf7o/lhpY46ga3f5B22VJZlVvvCiSI5ZwJ/UDUX5FTnFfmseQyzNZhLQRWqqeUwu7EQlbn2G1mq+J2U67Z3Px0jlIKnNpEueKyAp4iqDwOkI9Aw/B554ie/jhi07vHnOjWpYI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=Yz1hCsJP; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Yz1hCsJP" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49A1bWfR030157; Thu, 10 Oct 2024 11:05:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-type:date:from:message-id:mime-version:subject:to; s= qcppdkim1; bh=Ll0tDVvQ9w9G8FIXe9rbUCQfCiqWVD69MsABYOXx0wI=; b=Yz 1hCsJP2zaCoNTYrAvQBTUm6nhvVm2haRW8IPR1K3Q/z3giu6dq4V4rC6/iDImUq8 BfVmAGr3mzhsQmw3cs33C1vXBwdpX55ks5dcq1WCbZl5HM2AV8uXY9+JLnARun2O K0krlFuP7pJK5ryjudqMqZwAeyJJlmkhRHGhS4Bac+INPSj+pUWTXYeoF4qd4E3B Dk9aLhCDu6l7zpm1ItNoqyPReGyr7l6nHrIdH0kmieu4UXezDitmqBscmEJfA6lr XHQ8Nt/zwQKoPlOEWkNR9QvwXs+L9ox/yrbYTXVzUv3GT00STBeFs/sd13vKpWP9 s3Oc+93uCdVeYOB6JEoA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4258psx39v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Oct 2024 11:05:22 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 49AB5LxF032274 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Oct 2024 11:05:21 GMT Received: from hu-janathot-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Thu, 10 Oct 2024 04:05:18 -0700 From: Janaki Ramaiah Thota To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: , , , , Subject: [PATCH v1] arm64: dts: qcom: qcm6490-idp: enable Bluetooth Date: Thu, 10 Oct 2024 16:34:56 +0530 Message-ID: <20241010110456.829-1-quic_janathot@quicinc.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: fv_X1Gd8Fl2ikaNQOp0naO_jbV53Ng21 X-Proofpoint-ORIG-GUID: fv_X1Gd8Fl2ikaNQOp0naO_jbV53Ng21 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 mlxscore=0 bulkscore=0 impostorscore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 phishscore=0 malwarescore=0 adultscore=0 mlxlogscore=939 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2410100073 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add Bluetooth and UART7 support for qcm6490-idp. Signed-off-by: Janaki Ramaiah Thota --- arch/arm64/boot/dts/qcom/qcm6490-idp.dts | 123 ++++++++++++++++++++++- 1 file changed, 122 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts b/arch/arm64/boot/dts= /qcom/qcm6490-idp.dts index 84c45419cb8d..cb999be5e498 100644 --- a/arch/arm64/boot/dts/qcom/qcm6490-idp.dts +++ b/arch/arm64/boot/dts/qcom/qcm6490-idp.dts @@ -1,6 +1,6 @@ // SPDX-License-Identifier: BSD-3-Clause /* - * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. + * Copyright (c) 2023-2024 Qualcomm Innovation Center, Inc. All rights res= erved. */ =20 /dts-v1/; @@ -35,6 +35,8 @@ =20 aliases { serial0 =3D &uart5; + bluetooth0 =3D &bluetooth; + serial1 =3D &uart7; }; =20 pm8350c_pwm_backlight: backlight { @@ -617,6 +619,39 @@ status =3D "okay"; }; =20 +&qup_uart7_cts { + /* + * Configure a bias-bus-hold on CTS to lower power + * usage when Bluetooth is turned off. Bus hold will + * maintain a low power state regardless of whether + * the Bluetooth module drives the pin in either + * direction or leaves the pin fully unpowered. + */ + bias-bus-hold; +}; + +&qup_uart7_rts { + /* We'll drive RTS, so no pull */ + drive-strength =3D <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; +}; + +&qup_uart7_tx { + /* We'll drive TX, so no pull */ + drive-strength =3D <2>; + bias-disable; +}; + &qupv3_id_0 { status =3D "okay"; }; @@ -683,6 +718,65 @@ gpio-reserved-ranges =3D <32 2>, /* ADSP */ <48 4>; /* NFC */ =20 + bt_en: bt-en-state { + pins =3D "gpio85"; + function =3D "gpio"; + output-low; + bias-disable; + }; + + qup_uart7_sleep_cts: qup-uart7-sleep-cts-state { + pins =3D "gpio28"; + function =3D "gpio"; + /* + * Configure a bias-bus-hold on CTS to lower power + * usage when Bluetooth is turned off. Bus hold will + * maintain a low power state regardless of whether + * the Bluetooth module drives the pin in either + * direction or leaves the pin fully unpowered. + */ + bias-bus-hold; + }; + + qup_uart7_sleep_rts: qup-uart7-sleep-rts-state { + pins =3D "gpio29"; + function =3D "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_rx: qup-uart7-sleep-rx-state { + pins =3D "gpio31"; + function =3D "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; + }; + + qup_uart7_sleep_tx: qup-uart7-sleep-tx-state { + pins =3D "gpio30"; + function =3D "gpio"; + /* + * Configure pull-up on TX when it isn't actively driven + * to prevent BT SoC from receiving garbage during sleep. + */ + bias-pull-up; + }; + + sw_ctrl: sw-ctrl-state { + pins =3D "gpio86"; + function =3D "gpio"; + bias-pull-down; + }; + sd_cd: sd-cd-state { pins =3D "gpio91"; function =3D "gpio"; @@ -694,6 +788,33 @@ status =3D "okay"; }; =20 +&uart7 { + status =3D "okay"; + /delete-property/interrupts; + interrupts-extended =3D <&intc GIC_SPI 608 IRQ_TYPE_LEVEL_HIGH>, + <&tlmm 31 IRQ_TYPE_EDGE_FALLING>; + pinctrl-names =3D "default", "sleep"; + pinctrl-1 =3D <&qup_uart7_sleep_cts>, <&qup_uart7_sleep_rts>, + <&qup_uart7_sleep_tx>, <&qup_uart7_sleep_rx>; + + bluetooth: bluetooth { + compatible =3D "qcom,wcn6750-bt"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&bt_en>, <&sw_ctrl>; + enable-gpios =3D <&tlmm 85 GPIO_ACTIVE_HIGH>; + swctrl-gpios =3D <&tlmm 86 GPIO_ACTIVE_HIGH>; + vddaon-supply =3D <&vreg_s7b_0p972>; + vddbtcxmx-supply =3D <&vreg_s7b_0p972>; + vddrfacmn-supply =3D <&vreg_s7b_0p972>; + vddrfa0p8-supply =3D <&vreg_s7b_0p972>; + vddrfa1p7-supply =3D <&vreg_s1b_1p872>; + vddrfa1p2-supply =3D <&vreg_s8b_1p272>; + vddrfa2p2-supply =3D <&vreg_s1c_2p19>; + vddasd-supply =3D <&vreg_l11c_2p8>; + max-speed =3D <3200000>; + }; +}; + &usb_1 { status =3D "okay"; }; --=20 The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project