cc5545135352c2d0b970030f202c144bdbb0dad8
[openwrt/staging/robimarko.git] /
1 From 6c8bd941bfcbb6fc4f6b4f8261aa03f280e80f20 Mon Sep 17 00:00:00 2001
2 From: Naushir Patuck <naush@raspberrypi.com>
3 Date: Tue, 21 Jan 2020 14:06:47 +0000
4 Subject: [PATCH] media: uapi: Add MEDIA_BUS_FMT_SENSOR_DATA media bus
5 format
6
7 This patch adds MEDIA_BUS_FMT_SENSOR_DATA used by the bcm2835-unicam
8 driver to support CSI-2 embedded data streams from camera sensors.
9
10 Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
11 ---
12 .../media/v4l/subdev-formats.rst | 33 +++++++++++++++++++
13 include/uapi/linux/media-bus-format.h | 3 ++
14 2 files changed, 36 insertions(+)
15
16 --- a/Documentation/userspace-api/media/v4l/subdev-formats.rst
17 +++ b/Documentation/userspace-api/media/v4l/subdev-formats.rst
18 @@ -7899,3 +7899,36 @@ formats.
19 - 0x5001
20 - Interleaved raw UYVY and JPEG image format with embedded meta-data
21 used by Samsung S3C73MX camera sensors.
22 +
23 +
24 +
25 +.. _v4l2-mbus-sensor-data:
26 +
27 +Sensor Ancillary Metadata Formats
28 +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
29 +
30 +This section lists ancillary data generated by a camera sensor and
31 +transmitted over a stream on the camera bus.
32 +
33 +The following table lists the existing sensor ancillary metadata formats:
34 +
35 +
36 +.. _v4l2-mbus-pixelcode-sensor-metadata:
37 +
38 +.. tabularcolumns:: |p{8.0cm}|p{1.4cm}|p{7.7cm}|
39 +
40 +.. flat-table:: Sensor ancillary metadata formats
41 + :header-rows: 1
42 + :stub-columns: 0
43 +
44 + * - Identifier
45 + - Code
46 + - Comments
47 + * .. _MEDIA_BUS_FMT_SENSOR_DATA:
48 +
49 + - MEDIA_BUS_FMT_SENSOR_DATA
50 + - 0x7001
51 + - Sensor vendor specific ancillary metadata. Some vendors follow a generic
52 + CSI-2/SMIA embedded data format as described in the `CSI-2 specification.
53 + <https://mipi.org/specifications/csi-2>`_
54 +
55 --- a/include/uapi/linux/media-bus-format.h
56 +++ b/include/uapi/linux/media-bus-format.h
57 @@ -156,4 +156,7 @@
58 /* HSV - next is 0x6002 */
59 #define MEDIA_BUS_FMT_AHSV8888_1X32 0x6001
60
61 +/* Sensor ancillary metadata formats - next is 0x7002 */
62 +#define MEDIA_BUS_FMT_SENSOR_DATA 0x7001
63 +
64 #endif /* __LINUX_MEDIA_BUS_FORMAT_H */