]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
phy: qcom: qmp-combo: get the USB3 & DisplayPort lanes mapping from DT
authorNeil Armstrong <neil.armstrong@linaro.org>
Wed, 19 Nov 2025 08:45:41 +0000 (09:45 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 20 Nov 2025 16:47:10 +0000 (22:17 +0530)
commitf842daf740114a8783be566219db34c6a0f1d02c
treee52e02998b8e5eb1b570c3e09f6993ee2762bd2a
parent3faa2d0e794093df21c96550829d67d7d38e24bb
phy: qcom: qmp-combo: get the USB3 & DisplayPort lanes mapping from DT

The QMP USB3/DP Combo PHY hosts an USB3 phy and a DP PHY on top
of a combo glue to route either lanes to the 4 shared physical lanes.

The routing of the lanes can be:
- 2 DP + 2 USB3
- 4 DP
- 2 USB3

Get the lanes mapping from DT and stop registering the USB-C
muxes in favor of a static mode and orientation detemined
by the lanes mapping.

This allows supporting boards with direct connection of USB3 and
DisplayPort lanes to the QMP Combo PHY lanes, not using the
USB-C Altmode feature.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Tested-by: Xilin Wu <sophon@radxa.com> # qcs6490-radxa-dragon-q6a
Reviewed-by: Abel Vesa <abel.vesa@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patch.msgid.link/20251119-topic-x1e80100-hdmi-v7-2-2bee0e66cc1b@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-combo.c