From: Noralf Trønnes Date: Tue, 4 Jun 2024 13:20:32 +0000 (+0200) Subject: drm/tiny: panel-mipi-dbi: Support the pixel format property X-Git-Tag: io_uring-6.11-20240722~49^2~22^2~46 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=aa61186951cc1fd302e7d2d180061a8d568dff90;p=linux-block.git drm/tiny: panel-mipi-dbi: Support the pixel format property Add support for these pixel format property values: - r5g6b5, RGB565 - b6x2g6x2r6x2, BGR666 BGR666 is presented to userspace as RGB888. The 2 LSB in each color are discarded by the controller. The pixel is sent on the wire using 8 bits per word (little endian) so the controller sees it as BGR. RGB565 is the default if the property is not present. Reviewed-by: Neil Armstrong Link: https://patchwork.freedesktop.org/patch/msgid/20240604-panel-mipi-dbi-rgb666-v4-5-d7c2bcb9b78d@tronnes.org Signed-off-by: Noralf Trønnes --- diff --git a/drivers/gpu/drm/tiny/panel-mipi-dbi.c b/drivers/gpu/drm/tiny/panel-mipi-dbi.c index b353a731f253..f753cdffe6f8 100644 --- a/drivers/gpu/drm/tiny/panel-mipi-dbi.c +++ b/drivers/gpu/drm/tiny/panel-mipi-dbi.c @@ -26,6 +26,49 @@ #include