Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2012797ybi; Sat, 13 Jul 2019 05:04:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBPyKXpuOJ1byniiBFGAmhT+FJDRiTul8kMizuouH6fbt3yTlPi5zbylZJdi2ZVHjTCED0 X-Received: by 2002:a17:90a:ca11:: with SMTP id x17mr18058881pjt.107.1563019498814; Sat, 13 Jul 2019 05:04:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563019498; cv=none; d=google.com; s=arc-20160816; b=uFsRZh3MULz8Fvh+XlfPVQd3i3mPcvOiV/gjgfqeZ9uMLhn81Jwj8kTParkjGguYN9 FsKb7/rKCt62PraSqgCv8p0z1qmalARIpgZNfem1g5E67IwSeyFYkqBcVZuQiz6Bczyw KNEgyuOBXNsQnJkl/uly9etdxMNZiCzsB7CSGTbqJ8arjlCWzhcFaiB5GxIKseD664yp cieAVL/Hb2Es7Rf0hKH3vrAmdSBbkfMTH1oOoofZhSIqS0K/ut/nn7JxBa34KkbrUvdt 7SWD4kEzqduOxv8fSj7D9Vx7of8BNVk3spzoBKvlQhBp5YT6oSFAIz+qP3q36K4fSwxh 8saA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=oFPBGkezbPL+F7rziqADszy2zJ1SiQQIGCa5WtNZ79M=; b=BeMpsF1JK2fAGwh3G1VWSHOzTzLNTS75eoYXM4HcdT4POZbcg2y/BZUaONT14BFjln H44WuJBlsW37CfVhe1ARtWGdg9jdfXhv4MkOyoBZtrKZiPfK4AGTBcFferI//nB0BtFG Ys9xtbYo0z4i1fIT2byJCy9FwM7tPjoWSTbRGI0zYXlZEr2s7skjSZvw8t+9vRrMG+E0 NN9zcTxlYSoIqk6SpJjODzWV9YpIgD1bs8CHsLsxnPcq/A6CU5qlInDUybdgn9O1G6Kz tB3xNgktK2QfHUjLgxr85sgOMfwQSQfPRJHVU6JR6gepXmEvKXxn/FPdLfWe4PiFhB5O Mj5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si3204842pgk.187.2019.07.13.05.04.32; Sat, 13 Jul 2019 05:04:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727704AbfGMMEA (ORCPT + 99 others); Sat, 13 Jul 2019 08:04:00 -0400 Received: from mailoutvs17.siol.net ([185.57.226.208]:35134 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727489AbfGMMEA (ORCPT ); Sat, 13 Jul 2019 08:04:00 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Zimbra) with ESMTP id 03A5D520796; Sat, 13 Jul 2019 14:03:57 +0200 (CEST) X-Virus-Scanned: amavisd-new at psrvmta12.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta12.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id GZJ1_W8SsO1t; Sat, 13 Jul 2019 14:03:56 +0200 (CEST) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Zimbra) with ESMTPS id A7A2452059A; Sat, 13 Jul 2019 14:03:56 +0200 (CEST) Received: from localhost.localdomain (cpe-194-152-11-237.cable.triera.net [194.152.11.237]) (Authenticated sender: 031275009) by mail.siol.net (Zimbra) with ESMTPSA id AB370520796; Sat, 13 Jul 2019 14:03:52 +0200 (CEST) From: Jernej Skrabec To: maxime.ripard@bootlin.com, wens@csie.org Cc: airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 0/3] drm/sun4i: Add support for color encoding and range Date: Sat, 13 Jul 2019 14:03:43 +0200 Message-Id: <20190713120346.30349-1-jernej.skrabec@siol.net> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) --=20 2.22.0