From patchwork Tue Mar 4 21:56:35 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Melody Olvera X-Patchwork-Id: 14001454 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DDB73C021B8 for ; Tue, 4 Mar 2025 21:59:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References:Message-ID :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=03tNA7YQPJjHUXqbaERKS1CyXL3zsF1xeaEJJdPhVK0=; b=auVNF2YxDLTeaS SWJaa1yWF79cqCnlP+YT6HfK7OhQcvVHS+ty6We2NqmUY5Z5COXt7JT2V1X3iGiUNQ6fUen89f58q B7CZl/ogjZLxRcLSOqQxgZ4FOxgFMST/VwR9ZKwotKh340n424H4UgMRihWFY2/ZIytTXNMGWP0eF iDJMkj0g37PrhS0tXQCK9D3XHeoMIrHJh8AOZD8PAgWktctLAOvKrPlis8kkqH1MYjbGh70H4/34T 7jrZSw1PhGkoHRbO5gkFDOYYisVgtXPSZLQgro/5VIPg8l8VGoUYwHYg0neoXfaocnMcMRoxZWmDl vA7xc1GjOQsKVrcz5gng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tpaIW-00000006LyN-2fRq; Tue, 04 Mar 2025 21:59:32 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tpaGx-00000006Lij-1uQ4; Tue, 04 Mar 2025 21:57:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=CC:To:In-Reply-To:References: Message-ID:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=hXdAardGDz3XFb3U4N6anI2GWE2EDt1DYGk6cXxlHrE=; b=bb61Hmol/OIKW+fr+AZk0Qd2VQ KmZcN0OUiwa6YmxR4pohJYj9PE2KW22qDecZDXYqGNsJk6H2YiKwy+Xihew1YUTZzCXOHO1zOkC8N xqMXayQUVttuYRyl+5WJf/+7E5qcD5xCExbXC2QRZuC2TJMIvHsKuNwT3uB9ZKg+2TQPdfrAPdzZt VpW5AXG4K2J51qPt1q0343pKAdCMMtt2S5nu28ZBLxlPPQQwnlIlyXL2fBx+cTM10JYcnL63+CiQB ph7kEStTKULGsTLrNHGc30aW/Dgsdhi/2ZOd0CduB0WikdO8KEZIyzlH8+/OtcWtujQk+/mflzyPt dYSFitOA==; Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tpaGt-00000000F5L-0OLR; Tue, 04 Mar 2025 21:57:53 +0000 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 524LhCMu020930; Tue, 4 Mar 2025 21:57:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= hXdAardGDz3XFb3U4N6anI2GWE2EDt1DYGk6cXxlHrE=; b=PgldMx4ILT4UDAne hxjzAxE+/S9Oa4lyEH8p1cm2oXE2cTtmhvlaIry5uFAxhiJcCBo+hTLLEwi8XG3K njCzFHLjHiZhZHIi4nYG8oa2hQodjjwyrrUVDv9bWZfyVUjP0FV6EdnHKVgvXQF1 z8vf0zgXgxF6XuW1YfWKizKTPGx/yk3ExF+Goaq3Jl6KU8Xv9M7A8iuGT69IXSPj +Itz2O81Qy70YOncBdqkaYC7jlnEiCK5BjNtO6XfHNyHbuympQEVaZ+76RpiZyoC HcHPqvw1gqWFRmr79iCiTQulOmUfZtNQiC+mxXUqNv3aLB6nw+Ax7XGLbjxyLVQH E1Wprw== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 455p6tu9w1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Mar 2025 21:57:38 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 524Lvbe0014483 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 4 Mar 2025 21:57:37 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; Tue, 4 Mar 2025 13:57:36 -0800 From: Melody Olvera Date: Tue, 4 Mar 2025 13:56:35 -0800 Subject: [PATCH v2 2/9] dt-bindings: phy: Add the M31 based eUSB2 PHY bindings MIME-Version: 1.0 Message-ID: <20250304-sm8750_usb_master-v2-2-a698a2e68e06@quicinc.com> References: <20250304-sm8750_usb_master-v2-0-a698a2e68e06@quicinc.com> In-Reply-To: <20250304-sm8750_usb_master-v2-0-a698a2e68e06@quicinc.com> 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: , , , , , , "Melody Olvera" X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1741125455; l=2352; i=quic_molvera@quicinc.com; s=20241204; h=from:subject:message-id; bh=u66M4qJHWBGFa0wVpF4UrlgUdTghLkcN3djvQBDbzTM=; b=kTUewKr1a9JsgAoqrvPLQ3n/zPCkQrOwc4z8uH7YGklZGojRRT3O27992L43rWu1O2yFpCkTE ivYP2HmRmixAJGP5lFo/PbBHCmH6OJaB0Yf9zRQ08SUwtNsdf3O/Yr0 X-Developer-Key: i=quic_molvera@quicinc.com; a=ed25519; pk=1DGLp3zVYsHAWipMaNZZTHR321e8xK52C9vuAoeca5c= X-Originating-IP: [10.49.16.6] 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: M4FNMzBDQYAJiWOOHHViFx7fqwrpjybS X-Proofpoint-ORIG-GUID: M4FNMzBDQYAJiWOOHHViFx7fqwrpjybS X-Authority-Analysis: v=2.4 cv=Sf4NduRu c=1 sm=1 tr=0 ts=67c77752 cx=c_pps a=JYp8KDb2vCoCEuGobkYCKw==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=3H110R4YSZwA:10 a=IkcTkHD0fZMA:10 a=Vs1iUdzkB0EA:10 a=gEfo2CItAAAA:8 a=COk6AnOGAAAA:8 a=RqZiT-ge_ZFqhh0bxEMA:9 a=QEXdDO2ut3YA:10 a=sptkURWiP4Gy88Gu7hUp:22 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-04_09,2025-03-04_02,2024-11-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 phishscore=0 suspectscore=0 clxscore=1011 malwarescore=0 bulkscore=0 mlxlogscore=999 mlxscore=0 adultscore=0 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.19.0-2502100000 definitions=main-2503040175 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250304_215751_950587_20455FEA X-CRM114-Status: GOOD ( 15.27 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org From: Wesley Cheng On SM8750, the M31 eUSB2 PHY is being used to support USB2. Add the binding definition for the PHY driver. Signed-off-by: Wesley Cheng Signed-off-by: Melody Olvera Reviewed-by: Krzysztof Kozlowski --- .../bindings/phy/qcom,m31-eusb2-phy.yaml | 79 ++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/qcom,m31-eusb2-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,m31-eusb2-phy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c1b2b7c898f44949769e6027b47dd13812a1bf5a --- /dev/null +++ b/Documentation/devicetree/bindings/phy/qcom,m31-eusb2-phy.yaml @@ -0,0 +1,79 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/qcom,m31-eusb2-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm M31 eUSB2 phy + +maintainers: + - Wesley Cheng + +description: + M31 based eUSB2 controller, which supports LS/FS/HS usb connectivity + on Qualcomm chipsets. It is paired with a eUSB2 repeater. + +properties: + compatible: + items: + - enum: + - qcom,sm8750-m31-eusb2-phy + + reg: + maxItems: 1 + + "#phy-cells": + const: 0 + + clocks: + items: + - description: reference clock + + clock-names: + items: + - const: ref + + resets: + maxItems: 1 + + phys: + maxItems: 1 + description: + Phandle to eUSB2 repeater + + vdd-supply: + description: + Phandle to 0.88V regulator supply to PHY digital circuit. + + vdda12-supply: + description: + Phandle to 1.2V regulator supply to PHY refclk pll block. + +required: + - compatible + - reg + - "#phy-cells" + - clocks + - clock-names + - vdd-supply + - vdda12-supply + - resets + +additionalProperties: false + +examples: + - | + usb_1_hsphy: phy@88e3000 { + compatible = "qcom,sm8750-m31-eusb2-phy"; + reg = <0x88e3000 0x29c>; + + clocks = <&tcsrcc_usb2_clkref_en>; + clock-names = "ref"; + + resets = <&gcc_qusb2phy_prim_bcr>; + + #phy-cells = <0>; + + vdd-supply = <&vreg_l2d_0p88>; + vdda12-supply = <&vreg_l3g_1p2>; + };