1 From efc06d6c82d5b6b3ee5dd2bfa7c010f737a0fa49 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Daniel=20Gl=C3=B6ckner?= <dg@emlix.com>
3 Date: Mon, 24 Feb 2020 18:52:22 +0100
4 Subject: [PATCH] media: v4l: Add 1X14 14-bit greyscale media bus
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
10 Commit 573a750813459725c6f6fc4bc5779da1fe03238a upstream.
12 The code is called MEDIA_BUS_FMT_Y14_1X14 and behaves just like
13 MEDIA_BUS_FMT_Y12_1X12 with two more bits.
15 Signed-off-by: Daniel Glöckner <dg@emlix.com>
16 Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
17 Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
18 Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
20 .../media/uapi/v4l/subdev-formats.rst | 37 +++++++++++++++++++
21 include/uapi/linux/media-bus-format.h | 3 +-
22 2 files changed, 39 insertions(+), 1 deletion(-)
24 --- a/Documentation/media/uapi/v4l/subdev-formats.rst
25 +++ b/Documentation/media/uapi/v4l/subdev-formats.rst
26 @@ -5792,6 +5792,43 @@ the following codes.
30 + * .. _MEDIA-BUS-FMT-Y14-1X14:
32 + - MEDIA_BUS_FMT_Y14_1X14
67 * .. _MEDIA-BUS-FMT-UYVY8-1X16:
69 - MEDIA_BUS_FMT_UYVY8_1X16
70 --- a/include/uapi/linux/media-bus-format.h
71 +++ b/include/uapi/linux/media-bus-format.h
73 #define MEDIA_BUS_FMT_RGB121212_1X36 0x1019
74 #define MEDIA_BUS_FMT_RGB161616_1X48 0x101a
76 -/* YUV (including grey) - next is 0x202d */
77 +/* YUV (including grey) - next is 0x202e */
78 #define MEDIA_BUS_FMT_Y8_1X8 0x2001
79 #define MEDIA_BUS_FMT_UV8_1X8 0x2015
80 #define MEDIA_BUS_FMT_UYVY8_1_5X8 0x2002
82 #define MEDIA_BUS_FMT_VYUY12_2X12 0x201d
83 #define MEDIA_BUS_FMT_YUYV12_2X12 0x201e
84 #define MEDIA_BUS_FMT_YVYU12_2X12 0x201f
85 +#define MEDIA_BUS_FMT_Y14_1X14 0x202d
86 #define MEDIA_BUS_FMT_UYVY8_1X16 0x200f
87 #define MEDIA_BUS_FMT_VYUY8_1X16 0x2010
88 #define MEDIA_BUS_FMT_YUYV8_1X16 0x2011