From patchwork Mon Mar 24 20:18:28 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Melody Olvera X-Patchwork-Id: 876066 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 96D581A3156; Mon, 24 Mar 2025 20:19:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742847574; cv=none; b=ioHWmdt80Z+W1vy38H9EIYyMAIo03QD/XtbkoetzVgRF9qqwAptccIm5psIW85CXrqCIEjgkcbT0mtsUU/HHrTNpXWuX0l4H52j6GAdLAVS+t263/QwNsqgbtIwFrD16/Hdpv/l1l6cQ6XV+u4KNrFKWP2V4Looks5eBMX6AMtQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742847574; c=relaxed/simple; bh=Eu448yCoTvdB0zDM/J9J/XYR56g9WuEoLLaZRxFAujw=; h=From:Subject:Date:Message-ID:MIME-Version:Content-Type:To:CC; b=FYzVpr7UMwUd9q4Da3YgcUmVySB0gRdr6nNgHCnXVWTEOxg9NvO5JzE0Olt5Sij5yHZDaUxrUv6a2an/86BUrrCk1QEkpffvcWsxcFpbpgtibQtD3gsfZtk5lWel0UdgXSLIMjGUdpwCL4shUn8foBtFZWBy8+LOyBA1e8pt1Xs= 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=JH2b0Crs; arc=none smtp.client-ip=205.220.180.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="JH2b0Crs" Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 52OIXI8p030746; Mon, 24 Mar 2025 20:19:18 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=CnBBuAgtDyQ64pB4bRbFXI 6lot2wxW1oL7D98iyHw3c=; b=JH2b0CrsDqnXQ+/4PrexZ4Vr/ph/0I/rJErYb0 /ukwSDwiz9YN48puHvoq2bhiwLMUha9piTnkYhutBm9zz7qz4TRPOJuq/tdwbUHY qafhCCmiqHr8RvrfCb06I5MZAk6KQz1vSUM/pigTl/8zohtTTMk7m4Ln5qkTJFP1 PlbtfHeQ+K4yI51dYfi2cWSc8/OzXdbUdVW0POcoCcOs62hVNGMjsXM/y95+rHLx P7upLX9oPAiQ+GWRY/M7JTJt858Vzziokan8/iP0wpIt4ekKwas97urrp0+9iKkD 9HMXxQEz91pwlwksmZjjuPiZZg/0OMa9mKrI8HMUnyxyG5NQ== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 45hmt05g7t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Mar 2025 20:19:17 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA04.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 52OKJGBc027841 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Mar 2025 20:19:16 GMT Received: from hu-molvera-lv.qualcomm.com (10.49.16.6) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Mon, 24 Mar 2025 13:19:16 -0700 From: Melody Olvera Subject: [PATCH v3 00/10] phy: qcom: Introduce USB support for SM8750 Date: Mon, 24 Mar 2025 13:18:28 -0700 Message-ID: <20250324-sm8750_usb_master-v3-0-13e096dc88fd@quicinc.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIABS+4WcC/23NQQ6CMBQE0KuQrq1pP6WgK+9hDKntr3QBaAuNh nB3Cy6ICcuZZN5MJKB3GMg5m4jH6ILruxTyQ0Z0o7oHUmdSJsBAcICchrYqC1aP4V63KgzoqYV SoSmtNIKRtHt6tO69mtfbL3t8jYketrJxYej9Z/2NfGmXi4JxvncROWWUnZRFbjQUIC7J067TR 923ZPEibEbOxJ4ByVDyVClAWSGT/8Y8z1/yJldbDQEAAA== X-Change-ID: 20241223-sm8750_usb_master-f27aed7f6d40 To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Wesley Cheng , Greg Kroah-Hartman , Philipp Zabel , Bjorn Andersson , "Konrad Dybcio" , Catalin Marinas , Will Deacon CC: , , , , , , Krzysztof Kozlowski , Melody Olvera , Konrad Dybcio , Dmitry Baryshkov X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1742847556; l=3117; i=quic_molvera@quicinc.com; s=20241204; h=from:subject:message-id; bh=Eu448yCoTvdB0zDM/J9J/XYR56g9WuEoLLaZRxFAujw=; b=2ljSCJPAHPnjnB7la8uyzgz+JI5tLyS0fd8DLLa99dZwdDPUGm4frGL4Q5lbRADNs3DTSQaK1 tiDkxN5Z049DM93nL2YgqyGmAFXGMWnflBSLE/TGJGx9mh0FT3zcIr+ X-Developer-Key: i=quic_molvera@quicinc.com; a=ed25519; pk=1DGLp3zVYsHAWipMaNZZTHR321e8xK52C9vuAoeca5c= X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 0PRR3Cqstcjj5gcCTJh41gRGbD8wW7XF X-Proofpoint-ORIG-GUID: 0PRR3Cqstcjj5gcCTJh41gRGbD8wW7XF X-Authority-Analysis: v=2.4 cv=aqGyCTZV c=1 sm=1 tr=0 ts=67e1be45 cx=c_pps a=JYp8KDb2vCoCEuGobkYCKw==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=3H110R4YSZwA:10 a=IkcTkHD0fZMA:10 a=Vs1iUdzkB0EA:10 a=VwQbUJbxAAAA:8 a=COk6AnOGAAAA:8 a=1rs2XOWFaH1SNEFhMLQA:9 a=QEXdDO2ut3YA:10 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1093,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-03-24_07,2025-03-21_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 malwarescore=0 mlxlogscore=999 bulkscore=0 impostorscore=0 suspectscore=0 mlxscore=0 phishscore=0 adultscore=0 spamscore=0 clxscore=1011 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2502280000 definitions=main-2503240143 Add support for the PHYs and controllers used for USB on SM8750 SoCs. --- Changes in v3: - Split platform DTs into separate commits. - Fixed up M31 eUSB2 PHY driver with feedback received. - Reordered DT properties based on feedback. - Rewrote commit message for enabling EUSB driver. - Link to v2: https://lore.kernel.org/r/20250304-sm8750_usb_master-v2-0-a698a2e68e06@quicinc.com Changes in v2: - Added new QMP PHY register definitions for v8 based QMP phys. - Made changes to clean up some code in the M31 eUSB2 PHY driver based on feedback received. - Added bulk regulator operations in M31 eUSB2 PHY, to ensure that both the vdd and vdda12 regulators are properly voted for. - Removed external references to other dt bindings in M31 example for the DT bindings change. - Split DT patches between SoC and plaform changes, as well as the PHY subsystem Kconfig changes when introducing the M31 eUSB2 PHY. - Added orientation switch and port definitions in the DT changes.EDITME: describe what is new in this series revision. - Link to v1: https://lore.kernel.org/r/20250113-sm8750_usb_master-v1-0-09afe1dc2524@quicinc.com --- Melody Olvera (1): arm64: defconfig: Add M31 eUSB2 PHY config for SM8750 Wesley Cheng (9): dt-bindings: phy: qcom,sc8280xp-qmp-usb43dp-phy: Add SM8750 to QMP PHY dt-bindings: phy: Add the M31 based eUSB2 PHY bindings dt-bindings: usb: qcom,dwc3: Add SM8750 compatible phy: qcom: qmp-combo: Add new PHY sequences for SM8750 phy: qcom: Update description for QCOM based eUSB2 repeater phy: qcom: Add M31 based eUSB2 PHY driver arm64: dts: qcom: sm8750: Add USB support to SM8750 SoCs arm64: dts: qcom: sm8750: Add USB support for SM8750 MTP platform arm64: dts: qcom: sm8750: Add USB support for SM8750 QRD platform .../bindings/phy/qcom,m31-eusb2-phy.yaml | 79 ++++++ .../phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml | 2 + .../devicetree/bindings/usb/qcom,dwc3.yaml | 3 + arch/arm64/boot/dts/qcom/sm8750-mtp.dts | 24 ++ arch/arm64/boot/dts/qcom/sm8750-qrd.dts | 24 ++ arch/arm64/boot/dts/qcom/sm8750.dtsi | 166 ++++++++++++ arch/arm64/configs/defconfig | 1 + drivers/phy/qualcomm/Kconfig | 16 +- drivers/phy/qualcomm/Makefile | 1 + drivers/phy/qualcomm/phy-qcom-m31-eusb2.c | 297 +++++++++++++++++++++ drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 221 +++++++++++++++ drivers/phy/qualcomm/phy-qcom-qmp-pcs-usb-v8.h | 38 +++ drivers/phy/qualcomm/phy-qcom-qmp-pcs-v8.h | 32 +++ drivers/phy/qualcomm/phy-qcom-qmp-qserdes-com-v8.h | 64 +++++ .../phy/qualcomm/phy-qcom-qmp-qserdes-txrx-v8.h | 68 +++++ drivers/phy/qualcomm/phy-qcom-qmp.h | 5 + 16 files changed, 1038 insertions(+), 3 deletions(-) --- base-commit: 882a18c2c14fc79adb30fe57a9758283aa20efaa change-id: 20241223-sm8750_usb_master-f27aed7f6d40 Best regards,