Register the QCS615 DP PHY via device tree by adding its compatible string and associating it with the full DP PHY configuration.
With this change, the DP PHY driver for QCS615 is fully integrated: - All required ops and flow are implemented - Platform-specific configuration and init data are in place - Compatible handling is aligned with USB3.0 PHY via type-based dispatch - Supports coexistence with USB3.0 PHY through mutual exclusion based on shared TCSR region This enables end-to-end support for DP PHY mode on QCS615 platforms. Signed-off-by: Xiangxu Yin <xiangxu....@oss.qualcomm.com> --- drivers/phy/qualcomm/phy-qcom-qmp-usbc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-usbc.c b/drivers/phy/qualcomm/phy-qcom-qmp-usbc.c index e97a206a10554b2d157d1fadd66d66386eec6c40..35fecf78736f7a6b9c3af6a89c71fd3ad9a87496 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-usbc.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-usbc.c @@ -699,6 +699,11 @@ static const struct qmp_phy_cfg sdm660_phy_usb3_cfg = { .cfg = &sdm660_usb3phy_cfg, }; +static const struct qmp_phy_cfg qcs615_phy_dp_cfg = { + .type = QMP_PHY_USBC_DP, + .cfg = &qcs615_dpphy_cfg, +}; + #define to_usb_cfg(x) ((struct qmp_phy_usb_cfg *)((x)->cfg)) #define to_dp_cfg(x) ((struct qmp_phy_dp_cfg *)((x)->cfg)) #define to_usb_layout(x) ((struct qmp_phy_usb_layout *)((x)->layout)) @@ -2204,6 +2209,9 @@ static const struct of_device_id qmp_usbc_of_match_table[] = { }, { .compatible = "qcom,qcm2290-qmp-usb3-phy", .data = &qcm2290_phy_usb3_cfg, + }, { + .compatible = "qcom,qcs615-qmp-dp-phy", + .data = &qcs615_phy_dp_cfg, }, { .compatible = "qcom,qcs615-qmp-usb3-phy", .data = &qcm2290_phy_usb3_cfg, -- 2.34.1