From nobody Mon Feb 9 19:05:30 2026 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 EE5FD2FB973 for ; Sat, 1 Nov 2025 17:44:53 +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=1762019095; cv=none; b=eu0awz/51k6FYAg/MBz4QKDbM+NP9ZOu+B8IAuJ07ZQefKDIn4iPQ1obJ+oLAMUKBKT3MaDLsQPrRJyhOJwQXPyYQLwN5Wse+yg8gjdQ5LEVDCSfXCtqUTopqBDasbXvp+nAJKLnsign4y02iQ/rRBIRwloEHPoIMqb8vTIkbxw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762019095; c=relaxed/simple; bh=upFaUwDTtyNvkbghN9e9TjDsqtmURB0UDixiVg6mer0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tS3UeNOm+QoibGvftydBtF3zDP/3x+KOB7wuHW5MhcHOT070Ihqf3Om6mPTdgARpFU2CNReAdjHuU32f2DHDbSBzr0iM2pVfirSZpYToA06nPp9wwlS5wmIXLILAHsyy0o79gUeFhgdNcGkJ1F32SSQZpln0xNGvjsoFrLM5LEg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=B55Q9TT1; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=F+cUBMbB; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="B55Q9TT1"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="F+cUBMbB" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5A1BGIBR1316176 for ; Sat, 1 Nov 2025 17:44:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=flReortGwXK vgtxcfk4GLcTVcF36ZuZkgxdI+JXLWuM=; b=B55Q9TT1B/d/aZq+sau5oQHjEmc mZQbw0hDIJdUlp1s2UI3aXGV8SKAO2xGkHwZ45p/thaH+7nEbC/wtI7pWnD3nlaJ q2lhV/r83GTjcJIkaoivZyozAXf5uWLnnPOOMuMQySAdSLe1ZLgXoP0FqZ1XOyFD +HVCBA5pztFhrAuy2QR++opxiE0VTRxkT+kttllVCM7VejZ+3vuqXfgsqb00fen7 vcJA8HCPP8yT6YcLtBHUBR64xgFDQdQmDxt1gWi2yS3kSbTrMtdCAFQtW9BnOBwI SmF5X6GHZ0Hqls9/Ic1GJfoxpYHQUvXjw1ROO0MuHi20VEPY0SRnZVBpIEQ== Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4a5bcm0vke-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sat, 01 Nov 2025 17:44:52 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-33bbbb41a84so7087434a91.1 for ; Sat, 01 Nov 2025 10:44:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1762019092; x=1762623892; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=flReortGwXKvgtxcfk4GLcTVcF36ZuZkgxdI+JXLWuM=; b=F+cUBMbBQjQspzISp3m9ElLyH36aWU5YfsBfUXl1zhlM1/j4RL2pRoBZ2+/QPVIqkB VEX7xONO6i6OR8m88MmuRxpQKhpCj1KxdszwXpWvWRgYd87EjXaAM5q5Uu5hgEt5hK+h jy2NvdSdRrI3exMfPg/N7AHOZT6HJJP3+4jlmI7po9uIhi1n/Kcx1QIG3AgeyqnJ5vFp gWa4Ur1Akf/2V7eo4r3M0x0BxY+WgYxk+GEYzJW/5j+j2xcKxkrqHXVsG2lw9ZgULew8 m26uJHDuxTI4BN/F0wmBUcI/pgb/6ZnGiLXlYYyQw2AtWdK9PA1Y9DS+MwM4jSrnTquL jIrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762019092; x=1762623892; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=flReortGwXKvgtxcfk4GLcTVcF36ZuZkgxdI+JXLWuM=; b=J4t95QHgZGJHDgoug57ZijNih7HgqqJaKEaaDYMTdVyULKBre7q7olZvytsBVk5xyN Z0WYZN9AtjBLby1pQ4ch8Rp1ZFjUlNkqNTkvTV1R87LGakzc8XyjQW046lW4284Sbmte yQ9FCKZTP2FisccslfnE8lx7a8t69Wru1WftRD9RxbbJ9CHYl9bqGMDyLuTUY2y9gSRk +hz3vvjo+gKWH2xn0ZUL+HXkdBH9ewTkZZ1Ny9zcX3fuKCQPoDmWqItLA0Gm4my3lFuO Fy8sS6Jtsl0BVfvpqbnVFQs+Fx1YxMd1wfKWWgIqkrsodoyqavnNrZsRuVLeKJKwF0WM 5vgQ== X-Forwarded-Encrypted: i=1; AJvYcCU9D6hKqQXxhTo/fR/NdBUefN0/wWS1lPukH3NOtaeNQj6oZ04eejTzF6SQfyjemKi1RU2PFpcyI3d3YiE=@vger.kernel.org X-Gm-Message-State: AOJu0YyA8FOTpP1Iiiq52z06dyYtE5kpb3BRjLc0HLrW4+5HwCMQx3Qk mA//qgRX7ojVBoxJfMKD2q3/TP1do+XexT99j7QwiXCg5CtGXSgn9bNl1YSw/dK8SUNT5cz1Nnf lwA/CVNk3VvtAzsGJYB0Kef0ugSWMlGA2Wur/G0AIu6tLxeS5pmXEo/Ms0UB0SndyGOE= X-Gm-Gg: ASbGncu4syyju6dtJbZKDDOZ600B9hcKgnOqIfxifYluDzRSFrd0v6sU68loCXEunLy +84QN9/imDMeG4R8ikQ4pqHmKFX3uD8ExlERvTXyG5yQ9OvTFOM+FCDnNIhnTA3Nsmnk9kVZa01 NUJGJRgUtkXZgTSK75jZE8oPbt84o2HN7xL2Tw+1JRbGOvmlakX1MZ4hTYlGbCNWOei7wl0uc0z mBAJYSyXCfctwBuxvO9QrPB4d305DULerTZXy2mmJb5bjHQ+hzoXAxd463l1CxPjoIRcq9duwPn 4SJydX7yQd8wk/Rv1teF6zpjNUSSFUpFDaN8rCvvgMbQY+q2yybaG8KV0dzYgxHbF2eiWEve4Xl dRK3ZVphCxHbphmXbrN2ndh1rsKNqdpCxWyz8 X-Received: by 2002:a17:90b:5150:b0:340:48f2:5e2d with SMTP id 98e67ed59e1d1-34082fc655dmr9248074a91.9.1762019092254; Sat, 01 Nov 2025 10:44:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEGjibohnZjJwiNb8EoGk6Ar/ducwMbn9DCVAyX1PwnELamKYMlWEG/QuYOwOo1p/YwS812fA== X-Received: by 2002:a17:90b:5150:b0:340:48f2:5e2d with SMTP id 98e67ed59e1d1-34082fc655dmr9248045a91.9.1762019091689; Sat, 01 Nov 2025 10:44:51 -0700 (PDT) Received: from hu-kriskura-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3407f24ee93sm2793393a91.9.2025.11.01.10.44.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Nov 2025 10:44:51 -0700 (PDT) From: Krishna Kurapati To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Dmitry Baryshkov Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Wesley Cheng , Konrad Dybcio , Krishna Kurapati Subject: [PATCH v11 1/3] arm64: dts: qcom: sm8750: Add USB support to SM8750 SoCs Date: Sat, 1 Nov 2025 23:14:35 +0530 Message-Id: <20251101174437.1267998-2-krishna.kurapati@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251101174437.1267998-1-krishna.kurapati@oss.qualcomm.com> References: <20251101174437.1267998-1-krishna.kurapati@oss.qualcomm.com> 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-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMTAxMDE1MiBTYWx0ZWRfX8xoZVAIx0m4L xttyocNfRBfU84MzSz6s6lyqwELTNBshRU+YNaQ5eeK3iGpdhuFcheuIEwYxWlYbtA+0a7SyQ8r PvtfC/3AkHwBKNo/MEGfpg7IjL55H3GYx00tPvjYisCc8xCFKp/KDdbpMCD1j0tjHZicqCijulY PDWHPeqaTKFwX45wbjL22W1pNaNqBVgwkUWa3NrIYzfpdzQ5pC25VL8bYUbFo/fvFvu7olCeb7a pY9ImWsODllZgmQ5Z1fDEhA+FRRevsCA+XH6cl96AWb0CDrUdOAGzVpeiCmnOQ/WmA0wiAkE/aG K+tgwwnBn7dHhCaJrlRsUfRjembu5KAv+ssAXTxzvpTqPCXdixS4x6yub/Sn2C7XwIZBKudua34 2c4LH3yyLPvAaSJUGSqI+Zz7WcK83g== X-Authority-Analysis: v=2.4 cv=EszfbCcA c=1 sm=1 tr=0 ts=69064715 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=6UeiqGixMTsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=n1SQX4eW7R_9Zp26JX0A:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-GUID: KhEOZei51I-pKLptdIETSXQLkRIEBg5P X-Proofpoint-ORIG-GUID: KhEOZei51I-pKLptdIETSXQLkRIEBg5P X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.9,FMLib:17.12.100.49 definitions=2025-11-01_04,2025-10-29_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 priorityscore=1501 spamscore=0 phishscore=0 malwarescore=0 lowpriorityscore=0 suspectscore=0 clxscore=1015 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2511010152 Content-Type: text/plain; charset="utf-8" From: Wesley Cheng SM8750 chipset contains a single DWC3 USB3 controller (rev. 200a), SS QMP PHY (rev. v8) and M31 eUSB2 PHY. The major difference for SM8750 is the transition to using the M31 eUSB2 PHY compared to previous SoCs. Enable USB support on SM8750 MTP and QRD variants. SM8750 has a QMP combo PHY for the SSUSB path, and a M31 eUSB2 PHY for the HSUSB path. Signed-off-by: Wesley Cheng [Konrad: Provided diff to flattened USB node] Signed-off-by: Konrad Dybcio Signed-off-by: Krishna Kurapati --- arch/arm64/boot/dts/qcom/sm8750.dtsi | 161 ++++++++++++++++++++++++++- 1 file changed, 160 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8750.dtsi b/arch/arm64/boot/dts/qco= m/sm8750.dtsi index a82d9867c7cb..3f0b57f428bb 100644 --- a/arch/arm64/boot/dts/qcom/sm8750.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8750.dtsi @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -635,7 +636,7 @@ gcc: clock-controller@100000 { <0>, <0>, <0>, - <0>; + <&usb_dp_qmpphy QMP_USB43DP_USB3_PIPE_CLK>; =20 #clock-cells =3D <1>; #reset-cells =3D <1>; @@ -2581,6 +2582,164 @@ data-pins { }; }; =20 + usb_hsphy: phy@88e3000 { + compatible =3D "qcom,sm8750-m31-eusb2-phy"; + reg =3D <0x0 0x88e3000 0x0 0x29c>; + + clocks =3D <&tcsrcc TCSR_USB2_CLKREF_EN>; + clock-names =3D "ref"; + + resets =3D <&gcc GCC_QUSB2PHY_PRIM_BCR>; + + #phy-cells =3D <0>; + + status =3D "disabled"; + }; + + usb_dp_qmpphy: phy@88e8000 { + compatible =3D "qcom,sm8750-qmp-usb3-dp-phy"; + reg =3D <0x0 0x088e8000 0x0 0x4000>; + + clocks =3D <&gcc GCC_USB3_PRIM_PHY_AUX_CLK>, + <&tcsrcc TCSR_USB3_CLKREF_EN>, + <&gcc GCC_USB3_PRIM_PHY_COM_AUX_CLK>, + <&gcc GCC_USB3_PRIM_PHY_PIPE_CLK>; + clock-names =3D "aux", + "ref", + "com_aux", + "usb3_pipe"; + + resets =3D <&gcc GCC_USB3_PHY_PRIM_BCR>, + <&gcc GCC_USB3_DP_PHY_PRIM_BCR>; + reset-names =3D "phy", + "common"; + + power-domains =3D <&gcc GCC_USB3_PHY_GDSC>; + + #clock-cells =3D <1>; + #phy-cells =3D <1>; + + orientation-switch; + + status =3D "disabled"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + usb_dp_qmpphy_out: endpoint { + }; + }; + + port@1 { + reg =3D <1>; + + usb_dp_qmpphy_usb_ss_in: endpoint { + remote-endpoint =3D <&usb_dwc3_ss>; + }; + }; + + port@2 { + reg =3D <2>; + + usb_dp_qmpphy_dp_in: endpoint { + }; + }; + }; + }; + + usb: usb@a600000 { + compatible =3D "qcom,sm8750-dwc3", "qcom,snps-dwc3"; + reg =3D <0x0 0x0a600000 0x0 0xfc100>; + + clocks =3D <&gcc GCC_CFG_NOC_USB3_PRIM_AXI_CLK>, + <&gcc GCC_USB30_PRIM_MASTER_CLK>, + <&gcc GCC_AGGRE_USB3_PRIM_AXI_CLK>, + <&gcc GCC_USB30_PRIM_SLEEP_CLK>, + <&gcc GCC_USB30_PRIM_MOCK_UTMI_CLK>; + clock-names =3D "cfg_noc", + "core", + "iface", + "sleep", + "mock_utmi"; + + assigned-clocks =3D <&gcc GCC_USB30_PRIM_MOCK_UTMI_CLK>, + <&gcc GCC_USB30_PRIM_MASTER_CLK>; + assigned-clock-rates =3D <19200000>, + <200000000>; + + interrupts-extended =3D <&intc GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>, + <&intc GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>, + <&intc GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 14 IRQ_TYPE_EDGE_BOTH>, + <&pdc 15 IRQ_TYPE_EDGE_BOTH>, + <&pdc 17 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names =3D "dwc_usb3", + "pwr_event", + "hs_phy_irq", + "dp_hs_phy_irq", + "dm_hs_phy_irq", + "ss_phy_irq"; + + power-domains =3D <&gcc GCC_USB30_PRIM_GDSC>; + required-opps =3D <&rpmhpd_opp_nom>; + + resets =3D <&gcc GCC_USB30_PRIM_BCR>; + + interconnects =3D <&aggre1_noc MASTER_USB3_0 QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, + <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ACTIVE_ONLY + &config_noc SLAVE_USB3_0 QCOM_ICC_TAG_ACTIVE_ONLY>; + interconnect-names =3D "usb-ddr", "apps-usb"; + + iommus =3D <&apps_smmu 0x40 0x0>; + + phys =3D <&usb_hsphy>, + <&usb_dp_qmpphy QMP_USB43DP_USB3_PHY>; + phy-names =3D "usb2-phy", + "usb3-phy"; + + snps,hird-threshold =3D /bits/ 8 <0x0>; + snps,usb2-gadget-lpm-disable; + snps,dis_u2_susphy_quirk; + snps,dis_enblslpm_quirk; + snps,dis-u1-entry-quirk; + snps,dis-u2-entry-quirk; + snps,is-utmi-l1-suspend; + snps,usb3_lpm_capable; + snps,usb2-lpm-disable; + snps,has-lpm-erratum; + tx-fifo-resize; + + dma-coherent; + usb-role-switch; + + status =3D "disabled"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + usb_dwc3_hs: endpoint { + }; + }; + + port@1 { + reg =3D <1>; + + usb_dwc3_ss: endpoint { + remote-endpoint =3D <&usb_dp_qmpphy_usb_ss_in>; + }; + }; + }; + }; + pdc: interrupt-controller@b220000 { compatible =3D "qcom,sm8750-pdc", "qcom,pdc"; reg =3D <0x0 0x0b220000 0x0 0x10000>, <0x0 0x164400f0 0x0 0x64>; --=20 2.34.1