[PATCH 0/3] drm/sun4i: Add support for color encoding and range

From: Jernej Skrabec
Date: Sat Jul 13 2019 - 08:04:02 EST


In order to correctly convert image between YUV and RGB, you have to
know color encoding and color range. This patch set adds appropriate
properties and considers them when choosing CSC conversion matrix for
DE2 and DE3.

Note that this is only the half of needed changes when using HDMI output.
DW HDMI bridge driver has to be extended to have a property to select
limited (TVs) or full (PC monitors) range. But that will be done at a
later time.

Please take a look.

Best regards,
Jernej

Jernej Skrabec (3):
drm/sun4i: Introduce color encoding and range properties
drm/sun4i: sun8i_csc: Simplify register writes
drm/sun4i: sun8i-csc: Add support for color encoding and range

drivers/gpu/drm/sun4i/sun8i_csc.c | 155 +++++++++++++++++++------
drivers/gpu/drm/sun4i/sun8i_csc.h | 6 +-
drivers/gpu/drm/sun4i/sun8i_vi_layer.c | 21 +++-
3 files changed, 146 insertions(+), 36 deletions(-)

--
2.22.0