[PATCH v8 00/12] Add DisplayPort support for QCS615 platform

Xiangxu Yin via B4 Relay posted 12 patches 1 month, 3 weeks ago
.../bindings/phy/qcom,qcs615-qmp-usb3dp-phy.yaml   |  111 ++
drivers/phy/qualcomm/phy-qcom-qmp-dp-phy-v2.h      |   21 +
drivers/phy/qualcomm/phy-qcom-qmp-qserdes-com-v2.h |  106 ++
.../phy/qualcomm/phy-qcom-qmp-qserdes-txrx-v2.h    |   68 ++
drivers/phy/qualcomm/phy-qcom-qmp-usbc.c           | 1071 ++++++++++++++++++--
drivers/phy/qualcomm/phy-qcom-qmp.h                |    3 +
6 files changed, 1289 insertions(+), 91 deletions(-)
[PATCH v8 00/12] Add DisplayPort support for QCS615 platform
Posted by Xiangxu Yin via B4 Relay 1 month, 3 weeks ago
This series aims to extend the USB-C PHY to support DP mode and enable
DisplayPort on the Qualcomm QCS615 platform.

The devicetree modification for DisplayPort on QCS615 will be provided
in a future patch.

Signed-off-by: Xiangxu Yin <xiangxu.yin@oss.qualcomm.com>
---
Changes in v8:
- Fix `--strict` nits: indent alignment in v7[04/14]; extra blank line in v7[06/14]
- Link to v7: https://lore.kernel.org/r/20250926-add-displayport-support-for-qcs615-platform-v7-0-dc5edaac6c2b@oss.qualcomm.com

Changes in v7:
- Fix QSERDES_V2_TX_LANE_MODE_1 configuration from COM init table to configure_dp_tx().
- Link to v6: https://lore.kernel.org/r/20250925-add-displayport-support-for-qcs615-platform-v6-0-419fe5963819@oss.qualcomm.com

Changes in v6:
- Move usb3dpphy_reset_l definition to the patch adding compatible and related config data. [Dmitry]
- Add NOTE about SW_PORTSELECT/orientation handling. [Dmitry]
- Use C99-style loop variable declaration in msm_dp_link_lane_map. [Rob]
- Update commit msg with issue description for [05/14, 06/14, 07/14,12/14].
- Link to v5: https://lore.kernel.org/r/20250919-add-displayport-support-for-qcs615-platform-v5-0-eae6681f4002@oss.qualcomm.com

Changes in v5:
- Add new patch to introduce QSERDES v2 COM/TXRX register headers.
- Restore legacy reset & clock register logic. [Dmitry]
- Update phy_xlate() to return ERR_PTR(-ENODEV) when dp_phy is NULL. [Dmitry]
- Rename helper from qmp_check_mutex_phy() to qmp_usbc_check_phy_status(). [Dmitry]
- Drop storing struct device *dev in dp_link as it is only used once. [Dmitry]
- Add robust lane mapping: default 1:1, complete partial configs. [Dmitry]
- Reorganize sub-patches v5[07/14, 08/14, 11/14, 12/14] as suggested.
- Link to v4: https://lore.kernel.org/all/20250911-add-displayport-support-for-qcs615-platform-v4-0-2702bdda14ed@oss.qualcomm.com/

Changes in v4:
- Drop patch v3[01/14 & 13/14], will sutbmit new patchsets based mst dt binding series.
- Update maintainer of qcom,qcs615-qmp-usb3dp-phy.yaml to myself.
- Add missing aux and pipe clocks. [Dmitry]
- Drop second TCSR phandle; register offsets are described directly. [Dmitry]
- Add USBC PHY series related init_load_uA configs. [Dmitry]
- Drop v3[04/14] qmp_phy_usbc_type define and use dp_serdes offsets to confirm DP capability [Dmitry]
- Reorganize sub-patches as suggested.
- Link to v3: https://lore.kernel.org/all/20250820-add-displayport-support-for-qcs615-platform-v3-0-a43bd25ec39c@oss.qualcomm.com/

Changes in v3:
- Renamed qcom,qcs615-qmp-dp-phy.yaml in v2 to qcom,qcs615-qmp-dp-phy.yaml in v3 for QCS615 USB3+DP PHY.
- Updated patch v3[02/14] to revise binding title, description, and property order. [Krzysztof]
- Updated commit messages in patch v3[01/14] and [13/14] to reflect the DTSI rename and clarify compatibility. [Krzysztof]
- Added USB3+DP mode implementation in patches v3 [003–012], organized in logical chunks. [Dmitry]
- Dropped patch v2[03/13] to maintain full backward compatibility with USBC.
- Link to v2: https://lore.kernel.org/all/20250722-add-displayport-support-for-qcs615-platform-v2-0-42b4037171f8@oss.qualcomm.com/

Changes in v2:
- Add new binding qcom,qcs615-qmp-dp-phy.yaml for QCS615 standalone DP
- Split DP PHY driver into patches 4-11 by logical chunks [Dmitry]
- Update DP PHY configuration flow to align with QMP Combo PHY implementation [Dmitry]
- Update all hex values to lowercase [Dmitry]
- Remove redundant comments in DP PHY driver [Krzysztof]
- Remove invalid USBC type define [Dmitry]
- Move lane_map, max_dp_lanes, max_dp_link_rate parsing logic to dp_link [Dmitry]
- Add TCSR-based mutex logic for DP and USB PHY coexistence [Dmitry]
- Drop patches 6–8 and remove related binding properties as rejected upstream
- Link to v1: https://lore.kernel.org/all/20241129-add-displayport-support-for-qcs615-platform-v1-0-09a4338d93ef@quicinc.com/

---
Xiangxu Yin (12):
      dt-bindings: phy: Add QMP USB3+DP PHY for QCS615
      phy: qcom: qmp-usbc: Rename USB-specific ops to prepare for DP support
      phy: qcom: qmp-usbc: Add DP-related fields for USB/DP switchable PHY
      phy: qcom: qmp-usbc: Add regulator init_load support
      phy: qcom: qmp-usbc: Move reset config into PHY cfg
      phy: qcom: qmp-usbc: add DP link and vco_div clocks for DP PHY
      phy: qcom: qmp-usbc: Move USB-only init to usb_power_on
      phy: qcom: qmp-usbc: Add TCSR parsing and PHY mode setting
      phy: qcom: qmp-usbc: Add DP PHY ops for USB/DP switchable Type-C PHYs
      phy: qcom: qmp-usbc: Add USB/DP exclude handling
      phy: qcom: qmp: Add DP v2 PHY register definitions
      phy: qcom: qmp-usbc: Add QCS615 USB/DP PHY config and DP mode support

 .../bindings/phy/qcom,qcs615-qmp-usb3dp-phy.yaml   |  111 ++
 drivers/phy/qualcomm/phy-qcom-qmp-dp-phy-v2.h      |   21 +
 drivers/phy/qualcomm/phy-qcom-qmp-qserdes-com-v2.h |  106 ++
 .../phy/qualcomm/phy-qcom-qmp-qserdes-txrx-v2.h    |   68 ++
 drivers/phy/qualcomm/phy-qcom-qmp-usbc.c           | 1071 ++++++++++++++++++--
 drivers/phy/qualcomm/phy-qcom-qmp.h                |    3 +
 6 files changed, 1289 insertions(+), 91 deletions(-)
---
base-commit: 4a5663c04bb679631985a15efab774da58c37815
change-id: 20250919-add-displayport-support-for-qcs615-platform-f885597b3573

Best regards,
-- 
Xiangxu Yin <xiangxu.yin@oss.qualcomm.com>


Re: [PATCH v8 00/12] Add DisplayPort support for QCS615 platform
Posted by Vinod Koul 1 month, 2 weeks ago
On Mon, 15 Dec 2025 20:41:56 +0800, Xiangxu Yin wrote:
> This series aims to extend the USB-C PHY to support DP mode and enable
> DisplayPort on the Qualcomm QCS615 platform.
> 
> The devicetree modification for DisplayPort on QCS615 will be provided
> in a future patch.
> 
> 
> [...]

Applied, thanks!

[01/12] dt-bindings: phy: Add QMP USB3+DP PHY for QCS615
        commit: 70f12a4cc6a04869b2185be999e3849a6c17439f
[02/12] phy: qcom: qmp-usbc: Rename USB-specific ops to prepare for DP support
        commit: 9f5f6083b3bd74c7d25737241e32821adb294e14
[03/12] phy: qcom: qmp-usbc: Add DP-related fields for USB/DP switchable PHY
        commit: 0599a4b9ee13b10820fa71f058bef8cc6f06b0b6
[04/12] phy: qcom: qmp-usbc: Add regulator init_load support
        commit: 3b19374825676e0b548b808772f5ecbe8af4f9da
[05/12] phy: qcom: qmp-usbc: Move reset config into PHY cfg
        commit: 5b2dd08459ad1f61dc7037032a5230c0efd9d797
[06/12] phy: qcom: qmp-usbc: add DP link and vco_div clocks for DP PHY
        commit: 049e708e7705534a9992b24c5090d133c8efbca6
[07/12] phy: qcom: qmp-usbc: Move USB-only init to usb_power_on
        commit: cb2255822509c9dcdd1fad0cd167032dee7dc6c1
[08/12] phy: qcom: qmp-usbc: Add TCSR parsing and PHY mode setting
        commit: 9ab26cb7e652f3cdfb3d59fb42907c0229f2a93f
[09/12] phy: qcom: qmp-usbc: Add DP PHY ops for USB/DP switchable Type-C PHYs
        commit: f3198fde573be23de1a8196bc5ebb0abe9c7e02f
[10/12] phy: qcom: qmp-usbc: Add USB/DP exclude handling
        commit: 8e7670f7465d46bfa72980b310d39491a3a944d6
[11/12] phy: qcom: qmp: Add DP v2 PHY register definitions
        commit: c1282d5f85857d72cf947add3f14240fd82da261
[12/12] phy: qcom: qmp-usbc: Add QCS615 USB/DP PHY config and DP mode support
        commit: 81791c45c8e0eaeba9a40927eecd082a8500f709

Best regards,
-- 
~Vinod