From nobody Thu Dec 18 15:39:22 2025 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 1F26230147C for ; Tue, 9 Dec 2025 23:09:55 +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=1765321797; cv=none; b=b1rEaDY9HF7QdZDOYn6bAGiXyc0Du9CqKNIcAa2ScQ5wjz8jOqNa0fWr/oEN5iuAYQOkGa16Uqq25LBS/gNb/SymRvZd81Ll13WOMCZM6/qXz85WAKNQDXILJrRDVLg30ylalNF9j+CZNyBYWTM8gkcoax8Ymp2tiDVNS8UGkVw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765321797; c=relaxed/simple; bh=jDjMFmVfUDvw4337eIePkyn6RwxTmXHsTxuRAlWWnH4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=GeMAbDzmtx/9RYVO82UbgBn2PliWKkTY9H7mPYdHCbtfXwef794tTKuh6HDWcR5HQUFRWiiGZA865MMj77hzjxtXXUg1NL/dbGiTDLNJR2jhg8zV1hawToWZ6McvCoapsn55Ep4VyFplZWpaWguTwC8w0yUjLuvZ+EJgkrAwlIE= 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=Zgs9JabW; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=iu47dX33; 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="Zgs9JabW"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="iu47dX33" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 5B9Mm18E654823 for ; Tue, 9 Dec 2025 23:09:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 8Cvg3f2vcTWyvFoYptsB1kBkaF7U0YSfvjmuB16HFzM=; b=Zgs9JabWGzPUGoh5 JJDHz+qjrPoM87k1+R7iaHF0/t6Uw2HEvEzRE5QZT8K+aSE53FWMar6M0LbcoqYJ 9HlGyYP3cepQj53aRI/kH1W+sqn/5D9lwUAs0pxepE2vga5zp012+cpjmgesu0oI CVIPTJAxeaT9XmkzLBmpbejB7Mttzkcjk/NLhOAdpzggsVP+D9YZ+J9IRrfuRObI 0GUqTQMMe0YUxIpp77Ww15VANts4iAeAYQjzpqRF/OdS9z8IeL1AfDZ6r9TA2DIj B5ocNyrMg63VDFS8H8SAnQDiLPJWSCyanmm0rIKJsB/vguOJbiqb2M+nOwGHcNkI zwMtzg== Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4axjk528c9-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 09 Dec 2025 23:09:54 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3438b1220bcso6926612a91.2 for ; Tue, 09 Dec 2025 15:09:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1765321794; x=1765926594; 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=8Cvg3f2vcTWyvFoYptsB1kBkaF7U0YSfvjmuB16HFzM=; b=iu47dX33ZRWq3D8xbf0S7sbnwpX4CLy7i28c/5yaVzZhSJAuJjfkARyU4r/cIC+eVr JZG/A/jCpr8UGObbAbetSKmLKNKOH40MRs6xi+ADJkV8xBv6gKK0yko43byMzksHHXyI M03aFsY3HqXgOCb/GNOdy32I3Yi+gYQTGICnz0geHZU4I6yHn2fRYM4YtCek2dH1Bai7 uH4xnn737tpyB7n1F5aRdSCYmyfqnr2VojvZ6gqAB+1ybiVN6FIasnSDMX192FKCkQcy V49U4Ae5ftSu8Tk4zr3tcjSmT8CfiXWwXdGewQ9X76Nh13GWWhzIqzwbdKlE8ygA7H9l +awg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765321794; x=1765926594; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=8Cvg3f2vcTWyvFoYptsB1kBkaF7U0YSfvjmuB16HFzM=; b=qc2ela+dn95tmEccqMpfStcskaMKWhDkiHn0G4Qe/ra4TCRDb7IkJ3bKyncEEd2SWg rgqLsf9fuanHbNcFZu018EkihGcdcZxkn5yEKLRNYrlPItEXravtiRxTKafsVgZTzW6+ 0n5fudnEYWrEdTVrwt3ogZ/xV8x2hCKKRF38qkdNwolqmL45lMSXV+3zf4Sz+88PoZ/R tyvxUuWc3zE6ze26pEOuRpRqFEckSmkyvkBPpStXCj/XMh+a5n0+mpRItwS06mpg2IAV OfYd1ggdLAlOf8n9RqYR9pGcl4wlp6n6+GLeMx2X0j2PPzPjWJpgjdc992g3Bt/BIv3P w0oQ== X-Forwarded-Encrypted: i=1; AJvYcCWOoVGR/rtLsg+t3AnGfP7mkDDBaitHC3I57u/0P90cZaCMrfDse3I599svMLhM6mcHS4c0RRc6KxcRb4s=@vger.kernel.org X-Gm-Message-State: AOJu0Yz+sJwIlD3U/fuUNxRbiSBqjqHZdNKvhghLrkUxtID3ZAqn1ogF ri8D4xK1liWUXS0FqQq6L3cm0MYxwQqpGxtCivIWGVqApSm/pym/QWhgeL9Bztugl7NFdxxfF1I BeJc0hNxGGPHx3WpC7g6itkGIw6gmNWQxc00FwBJQKY2PHI4NjtU8KsKw3b3ObqoLq34= X-Gm-Gg: ASbGncuyhgi0Lqxe/aHDiyo4wfgJT3puS5MmEO2VQntSDCKJcYMOsGxCVsq/5jNhMAS as/Xovkn5/zxYM93Ti0D4H1X7b+/9+ipTjceX1cEkMHebqnApA99u6QyRnQMloSqTA/WpBNdB00 FcsrP9CsjJkRZVQ7fkyPjME4J9zO91pBLrgWneamwBZPflp0CYJrkPJB8HXqeTVYUWso2Ax5uKW ADWxz/zYcjYy0quMf+4H3xtLQ+sYth2ZJYPvtd31vD6ZVypPAqT91fQZcYW51OERuzckZNq2cyB mK6rnMzye3JARQu9E1pDPfdSqSEbrCVhW7MuR4MCWTWDU6+cwfFcAPvdc1+PpaSVZupVNKV5pxp 9gaJxw7+M+XOn1fjv0izpN+oDYCyQybGrpgFx0E9F7maaJp+1oJqvpPWT8FdiEw== X-Received: by 2002:a05:7022:ef09:b0:119:e56b:98a4 with SMTP id a92af1059eb24-11f2967c808mr302303c88.11.1765321793735; Tue, 09 Dec 2025 15:09:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGc7v/gbWC7PcKr4jn0Tlko7NMtddSvfb0J13m56Y9fdoDaOx0+9u/anG4Q7woTwoKHPaVAIQ== X-Received: by 2002:a05:7022:ef09:b0:119:e56b:98a4 with SMTP id a92af1059eb24-11f2967c808mr302269c88.11.1765321793142; Tue, 09 Dec 2025 15:09:53 -0800 (PST) Received: from hu-wcheng-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-11f283d4811sm3338933c88.11.2025.12.09.15.09.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Dec 2025 15:09:52 -0800 (PST) From: Wesley Cheng To: krzk+dt@kernel.org, abel.vesa@linaro.org, conor+dt@kernel.org, dmitry.baryshkov@oss.qualcomm.com, vkoul@kernel.org, robh@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Wesley Cheng Subject: [PATCH v8 5/9] phy: qualcomm: eusb2-repeater: Add SMB2370 eUSB2 repeater support Date: Tue, 9 Dec 2025 15:09:41 -0800 Message-Id: <20251209-linux-next-12825-v8-5-42133596bda0@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20251209-linux-next-12825-v8-0-42133596bda0@oss.qualcomm.com> References: <20251209-linux-next-12825-v8-0-42133596bda0@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: CdCZ0EyFZwCtBGvFAqXG0Tb-cH63Cc6a X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMjA5MDE4MSBTYWx0ZWRfX085N2hcGDhjh BaWY3vQVYuyaw7BlTBFqtwXouAoUR/MZLtUJnoheUWymYdsx9m7BR4X3EXCI64oQk7/vsz8Htuj u+Aq9BAUUt8E47hT6tF/Ej/3iAWhOVPpfUTPgLhtEJiDFj3DZpq+QTuip5nPvdmtP3i01xpLc/c dRVyM6t5KZppzUQU/1t8KW1uYqPlgovF5T0v3z7yGP3LWUxJPpGVgJ/hZ5+Or+XfGzBYsuRyg4N Y5wRyvsAkfVh/XdT47T/sTTTsO46+xY/GEl84S1kZMAXHderlFirIoF+1hj+LQfayvdfQj78UtH JaM6aNQYgkjGRH6LpPnGXbHSk+nLM9qVlFCf+dn5Uda5n4Xak/zUhnaxLvnV0n08AcUOx+TFFCd eJQSt0/5EY5Q6+/SvV4N/Ku460rnxg== X-Proofpoint-GUID: CdCZ0EyFZwCtBGvFAqXG0Tb-cH63Cc6a X-Authority-Analysis: v=2.4 cv=RqvI7SmK c=1 sm=1 tr=0 ts=6938ac42 cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=wP3pNCr1ah4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=EUspDBNiAAAA:8 a=Zq12RZiOzp0PcbRnEbUA:9 a=QEXdDO2ut3YA:10 a=uKXjsCUrEbL0IQVhDsJ9:22 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-12-09_05,2025-12-09_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 clxscore=1015 priorityscore=1501 malwarescore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 phishscore=0 impostorscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2510240001 definitions=main-2512090181 Introduce support for the SMB2370 based eUSB2 repeater. Configure the proper repeater tuning settings, as if this is not done correctly, it can lead to instability on the USB2 link, which leads to USB2 enumeration failures, or random disconnects. Reviewed-by: Dmitry Baryshkov Signed-off-by: Wesley Cheng --- drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c b/drivers/phy/q= ualcomm/phy-qcom-eusb2-repeater.c index 651a12b59bc8..441996480a67 100644 --- a/drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c +++ b/drivers/phy/qualcomm/phy-qcom-eusb2-repeater.c @@ -75,6 +75,13 @@ static const struct eusb2_repeater_init_tbl_reg smb2360_= init_tbl[] =3D { { EUSB2_TUNE_USB2_PREEM, 0x2 }, }; =20 +static const struct eusb2_repeater_init_tbl_reg smb2370_init_tbl[] =3D { + { EUSB2_TUNE_IUSB2, 0x4 }, + { EUSB2_TUNE_SQUELCH_U, 0x3 }, + { EUSB2_TUNE_USB2_SLEW, 0x7 }, + { EUSB2_TUNE_USB2_PREEM, 0x0 }, +}; + static const struct eusb2_repeater_cfg pm8550b_eusb2_cfg =3D { .init_tbl =3D pm8550b_init_tbl, .init_tbl_num =3D ARRAY_SIZE(pm8550b_init_tbl), @@ -97,6 +104,13 @@ static const struct eusb2_repeater_cfg smb2360_eusb2_cf= g =3D { .num_vregs =3D ARRAY_SIZE(pm8550b_vreg_l), }; =20 +static const struct eusb2_repeater_cfg smb2370_eusb2_cfg =3D { + .init_tbl =3D smb2370_init_tbl, + .init_tbl_num =3D ARRAY_SIZE(smb2370_init_tbl), + .vreg_list =3D pm8550b_vreg_l, + .num_vregs =3D ARRAY_SIZE(pm8550b_vreg_l), +}; + static int eusb2_repeater_init_vregs(struct eusb2_repeater *rptr) { int num =3D rptr->cfg->num_vregs; @@ -278,6 +292,10 @@ static const struct of_device_id eusb2_repeater_of_mat= ch_table[] =3D { .compatible =3D "qcom,smb2360-eusb2-repeater", .data =3D &smb2360_eusb2_cfg, }, + { + .compatible =3D "qcom,smb2370-eusb2-repeater", + .data =3D &smb2370_eusb2_cfg, + }, { }, }; MODULE_DEVICE_TABLE(of, eusb2_repeater_of_match_table); --=20 2.34.1