[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221013-rpi-dpi-improvements-v3-7-eb76e26a772d@cerno.tech>
Date: Thu, 01 Dec 2022 09:42:52 +0100
From: Maxime Ripard <maxime@...no.tech>
To: Maxime Ripard <mripard@...nel.org>,
Daniel Vetter <daniel@...ll.ch>, Rob Herring <robh@...nel.org>,
David Airlie <airlied@...ux.ie>, Emma Anholt <emma@...olt.net>,
Eric Anholt <eric@...olt.net>
Cc: Dave Stevenson <dave.stevenson@...pberrypi.com>,
Maxime Ripard <maxime@...no.tech>,
dri-devel@...ts.freedesktop.org,
Laurent Pinchart <laurent.pinchart+renesas@...asonboard.com>,
Chris Morgan <macromorgan@...mail.com>,
Laurent Pinchart <laurent.pinchart@...asonboard.com>,
Joerg Quinten <aBUGSworstnightmare@...il.com>,
linux-kernel@...r.kernel.org
Subject: [PATCH v3 7/7] drm/vc4: dpi: Fix format mapping for RGB565
From: Dave Stevenson <dave.stevenson@...pberrypi.com>
The mapping is incorrect for RGB565_1X16 as it should be
DPI_FORMAT_18BIT_666_RGB_1 instead of DPI_FORMAT_18BIT_666_RGB_3.
Fixes: 08302c35b59d ("drm/vc4: Add DPI driver")
Signed-off-by: Dave Stevenson <dave.stevenson@...pberrypi.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@...asonboard.com>
Signed-off-by: Maxime Ripard <maxime@...no.tech>
---
drivers/gpu/drm/vc4/vc4_dpi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/vc4/vc4_dpi.c b/drivers/gpu/drm/vc4/vc4_dpi.c
index fdae02760b6d..a7bebfa5d5b0 100644
--- a/drivers/gpu/drm/vc4/vc4_dpi.c
+++ b/drivers/gpu/drm/vc4/vc4_dpi.c
@@ -185,7 +185,7 @@ static void vc4_dpi_encoder_enable(struct drm_encoder *encoder)
DPI_FORMAT);
break;
case MEDIA_BUS_FMT_RGB565_1X16:
- dpi_c |= VC4_SET_FIELD(DPI_FORMAT_16BIT_565_RGB_3,
+ dpi_c |= VC4_SET_FIELD(DPI_FORMAT_16BIT_565_RGB_1,
DPI_FORMAT);
break;
case MEDIA_BUS_FMT_RGB565_1X24_CPADHI:
--
b4 0.10.1
Powered by blists - more mailing lists