]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/tiny: panel-mipi-dbi: Support the pixel format property
authorNoralf Trønnes <noralf@tronnes.org>
Tue, 4 Jun 2024 13:20:32 +0000 (15:20 +0200)
committerNoralf Trønnes <noralf@tronnes.org>
Fri, 7 Jun 2024 14:09:06 +0000 (16:09 +0200)
commitaa61186951cc1fd302e7d2d180061a8d568dff90
tree2148903a16de6baaac0b6eb0a465cd22ee8def00
parent4aebb79021f3e6c2b6fbb92a7d9c5d1e6ad0324a
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 <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240604-panel-mipi-dbi-rgb666-v4-5-d7c2bcb9b78d@tronnes.org
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
drivers/gpu/drm/tiny/panel-mipi-dbi.c