drm/msm/dsi: add DSI support for SA8775P
authorAyushi Makhija <quic_amakhija@quicinc.com>
Thu, 1 May 2025 22:44:35 +0000 (01:44 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Fri, 2 May 2025 00:54:03 +0000 (03:54 +0300)
Add DSI Controller v2.5.1 support for SA8775P SoC.

Signed-off-by: Ayushi Makhija <quic_amakhija@quicinc.com>
Reviewed-by: Dmitry Baryshkov <lumag@kernel.org>
Patchwork: https://patchwork.freedesktop.org/patch/651433/
Link: https://lore.kernel.org/r/20250424062431.2040692-6-quic_amakhija@quicinc.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
drivers/gpu/drm/msm/dsi/dsi_cfg.c
drivers/gpu/drm/msm/dsi/dsi_cfg.h

index 7754dcec33d06e3d6eb8a9d55e53f24af073adb9..7675558ae2e5293ff2f239e8b19154f2a5c86957 100644 (file)
@@ -221,6 +221,22 @@ static const struct msm_dsi_config sc7280_dsi_cfg = {
        },
 };
 
+static const struct regulator_bulk_data sa8775p_dsi_regulators[] = {
+       { .supply = "vdda", .init_load_uA = 8300 },    /* 1.2 V */
+       { .supply = "refgen" },
+};
+
+static const struct msm_dsi_config sa8775p_dsi_cfg = {
+       .io_offset = DSI_6G_REG_SHIFT,
+       .regulator_data = sa8775p_dsi_regulators,
+       .num_regulators = ARRAY_SIZE(sa8775p_dsi_regulators),
+       .bus_clk_names = dsi_v2_4_clk_names,
+       .num_bus_clks = ARRAY_SIZE(dsi_v2_4_clk_names),
+       .io_start = {
+               { 0xae94000, 0xae96000 },
+       },
+};
+
 static const struct msm_dsi_host_cfg_ops msm_dsi_v2_host_ops = {
        .link_clk_set_rate = dsi_link_clk_set_rate_v2,
        .link_clk_enable = dsi_link_clk_enable_v2,
@@ -294,6 +310,8 @@ static const struct msm_dsi_cfg_handler dsi_cfg_handlers[] = {
                &sdm845_dsi_cfg, &msm_dsi_6g_v2_host_ops},
        {MSM_DSI_VER_MAJOR_6G, MSM_DSI_6G_VER_MINOR_V2_5_0,
                &sc7280_dsi_cfg, &msm_dsi_6g_v2_host_ops},
+       {MSM_DSI_VER_MAJOR_6G, MSM_DSI_6G_VER_MINOR_V2_5_1,
+               &sa8775p_dsi_cfg, &msm_dsi_6g_v2_host_ops},
        {MSM_DSI_VER_MAJOR_6G, MSM_DSI_6G_VER_MINOR_V2_6_0,
                &sdm845_dsi_cfg, &msm_dsi_6g_v2_host_ops},
        {MSM_DSI_VER_MAJOR_6G, MSM_DSI_6G_VER_MINOR_V2_7_0,
index 120cb65164c1ba1deb9acb513e5f073bd560c496..65b0705fac0eeb1b7d7b001576215b8578c67e25 100644 (file)
@@ -27,6 +27,7 @@
 #define MSM_DSI_6G_VER_MINOR_V2_4_0    0x20040000
 #define MSM_DSI_6G_VER_MINOR_V2_4_1    0x20040001
 #define MSM_DSI_6G_VER_MINOR_V2_5_0    0x20050000
+#define MSM_DSI_6G_VER_MINOR_V2_5_1    0x20050001
 #define MSM_DSI_6G_VER_MINOR_V2_6_0    0x20060000
 #define MSM_DSI_6G_VER_MINOR_V2_7_0    0x20070000
 #define MSM_DSI_6G_VER_MINOR_V2_8_0    0x20080000