Skip to content

Commit b4a3d87

Browse files
jailuthraHans Verkuil
authored andcommitted
media: ti: Add CSI2RX support for J721E
TI's J721E uses the Cadence CSI2RX and DPHY peripherals to facilitate capture over a CSI-2 bus. The Cadence CSI2RX IP acts as a bridge between the TI specific parts and the CSI-2 protocol parts. TI then has a wrapper on top of this bridge called the SHIM layer. It takes in data from stream 0, repacks it, and sends it to memory over PSI-L DMA. This driver acts as the "front end" to V4L2 client applications. It implements the required ioctls and buffer operations, passes the necessary calls on to the bridge, programs the SHIM layer, and performs DMA via the dmaengine API to finally return the data to a buffer supplied by the application. Co-developed-by: Pratyush Yadav <[email protected]> Signed-off-by: Pratyush Yadav <[email protected]> Co-developed-by: Vaishnav Achath <[email protected]> Signed-off-by: Vaishnav Achath <[email protected]> Tested-by: Vaishnav Achath <[email protected]> Tested-by: Julien Massot <[email protected]> Reviewed-by: Tomi Valkeinen <[email protected]> Signed-off-by: Jai Luthra <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
1 parent ca5b901 commit b4a3d87

File tree

5 files changed

+1181
-0
lines changed

5 files changed

+1181
-0
lines changed

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21594,6 +21594,13 @@ F: Documentation/devicetree/bindings/media/i2c/ti,ds90*
2159421594
F: drivers/media/i2c/ds90*
2159521595
F: include/media/i2c/ds90*
2159621596

21597+
TI J721E CSI2RX DRIVER
21598+
M: Jai Luthra <[email protected]>
21599+
21600+
S: Maintained
21601+
F: Documentation/devicetree/bindings/media/ti,j721e-csi2rx.yaml
21602+
F: drivers/media/platform/ti/j721e-csi2rx/
21603+
2159721604
TI KEYSTONE MULTICORE NAVIGATOR DRIVERS
2159821605
M: Nishanth Menon <[email protected]>
2159921606
M: Santosh Shilimkar <[email protected]>

drivers/media/platform/ti/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,18 @@ config VIDEO_TI_VPE_DEBUG
6363
help
6464
Enable debug messages on VPE driver.
6565

66+
config VIDEO_TI_J721E_CSI2RX
67+
tristate "TI J721E CSI2RX wrapper layer driver"
68+
depends on VIDEO_DEV && VIDEO_V4L2_SUBDEV_API
69+
depends on MEDIA_SUPPORT && MEDIA_CONTROLLER
70+
depends on (PHY_CADENCE_DPHY_RX && VIDEO_CADENCE_CSI2RX) || COMPILE_TEST
71+
depends on ARCH_K3 || COMPILE_TEST
72+
select VIDEOBUF2_DMA_CONTIG
73+
select V4L2_FWNODE
74+
help
75+
Support for TI CSI2RX wrapper layer. This just enables the wrapper driver.
76+
The Cadence CSI2RX bridge driver needs to be enabled separately.
77+
6678
source "drivers/media/platform/ti/am437x/Kconfig"
6779
source "drivers/media/platform/ti/davinci/Kconfig"
6880
source "drivers/media/platform/ti/omap/Kconfig"

drivers/media/platform/ti/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ obj-y += am437x/
33
obj-y += cal/
44
obj-y += vpe/
55
obj-y += davinci/
6+
obj-y += j721e-csi2rx/
67
obj-y += omap/
78
obj-y += omap3isp/
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
obj-$(CONFIG_VIDEO_TI_J721E_CSI2RX) += j721e-csi2rx.o

0 commit comments

Comments
 (0)