From patchwork Tue Mar 4 21:56:41 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Melody Olvera X-Patchwork-Id: 14001495 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 B7899C021B8 for ; Tue, 4 Mar 2025 22:09:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References :Message-ID:Content-Transfer-Encoding:Content-Type: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=umeEudK/6VGxykrpPvMHRY8oqXqIe6afoLBxvqHhDlA=; b=4RT52S2h9NguN7L3wk4RWOISs9 wDlI53iP8C5dY9vxrKFfr2iqmciSXt6Fo2QxmhEL72EnNJuKQtmX1zW95NAN5MfZtttscQzDvZOi2 YlXYc3js6G00vJ2inrRx3vU7Rv8343nBKKaWQ4fTkbnUL6Ipo9l4qLnHxhfzGaBSenRAFbwk9qLBD bFkIiPOXt5I7ho45L0iE9OgWWj2iTZ6oOqPQ1F0AoAZ2ZGAczUm0D+BoNTwd/W+mIQT6hbqMTzXUK WMHV99IlHIigJ2tno76HMucctXNjYd8ZBpgvNVJaAMH8Wn+BoiUFvVx3yagP4K6v2UUjF/NvKbGI8 iJLcfY+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tpaRr-00000006NJ0-0JKz; Tue, 04 Mar 2025 22:09:11 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tpaGz-00000006LjU-2wtM; Tue, 04 Mar 2025 21:57:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=umeEudK/6VGxykrpPvMHRY8oqXqIe6afoLBxvqHhDlA=; b=rOeu6Si0K0FA85GgZjJ/xj3v84 PqNqGomCJNdaBHrkDUdPcJ/MsHhkvtvUtLnS3V+hCvsk2e70/L+WwFvZXnbtERHbzRhyyrJ/Yw1Cw sZdc0aekbeKm03KsOnFuYGbg8Zz7FImNNQbGi7s2T/jAea7s5aVqQoqjvCgfhDZW6d5XuxcujgUSw MVk9uZTpcPRjZzwCqSC5QLGyHtJ7G+MzH+pJELOEk5fgetUahQl6mjYiJpDkKXdtb4JBGbSIGfunZ +vtn6jb3J0RAEaOnUhYCwNTYIMfjGNbYMrauaybpkc1+dwdQKo7qMTysgpN/fuac4z++ax4cGjC0e MDxbwf6w==; Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by casper.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tpaGu-00000004AmI-2XXe; Tue, 04 Mar 2025 21:57:56 +0000 Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 524L6WrR006445; Tue, 4 Mar 2025 21:57:41 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= umeEudK/6VGxykrpPvMHRY8oqXqIe6afoLBxvqHhDlA=; b=j7SMZ6TAvX53MYhe +SBB8G9ep2RYFITKpRC2yJWoXhJe2YYxEF6fSEq0Uhuiu38Hgbrs7avpJa5ZDzNO PMcpe84V1a/fVP3Hk3Qb/UJ6QgRTR8G0DMP827Sqd5zNdAnro6P78K+Lq3u1Tkbu JVcrpBEJZmjuZfLxDgkIcOKyNk29epH+gBXLJPw/B9XRB2eBmGpB7uVZYvmE7vm7 mf05yTmXP9d+O9aORk//CUOKIh91dSs5txTvAPsxQc8O2a7xM7bUbreZ0Axg9em8 NLPSCJYCLnMILdmKFLFbYlYtAAdAwBAhoV8KEkBjUmaD4bbTFRf33jKgdL6dUuHu V+8qQA== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 455p933a58-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Mar 2025 21:57:41 +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 524LvfGm032281 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 4 Mar 2025 21:57:41 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:40 -0800 From: Melody Olvera Date: Tue, 4 Mar 2025 13:56:41 -0800 Subject: [PATCH v2 8/9] arm64: dts: qcom: sm8750: Add USB support for SM8750 MTP and QRD platforms MIME-Version: 1.0 Message-ID: <20250304-sm8750_usb_master-v2-8-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=1970; i=quic_molvera@quicinc.com; s=20241204; h=from:subject:message-id; bh=w0jV4f5wOL5IOLGE4+M+4MQiMNGK9MqIV1e8z9dtuyI=; b=/bsmpvfDySi75zaLXRyKEh2w1LIUZlJtSHP1nkA+mIsXroivYxXlqXFgaQi+KNYw1hwU5kJe2 iWoKYR373MJDjTgKfChFTBNECyXPXMU3rdY2HYAOY/TRVGuGdEr3HWB 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-Authority-Analysis: v=2.4 cv=Me2Wu4/f c=1 sm=1 tr=0 ts=67c77755 cx=c_pps a=JYp8KDb2vCoCEuGobkYCKw==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=3H110R4YSZwA:10 a=IkcTkHD0fZMA:10 a=Vs1iUdzkB0EA:10 a=COk6AnOGAAAA:8 a=EoOMd-xwxZjzz6zYUw0A:9 a=QEXdDO2ut3YA:10 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-GUID: 5rlOYhViSDCJeuX2W7_zPkTK2i9_Z9EM X-Proofpoint-ORIG-GUID: 5rlOYhViSDCJeuX2W7_zPkTK2i9_Z9EM 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 bulkscore=0 clxscore=1015 suspectscore=0 mlxscore=0 malwarescore=0 phishscore=0 spamscore=0 adultscore=0 lowpriorityscore=0 mlxlogscore=732 priorityscore=1501 impostorscore=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_215753_003063_E5687610 X-CRM114-Status: GOOD ( 12.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Wesley Cheng Enable USB support on SM8750 MTP and QRD variants. The current definition will start the USB controller in peripheral mode by default until dependencies are added, such as USB role detection. Signed-off-by: Wesley Cheng Signed-off-by: Melody Olvera Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8750-mtp.dts | 24 ++++++++++++++++++++++++ arch/arm64/boot/dts/qcom/sm8750-qrd.dts | 24 ++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8750-mtp.dts b/arch/arm64/boot/dts/qcom/sm8750-mtp.dts index 9e3aacad7bdab6848e86f8e45e04907e1c752a07..059eccbbc3fb05fc8806e36d35dc469d44443a26 100644 --- a/arch/arm64/boot/dts/qcom/sm8750-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8750-mtp.dts @@ -792,3 +792,27 @@ &tlmm { &uart7 { status = "okay"; }; + +&usb_1 { + status = "okay"; +}; + +&usb_1_dwc3 { + dr_mode = "peripheral"; +}; + +&usb_1_hsphy { + vdd-supply = <&vreg_l2d_0p88>; + vdda12-supply = <&vreg_l3g_1p2>; + + phys = <&pmih0108_eusb2_repeater>; + + status = "okay"; +}; + +&usb_dp_qmpphy { + vdda-phy-supply = <&vreg_l3g_1p2>; + vdda-pll-supply = <&vreg_l2d_0p88>; + + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/qcom/sm8750-qrd.dts b/arch/arm64/boot/dts/qcom/sm8750-qrd.dts index f77efab0aef9bab751a947173bcdcc27df7295a8..01c0af643626917614fbd68cf8962ef947ca6548 100644 --- a/arch/arm64/boot/dts/qcom/sm8750-qrd.dts +++ b/arch/arm64/boot/dts/qcom/sm8750-qrd.dts @@ -790,3 +790,27 @@ &tlmm { &uart7 { status = "okay"; }; + +&usb_1 { + status = "okay"; +}; + +&usb_1_dwc3 { + dr_mode = "peripheral"; +}; + +&usb_1_hsphy { + vdd-supply = <&vreg_l2d_0p88>; + vdda12-supply = <&vreg_l3g_1p2>; + + phys = <&pmih0108_eusb2_repeater>; + + status = "okay"; +}; + +&usb_dp_qmpphy { + vdda-phy-supply = <&vreg_l3g_1p2>; + vdda-pll-supply = <&vreg_l2d_0p88>; + + status = "okay"; +};