drm/msm/dp: Add support for the X1E80100
authorAbel Vesa <abel.vesa@linaro.org>
Sun, 24 Mar 2024 18:56:52 +0000 (20:56 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Mon, 8 Apr 2024 15:38:40 +0000 (18:38 +0300)
Add the X1E80100 DP descs and compatible. This platform will be using
a single compatible for both eDP and DP mode. The actual mode will
be set based on the presence of the panel node in DT.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Reviewed-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/584536/
Link: https://lore.kernel.org/r/20240324-x1e80100-display-refactor-connector-v4-2-e0ebaea66a78@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/dp/dp_display.c

index 539bbd27b9d0c2395739ee4284453866d247b7e4..a6bc723df57635e4ab2cc18d8cff6b757d4c4569 100644 (file)
@@ -171,6 +171,14 @@ static const struct msm_dp_desc sm8650_dp_descs[] = {
        {}
 };
 
+static const struct msm_dp_desc x1e80100_dp_descs[] = {
+       { .io_start = 0x0ae90000, .id = MSM_DP_CONTROLLER_0, .wide_bus_supported = true },
+       { .io_start = 0x0ae98000, .id = MSM_DP_CONTROLLER_1, .wide_bus_supported = true },
+       { .io_start = 0x0ae9a000, .id = MSM_DP_CONTROLLER_2, .wide_bus_supported = true },
+       { .io_start = 0x0aea0000, .id = MSM_DP_CONTROLLER_3, .wide_bus_supported = true },
+       {}
+};
+
 static const struct of_device_id dp_dt_match[] = {
        { .compatible = "qcom,sc7180-dp", .data = &sc7180_dp_descs },
        { .compatible = "qcom,sc7280-dp", .data = &sc7280_dp_descs },
@@ -182,6 +190,7 @@ static const struct of_device_id dp_dt_match[] = {
        { .compatible = "qcom,sdm845-dp", .data = &sc7180_dp_descs },
        { .compatible = "qcom,sm8350-dp", .data = &sm8350_dp_descs },
        { .compatible = "qcom,sm8650-dp", .data = &sm8650_dp_descs },
+       { .compatible = "qcom,x1e80100-dp", .data = &x1e80100_dp_descs },
        {}
 };