From nobody Wed Dec 4 18:51:14 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 0461C14F104; Tue, 3 Dec 2024 06:03:56 +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=1733205838; cv=none; b=KRnTnq8AgaBN9STDyzcxPxERA7iaHOfXNGLMq96Y7jwgCQQAOcIkn/9KhAjDSPG/wcUxz3N9mWRHMzLDpklPAY6C8FKZN9qb7EEIjeq639DXNo3eR9SV6br9xUtpxgeFO0knFgRDtX3MgcZ71OvWOxqTfZTElIU7e0xVx7A1Ff4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733205838; c=relaxed/simple; bh=Y4wwO0bDyM6Dtxf6NtLfWLsTmgMU7adedfQwJ97hrmc=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=kipPh4Q2n38yYvYX4HctzRZiHnhreg0civagtUdauJdp6JSPzWVNRnMDTIwzv7TlY1jancnpwXsNNZqkX4I1CMgA5+cKaGZ/30BsoxDzAtbIGMoZXNQGTCd5+Ijvc14lj1ZLdw/JM3PqC5Oqp+mX/ZcypiEcz42B35ak7MYq1og= 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=pZk5Er99; 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="pZk5Er99" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4B2JiN4b002455; Tue, 3 Dec 2024 06:03:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=z0fsV+QhBSZIl22aOSwtQD jFAPpIBmujBQC0g8Hc5sA=; b=pZk5Er997gON1Mnm0wb1wnkGQEFoAo7hQ3ijFe e9+UglvTRKf5G1g5wq45qCeiVLEk6uAop/Yn0TVrgdz8lQGMJKoQwK9czo3v2o7y mddLSmLsLwNCOhYS13LcoggkaR2189+bssffq+WLs0lL9UzZkOs5XhctNAJJdSUv bmU72JJdKsf6R9WD6yBvxhQtEA8D55Z1V5/+k3dnJQC/Qfp/38iWNAgSIfb5ROFL TW3RYK2fOcjjyDBBW/G3ZtNQRVUVmFZVrpgBrouR8XBTrUJgSQfwOK5vskkUVeBU QWDhgXxk4U9kP7pl4lcgl7Pu2bciE6H3o31IOwalXzORttSA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 437ufe6xf1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 03 Dec 2024 06:03:49 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4B363mhK026728 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 3 Dec 2024 06:03:48 GMT Received: from yuzha-gv.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; Mon, 2 Dec 2024 22:03:44 -0800 From: "Yu Zhang(Yuriy)" To: , , , CC: , , , , , , , , , , , Subject: [PATCH v3] arm64: dts: qcom: qcs615: add WiFi/BT nodes Date: Tue, 3 Dec 2024 14:03:18 +0800 Message-ID: <20241203060318.1750927-1-quic_yuzha@quicinc.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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-ORIG-GUID: 3zLnB5VLGS3Nnzl0D_S42mTghQM7aLEa X-Proofpoint-GUID: 3zLnB5VLGS3Nnzl0D_S42mTghQM7aLEa 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 malwarescore=0 suspectscore=0 spamscore=0 impostorscore=0 lowpriorityscore=0 priorityscore=1501 mlxlogscore=999 clxscore=1011 adultscore=0 bulkscore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2411120000 definitions=main-2412030049 Content-Type: text/plain; charset="utf-8" Add a node for the PMU module of the WCN6855 present on the qcs615 board. Assign its LDO power outputs to the existing WiFi/BT module. This patch depends on below patch series: - base https://lore.kernel.org/all/20241104-add_initial_support_for_qcs615-v5-0-9d= de8d7b80b0@quicinc.com/ - pmic https://lore.kernel.org/all/20241202-adds-spmi-pmic-peripherals-for-qcs615-= v6-0-bdd306b4940d@quicinc.com/ - pci https://lore.kernel.org/all/20241122023314.1616353-1-quic_ziyuzhan@quicinc.= com/ Signed-off-by: Yu Zhang(Yuriy) diff --git a/arch/arm64/boot/dts/qcom/qcs615-ride.dts b/arch/arm64/boot/dts= /qcom/qcs615-ride.dts index 66f99cd860b9..80ae02ab2a9b 100644 --- a/arch/arm64/boot/dts/qcom/qcs615-ride.dts +++ b/arch/arm64/boot/dts/qcom/qcs615-ride.dts @@ -14,6 +14,7 @@ / { =20 aliases { serial0 =3D &uart0; + serial1 =3D &uart7; }; =20 chosen { @@ -33,6 +34,83 @@ xo_board_clk: xo-board-clk { #clock-cells =3D <0>; }; }; + + vreg_conn_1p8: vreg_conn_1p8 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vreg_conn_1p8"; + startup-delay-us =3D <4000>; + enable-active-high; + gpio =3D <&pm8150_gpios 1 GPIO_ACTIVE_HIGH>; + }; + + vreg_conn_pa: vreg_conn_pa { + compatible =3D "regulator-fixed"; + regulator-name =3D "vreg_conn_pa"; + startup-delay-us =3D <4000>; + enable-active-high; + gpio =3D <&pm8150_gpios 6 GPIO_ACTIVE_HIGH>; + }; + + wcn6855-pmu { + compatible =3D "qcom,wcn6855-pmu"; + + pinctrl-0 =3D <&bt_en_state>, <&wlan_en_state>; + pinctrl-names =3D "default"; + + vddio-supply =3D <&vreg_conn_pa>; + vddaon-supply =3D <&vreg_s5a>; + vddpmu-supply =3D <&vreg_conn_1p8>; + vddrfa0p95-supply =3D <&vreg_s5a>; + vddrfa1p3-supply =3D <&vreg_s6a>; + vddrfa1p9-supply =3D <&vreg_l15a>; + vddpcie1p3-supply =3D <&vreg_s6a>; + vddpcie1p9-supply =3D <&vreg_l15a>; + + bt-enable-gpios =3D <&tlmm 85 GPIO_ACTIVE_HIGH>; + wlan-enable-gpios =3D <&tlmm 98 GPIO_ACTIVE_HIGH>; + + regulators { + vreg_pmu_rfa_cmn: ldo0 { + regulator-name =3D "vreg_pmu_rfa_cmn"; + }; + + vreg_pmu_aon_0p59: ldo1 { + regulator-name =3D "vreg_pmu_aon_0p59"; + }; + + vreg_pmu_wlcx_0p8: ldo2 { + regulator-name =3D "vreg_pmu_wlcx_0p8"; + }; + + vreg_pmu_wlmx_0p85: ldo3 { + regulator-name =3D "vreg_pmu_wlmx_0p85"; + }; + + vreg_pmu_btcmx_0p85: ldo4 { + regulator-name =3D "vreg_pmu_btcmx_0p85"; + }; + + vreg_pmu_rfa_0p8: ldo5 { + regulator-name =3D "vreg_pmu_rfa_0p8"; + }; + + vreg_pmu_rfa_1p2: ldo6 { + regulator-name =3D "vreg_pmu_rfa_1p2"; + }; + + vreg_pmu_rfa_1p7: ldo7 { + regulator-name =3D "vreg_pmu_rfa_1p7"; + }; + + vreg_pmu_pcie_0p9: ldo8 { + regulator-name =3D "vreg_pmu_pcie_0p9"; + }; + + vreg_pmu_pcie_1p8: ldo9 { + regulator-name =3D "vreg_pmu_pcie_1p8"; + }; + }; + }; }; =20 &apps_rsc { @@ -231,10 +309,33 @@ &pcie_phy { status =3D "okay"; }; =20 +&pcieport0 { + wifi@0 { + compatible =3D "pci17cb,1103"; + reg =3D <0x10000 0x0 0x0 0x0 0x0>; + + qcom,ath11k-calibration-variant =3D "QC_QCS615_Ride"; + + vddrfacmn-supply =3D <&vreg_pmu_rfa_cmn>; + vddaon-supply =3D <&vreg_pmu_aon_0p59>; + vddwlcx-supply =3D <&vreg_pmu_wlcx_0p8>; + vddwlmx-supply =3D <&vreg_pmu_wlmx_0p85>; + vddrfa0p8-supply =3D <&vreg_pmu_rfa_0p8>; + vddrfa1p2-supply =3D <&vreg_pmu_rfa_1p2>; + vddrfa1p7-supply =3D <&vreg_pmu_rfa_1p7>; + vddpcie0p9-supply =3D <&vreg_pmu_pcie_0p9>; + vddpcie1p8-supply =3D <&vreg_pmu_pcie_1p8>; + }; +}; + &qupv3_id_0 { status =3D "okay"; }; =20 +&qupv3_id_1 { + status =3D "okay"; +}; + &rpmhcc { clocks =3D <&xo_board_clk>; }; @@ -262,12 +363,42 @@ wake-pins { bias-pull-up; }; }; + + wlan_en_state: wlan-en-state { + pins =3D "gpio98"; + function =3D "gpio"; + drive-strength =3D <16>; + output-high; + bias-pull-up; + }; + + bt_en_state: bt-en-state { + pins =3D "gpio85"; + function =3D "gpio"; + output-low; + bias-pull-down; + }; }; =20 &uart0 { status =3D "okay"; }; =20 +&uart7 { + status =3D "okay"; + + bluetooth { + compatible =3D "qcom,wcn6855-bt"; + + vddrfacmn-supply =3D <&vreg_pmu_rfa_cmn>; + vddaon-supply =3D <&vreg_pmu_aon_0p59>; + vddbtcmx-supply =3D <&vreg_pmu_btcmx_0p85>; + vddrfa0p8-supply =3D <&vreg_pmu_rfa_0p8>; + vddrfa1p2-supply =3D <&vreg_pmu_rfa_1p2>; + vddrfa1p7-supply =3D <&vreg_pmu_rfa_1p7>; + }; +}; + &watchdog { clocks =3D <&sleep_clk>; }; diff --git a/arch/arm64/boot/dts/qcom/qcs615.dtsi b/arch/arm64/boot/dts/qco= m/qcs615.dtsi index 808e42f799a6..8465e96e0e8e 100644 --- a/arch/arm64/boot/dts/qcom/qcs615.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs615.dtsi @@ -819,7 +819,7 @@ opp-8000000 { }; }; =20 - pcie@0 { + pcieport0: pcie@0 { device_type =3D "pci"; reg =3D <0x0 0x0 0x0 0x0 0x0>; bus-range =3D <0x01 0xff>; --=20 2.34.1