Received: by 10.192.165.148 with SMTP id m20csp3405281imm; Mon, 23 Apr 2018 06:07:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+PqZt9g2btype+z5nEr6cXiv/PAwwLGuYd5FC99rVAvUhdJsscHbFkenLmeEzbxTZEqzi3 X-Received: by 10.98.103.154 with SMTP id t26mr20211347pfj.24.1524488841066; Mon, 23 Apr 2018 06:07:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524488841; cv=none; d=google.com; s=arc-20160816; b=IEB5EiSSwWZf1e/aqNGEJmasaklZM7GLxQDsQBAhxFZgLzUqgsQY1GHXc6RP6cdvzN JmxnUYu3hfIAzu/XCE2ybHRCySbk+cewYy9dTRbyUKoo7TPPYF/HwVXXbe8vcsjxWN2p LeVGTJQb1BqHXG/W400jBi8SOaFaOYkeyyRfB+Kh66ZWGUAlMD/5w8V1WErav4xanFwi MymnEbd8AFzsZOe063ADnWWILZNbhl1Sm9jY3xOyV9q2dp92LKQblvSRTiIVPeqxvCGh 1XdJhEzdWt4b/Xi07WjG6UTm1bXsP8lygq4kaE562ri6yKAqTtCjb2JMo7gNvkGrVsCS BvjA== 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 :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=EsR99Xxy30FC2X/mxuDjzJ69AEUfSQqmjNjpcLodMaY=; b=Er6p1iHfIxhaaGxp3KclwHg4LnhJkXr6OqncVsNqrLfpeVnabtGcIaSr4IszWdBhoP MXGn+POl9tCoXze5nKmeE6zqSCDzjYwMA4DdQpqmS7AM04cUUB68j9lQ8a3eqFtrjlzq XCRdzqJoj4JT9HAfDtKbQSKjejr9iPL+eI9mY/YFv2KM857KZW/jAihwYshjPLZKofEE lR+52/IikCzOxIKEULrbQRsYkqQ9RNfd6RAIv0KAy5fA04Ht3h/RpOBopR67LDbACFGu B/snMfcMisUlXilwXEStgwojdNMF1dyYIbpu5MLSqwNmqmdlOsW2sfzR+LOkyAla18ut Rx1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=VIuS/7Lx; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e2si11732358pfm.220.2018.04.23.06.07.06; Mon, 23 Apr 2018 06:07:21 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=VIuS/7Lx; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755013AbeDWNFv (ORCPT + 99 others); Mon, 23 Apr 2018 09:05:51 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:53796 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754802AbeDWNFu (ORCPT ); Mon, 23 Apr 2018 09:05:50 -0400 Received: from avalon.localnet (dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 85CD5608D; Mon, 23 Apr 2018 15:05:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1524488748; bh=8YgCGjiXPcLeiRcEjIyD3rMDMqcvz79SiomdLudBjWs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VIuS/7LxKll/F72uN4svAEDyEfrLlcrBVVnCdYiec2j/WFwDnJTfxoxPz8XMqoojT EeIzOIOe7sFfgH+8QxwFQozJe9qYkc6JOrcqrA5PLIIdAeizrKWbBPQ4LacDItcLQe 9Cm3wkfqJQidn2XM/ifBaCYJvEVdfIPPRxHDNYTE= From: Laurent Pinchart To: Jacopo Mondi Cc: architt@codeaurora.org, a.hajda@samsung.com, airlied@linux.ie, daniel@ffwll.ch, peda@axentia.se, linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/8] media: Add LE version of RGB LVDS formats Date: Mon, 23 Apr 2018 16:06:01 +0300 Message-ID: <1733883.PFymhGyeZa@avalon> Organization: Ideas on Board Oy In-Reply-To: <1524130269-32688-6-git-send-email-jacopo+renesas@jmondi.org> References: <1524130269-32688-1-git-send-email-jacopo+renesas@jmondi.org> <1524130269-32688-6-git-send-email-jacopo+renesas@jmondi.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jacopo, Thank you for the patch. On Thursday, 19 April 2018 12:31:06 EEST Jacopo Mondi wrote: > Some LVDS controller can output swapped versions of LVDS RGB formats. > Define and document them in the list of supported media bus formats I wouldn't introduce those new formats as we don't need them. As a general rule we would like to have at least one user for any new format added to the API. > Signed-off-by: Jacopo Mondi > --- > Documentation/media/uapi/v4l/subdev-formats.rst | 174 +++++++++++++++++++++ > include/uapi/linux/media-bus-format.h | 5 +- > 2 files changed, 178 insertions(+), 1 deletion(-) > > diff --git a/Documentation/media/uapi/v4l/subdev-formats.rst > b/Documentation/media/uapi/v4l/subdev-formats.rst index 9fcabe7..9a5263c > 100644 > --- a/Documentation/media/uapi/v4l/subdev-formats.rst > +++ b/Documentation/media/uapi/v4l/subdev-formats.rst > @@ -1669,6 +1669,64 @@ JEIDA defined bit mapping will be named > - b\ :sub:`2` > - g\ :sub:`1` > - r\ :sub:`0` > + * .. _MEDIA-BUS-FMT-RGB666-1X7X3-SPWG_LE: > + > + - MEDIA_BUS_FMT_RGB666_1X7X3_SPWG_LE > + - 0x101b > + - 0 > + - > + - > + - b\ :sub:`2` > + - g\ :sub:`1` > + - r\ :sub:`0` > + * - > + - > + - 1 > + - > + - > + - b\ :sub:`3` > + - g\ :sub:`2` > + - r\ :sub:`1` > + * - > + - > + - 2 > + - > + - > + - b\ :sub:`4` > + - g\ :sub:`3` > + - r\ :sub:`2` > + * - > + - > + - 3 > + - > + - > + - b\ :sub:`5` > + - g\ :sub:`4` > + - r\ :sub:`3` > + * - > + - > + - 4 > + - > + - > + - d > + - g\ :sub:`5` > + - r\ :sub:`4` > + * - > + - > + - 5 > + - > + - > + - d > + - b\ :sub:`0` > + - r\ :sub:`5` > + * - > + - > + - 6 > + - > + - > + - d > + - b\ :sub:`1` > + - g\ :sub:`0` > * .. _MEDIA-BUS-FMT-RGB888-1X7X4-SPWG: > > - MEDIA_BUS_FMT_RGB888_1X7X4_SPWG > @@ -1727,6 +1785,64 @@ JEIDA defined bit mapping will be named > - b\ :sub:`2` > - g\ :sub:`1` > - r\ :sub:`0` > + * .. _MEDIA-BUS-FMT-RGB888-1X7X4-SPWG_LE: > + > + - MEDIA_BUS_FMT_RGB888_1X7X4_SPWG_LE > + - 0x101c > + - 0 > + - > + - r\ :sub:`6` > + - b\ :sub:`2` > + - g\ :sub:`1` > + - r\ :sub:`0` > + * - > + - > + - 1 > + - > + - r\ :sub:`7` > + - b\ :sub:`3` > + - g\ :sub:`2` > + - r\ :sub:`1` > + * - > + - > + - 2 > + - > + - g\ :sub:`6` > + - b\ :sub:`4` > + - g\ :sub:`3` > + - r\ :sub:`2` > + * - > + - > + - 3 > + - > + - g\ :sub:`7` > + - b\ :sub:`5` > + - g\ :sub:`4` > + - r\ :sub:`3` > + * - > + - > + - 4 > + - > + - b\ :sub:`6` > + - d > + - g\ :sub:`5` > + - r\ :sub:`4` > + * - > + - > + - 5 > + - > + - b\ :sub:`7` > + - d > + - b\ :sub:`0` > + - r\ :sub:`5` > + * - > + - > + - 6 > + - > + - d > + - d > + - b\ :sub:`1` > + - g\ :sub:`0` > * .. _MEDIA-BUS-FMT-RGB888-1X7X4-JEIDA: > > - MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA > @@ -1785,6 +1901,64 @@ JEIDA defined bit mapping will be named > - b\ :sub:`4` > - g\ :sub:`3` > - r\ :sub:`2` > + * .. _MEDIA-BUS-FMT-RGB888-1X7X4-JEIDA_LE: > + > + - MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA_LE > + - 0x101d > + - 0 > + - > + - r\ :sub:`0` > + - b\ :sub:`4` > + - g\ :sub:`3` > + - r\ :sub:`2` > + * - > + - > + - 1 > + - > + - r\ :sub:`1` > + - b\ :sub:`5` > + - g\ :sub:`4` > + - r\ :sub:`3` > + * - > + - > + - 2 > + - > + - g\ :sub:`0` > + - b\ :sub:`6` > + - g\ :sub:`5` > + - r\ :sub:`4` > + * - > + - > + - 3 > + - > + - g\ :sub:`1` > + - b\ :sub:`7` > + - g\ :sub:`6` > + - r\ :sub:`5` > + * - > + - > + - 4 > + - > + - b\ :sub:`0` > + - d > + - g\ :sub:`7` > + - r\ :sub:`6` > + * - > + - > + - 5 > + - > + - b\ :sub:`1` > + - d > + - b\ :sub:`2` > + - r\ :sub:`7` > + * - > + - > + - 6 > + - > + - d > + - d > + - b\ :sub:`3` > + - g\ :sub:`2` > > .. raw:: latex > > diff --git a/include/uapi/linux/media-bus-format.h > b/include/uapi/linux/media-bus-format.h index 9e35117..5bea7c0 100644 > --- a/include/uapi/linux/media-bus-format.h > +++ b/include/uapi/linux/media-bus-format.h > @@ -34,7 +34,7 @@ > > #define MEDIA_BUS_FMT_FIXED 0x0001 > > -/* RGB - next is 0x101b */ > +/* RGB - next is 0x101f */ > #define MEDIA_BUS_FMT_RGB444_1X12 0x1016 > #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_BE 0x1001 > #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE 0x1002 > @@ -49,13 +49,16 @@ > #define MEDIA_BUS_FMT_RBG888_1X24 0x100e > #define MEDIA_BUS_FMT_RGB666_1X24_CPADHI 0x1015 > #define MEDIA_BUS_FMT_RGB666_1X7X3_SPWG 0x1010 > +#define MEDIA_BUS_FMT_RGB666_1X7X3_SPWG_LE 0x101b > #define MEDIA_BUS_FMT_BGR888_1X24 0x1013 > #define MEDIA_BUS_FMT_GBR888_1X24 0x1014 > #define MEDIA_BUS_FMT_RGB888_1X24 0x100a > #define MEDIA_BUS_FMT_RGB888_2X12_BE 0x100b > #define MEDIA_BUS_FMT_RGB888_2X12_LE 0x100c > #define MEDIA_BUS_FMT_RGB888_1X7X4_SPWG 0x1011 > +#define MEDIA_BUS_FMT_RGB888_1X7X4_SPWG_LE 0x101c > #define MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA 0x1012 > +#define MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA_LE 0x101d > #define MEDIA_BUS_FMT_ARGB8888_1X32 0x100d > #define MEDIA_BUS_FMT_RGB888_1X32_PADHI 0x100f > #define MEDIA_BUS_FMT_RGB101010_1X30 0x1018 -- Regards, Laurent Pinchart