From patchwork Tue Sep 27 23:38:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 12991482 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 97573C54EE9 for ; Tue, 27 Sep 2022 23:38:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 16B8010E199; Tue, 27 Sep 2022 23:38:28 +0000 (UTC) Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3862C10E199 for ; Tue, 27 Sep 2022 23:38:25 +0000 (UTC) Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id EE32447C; Wed, 28 Sep 2022 01:38:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1664321903; bh=IlC7O93SNRprER9S7/OZCwmjc7if5qne972enqy7l+I=; h=From:To:Cc:Subject:Date:From; b=bpDMAPE7Wj4Nkaqdc8xNrxWS4U0tQ7Y5SyfNI1uS9zwMkWxIftEatcBrxMqhUj+fc DDRg2toMEDlYWZ/N2O3tzIfRAWVt5KYCKONxalAoiGrcsAIcm2cOa18J/aAFKUxnky nSMYFecyTW58VMHJXPOuZlJ7wNGBvi+ABrQh4Cdo= From: Laurent Pinchart To: dri-devel@lists.freedesktop.org Subject: [PATCH 0/4] drm: lcdif: Improve YUV support Date: Wed, 28 Sep 2022 02:38:17 +0300 Message-Id: <20220927233821.8007-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marek Vasut , Peng Fan , Alexander Stein , Kieran Bingham , Daniel Scally , Robby Cai Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hello, This small patch series improves YUV support in the i.MX8MP LCDIF driver. After patches 1/4 and 2/4 that fix tiny cosmetic issues, patch 3/4 fixes YUV quantization range for the RGB to YUV conversion. Patch 4/4 addresses the other direction and adds support for YUV planes. Please see individual patches for details. The series has been tested on a Polyhex Debix board with the currently out-of-tree HDMI encoder support patches developed by Lucas Stach. Kieran Bingham (1): drm: lcdif: Add support for YUV planes Laurent Pinchart (3): drm: lcdif: Fix indentation in lcdif_regs.h drm: lcdif: Don't use BIT() for multi-bit register fields drm: lcdif: Switch to limited range for RGB to YUV conversion drivers/gpu/drm/mxsfb/lcdif_kms.c | 117 ++++++++++++++++++++++++----- drivers/gpu/drm/mxsfb/lcdif_regs.h | 37 ++++----- 2 files changed, 117 insertions(+), 37 deletions(-)