]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/msm/dp: Add DisplayPort controller for SM8350
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 28 Dec 2021 04:59:34 +0000 (20:59 -0800)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 18 Feb 2022 15:32:57 +0000 (18:32 +0300)
The Qualcomm SM8350 platform comes with a single DisplayPort controller,
add support for this in the DisplayPort driver.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20211228045934.1524865-1-bjorn.andersson@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Documentation/devicetree/bindings/display/msm/dp-controller.yaml
drivers/gpu/drm/msm/dp/dp_display.c

index 5457612ab1363297926392b116ef288ede0431c6..cd05cfd7653622a352d71e215df75864039e42df 100644 (file)
@@ -21,6 +21,7 @@ properties:
       - qcom,sc7280-edp
       - qcom,sc8180x-dp
       - qcom,sc8180x-edp
+      - qcom,sm8350-dp
 
   reg:
     items:
index cab026d27f42418a0567b8a6f213bfcfee7763fb..5ae81d2f2862de02509ceea4a47fdc24a9f62acb 100644 (file)
@@ -152,12 +152,20 @@ static const struct msm_dp_config sc8180x_dp_cfg = {
        .num_descs = 3,
 };
 
+static const struct msm_dp_config sm8350_dp_cfg = {
+       .descs = (const struct msm_dp_desc[]) {
+               [MSM_DP_CONTROLLER_0] = { .io_start = 0x0ae90000, .connector_type = DRM_MODE_CONNECTOR_DisplayPort },
+       },
+       .num_descs = 1,
+};
+
 static const struct of_device_id dp_dt_match[] = {
        { .compatible = "qcom,sc7180-dp", .data = &sc7180_dp_cfg },
        { .compatible = "qcom,sc7280-dp", .data = &sc7280_dp_cfg },
        { .compatible = "qcom,sc7280-edp", .data = &sc7280_dp_cfg },
        { .compatible = "qcom,sc8180x-dp", .data = &sc8180x_dp_cfg },
        { .compatible = "qcom,sc8180x-edp", .data = &sc8180x_dp_cfg },
+       { .compatible = "qcom,sm8350-dp", .data = &sm8350_dp_cfg },
        {}
 };