Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

phy: qcom: edp: Add support for eDP PHY on SA8775P

Add support for eDP PHY v5 found on the Qualcomm SA8775P platform.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Soutrik Mukhopadhyay <quic_mukhopad@quicinc.com>
Link: https://lore.kernel.org/r/20241004103046.22209-4-quic_mukhopad@quicinc.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Soutrik Mukhopadhyay and committed by
Vinod Koul
3f12bf16 91346358

+33
+33
drivers/phy/qualcomm/phy-qcom-edp.c
··· 183 183 0x00, 0x13, 0x24, 0x00, 0x0a, 0x26, 0x0a, 0x03, 0x37, 0x03 184 184 }; 185 185 186 + static const u8 edp_pre_emp_hbr_rbr_v5[4][4] = { 187 + { 0x05, 0x11, 0x17, 0x1d }, 188 + { 0x05, 0x11, 0x18, 0xff }, 189 + { 0x06, 0x11, 0xff, 0xff }, 190 + { 0x00, 0xff, 0xff, 0xff } 191 + }; 192 + 193 + static const u8 edp_pre_emp_hbr2_hbr3_v5[4][4] = { 194 + { 0x0c, 0x15, 0x19, 0x1e }, 195 + { 0x0b, 0x15, 0x19, 0xff }, 196 + { 0x0e, 0x14, 0xff, 0xff }, 197 + { 0x0d, 0xff, 0xff, 0xff } 198 + }; 199 + 200 + static const struct qcom_edp_swing_pre_emph_cfg edp_phy_swing_pre_emph_cfg_v5 = { 201 + .swing_hbr_rbr = &edp_swing_hbr_rbr, 202 + .swing_hbr3_hbr2 = &edp_swing_hbr2_hbr3, 203 + .pre_emphasis_hbr_rbr = &edp_pre_emp_hbr_rbr_v5, 204 + .pre_emphasis_hbr3_hbr2 = &edp_pre_emp_hbr2_hbr3_v5, 205 + }; 206 + 207 + static const u8 edp_phy_aux_cfg_v5[10] = { 208 + 0x00, 0x13, 0xa4, 0x00, 0x0a, 0x26, 0x0a, 0x03, 0x37, 0x03 209 + }; 210 + 186 211 static int qcom_edp_phy_init(struct phy *phy) 187 212 { 188 213 struct qcom_edp *edp = phy_get_drvdata(phy); ··· 530 505 .com_bias_en_clkbuflr = qcom_edp_com_bias_en_clkbuflr_v4, 531 506 .com_configure_pll = qcom_edp_com_configure_pll_v4, 532 507 .com_configure_ssc = qcom_edp_com_configure_ssc_v4, 508 + }; 509 + 510 + static const struct qcom_edp_phy_cfg sa8775p_dp_phy_cfg = { 511 + .is_edp = false, 512 + .aux_cfg = edp_phy_aux_cfg_v5, 513 + .swing_pre_emph_cfg = &edp_phy_swing_pre_emph_cfg_v5, 514 + .ver_ops = &qcom_edp_phy_ops_v4, 533 515 }; 534 516 535 517 static const struct qcom_edp_phy_cfg sc7280_dp_phy_cfg = { ··· 1133 1101 } 1134 1102 1135 1103 static const struct of_device_id qcom_edp_phy_match_table[] = { 1104 + { .compatible = "qcom,sa8775p-edp-phy", .data = &sa8775p_dp_phy_cfg, }, 1136 1105 { .compatible = "qcom,sc7280-edp-phy", .data = &sc7280_dp_phy_cfg, }, 1137 1106 { .compatible = "qcom,sc8180x-edp-phy", .data = &sc7280_dp_phy_cfg, }, 1138 1107 { .compatible = "qcom,sc8280xp-dp-phy", .data = &sc8280xp_dp_phy_cfg, },