drm/vc4: dpi: Support RGB565 format
authorChris Morgan <macromorgan@hotmail.com>
Thu, 1 Dec 2022 08:42:49 +0000 (09:42 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 1 Dec 2022 10:13:56 +0000 (11:13 +0100)
commit11fb69c753cdfaa75f4c2a01861edaaacfe23d90
tree3935244dad5cf8990fb4a41b219f7ce3b19f47de
parent1113f644c488225212eebd3966360326579e2d3d
drm/vc4: dpi: Support RGB565 format

The RGB565 format with padding over 24 bits
(MEDIA_BUS_FMT_RGB565_1X24_CPADHI) is supported by the vc4 DPI
controller. This is what the Geekworm MZP280 DPI display uses, so let's
add support for it in the DPI controller driver.

Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/20221013-rpi-dpi-improvements-v3-4-eb76e26a772d@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_dpi.c