|
|
Log in / Subscribe / Register

phy: qcom: edp: Add DP/eDP switch for phys

From:  Yongxing Mou <yongxing.mou-AT-oss.qualcomm.com>
To:  Vinod Koul <vkoul-AT-kernel.org>, Neil Armstrong <neil.armstrong-AT-linaro.org>, Stephen Boyd <swboyd-AT-chromium.org>, Bjorn Andersson <andersson-AT-kernel.org>
Subject:  [PATCH v5 0/5] phy: qcom: edp: Add DP/eDP switch for phys
Date:  Mon, 27 Apr 2026 14:35:18 +0800
Message-ID:  <20260427-edp_phy-v5-0-3bb876824475@oss.qualcomm.com>
Cc:  linux-arm-msm-AT-vger.kernel.org, linux-phy-AT-lists.infradead.org, linux-kernel-AT-vger.kernel.org, Yongxing Mou <yongxing.mou-AT-oss.qualcomm.com>, stable-AT-vger.kernel.org, Konrad Dybcio <konrad.dybcio-AT-oss.qualcomm.com>, Dmitry Baryshkov <dmitry.baryshkov-AT-oss.qualcomm.com>
Archive-link:  Article

Currently the PHY selects the DP/eDP configuration tables in a fixed way,
choosing the table when enable. This driver has known issues:
1. The selected table does not match the actual platform mode.
2. It cannot support both modes at the same time.

As discussed here[1], this series:
1. Cleans up duplicated and incorrect tables based on the HPG.
2. Fixes the LDO programming error in eDP mode.
3. Adds DP/eDP mode switching support.

Note: x1e80100/sa8775p/sc7280/SC8280XP have been tested, while
glymur/sc8180x have not been tested.

[1] https://lore.kernel.org/all/20260119-klm_dpphy-v2-1-52252...

Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com>
---
Changes in v5:
- Correct the incorrect swing/pre-emphasis table used on SC8180x.[Konard][Dmitry]
- Fix the commit message and add the missing Fixes tag.[Dmitry]
- Reuse the HBR3 table for the RBR case on SC8180x.[Konard]
- Link to v4: https://lore.kernel.org/r/20260422-edp_phy-v4-0-c38bef2d0...

Changes in v4:
- Splite changes.[Dmitry]
- Add sc8180x tables in a single chagne.[Dmitry][Konrad]
- Link to v3: https://lore.kernel.org/r/20260302-edp_phy-v3-0-ca8888d79...

Changes in v3:
- Rebase to next-20260224.[Dmitry]
- Only enable TX1 LDO when lane counts > 2.[Konrad]
- Link to v2: https://lore.kernel.org/all/20260213-edp_phy-v2-0-43c4097...

Changes in v2:
- Combine the third patch with the first one.[Dmitry]
- Fix code formatting issues.[Konrad][Dmitry]
- Update the commit message description.[Dmitry][Konrad]
- Fix kodiak swing/pre_emp table values.[Konrad]

---
Yongxing Mou (5):
      phy: qcom: edp: Unify generic DP/eDP swing and pre-emphasis tables
      phy: qcom: edp: Add eDP/DP mode switch support
      phy: qcom: edp: Add SC7280/SC8180X swing/pre-emphasis tables
      phy: qcom: edp: Fix AUX_CFG8 programming for DP mode
      phy: qcom: edp: Add PHY-specific LDO config for eDP low vdiff

 drivers/phy/qualcomm/phy-qcom-edp.c | 224 +++++++++++++++++++++++++++++-------
 1 file changed, 181 insertions(+), 43 deletions(-)
---
base-commit: bee6ea30c48788e18348309f891ed8afbf7702ac
change-id: 20260205-edp_phy-1eca3ed074c0

Best regards,
-- 
Yongxing Mou <yongxing.mou@oss.qualcomm.com>




Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds