Skip to content

Commit 65c391b

Browse files
Rajeev Nandanrobclark
authored andcommitted
drm/msm/dsi: Add DSI support for SC7280
Add support for v2.5.0 DSI block in the SC7280 SoC. Signed-off-by: Rajeev Nandan <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Stephen Boyd <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Rob Clark <[email protected]>
1 parent 6af9279 commit 65c391b

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

drivers/gpu/drm/msm/dsi/dsi_cfg.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,24 @@ static const struct msm_dsi_config sc7180_dsi_cfg = {
196196
.num_dsi = 1,
197197
};
198198

199+
static const char * const dsi_sc7280_bus_clk_names[] = {
200+
"iface", "bus",
201+
};
202+
203+
static const struct msm_dsi_config sc7280_dsi_cfg = {
204+
.io_offset = DSI_6G_REG_SHIFT,
205+
.reg_cfg = {
206+
.num = 1,
207+
.regs = {
208+
{"vdda", 8350, 0 }, /* 1.2 V */
209+
},
210+
},
211+
.bus_clk_names = dsi_sc7280_bus_clk_names,
212+
.num_bus_clks = ARRAY_SIZE(dsi_sc7280_bus_clk_names),
213+
.io_start = { 0xae94000 },
214+
.num_dsi = 1,
215+
};
216+
199217
static const struct msm_dsi_host_cfg_ops msm_dsi_v2_host_ops = {
200218
.link_clk_set_rate = dsi_link_clk_set_rate_v2,
201219
.link_clk_enable = dsi_link_clk_enable_v2,
@@ -263,6 +281,8 @@ static const struct msm_dsi_cfg_handler dsi_cfg_handlers[] = {
263281
&sdm845_dsi_cfg, &msm_dsi_6g_v2_host_ops},
264282
{MSM_DSI_VER_MAJOR_6G, MSM_DSI_6G_VER_MINOR_V2_4_1,
265283
&sc7180_dsi_cfg, &msm_dsi_6g_v2_host_ops},
284+
{MSM_DSI_VER_MAJOR_6G, MSM_DSI_6G_VER_MINOR_V2_5_0,
285+
&sc7280_dsi_cfg, &msm_dsi_6g_v2_host_ops},
266286
};
267287

268288
const struct msm_dsi_cfg_handler *msm_dsi_cfg_get(u32 major, u32 minor)

drivers/gpu/drm/msm/dsi/dsi_cfg.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#define MSM_DSI_6G_VER_MINOR_V2_3_0 0x20030000
2525
#define MSM_DSI_6G_VER_MINOR_V2_4_0 0x20040000
2626
#define MSM_DSI_6G_VER_MINOR_V2_4_1 0x20040001
27+
#define MSM_DSI_6G_VER_MINOR_V2_5_0 0x20050000
2728

2829
#define MSM_DSI_V2_VER_MINOR_8064 0x0
2930

0 commit comments

Comments
 (0)