]> git.baikalelectronics.ru Git - kernel.git/commitdiff
media: media/v4l2-core: Add enum V4L2_FWNODE_BUS_TYPE_DPI
authorXin Ji <xji@analogixsemi.com>
Fri, 22 Apr 2022 08:47:15 +0000 (10:47 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 17 May 2022 07:09:59 +0000 (09:09 +0200)
As V4L2_FWNODE_BUS_TYPE_PARALLEL is not used for DPI interface, this
patch add V4L2_FWNODE_BUS_TYPE_DPI for video DPI interface.

Signed-off-by: Xin Ji <xji@analogixsemi.com>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/v4l2-core/v4l2-fwnode.c
include/media/v4l2-fwnode.h
include/media/v4l2-mediabus.h

index afceb35e500cc5e6f5f338a842e60af01fe7f653..3d85a8600f57631245a64d0888fe9d8724c89c82 100644 (file)
@@ -61,6 +61,10 @@ static const struct v4l2_fwnode_bus_conv {
                V4L2_FWNODE_BUS_TYPE_BT656,
                V4L2_MBUS_BT656,
                "Bt.656",
+       }, {
+               V4L2_FWNODE_BUS_TYPE_DPI,
+               V4L2_MBUS_DPI,
+               "DPI",
        }
 };
 
index feb132df45a3c93cab3be68afceca9e141947fb6..15e4ab67222328f6532e4248f7469fd0c3964b63 100644 (file)
@@ -173,6 +173,7 @@ struct v4l2_fwnode_connector {
  * @V4L2_FWNODE_BUS_TYPE_CSI2_DPHY: MIPI CSI-2 bus, D-PHY physical layer
  * @V4L2_FWNODE_BUS_TYPE_PARALLEL: Camera Parallel Interface bus
  * @V4L2_FWNODE_BUS_TYPE_BT656: BT.656 video format bus-type
+ * @V4L2_FWNODE_BUS_TYPE_DPI: Video Parallel Interface bus
  * @NR_OF_V4L2_FWNODE_BUS_TYPE: Number of bus-types
  */
 enum v4l2_fwnode_bus_type {
@@ -183,6 +184,7 @@ enum v4l2_fwnode_bus_type {
        V4L2_FWNODE_BUS_TYPE_CSI2_DPHY,
        V4L2_FWNODE_BUS_TYPE_PARALLEL,
        V4L2_FWNODE_BUS_TYPE_BT656,
+       V4L2_FWNODE_BUS_TYPE_DPI,
        NR_OF_V4L2_FWNODE_BUS_TYPE
 };
 
index e0db3bcff9edde57474761991da0b6fa632804de..f67a74daf799f01228c539d35548e4cd77b2c557 100644 (file)
@@ -129,6 +129,7 @@ struct v4l2_mbus_config_mipi_csi1 {
  * @V4L2_MBUS_CCP2:    CCP2 (Compact Camera Port 2)
  * @V4L2_MBUS_CSI2_DPHY: MIPI CSI-2 serial interface, with D-PHY
  * @V4L2_MBUS_CSI2_CPHY: MIPI CSI-2 serial interface, with C-PHY
+ * @V4L2_MBUS_DPI:      MIPI VIDEO DPI interface
  * @V4L2_MBUS_INVALID: invalid bus type (keep as last)
  */
 enum v4l2_mbus_type {
@@ -139,6 +140,7 @@ enum v4l2_mbus_type {
        V4L2_MBUS_CCP2,
        V4L2_MBUS_CSI2_DPHY,
        V4L2_MBUS_CSI2_CPHY,
+       V4L2_MBUS_DPI,
        V4L2_MBUS_INVALID,
 };