Skip to content

Commit 0c464ee

Browse files
committed
drm/panel: st7703: Add media bus format
This allows the DSI bridge to detect the correct bus format. We currently only support MEDIA_BUS_FMT_RGB888_1X24. Signed-off-by: Guido Günther <[email protected]> Reviewed-by: Sam Ravnborg <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/d7ebeec861f4518c8497a5e07d09d5a9fd123d3d.1633959458.git.agx@sigxcpu.org
1 parent 1311f3d commit 0c464ee

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/gpu/drm/panel/panel-sitronix-st7703.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,10 @@ static int st7703_prepare(struct drm_panel *panel)
453453
return ret;
454454
}
455455

456+
static const u32 mantix_bus_formats[] = {
457+
MEDIA_BUS_FMT_RGB888_1X24,
458+
};
459+
456460
static int st7703_get_modes(struct drm_panel *panel,
457461
struct drm_connector *connector)
458462
{
@@ -474,6 +478,10 @@ static int st7703_get_modes(struct drm_panel *panel,
474478
connector->display_info.height_mm = mode->height_mm;
475479
drm_mode_probed_add(connector, mode);
476480

481+
drm_display_info_set_bus_formats(&connector->display_info,
482+
mantix_bus_formats,
483+
ARRAY_SIZE(mantix_bus_formats));
484+
477485
return 1;
478486
}
479487

0 commit comments

Comments
 (0)