drm/panel-simple: Allow the bus format to be read from DT for panel-dpi
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 2 Dec 2021 18:16:21 +0000 (18:16 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:15 +0000 (11:33 +0000)
commitf98267a358d8eab7ba021d9f960434ab31bf2ed7
tree1d4ae24db8866a17530bf6b4015a4c41a32a11cb
parentde13cb8cd10129d09eae4ed8954c803707a7c5ea
drm/panel-simple: Allow the bus format to be read from DT for panel-dpi

The "panel-dpi" compatible string configures panel from device tree,
but it doesn't provide any way of configuring the bus format (colour
representation), nor does it populate it.

Add a DT parameter "bus-format" that allows the MEDIA_BUS_FMT_xxx value
to be specified from device tree.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/panel/panel-simple.c