Skip to content

Commit 20fa6a8

Browse files
AngeloGioacchino Del RegnoChun-Kuang Hu
authored andcommitted
drm/mediatek: mtk_dpi: Allow additional output formats on MT8195/88
Allow additional output formats in both DPI and DP_INTF blocks of the MT8195 and MT8188 SoCs (as the latter is fully compatible with, hence reuses, the former's platform data for both blocks) by adding: 1. New formats to the `mt8195_output_fmts` array for dp_intf, lacking YUV422 12-bits support, and adding RGB888 2X12_LE/BE (8-bits), BGR888 (8-bits) RGB101010 1x30 (10-bits), and YUV formats, including YUV422 8/10 bits, and YUV444 8/10 bits; and 2. A new `mt8195_dpi_output_fmts` array for DPI only, with all of for formats added to dp_intf and with the addition of the YUYV12_1X24 (YUV422 12-bits) output format. Signed-off-by: AngeloGioacchino Del Regno <[email protected]> Link: https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/ Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent 5d0253c commit 20fa6a8

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

drivers/gpu/drm/mediatek/mtk_dpi.c

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,9 +1093,29 @@ static const u32 mt8183_output_fmts[] = {
10931093
MEDIA_BUS_FMT_RGB888_2X12_BE,
10941094
};
10951095

1096+
static const u32 mt8195_dpi_output_fmts[] = {
1097+
MEDIA_BUS_FMT_BGR888_1X24,
1098+
MEDIA_BUS_FMT_RGB888_1X24,
1099+
MEDIA_BUS_FMT_RGB888_2X12_LE,
1100+
MEDIA_BUS_FMT_RGB888_2X12_BE,
1101+
MEDIA_BUS_FMT_RGB101010_1X30,
1102+
MEDIA_BUS_FMT_YUYV8_1X16,
1103+
MEDIA_BUS_FMT_YUYV10_1X20,
1104+
MEDIA_BUS_FMT_YUYV12_1X24,
1105+
MEDIA_BUS_FMT_YUV8_1X24,
1106+
MEDIA_BUS_FMT_YUV10_1X30,
1107+
};
1108+
10961109
static const u32 mt8195_output_fmts[] = {
1110+
MEDIA_BUS_FMT_BGR888_1X24,
10971111
MEDIA_BUS_FMT_RGB888_1X24,
1112+
MEDIA_BUS_FMT_RGB888_2X12_LE,
1113+
MEDIA_BUS_FMT_RGB888_2X12_BE,
1114+
MEDIA_BUS_FMT_RGB101010_1X30,
10981115
MEDIA_BUS_FMT_YUYV8_1X16,
1116+
MEDIA_BUS_FMT_YUYV10_1X20,
1117+
MEDIA_BUS_FMT_YUV8_1X24,
1118+
MEDIA_BUS_FMT_YUV10_1X30,
10991119
};
11001120

11011121
static const struct mtk_dpi_factor dpi_factor_mt2701[] = {
@@ -1208,8 +1228,8 @@ static const struct mtk_dpi_conf mt8192_conf = {
12081228

12091229
static const struct mtk_dpi_conf mt8195_conf = {
12101230
.max_clock_khz = 594000,
1211-
.output_fmts = mt8183_output_fmts,
1212-
.num_output_fmts = ARRAY_SIZE(mt8183_output_fmts),
1231+
.output_fmts = mt8195_dpi_output_fmts,
1232+
.num_output_fmts = ARRAY_SIZE(mt8195_dpi_output_fmts),
12131233
.pixels_per_iter = 1,
12141234
.is_ck_de_pol = true,
12151235
.swap_input_support = true,

0 commit comments

Comments
 (0)