Skip to content

Commit 033f47f

Browse files
konradybciorobclark
authored andcommitted
drm/msm/dsi: Add DSI configuration for SDM660
This also applies to sdm630/636 and their SDA counterparts. Signed-off-by: Konrad Dybcio <[email protected]> Signed-off-by: Rob Clark <[email protected]>
1 parent 75c1437 commit 033f47f

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,25 @@ static const struct msm_dsi_config msm8998_dsi_cfg = {
149149
.num_dsi = 2,
150150
};
151151

152+
static const char * const dsi_sdm660_bus_clk_names[] = {
153+
"iface", "bus", "core", "core_mmss",
154+
};
155+
156+
static const struct msm_dsi_config sdm660_dsi_cfg = {
157+
.io_offset = DSI_6G_REG_SHIFT,
158+
.reg_cfg = {
159+
.num = 2,
160+
.regs = {
161+
{"vdd", 73400, 32 }, /* 0.9 V */
162+
{"vdda", 12560, 4 }, /* 1.2 V */
163+
},
164+
},
165+
.bus_clk_names = dsi_sdm660_bus_clk_names,
166+
.num_bus_clks = ARRAY_SIZE(dsi_sdm660_bus_clk_names),
167+
.io_start = { 0xc994000, 0xc996000 },
168+
.num_dsi = 2,
169+
};
170+
152171
static const char * const dsi_sdm845_bus_clk_names[] = {
153172
"iface", "bus",
154173
};
@@ -240,6 +259,8 @@ static const struct msm_dsi_cfg_handler dsi_cfg_handlers[] = {
240259
&msm8996_dsi_cfg, &msm_dsi_6g_host_ops},
241260
{MSM_DSI_VER_MAJOR_6G, MSM_DSI_6G_VER_MINOR_V1_4_2,
242261
&msm8976_dsi_cfg, &msm_dsi_6g_host_ops},
262+
{MSM_DSI_VER_MAJOR_6G, MSM_DSI_6G_VER_MINOR_V2_1_0,
263+
&sdm660_dsi_cfg, &msm_dsi_6g_v2_host_ops},
243264
{MSM_DSI_VER_MAJOR_6G, MSM_DSI_6G_VER_MINOR_V2_2_0,
244265
&msm8998_dsi_cfg, &msm_dsi_6g_v2_host_ops},
245266
{MSM_DSI_VER_MAJOR_6G, MSM_DSI_6G_VER_MINOR_V2_2_1,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#define MSM_DSI_6G_VER_MINOR_V1_3_1 0x10030001
1919
#define MSM_DSI_6G_VER_MINOR_V1_4_1 0x10040001
2020
#define MSM_DSI_6G_VER_MINOR_V1_4_2 0x10040002
21+
#define MSM_DSI_6G_VER_MINOR_V2_1_0 0x20010000
2122
#define MSM_DSI_6G_VER_MINOR_V2_2_0 0x20000000
2223
#define MSM_DSI_6G_VER_MINOR_V2_2_1 0x20020001
2324
#define MSM_DSI_6G_VER_MINOR_V2_4_1 0x20040001

0 commit comments

Comments
 (0)