Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <agx@sigxcpu.org>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/75fbe7139a84fa133499afe242c204ba4516da98.1633959458.git.agx@sigxcpu.org

+9
+9
drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
··· 8 8 #include <linux/backlight.h> 9 9 #include <linux/delay.h> 10 10 #include <linux/gpio/consumer.h> 11 + #include <linux/media-bus-format.h> 11 12 #include <linux/module.h> 12 13 #include <linux/of_device.h> 13 14 #include <linux/regulator/consumer.h> ··· 221 220 .height_mm = 130, 222 221 }; 223 222 223 + static const u32 mantix_bus_formats[] = { 224 + MEDIA_BUS_FMT_RGB888_1X24, 225 + }; 226 + 224 227 static int mantix_get_modes(struct drm_panel *panel, 225 228 struct drm_connector *connector) 226 229 { ··· 245 240 connector->display_info.width_mm = mode->width_mm; 246 241 connector->display_info.height_mm = mode->height_mm; 247 242 drm_mode_probed_add(connector, mode); 243 + 244 + drm_display_info_set_bus_formats(&connector->display_info, 245 + mantix_bus_formats, 246 + ARRAY_SIZE(mantix_bus_formats)); 248 247 249 248 return 1; 250 249 }