]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/msm/dp: Add DisplayPort controller for SA8775P
authorSoutrik Mukhopadhyay <quic_mukhopad@quicinc.com>
Fri, 18 Oct 2024 07:07:06 +0000 (12:37 +0530)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 21 Oct 2024 11:09:04 +0000 (14:09 +0300)
The Qualcomm SA8775P platform comes with 2 DisplayPort controllers
for each mdss, having different base offsets than the previous
SoCs. The support for all 4 DPTX have been added here, and
validation of only MDSS0 DPTX0 and DPTX1 have been conducted.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Soutrik Mukhopadhyay <quic_mukhopad@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/620320/
Link: https://lore.kernel.org/r/20241018070706.28980-6-quic_mukhopad@quicinc.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/dp/dp_display.c

index e1228fb093ee0151252505c44244d1a760509be4..c34362bc16ba14af76add6d922ba5776ecad21b1 100644 (file)
@@ -118,6 +118,14 @@ struct msm_dp_desc {
        bool wide_bus_supported;
 };
 
+static const struct msm_dp_desc sa8775p_dp_descs[] = {
+       { .io_start = 0x0af54000, .id = MSM_DP_CONTROLLER_0, .wide_bus_supported = true },
+       { .io_start = 0x0af5c000, .id = MSM_DP_CONTROLLER_1, .wide_bus_supported = true },
+       { .io_start = 0x22154000, .id = MSM_DP_CONTROLLER_2, .wide_bus_supported = true },
+       { .io_start = 0x2215c000, .id = MSM_DP_CONTROLLER_3, .wide_bus_supported = true },
+       {}
+};
+
 static const struct msm_dp_desc sc7180_dp_descs[] = {
        { .io_start = 0x0ae90000, .id = MSM_DP_CONTROLLER_0, .wide_bus_supported = true },
        {}
@@ -162,6 +170,7 @@ static const struct msm_dp_desc x1e80100_dp_descs[] = {
 };
 
 static const struct of_device_id dp_dt_match[] = {
+       { .compatible = "qcom,sa8775p-dp", .data = &sa8775p_dp_descs },
        { .compatible = "qcom,sc7180-dp", .data = &sc7180_dp_descs },
        { .compatible = "qcom,sc7280-dp", .data = &sc7280_dp_descs },
        { .compatible = "qcom,sc7280-edp", .data = &sc7280_dp_descs },