From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 AE9A64756C5; Thu, 20 Aug 2026 14:24:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787235861; cv=none; b=glvrvkBsankzEXkgkUPwnw86YrCXkHrnONhgrSlwYNccIEABZ4YMFZYsIDRIhAm9Jpaso/EzabV5mG0GE3YyEuJ58qzmhxd2c+CDkgqwKG4QIqCM3oqDA/so4mTOuYB6nB1cPhMKWKjh/Ennlg1wjkJBaoq6H6PdOhyO0bRSQHo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787235861; c=relaxed/simple; bh=dMH/mlRmTXXxKm2F9JmSmW0Q8hbi66FMbnIFCERmKEI=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=h8nq8EQN1WLluXVZt4jOa+2tDcP9yGQY/S5m1s2EsmvKjjatjLI0FcZRETfazEql1N1IJvQpbMqvCgVxTvhQz1d1VWyVCVtupu1Bh9FiZehaA/M13oOpCszSWAxi/++pKwY68DlnpFBjyqYNPwtAU7l9qhoqIctJVuJGA+oZom0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IOjDZbiG; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IOjDZbiG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 364291F000E9; Thu, 20 Aug 2026 14:24:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1787235860; bh=NAsW4/8L/l7bKLOr89lyxh8DJHkZw7d7pgVMpyH25ZM=; h=From:Subject:Date:To:Cc; b=IOjDZbiGtjJePz77cq6OWJyK3Jy3cUBptg++DohCW1K+SEEPQg9EDLdyErR8MNMM4 a3mbAakAXIfWdyxaJiCXWVkG3+g0yEjq6i8nIh5dyTNOIh1cyk6zDqRbceil1gNpOa w0LON4CzHrw85ykdrZ51MgpCrC9dTZbF7xB7t6txGFJj/kugcf40HB//pJY7sgpWkX KRCmUkr0bbBEn7QIhZnRCyGOywQv0Zgp7GhmjnMb0vwZkAxLVPbfZ8Fk0v9YrIe3yA 7styau0VLKmefOi4/V007gmpfeXiYmbZtpBHrlLh0pPUUHe103jTsap2gDAnUPxgvJ xMGa3c9tl0kig== From: Konrad Dybcio Subject: [PATCH v4 0/5] USB4 mode programming for QMMPHY on X1E Date: Thu, 20 Aug 2026 16:24:09 +0200 Message-Id: <20260820-topic-usb4phy-v4-0-aec9d2cb31f6@oss.qualcomm.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/3XNQQ6CMBAF0KuQrq1pC7XUlfcwLsp0kBqlSIFID He36EKjspnkJ3/ev5OArcNAtsmdtDi44HwdQ7ZKCFSmPiJ1NmYimNgwyXPa+cYB7UORNdVIUW+ 4KGVhGMtJ/GlaLN3t6e0Prxz64oTQzcjcqFzofDs+Bwc+95bsgVNGFbe5UJBpC2bnQ1hfe3MGf 7ms4yHzxCDeiBI/iIiItNpayTONoBaQ9ANJ2TeSRgSgZKVCo/NC/kGmaXoAzXpB4k0BAAA= X-Change-ID: 20260518-topic-usb4phy-e9612f5ba008 To: Vinod Koul , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Manivannan Sadhasivam Cc: linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, usb4-upstream@oss.qualcomm.com, Raghavendra Thoorpu , Mika Westerberg , Sven Peter , Konrad Dybcio , Krzysztof Kozlowski , Manivannan Sadhasivam , Dmitry Baryshkov , Abel Vesa X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1787235854; l=2921; i=konrad.dybcio@oss.qualcomm.com; s=20230215; h=from:subject:message-id; bh=dMH/mlRmTXXxKm2F9JmSmW0Q8hbi66FMbnIFCERmKEI=; b=RPmQRr+KEb/PyT8fMNf829EsU/5i3ooPYJMvzKQhnt7+4ahYxsl0WrW3/FGscGIzMGMmpcZlN zipVV/x+iGqDwsT1eOW6aI1qeFsTSgT0n5OSx7uNTi1aqsY8GIvr6Vh X-Developer-Key: i=konrad.dybcio@oss.qualcomm.com; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= The USB43DP QMP PHY, as the name suggests, supports USB4 in addition to DP/USB. This series provides the necessary plumbing to switch to that mode of operation on hamoa/purwa. This is achieved by exposing a third `struct phy *` for the USB4 sub- PHY, which will be toggled by the USB4 router driver, living within the Thunderbolt framework, which will be posted separately. Find more details in the individual commit messages. Tested on a X1E80100 CRD. No external dependencies. Signed-off-by: Konrad Dybcio --- Changes in v4: - Rebase on next-20260820 - Rename phy-tbt.h to phy-thunderbolt.h - Add missing error unrolling in usb4 phy_init() - Rename usb4phy_init_count to usb4_init_count - Refactor the submode acceptance logic in usb4 phy_set_mode() - Pick up tags - Link to v3: https://patch.msgid.link/20260730-topic-usb4phy-v3-0-ccf0f7ea98b5@oss.qualcomm.com Changes in v3: - Fix up assisted-by tag - Pick up tags - Link to v2: https://patch.msgid.link/20260728-topic-usb4phy-v2-0-5d9dd5149ec7@oss.qualcomm.com Changes in v2: - Massage the bindings to only allow the p2rr2p clock on Hamoa - Pick up tags - Rebase (nop) - Link to v1: https://patch.msgid.link/20260518-topic-usb4phy-v1-0-71d827c49dca@oss.qualcomm.com To: Vinod Koul To: Neil Armstrong To: Rob Herring To: Krzysztof Kozlowski To: Conor Dooley To: Bjorn Andersson To: Konrad Dybcio To: Manivannan Sadhasivam Cc: linux-arm-msm@vger.kernel.org Cc: linux-phy@lists.infradead.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- Konrad Dybcio (5): dt-bindings: phy: qcom,qmp-usb3-dp: Extend X1E description for USB4 phy: core: Define TBT phy_mode phy: qualcomm: qmp-combo: Add preliminary USB4 support phy: qualcomm: qmp-combo: Add USB4/TBT3 configuration data for Hamoa arm64: dts: qcom: hamoa: Extend QMPPHY description for USB4 .../phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml | 55 +- arch/arm64/boot/dts/qcom/hamoa.dtsi | 18 +- drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 599 ++++++++++++++++++--- drivers/phy/qualcomm/phy-qcom-qmp-pcs-aon-v6.h | 2 + drivers/phy/qualcomm/phy-qcom-qmp-pcs-usb-v6.h | 15 + .../phy/qualcomm/phy-qcom-qmp-qserdes-txrx-v6_n4.h | 45 ++ include/dt-bindings/phy/phy-qcom-qmp.h | 1 + include/linux/phy/phy-thunderbolt.h | 14 + include/linux/phy/phy.h | 2 + 9 files changed, 658 insertions(+), 93 deletions(-) --- base-commit: 7079a12d7506b07fb53b54a664bfad5fa9b16d70 change-id: 20260518-topic-usb4phy-e9612f5ba008 Best regards, -- Konrad Dybcio