From patchwork Fri Jun 22 15:33:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Todor Tomov X-Patchwork-Id: 139682 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1015601lji; Fri, 22 Jun 2018 08:34:04 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK28etYpftbYAtHTl+tK+PRqk5uWuk6ATD1JZrtnIhDJ7JIKc2X53HlAAyzC7D8ME/R4OV/ X-Received: by 2002:a17:902:bd05:: with SMTP id p5-v6mr2245987pls.32.1529681644846; Fri, 22 Jun 2018 08:34:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529681644; cv=none; d=google.com; s=arc-20160816; b=L19zHNPvrP3GfHNJZzt8kwMahdeg7cZx+69D6TP0ue5siyXUagq35C0ioVTVy914Xk iL+F8taLhZ5yRLvCwzjG4FByN5/Vy3x7MoxMPmcyOBZOrmBz56UJHDVGDewkImTreTps K//gCQV2iU4D8TGlaxz9gciopsID6hQ6bYHeekpCQhRZItFs8vLXGDTbCH9P8fCbP7OD WRMCeRO/ysGt+yWN1bGhdafx+ovAu7n0121PBqUKpsdMl6L0Sxi3SvoezWt8NqroWuFz DVEgcFC5eXxJ1MmEVoP5qXYBFOHhhSeKT8SeCq+87rudBUA7Qtl9yNHyfgB3CiFj2fF0 Za/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=3KB5ord5E8VS0lN/ISsEoHANiBq3xMzBzb2bzzuZFQA=; b=DxCzfqzp/aORmmVtMGGRfCP9Pr0U2iOjiXI63Cml/Jpi2/DAuFq0Ut9J4Q5VjuUItn wAUT/7+hkRolJaS53OhSez+cGAt2uQ4yqdQUm8CvPctyGyeiA9M9ia6WZVTu1csqA+JP Whj/a0WDeuVi81euQYmgg8dH1+L6KkL6pne/UI8ERmF4JmZTU7UXSssQJrWryq+MuKyT iKImcK9/7zWoJm9thHcgzM04Br+lFc9dsUhsFKADQbs4t8DjZv68UOO6Edl8Q1D0lOQh to15T1jCu5ywu2d1UOi2CWzmgA3JqxZQzMgmtzh/ZNp0v6RsPdcsU7gruuVU18sTK5sC f11Q== 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p10-v6si7639483plk.295.2018.06.22.08.34.04; Fri, 22 Jun 2018 08:34:04 -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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933975AbeFVPeD (ORCPT + 31 others); Fri, 22 Jun 2018 11:34:03 -0400 Received: from ns.mm-sol.com ([37.157.136.199]:46341 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933908AbeFVPeA (ORCPT ); Fri, 22 Jun 2018 11:34:00 -0400 Received: from mms-0439.qualcomm.mm-sol.com (unknown [37.157.136.206]) by extserv.mm-sol.com (Postfix) with ESMTPSA id A3511CD37; Fri, 22 Jun 2018 18:33:58 +0300 (EEST) From: Todor Tomov To: mchehab@kernel.org, sakari.ailus@linux.intel.com, hans.verkuil@cisco.com, laurent.pinchart+renesas@ideasonboard.com, linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Todor Tomov Subject: [PATCH 02/32] media: v4l: Add new 2X8 10-bit grayscale media bus code Date: Fri, 22 Jun 2018 18:33:11 +0300 Message-Id: <1529681621-9682-3-git-send-email-todor.tomov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529681621-9682-1-git-send-email-todor.tomov@linaro.org> References: <1529681621-9682-1-git-send-email-todor.tomov@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The code will be called MEDIA_BUS_FMT_Y10_2X8_PADHI_LE. It is similar to MEDIA_BUS_FMT_SBGGR10_2X8_PADHI_LE but MEDIA_BUS_FMT_Y10_2X8_PADHI_LE describes grayscale data. Signed-off-by: Todor Tomov Acked-by: Sakari Ailus --- Documentation/media/uapi/v4l/subdev-formats.rst | 72 +++++++++++++++++++++++++ include/uapi/linux/media-bus-format.h | 3 +- 2 files changed, 74 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/Documentation/media/uapi/v4l/subdev-formats.rst b/Documentation/media/uapi/v4l/subdev-formats.rst index 9fcabe7..c4fb0bf 100644 --- a/Documentation/media/uapi/v4l/subdev-formats.rst +++ b/Documentation/media/uapi/v4l/subdev-formats.rst @@ -4315,6 +4315,78 @@ the following codes. - y\ :sub:`2` - y\ :sub:`1` - y\ :sub:`0` + * .. _MEDIA-BUS-FMT-Y10-2X8-PADHI_LE: + + - MEDIA_BUS_FMT_Y10_2X8_PADHI_LE + - 0x202c + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - y\ :sub:`7` + - y\ :sub:`6` + - y\ :sub:`5` + - y\ :sub:`4` + - y\ :sub:`3` + - y\ :sub:`2` + - y\ :sub:`1` + - y\ :sub:`0` + * - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - 0 + - 0 + - 0 + - 0 + - 0 + - 0 + - y\ :sub:`9` + - y\ :sub:`8` * .. _MEDIA-BUS-FMT-UYVY10-2X10: - MEDIA_BUS_FMT_UYVY10_2X10 diff --git a/include/uapi/linux/media-bus-format.h b/include/uapi/linux/media-bus-format.h index 9e35117..d6a5a3b 100644 --- a/include/uapi/linux/media-bus-format.h +++ b/include/uapi/linux/media-bus-format.h @@ -62,7 +62,7 @@ #define MEDIA_BUS_FMT_RGB121212_1X36 0x1019 #define MEDIA_BUS_FMT_RGB161616_1X48 0x101a -/* YUV (including grey) - next is 0x202c */ +/* YUV (including grey) - next is 0x202d */ #define MEDIA_BUS_FMT_Y8_1X8 0x2001 #define MEDIA_BUS_FMT_UV8_1X8 0x2015 #define MEDIA_BUS_FMT_UYVY8_1_5X8 0x2002 @@ -74,6 +74,7 @@ #define MEDIA_BUS_FMT_YUYV8_2X8 0x2008 #define MEDIA_BUS_FMT_YVYU8_2X8 0x2009 #define MEDIA_BUS_FMT_Y10_1X10 0x200a +#define MEDIA_BUS_FMT_Y10_2X8_PADHI_LE 0x202c #define MEDIA_BUS_FMT_UYVY10_2X10 0x2018 #define MEDIA_BUS_FMT_VYUY10_2X10 0x2019 #define MEDIA_BUS_FMT_YUYV10_2X10 0x200b