media: uapi: Add MEDIA_BUS_FMT_SENSOR_DATA media bus format
authorNaushir Patuck <naush@raspberrypi.com>
Tue, 21 Jan 2020 14:06:47 +0000 (14:06 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:32:59 +0000 (11:32 +0000)
This patch adds MEDIA_BUS_FMT_SENSOR_DATA used by the bcm2835-unicam
driver to support CSI-2 embedded data streams from camera sensors.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Documentation/userspace-api/media/v4l/subdev-formats.rst
include/uapi/linux/media-bus-format.h

index a3a35ee..ddf5212 100644 (file)
@@ -8234,3 +8234,35 @@ The following table lists the existing metadata formats.
        both sides of the link and the bus format is a fixed
        metadata format that is not configurable from userspace.
        Width and height will be set to 0 for this format.
+
+
+.. _v4l2-mbus-sensor-data:
+
+Sensor Ancillary Metadata Formats
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+This section lists ancillary data generated by a camera sensor and
+transmitted over a stream on the camera bus.
+
+The following table lists the existing sensor ancillary metadata formats:
+
+
+.. _v4l2-mbus-pixelcode-sensor-metadata:
+
+.. tabularcolumns:: |p{8.0cm}|p{1.4cm}|p{7.7cm}|
+
+.. flat-table:: Sensor ancillary metadata formats
+    :header-rows:  1
+    :stub-columns: 0
+
+    * - Identifier
+      - Code
+      - Comments
+    * .. _MEDIA_BUS_FMT_SENSOR_DATA:
+
+      - MEDIA_BUS_FMT_SENSOR_DATA
+      - 0x7001
+      - Sensor vendor specific ancillary metadata. Some vendors follow a generic
+        CSI-2/SMIA embedded data format as described in the `CSI-2 specification.
+       <https://mipi.org/specifications/csi-2>`_
+
index a03c543..7fbeb5a 100644 (file)
  */
 #define MEDIA_BUS_FMT_METADATA_FIXED           0x7001
 
+/* Sensor ancillary metadata formats - next is 0x7002 */
+#define MEDIA_BUS_FMT_SENSOR_DATA              0x7002
+
 #endif /* __LINUX_MEDIA_BUS_FORMAT_H */