From mboxrd@z Thu Jan 1 00:00:00 1970 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 81DFD238142 for ; Wed, 1 Oct 2025 22:05:40 +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=1759356342; cv=none; b=IPgYIDHwTyQkWJXQhyR1HahlYPxRLY2U3MhNkhYLp7qllz6I+5zgW94MtE3UXY4K8MskZO0ctE7LoFEqQN6ocxQc1r72rk6vlc/xgsi8KFTS+UIyixqbzVPK8Mxcrm6pZcmkiK38chF3R0vGGt5NhVQ2JHbf+ib90S1KG7nkVrw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759356342; c=relaxed/simple; bh=9QggdL6fGbd2hr3ymExV7iFJbMfOs4Ept9ZR40FEjLc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=oYYPaBuYIGJJcVUlo+g0mif6mRnBC8loQbH4W8k9c7zDPk80nJgQkd9tgAqkbgQ5+x/hUBDWhxb5xOd3OE80Ae/EEMRrcND8NaFECdCRn+RxOb0+uyETg/yJoWxK191evnGLFQowVKxqk0LDNnkrouNbZqNVW6tCbaeso09o71Y= 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=Ha4LZ4Fo; arc=none smtp.client-ip=205.220.180.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="Ha4LZ4Fo" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 591Ibvbc032054 for ; Wed, 1 Oct 2025 22:05:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=qcppdkim1; bh=2E82fWMJs7/CltSb2bc3lU2woFhMHzKTAIE lMVu/z78=; b=Ha4LZ4Fo0k1WjYvzIlc8wzeiX+X4GqWVv0C6thmcID+Nq0QA75r pzWtGB7EkPKQenbLnSZHwxQRXQgwvR0ZgDu6FZjN1VEl7eAixHKkcd4P1j7neH2+ BQ4s+7cdmNjRIon8dEmmVeVzo483QDFTCMqdVQQrgtU6E+GEg3t1uDPnYLmV6KYI +gE/bZrSv6A+6s5+Y11K3d5Q3LQXGgK11GtB0FBSKx/s02/LSRxv/fvwdhMqsjaJ ADTSOYEeoljVutvh2PRzdKuDJzFerz0pGLPzD9HbXZGE7Z/rI2DSaNxOzVzzFj7Y A4Zg9tp2HqHjFOhwPjn/qd0miBklQ7FEecg== Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 49e6x5x45j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 01 Oct 2025 22:05:39 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-32eb864fe90so552031a91.3 for ; Wed, 01 Oct 2025 15:05:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759356338; x=1759961138; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2E82fWMJs7/CltSb2bc3lU2woFhMHzKTAIElMVu/z78=; b=cVmJ32tMesBhvnVLkhoka6rbIk2PkJ5+s4nCh9+F92DfqjtpXXacreA6rvFgJKA0IB 7aP9VBU+UbUc9GTQVpHwFBlu1mkz22NdSqTbA21OpUbUXB1xHQgmqsEWHnWXsNFiEokl EjtULj5B/Ni9gaCQZ2LnVEHec11nC+DnjI+JWRCCnGqNtc3f2AQtBMLvLNZLnZel7a/I RqtFnOO//ZE9AYAioagJsngX3D02IYBJra1LeVSGXDGUk2F7gvpzcd+IJbdOjT+DweOP WGrYdsztCswj+CdhEt8XgAd4sbOkMQPJpXIDxeyuV3x6FUZ9rdaagZlpmPBJXAT+VWVw 17yw== X-Forwarded-Encrypted: i=1; AJvYcCUJh9nYuepJXpDU9ysoXK6eyaIal7pSwkoz58PAilf2+TH0QxvYk/2TzLVkiA/OzRJdIGnYhqf6Jw0mu5I=@vger.kernel.org X-Gm-Message-State: AOJu0YxamWPTRFAVmvrfC35nvJU/iueT+J1CGI0g+G3Fx9HrsZB+Vu1j qTxtppfa5WsJnx2gBzn0xO636y8mbW2fg6HWTjHOkJk2SzqiVqwNCCdxdCdwp47B2fyaoQrtXb1 FnVovOFRNCJbiZFHdzkJepp8z6w2hx9wRIwFgrO/uiIXoZbpzILicp0EIm2zAYTGUr60= X-Gm-Gg: ASbGncuqG/bFJZj8Gzp+vKPGI1uSlARB+RwZv1jkkIGS1f9EKLgSUf6NBUky3Cm9hZP l6FZCTFSa1zoH0OTtVPVAVTLbYi6+08d53O46zQAsz8OQ8KWWxSu3FHhD4nQaw5svRa3T9PZA6k +i+Z6D6oyE7gVGzwP/k+KWdugOjzncB5ZWsc7HOocz5H4K78eeBgDo+06n86FfJv+3hMZJRVMSU 7N3kPn1ncKMtwLuohTiYIC0hRF+2mUgujh167iaL8avGVkXqYL8gLA55CT50u6MQPivpJ7XNfKB MYJaeL0PxmGW1/shIYeaeh+HL6PKT7lsqcBYE4Q/jtMzfxdacMO0GCCeNeZqD0Ua8XK0BaqEeYI dTXiBpW/Xn00svMEJbcHtbA== X-Received: by 2002:a17:90b:4a4f:b0:329:ed5b:ecd5 with SMTP id 98e67ed59e1d1-339a6f077fdmr5548830a91.19.1759356337586; Wed, 01 Oct 2025 15:05:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHpG0a+/1ddOhqZgj2PUQhFUXjO9C38MdvW9oBXkB4sjVIrrjyTq0zZe7rYuFj7BM7r6xga8w== X-Received: by 2002:a17:90b:4a4f:b0:329:ed5b:ecd5 with SMTP id 98e67ed59e1d1-339a6f077fdmr5548793a91.19.1759356337055; Wed, 01 Oct 2025 15:05:37 -0700 (PDT) Received: from hu-wcheng-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-339b4ea3c3dsm702085a91.5.2025.10.01.15.05.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Oct 2025 15:05:36 -0700 (PDT) From: Wesley Cheng To: krzk+dt@kernel.org, conor+dt@kernel.org, konrad.dybcio@oss.qualcomm.com, dmitry.baryshkov@oss.qualcomm.com, kishon@kernel.org, vkoul@kernel.org, gregkh@linuxfoundation.org, robh@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Wesley Cheng Subject: [PATCH v4 00/10] Introduce Glymur USB support Date: Wed, 1 Oct 2025 15:05:24 -0700 Message-Id: <20251001220534.3166401-1-wesley.cheng@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: 3MHSV9JtJEsXZSiXKHdIaUMlef1M_X3G X-Proofpoint-ORIG-GUID: 3MHSV9JtJEsXZSiXKHdIaUMlef1M_X3G X-Authority-Analysis: v=2.4 cv=ZtPg6t7G c=1 sm=1 tr=0 ts=68dda5b3 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=x6icFKpwvdMA:10 a=K6vXddHitPicjvNs8NYA:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwOTI3MDAxOCBTYWx0ZWRfX5lVmqTxwLxH8 x/npGXga7k6mR1SMm01CQPf5sxe1I60kWhRZmXuaZQnkX+12RRdKwNZ9AiAvgza85jg/vjHC7MG 2yVO3pRpTRYJ0B43xqPFiAZzRZnvclhfl+qOlFW5m/1L/Tg5MnKRpCRpRjnQRq+7vzIfe9cBm7a jUI0QsOp86IRGvTDzxgAWzlQXuENFN8U/n/TdBWN3KRxFt/Udw88wXFV5gJxZ3hxRsqV9CI7b9N qD/Tmpc0X0KbKmIFbUcnmvaxMHpl2xsCa1h5e1ECotjjGtLXEXe7PPwPO/2Eck8aoBNtQNm+4i4 ee6gp2aJEKoYUU1sHAAf/cxQ39zSLWRkRNGhmplxqugbRKfZrP3DfnQgqD/ihq/BBbWGyM7wZLS SJ/1OJyMOYzNw+IJUaDORsr7u74/Yg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-10-01_06,2025-09-29_04,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 spamscore=0 priorityscore=1501 malwarescore=0 bulkscore=0 suspectscore=0 clxscore=1015 lowpriorityscore=0 adultscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2509150000 definitions=main-2509270018 This series enables the PHY level changes that are required to support the type C based controllers and the multiport controller. The typeC ports utilize a usb43dp based QMP PHY for the SSUSB path, while using the M31 eUSB2 PHY for the HSUSB path. For the multiport controller, it will utilize two QMP UNI PHYs for the SSUSB path, and two M31 eUSB2 PHYs for the HSUSB path. ----- Changes in v4: - Updated DT bindings change for QMP combo PHY to have IF/THEN blocks to handle the newly added clkref, and fixed the commit message as well - Added a new header with v8 offsets for the PCS MISC register set, and refgen current load for the QMP combo PHY driver - RE-added the headers for the QMP combo PHY Changes in v3: - Fixed some incorrect patch ordering. - Alphabetized Glymur QMP settings for combo and UNI setting arrays Changes in v2: - Updated QMP combo PHY to properly handle the refgen-supply and to remove the primary core reference/tag - Updated QMP UNI PHY to properly handle the refgen-supply and added a separate IF/THEN block to handle the new clkref - Updated M31 eUSB2 to make clocks and clocks-name required for sm8750 and optional for Glymur - Fixed missing PCS MISC table - Added SMB2370 repeater changes Wesley Cheng (10): dt-bindings: phy: qcom,sc8280xp-qmp-usb43dp-phy: Add Glymur compatible dt-bindings: phy: qcom,qmp-usb: Add Glymur USB UNI PHY compatible dt-bindings: phy: qcom-m31-eusb2: Add Glymur compatible dt-bindings: usb: qcom,snps-dwc3: Add Glymur compatible dt-bindings: phy: qcom,snps-eusb2-repeater: Add SMB2370 compatible phy: qualcomm: Update the QMP clamp register for V6 phy: qualcomm: qmp-combo: Update QMP PHY with Glymur settings phy: qualcomm: qmp-usb: Add support for Glymur USB UNI PHY phy: qualcomm: m31-eusb2: Make clkref an optional resource phy: qualcomm: eusb2-repeater: Add SMB2370 eUSB2 repeater support .../bindings/phy/qcom,m31-eusb2-phy.yaml | 21 +- .../phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml | 35 + .../phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml | 76 ++- .../phy/qcom,snps-eusb2-repeater.yaml | 1 + .../bindings/usb/qcom,snps-dwc3.yaml | 26 + .../phy/qualcomm/phy-qcom-eusb2-repeater.c | 18 + drivers/phy/qualcomm/phy-qcom-m31-eusb2.c | 2 +- drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 350 +++++++++- .../phy/qualcomm/phy-qcom-qmp-pcs-aon-v6.h | 12 + .../phy/qualcomm/phy-qcom-qmp-pcs-aon-v8.h | 17 + .../phy/qualcomm/phy-qcom-qmp-pcs-misc-v5.h | 12 + .../phy/qualcomm/phy-qcom-qmp-pcs-misc-v8.h | 12 + .../qualcomm/phy-qcom-qmp-qserdes-lalb-v8.h | 639 ++++++++++++++++++ drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 163 +++++ .../phy/qualcomm/phy-qcom-qmp-usb43-pcs-v8.h | 33 + .../phy-qcom-qmp-usb43-qserdes-com-v8.h | 224 ++++++ drivers/phy/qualcomm/phy-qcom-qmp.h | 4 + 17 files changed, 1620 insertions(+), 25 deletions(-) create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-pcs-aon-v6.h create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-pcs-aon-v8.h create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-pcs-misc-v5.h create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-pcs-misc-v8.h create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-qserdes-lalb-v8.h create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-usb43-pcs-v8.h create mode 100644 drivers/phy/qualcomm/phy-qcom-qmp-usb43-qserdes-com-v8.h