All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xin Ji <xji@analogixsemi.com>
To: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: robert.foss@linaro.org, bliang@analogixsemi.com,
	qwen@analogixsemi.com, Xin Ji <xji@analogixsemi.com>,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH v2 1/4] media/v4l2-core: Add enum V4L2_FWNODE_BUS_TYPE_DPI
Date: Fri, 22 Apr 2022 16:47:15 +0800	[thread overview]
Message-ID: <20220422084720.959271-1-xji@analogixsemi.com> (raw)

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>
---
 drivers/media/v4l2-core/v4l2-fwnode.c | 4 ++++
 include/media/v4l2-fwnode.h           | 2 ++
 include/media/v4l2-mediabus.h         | 2 ++
 3 files changed, 8 insertions(+)

diff --git a/drivers/media/v4l2-core/v4l2-fwnode.c b/drivers/media/v4l2-core/v4l2-fwnode.c
index afceb35e500c..3d85a8600f57 100644
--- a/drivers/media/v4l2-core/v4l2-fwnode.c
+++ b/drivers/media/v4l2-core/v4l2-fwnode.c
@@ -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",
 	}
 };
 
diff --git a/include/media/v4l2-fwnode.h b/include/media/v4l2-fwnode.h
index feb132df45a3..15e4ab672223 100644
--- a/include/media/v4l2-fwnode.h
+++ b/include/media/v4l2-fwnode.h
@@ -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
 };
 
diff --git a/include/media/v4l2-mediabus.h b/include/media/v4l2-mediabus.h
index e0db3bcff9ed..f67a74daf799 100644
--- a/include/media/v4l2-mediabus.h
+++ b/include/media/v4l2-mediabus.h
@@ -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,
 };
 
-- 
2.25.1


             reply	other threads:[~2022-04-22  8:48 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-22  8:47 Xin Ji [this message]
2022-04-22  8:47 ` [PATCH v2 2/4] dt-bindings: media: video-interfaces: Add new bus-type Xin Ji
2022-04-22 14:03   ` Robert Foss
2022-04-22  8:47 ` [PATCH v2 3/4] dt-bindings:drm/bridge:anx7625: add port@0 property Xin Ji
2022-04-22  8:47   ` Xin Ji
2022-04-22 14:03   ` Robert Foss
2022-04-22 14:03     ` Robert Foss
2022-04-22 14:10     ` Robert Foss
2022-04-22 14:10       ` Robert Foss
2022-05-02 21:07   ` Rob Herring
2022-05-02 21:07     ` Rob Herring
2022-04-22  8:47 ` [PATCH v2 4/4] drm/bridge: anx7625: Use DPI bus type Xin Ji
2022-04-22  8:47   ` Xin Ji
2022-04-22 14:01   ` Robert Foss
2022-04-22 14:01     ` Robert Foss
2022-04-22 14:13     ` Robert Foss
2022-04-22 14:13       ` Robert Foss
2022-04-25  8:24       ` Chen-Yu Tsai
2022-04-25  8:24         ` Chen-Yu Tsai
2022-04-25  8:29         ` Chen-Yu Tsai
2022-04-25  8:29           ` Chen-Yu Tsai
2022-04-25  9:14         ` Xin Ji
2022-04-25  9:14           ` Xin Ji
2022-05-17 16:09           ` Robert Foss
2022-05-17 16:09             ` Robert Foss
2022-05-21 16:07             ` Daniel Vetter
2022-05-21 16:07               ` Daniel Vetter
2022-05-21 16:28               ` Daniel Vetter
2022-05-21 16:28                 ` Daniel Vetter
2022-05-23  3:13                 ` Xin Ji
2022-05-23  3:13                   ` Xin Ji
2022-05-23  7:17                   ` Chen-Yu Tsai
2022-05-23  7:17                     ` Chen-Yu Tsai
2022-05-23  8:37                     ` Robert Foss
2022-05-23  8:37                       ` Robert Foss
2022-05-23  8:47                       ` Robert Foss
2022-05-23  8:47                         ` Robert Foss
2022-06-17 10:32                       ` Chen-Yu Tsai
2022-06-17 10:32                         ` Chen-Yu Tsai
2022-06-20 19:13                         ` Robert Foss
2022-06-20 19:13                           ` Robert Foss
2022-04-22 14:10 ` [PATCH v2 1/4] media/v4l2-core: Add enum V4L2_FWNODE_BUS_TYPE_DPI Robert Foss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220422084720.959271-1-xji@analogixsemi.com \
    --to=xji@analogixsemi.com \
    --cc=bliang@analogixsemi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=qwen@analogixsemi.com \
    --cc=robert.foss@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.