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 SC8280XP eDP and DP PHYs

The Qualcomm SC8280XP platform has a number of eDP and DP PHY instances,
add support for these.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220810040745.3582985-6-bjorn.andersson@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Bjorn Andersson and committed by
Vinod Koul
3b7267de 2300d1cb

+74
+74
drivers/phy/qualcomm/phy-qcom-edp.c
··· 100 100 struct regulator_bulk_data supplies[2]; 101 101 }; 102 102 103 + static const u8 dp_swing_hbr_rbr[4][4] = { 104 + { 0x08, 0x0f, 0x16, 0x1f }, 105 + { 0x11, 0x1e, 0x1f, 0xff }, 106 + { 0x16, 0x1f, 0xff, 0xff }, 107 + { 0x1f, 0xff, 0xff, 0xff } 108 + }; 109 + 110 + static const u8 dp_pre_emp_hbr_rbr[4][4] = { 111 + { 0x00, 0x0d, 0x14, 0x1a }, 112 + { 0x00, 0x0e, 0x15, 0xff }, 113 + { 0x00, 0x0e, 0xff, 0xff }, 114 + { 0x03, 0xff, 0xff, 0xff } 115 + }; 116 + 117 + static const u8 dp_swing_hbr2_hbr3[4][4] = { 118 + { 0x02, 0x12, 0x16, 0x1a }, 119 + { 0x09, 0x19, 0x1f, 0xff }, 120 + { 0x10, 0x1f, 0xff, 0xff }, 121 + { 0x1f, 0xff, 0xff, 0xff } 122 + }; 123 + 124 + static const u8 dp_pre_emp_hbr2_hbr3[4][4] = { 125 + { 0x00, 0x0c, 0x15, 0x1b }, 126 + { 0x02, 0x0e, 0x16, 0xff }, 127 + { 0x02, 0x11, 0xff, 0xff }, 128 + { 0x04, 0xff, 0xff, 0xff } 129 + }; 130 + 131 + static const struct qcom_edp_cfg dp_phy_cfg = { 132 + .is_dp = true, 133 + .swing_hbr_rbr = &dp_swing_hbr_rbr, 134 + .swing_hbr3_hbr2 = &dp_swing_hbr2_hbr3, 135 + .pre_emphasis_hbr_rbr = &dp_pre_emp_hbr_rbr, 136 + .pre_emphasis_hbr3_hbr2 = &dp_pre_emp_hbr2_hbr3, 137 + }; 138 + 139 + static const u8 edp_swing_hbr_rbr[4][4] = { 140 + { 0x07, 0x0f, 0x16, 0x1f }, 141 + { 0x0d, 0x16, 0x1e, 0xff }, 142 + { 0x11, 0x1b, 0xff, 0xff }, 143 + { 0x16, 0xff, 0xff, 0xff } 144 + }; 145 + 146 + static const u8 edp_pre_emp_hbr_rbr[4][4] = { 147 + { 0x05, 0x12, 0x17, 0x1d }, 148 + { 0x05, 0x11, 0x18, 0xff }, 149 + { 0x06, 0x11, 0xff, 0xff }, 150 + { 0x00, 0xff, 0xff, 0xff } 151 + }; 152 + 153 + static const u8 edp_swing_hbr2_hbr3[4][4] = { 154 + { 0x0b, 0x11, 0x17, 0x1c }, 155 + { 0x10, 0x19, 0x1f, 0xff }, 156 + { 0x19, 0x1f, 0xff, 0xff }, 157 + { 0x1f, 0xff, 0xff, 0xff } 158 + }; 159 + 160 + static const u8 edp_pre_emp_hbr2_hbr3[4][4] = { 161 + { 0x08, 0x11, 0x17, 0x1b }, 162 + { 0x00, 0x0c, 0x13, 0xff }, 163 + { 0x05, 0x10, 0xff, 0xff }, 164 + { 0x00, 0xff, 0xff, 0xff } 165 + }; 166 + 167 + static const struct qcom_edp_cfg edp_phy_cfg = { 168 + .is_dp = false, 169 + .swing_hbr_rbr = &edp_swing_hbr_rbr, 170 + .swing_hbr3_hbr2 = &edp_swing_hbr2_hbr3, 171 + .pre_emphasis_hbr_rbr = &edp_pre_emp_hbr_rbr, 172 + .pre_emphasis_hbr3_hbr2 = &edp_pre_emp_hbr2_hbr3, 173 + }; 174 + 103 175 static int qcom_edp_phy_init(struct phy *phy) 104 176 { 105 177 struct qcom_edp *edp = phy_get_drvdata(phy); ··· 839 767 static const struct of_device_id qcom_edp_phy_match_table[] = { 840 768 { .compatible = "qcom,sc7280-edp-phy" }, 841 769 { .compatible = "qcom,sc8180x-edp-phy" }, 770 + { .compatible = "qcom,sc8280xp-dp-phy", .data = &dp_phy_cfg }, 771 + { .compatible = "qcom,sc8280xp-edp-phy", .data = &edp_phy_cfg }, 842 772 { } 843 773 }; 844 774 MODULE_DEVICE_TABLE(of, qcom_edp_phy_match_table);