media: rkisp1: csi: Implement a V4L2 subdev for the CSI receiver
authorPaul Elder <paul.elder@ideasonboard.com>
Tue, 14 Jun 2022 19:11:12 +0000 (20:11 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 17 Jul 2022 11:31:13 +0000 (12:31 +0100)
commitb298f059b92cfcc46f559471f8de691ef723ee4f
tree8af285aaf0317fa6fde36e183c6597238c768102
parent8b52ec2d1896223d620c27688024168194d7482b
media: rkisp1: csi: Implement a V4L2 subdev for the CSI receiver

The CSI receiver is a component separate from the ISP or the resizers.
It is actually optional, not all device model include a CSI receiver. On
some SoCs CSI-2 support can be provided through an external CSI-2
receiver, connected to the ISP's parallel input.

To support those use cases, create a V4L2 subdev to model the CSI
receiver. It will allow the driver to handle both internal and external
CSI receivers the same way.

The next commit will plumb the CSI subdev to the rest of the driver,
replacing direct function calls.

Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Dafna Hirschfeld <dafna@fastmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/rockchip/rkisp1/rkisp1-common.h
drivers/media/platform/rockchip/rkisp1/rkisp1-csi.c
drivers/media/platform/rockchip/rkisp1/rkisp1-csi.h
drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c