]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
phy: qcom: edp: Add eDP/DP mode switch support
authorYongxing Mou <yongxing.mou@oss.qualcomm.com>
Mon, 27 Apr 2026 06:35:20 +0000 (14:35 +0800)
committerVinod Koul <vkoul@kernel.org>
Sun, 3 May 2026 17:04:47 +0000 (22:34 +0530)
commit3011c365a329cf2db6d55e8d684550dc88350436
tree86c157e95af0b481908ea7a691d107dda828fba8
parentfd672888cccd6b855154efe0ac78e7ce3e8ab088
phy: qcom: edp: Add eDP/DP mode switch support

The eDP PHY supports both eDP/DP modes, each requiring a different
swing/pre-emphasis table. However, the driver currently uses a fixed
static table for eDP programming rather than selecting the appropriate
table based on the current mode. Add separate tables for eDP and DP
modes, and select the appropriate table dynamically based on the
current mode.

Glymur's DP mode table differs from the other platforms, add a
dedicated table for it.

This also fixes the table mismatch for X1E80100 (eDP) and SA8775P (DP).

Cc: stable@vger.kernel.org
Fixes: 3f12bf16213c ("phy: qcom: edp: Add support for eDP PHY on SA8775P")
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com>
Link: https://patch.msgid.link/20260427-edp_phy-v5-2-3bb876824475@oss.qualcomm.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-edp.c