]> git.ipfire.org Git - thirdparty/linux.git/commit
media: rockchip: rkcif: add abstraction for interface and crop blocks
authorMichael Riesch <michael.riesch@collabora.com>
Fri, 14 Nov 2025 15:20:17 +0000 (16:20 +0100)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Sat, 15 Nov 2025 11:40:33 +0000 (12:40 +0100)
commit85411d17bee99b0a99e983f37188f9cdacfded54
tree0ef0afc7f615a3f4f77ebf47f4583720c74a089a
parentf53fb31a388901cfe11b95a3a2cf1594355321e4
media: rockchip: rkcif: add abstraction for interface and crop blocks

Add an abstraction for the INTERFACE and CROP parts of the different
Rockchip Camera Interface (CIF) variants. These parts are represented
as V4L2 subdevice with one sink pad and one source pad. The sink pad
is connected to a subdevice: either the subdevice provided by the
driver of the companion chip connected to the DVP, or the subdevice
provided by the MIPI CSI-2 receiver. The source pad is connected to
V4l2 device(s) provided by one or many instance(s) of the DMA
abstraction.

Tested-by: Gerald Loacker <gerald.loacker@wolfvision.net>
Reviewed-by: Gerald Loacker <gerald.loacker@wolfvision.net>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Mehdi Djait <mehdi.djait@linux.intel.com>
Signed-off-by: Michael Riesch <michael.riesch@collabora.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/rockchip/rkcif/Makefile
drivers/media/platform/rockchip/rkcif/rkcif-common.h
drivers/media/platform/rockchip/rkcif/rkcif-dev.c
drivers/media/platform/rockchip/rkcif/rkcif-interface.c [new file with mode: 0644]
drivers/media/platform/rockchip/rkcif/rkcif-interface.h [new file with mode: 0644]