1 From 74026738d66fbd32a9e7f27879168f857fba6a3c Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Thu, 2 Dec 2021 18:16:21 +0000
4 Subject: [PATCH] drm/panel-simple: Allow the bus format to be read
7 The "panel-dpi" compatible string configures panel from device tree,
8 but it doesn't provide any way of configuring the bus format (colour
9 representation), nor does it populate it.
11 Add a DT parameter "bus-format" that allows the MEDIA_BUS_FMT_xxx value
12 to be specified from device tree.
14 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
16 drivers/gpu/drm/panel/panel-simple.c | 1 +
17 1 file changed, 1 insertion(+)
19 --- a/drivers/gpu/drm/panel/panel-simple.c
20 +++ b/drivers/gpu/drm/panel/panel-simple.c
21 @@ -490,6 +490,7 @@ static int panel_dpi_probe(struct device
23 of_property_read_u32(np, "width-mm", &desc->size.width);
24 of_property_read_u32(np, "height-mm", &desc->size.height);
25 + of_property_read_u32(np, "bus-format", &desc->bus_format);
27 /* Extract bus_flags from display_timing */