[PATCH v2 4/4] drm: lcdif: Add support for YUV planes

Liu Ying victor.liu at oss.nxp.com
Thu Sep 29 09:53:37 UTC 2022


On Wed, 2022-09-28 at 03:58 +0300, Laurent Pinchart wrote:
> From: Kieran Bingham <kieran.bingham at ideasonboard.com>
> 
> The LCDIF includes a color space converter that supports YUV input. Use
> it to support YUV planes, either through the converter if the output
> format is RGB, or in conversion bypass mode otherwise.
> 
> Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
> Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> ---
> Changes since v1:
> 
> - Support all YCbCr encodings and quantization ranges
> - Drop incorrect comment
> ---
>  drivers/gpu/drm/mxsfb/lcdif_kms.c  | 183 +++++++++++++++++++++++++----
>  drivers/gpu/drm/mxsfb/lcdif_regs.h |   5 +-
>  2 files changed, 164 insertions(+), 24 deletions(-)

I have a chance to test this series and find that my
'koe,tx26d202vm0bwa' 1920x1200 LVDS panel connected with i.MX8mp EVK
can only show the test pattern at the top half of the display with YUV
fb. Looks like something with wrong stride. XR24 fb is ok, but RG16 fb
has similar issue. Anything I missed?

The command I'm using to test YUV fb:
modetest -M imx-lcdif -P 31 at 35:1920x1200 at YUYV 

Liu Ying



More information about the dri-devel mailing list