Skip to content

Commit fec254c

Browse files
superna9999lumag
authored andcommitted
drm/msm: dsi: add support for DSI 2.8.0
Add DSI Controller version 2.8.0 support for the SM8650 platform. Reviewed-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Neil Armstrong <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/564977/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 3a73e37 commit fec254c

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,21 @@ static const struct msm_dsi_config sm8550_dsi_cfg = {
190190
},
191191
};
192192

193+
static const struct regulator_bulk_data sm8650_dsi_regulators[] = {
194+
{ .supply = "vdda", .init_load_uA = 16600 }, /* 1.2 V */
195+
};
196+
197+
static const struct msm_dsi_config sm8650_dsi_cfg = {
198+
.io_offset = DSI_6G_REG_SHIFT,
199+
.regulator_data = sm8650_dsi_regulators,
200+
.num_regulators = ARRAY_SIZE(sm8650_dsi_regulators),
201+
.bus_clk_names = dsi_v2_4_clk_names,
202+
.num_bus_clks = ARRAY_SIZE(dsi_v2_4_clk_names),
203+
.io_start = {
204+
{ 0xae94000, 0xae96000 },
205+
},
206+
};
207+
193208
static const struct regulator_bulk_data sc7280_dsi_regulators[] = {
194209
{ .supply = "vdda", .init_load_uA = 8350 }, /* 1.2 V */
195210
{ .supply = "refgen" },
@@ -281,6 +296,8 @@ static const struct msm_dsi_cfg_handler dsi_cfg_handlers[] = {
281296
&sdm845_dsi_cfg, &msm_dsi_6g_v2_host_ops},
282297
{MSM_DSI_VER_MAJOR_6G, MSM_DSI_6G_VER_MINOR_V2_7_0,
283298
&sm8550_dsi_cfg, &msm_dsi_6g_v2_host_ops},
299+
{MSM_DSI_VER_MAJOR_6G, MSM_DSI_6G_VER_MINOR_V2_8_0,
300+
&sm8650_dsi_cfg, &msm_dsi_6g_v2_host_ops},
284301
};
285302

286303
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
@@ -28,6 +28,7 @@
2828
#define MSM_DSI_6G_VER_MINOR_V2_5_0 0x20050000
2929
#define MSM_DSI_6G_VER_MINOR_V2_6_0 0x20060000
3030
#define MSM_DSI_6G_VER_MINOR_V2_7_0 0x20070000
31+
#define MSM_DSI_6G_VER_MINOR_V2_8_0 0x20080000
3132

3233
#define MSM_DSI_V2_VER_MINOR_8064 0x0
3334

0 commit comments

Comments
 (0)