Skip to content

Commit 1311f3d

Browse files
committed
drm/panel: mantix: 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/75fbe7139a84fa133499afe242c204ba4516da98.1633959458.git.agx@sigxcpu.org
1 parent 2f1495f commit 1311f3d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <linux/backlight.h>
99
#include <linux/delay.h>
1010
#include <linux/gpio/consumer.h>
11+
#include <linux/media-bus-format.h>
1112
#include <linux/module.h>
1213
#include <linux/of_device.h>
1314
#include <linux/regulator/consumer.h>
@@ -220,6 +221,10 @@ static const struct drm_display_mode default_mode_ys = {
220221
.height_mm = 130,
221222
};
222223

224+
static const u32 mantix_bus_formats[] = {
225+
MEDIA_BUS_FMT_RGB888_1X24,
226+
};
227+
223228
static int mantix_get_modes(struct drm_panel *panel,
224229
struct drm_connector *connector)
225230
{
@@ -241,6 +246,10 @@ static int mantix_get_modes(struct drm_panel *panel,
241246
connector->display_info.height_mm = mode->height_mm;
242247
drm_mode_probed_add(connector, mode);
243248

249+
drm_display_info_set_bus_formats(&connector->display_info,
250+
mantix_bus_formats,
251+
ARRAY_SIZE(mantix_bus_formats));
252+
244253
return 1;
245254
}
246255

0 commit comments

Comments
 (0)