media: sunxi: Add support for the A31 MIPI CSI-2 controller
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Wed, 25 May 2022 19:02:57 +0000 (20:02 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 14:02:22 +0000 (15:02 +0100)
commitaf54b4f4c17f54e8c7c43fb34571bc361cfa4ab4
tree966506589f284e7fcd6a526fcb0ed79ac54d84ec
parent787d694677f0c8d76021c4d5ec2e55c256fd33b8
media: sunxi: Add support for the A31 MIPI CSI-2 controller

The A31 MIPI CSI-2 controller is a dedicated MIPI CSI-2 bridge
found on Allwinner SoCs such as the A31 and V3/V3s.

It is a standalone block, connected to the CSI controller on one side
and to the MIPI D-PHY block on the other. It has a dedicated address
space, interrupt line and clock.

It is represented as a V4L2 subdev to the CSI controller and takes a
MIPI CSI-2 sensor as its own subdev, all using the fwnode graph and
media controller API.

Only 8-bit and 10-bit Bayer formats are currently supported.
While up to 4 internal channels to the CSI controller exist, only one
is currently supported by this implementation.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/sunxi/Kconfig
drivers/media/platform/sunxi/Makefile
drivers/media/platform/sunxi/sun6i-mipi-csi2/Kconfig [new file with mode: 0644]
drivers/media/platform/sunxi/sun6i-mipi-csi2/Makefile [new file with mode: 0644]
drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c [new file with mode: 0644]
drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.h [new file with mode: 0644]
drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2_reg.h [new file with mode: 0644]