Skip to content

Commit 2847cd7

Browse files
panghu-xinleiChun-Kuang Hu
authored andcommitted
drm/mediatek: Add mt8188 dpi compatibles and platform data
For MT8188, the vdosys0 only supports 1T1P mode, so we need to add the compatible for mt8188 edp-intf. Signed-off-by: xinlei lee <[email protected]> Link: https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/ Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent c1a26a9 commit 2847cd7

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

drivers/gpu/drm/mediatek/mtk_dpi.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,20 @@ static const struct mtk_dpi_conf mt8183_conf = {
929929
.csc_enable_bit = CSC_ENABLE,
930930
};
931931

932+
static const struct mtk_dpi_conf mt8188_dpintf_conf = {
933+
.cal_factor = mt8195_dpintf_calculate_factor,
934+
.max_clock_khz = 600000,
935+
.output_fmts = mt8195_output_fmts,
936+
.num_output_fmts = ARRAY_SIZE(mt8195_output_fmts),
937+
.pixels_per_iter = 4,
938+
.input_2pixel = false,
939+
.dimension_mask = DPINTF_HPW_MASK,
940+
.hvsize_mask = DPINTF_HSIZE_MASK,
941+
.channel_swap_shift = DPINTF_CH_SWAP,
942+
.yuv422_en_bit = DPINTF_YUV422_EN,
943+
.csc_enable_bit = DPINTF_CSC_ENABLE,
944+
};
945+
932946
static const struct mtk_dpi_conf mt8192_conf = {
933947
.cal_factor = mt8183_calculate_factor,
934948
.reg_h_fre_con = 0xe0,
@@ -1079,6 +1093,9 @@ static const struct of_device_id mtk_dpi_of_ids[] = {
10791093
{ .compatible = "mediatek,mt8183-dpi",
10801094
.data = &mt8183_conf,
10811095
},
1096+
{ .compatible = "mediatek,mt8188-dp-intf",
1097+
.data = &mt8188_dpintf_conf,
1098+
},
10821099
{ .compatible = "mediatek,mt8192-dpi",
10831100
.data = &mt8192_conf,
10841101
},

drivers/gpu/drm/mediatek/mtk_drm_drv.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,8 @@ static const struct of_device_id mtk_ddp_comp_dt_ids[] = {
637637
.data = (void *)MTK_DPI },
638638
{ .compatible = "mediatek,mt8183-dpi",
639639
.data = (void *)MTK_DPI },
640+
{ .compatible = "mediatek,mt8188-dp-intf",
641+
.data = (void *)MTK_DP_INTF },
640642
{ .compatible = "mediatek,mt8192-dpi",
641643
.data = (void *)MTK_DPI },
642644
{ .compatible = "mediatek,mt8195-dp-intf",

0 commit comments

Comments
 (0)