Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5673646imm; Mon, 23 Jul 2018 04:09:53 -0700 (PDT) X-Google-Smtp-Source: AAOMgpevV0HN+rmwaU6b/wZxLOzgQjGhuo1fNHFjquG8RpDF+aRXgvYv5HiReaHhbErTOevmeAky X-Received: by 2002:a63:de10:: with SMTP id f16-v6mr11610345pgg.97.1532344193301; Mon, 23 Jul 2018 04:09:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532344193; cv=none; d=google.com; s=arc-20160816; b=tHv5i9HoLmnuY+KiJa5umaAOZNNX78m5XpAEUBgQJyiJbtvF/0sBgyvnCXMLvqMwZ0 PtzRdsyoqcJ4Dv97la2WTIjtZ5tO/amIrE0hVb6NDpKPaIqTpAIyAYse3oF2EpucEfS/ unEnPBF0aF71TypVVtkmX4RLflrs50U2X7i4KCyNGgujFw2hNO+zufxP5Dy0IgEmZtk5 TN79xC613Ip/SeLt/C32RcqmBMc8SztHduoViuBtNtK8ISTFixmbcNDd4ymu6u/y6s5a /T+Y2c7Fdpottjf1OYF/Xa4DlBE+jimyHBU9ZPbrPeNWKTKYBmJ62RNxD4ajUKTkx5D3 4o3A== 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=jXxVcDsRtxdjmqgXTfuZDnkzlUbvM8XRftzFSUT1+VI=; b=1KgWIgLNnX3hsWf1vfgmV2pSWEfndzp1mWc8315kbN33RsNeE9pLyleRWVBAsgDD8I cERBbiNgUSpX3An2Xp7ZLaYi6BmazWRbu3rKAxWH95nh9/uufQl9phxHoADi1WcjSuJ+ 4Qfm1cN38myQ0L0WLeRBcA1FkMMWjbaJ9xiEaSjVkN3l1qFt602x9V0FQ0NbHCjZvx7E cIBc4p1WPZQGzbzCsnrJjBJg88YneB/k+y29T7DKfeP4JA0s0WyZNYyuZbrdLAW7GRIm W1SjJFsqR7FEPKxc1m3zjz0d2DvObuYs7Jy3kYNv73tTbUwGdYTm0EOYCutakJYFVYeE +L8w== 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 q30-v6si8111780pgk.253.2018.07.23.04.09.38; Mon, 23 Jul 2018 04:09:53 -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 S2387982AbeGWMEm (ORCPT + 99 others); Mon, 23 Jul 2018 08:04:42 -0400 Received: from ns.mm-sol.com ([37.157.136.199]:39840 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387941AbeGWMEm (ORCPT ); Mon, 23 Jul 2018 08:04:42 -0400 Received: from mms-0439.qualcomm.mm-sol.com (unknown [37.157.136.206]) by extserv.mm-sol.com (Postfix) with ESMTPSA id 40B7ACD4F; Mon, 23 Jul 2018 14:04:02 +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 v3 02/35] media: v4l: Add new 2X8 10-bit grayscale media bus code Date: Mon, 23 Jul 2018 14:02:19 +0300 Message-Id: <1532343772-27382-3-git-send-email-todor.tomov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1532343772-27382-1-git-send-email-todor.tomov@linaro.org> References: <1532343772-27382-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 --- Documentation/media/uapi/v4l/subdev-formats.rst | 72 +++++++++++++++++++++++++ include/uapi/linux/media-bus-format.h | 3 +- 2 files changed, 74 insertions(+), 1 deletion(-) diff --git a/Documentation/media/uapi/v4l/subdev-formats.rst b/Documentation/media/uapi/v4l/subdev-formats.rst index a4739f7..8e73fcf 100644 --- a/Documentation/media/uapi/v4l/subdev-formats.rst +++ b/Documentation/media/uapi/v4l/subdev-formats.rst @@ -4318,6 +4318,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 -- 2.7.4