bcm27xx: import latest patches from the RPi foundation
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0846-media-v4l-Add-1X14-14-bit-greyscale-media-bus-code-d.patch
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
5 code definition
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 Commit 573a750813459725c6f6fc4bc5779da1fe03238a upstream.
11
12 The code is called MEDIA_BUS_FMT_Y14_1X14 and behaves just like
13 MEDIA_BUS_FMT_Y12_1X12 with two more bits.
14
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>
19 ---
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(-)
23
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.
27 - u\ :sub:`2`
28 - u\ :sub:`1`
29 - u\ :sub:`0`
30 + * .. _MEDIA-BUS-FMT-Y14-1X14:
31 +
32 + - MEDIA_BUS_FMT_Y14_1X14
33 + - 0x202d
34 + -
35 + -
36 + -
37 + -
38 + -
39 + -
40 + -
41 + -
42 + -
43 + -
44 + -
45 + -
46 + -
47 + -
48 + -
49 + -
50 + -
51 + -
52 + -
53 + - y\ :sub:`13`
54 + - y\ :sub:`12`
55 + - y\ :sub:`11`
56 + - y\ :sub:`10`
57 + - y\ :sub:`9`
58 + - y\ :sub:`8`
59 + - y\ :sub:`7`
60 + - y\ :sub:`6`
61 + - y\ :sub:`5`
62 + - y\ :sub:`4`
63 + - y\ :sub:`3`
64 + - y\ :sub:`2`
65 + - y\ :sub:`1`
66 + - y\ :sub:`0`
67 * .. _MEDIA-BUS-FMT-UYVY8-1X16:
68
69 - MEDIA_BUS_FMT_UYVY8_1X16
70 --- a/include/uapi/linux/media-bus-format.h
71 +++ b/include/uapi/linux/media-bus-format.h
72 @@ -64,7 +64,7 @@
73 #define MEDIA_BUS_FMT_RGB121212_1X36 0x1019
74 #define MEDIA_BUS_FMT_RGB161616_1X48 0x101a
75
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
81 @@ -86,6 +86,7 @@
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