Skip to content

Commit

Permalink
media: v4l: cadence: Add Cadence MIPI-CSI2 TX driver
Browse files Browse the repository at this point in the history
The Cadence MIPI-CSI2 TX controller is an hardware block meant to be used
as a bridge between pixel interfaces and a CSI-2 bus.

It supports operating with an internal or external D-PHY, with up to 4
lanes, or without any D-PHY. The current code only supports the latter
case.

While the virtual channel input on the pixel interface can be directly
mapped to CSI2, the datatype input is actually a selection signal (3-bits)
mapping to a table of up to 8 preconfigured datatypes/formats (programmed
at start-up)

The block supports up to 8 input datatypes.

Acked-by: Benoit Parrot <bparrot@ti.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
  • Loading branch information
Maxime Ripard authored and Mauro Carvalho Chehab committed May 17, 2018
1 parent 28d42d2 commit 6f684d4
Show file tree
Hide file tree
Showing 3 changed files with 575 additions and 0 deletions.
11 changes: 11 additions & 0 deletions drivers/media/platform/cadence/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,15 @@ config VIDEO_CADENCE_CSI2RX
To compile this driver as a module, choose M here: the module will be
called cdns-csi2rx.

config VIDEO_CADENCE_CSI2TX
tristate "Cadence MIPI-CSI2 TX Controller"
depends on MEDIA_CONTROLLER
depends on VIDEO_V4L2_SUBDEV_API
select V4L2_FWNODE
help
Support for the Cadence MIPI CSI2 Transceiver controller.

To compile this driver as a module, choose M here: the module will be
called cdns-csi2tx.

endif
1 change: 1 addition & 0 deletions drivers/media/platform/cadence/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# SPDX-License-Identifier: GPL-2.0

obj-$(CONFIG_VIDEO_CADENCE_CSI2RX) += cdns-csi2rx.o
obj-$(CONFIG_VIDEO_CADENCE_CSI2TX) += cdns-csi2tx.o
Loading

0 comments on commit 6f684d4

Please sign in to comment.