Commit 392cd78d authored by Dave Stevenson's avatar Dave Stevenson Committed by Hans Verkuil
Browse files

media: bcm2835-unicam: Add support for CCP2/CSI2 camera interface



Add a driver for the Unicam camera receiver block on BCM283x processors.
It is represented as two video device nodes: unicam-image and
unicam-embedded which are connected to an internal subdev (named
unicam-subdev) in order to manage streams routing.

Signed-off-by: default avatarDave Stevenson <dave.stevenson@raspberrypi.com>
Co-developed-by: default avatarNaushir Patuck <naush@raspberrypi.com>
Signed-off-by: default avatarNaushir Patuck <naush@raspberrypi.com>
Co-developed-by: default avatarJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Signed-off-by: default avatarJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Co-developed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
[Sakari Ailus: Squash fixes by Laurent.]
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 05a9eadb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4039,6 +4039,7 @@ M: Raspberry Pi Kernel Maintenance <kernel-list@raspberrypi.com>
L:	linux-media@vger.kernel.org
S:	Maintained
F:	Documentation/devicetree/bindings/media/brcm,bcm2835-unicam.yaml
F:	drivers/media/platform/bcm2835/
BROADCOM BCM47XX MIPS ARCHITECTURE
M:	Hauke Mehrtens <hauke@hauke-m.de>
+1 −0
Original line number Diff line number Diff line
@@ -67,6 +67,7 @@ source "drivers/media/platform/amlogic/Kconfig"
source "drivers/media/platform/amphion/Kconfig"
source "drivers/media/platform/aspeed/Kconfig"
source "drivers/media/platform/atmel/Kconfig"
source "drivers/media/platform/broadcom/Kconfig"
source "drivers/media/platform/cadence/Kconfig"
source "drivers/media/platform/chips-media/Kconfig"
source "drivers/media/platform/intel/Kconfig"
+1 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ obj-y += amlogic/
obj-y += amphion/
obj-y += aspeed/
obj-y += atmel/
obj-y += broadcom/
obj-y += cadence/
obj-y += chips-media/
obj-y += intel/
+23 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0

config VIDEO_BCM2835_UNICAM
	tristate "Broadcom BCM283x/BCM271x Unicam video capture driver"
	depends on ARCH_BCM2835 || COMPILE_TEST
	depends on PM
	depends on VIDEO_DEV
	select MEDIA_CONTROLLER
	select V4L2_FWNODE
	select VIDEO_V4L2_SUBDEV_API
	select VIDEOBUF2_DMA_CONTIG
	help
	  Say Y here to enable support for the BCM283x/BCM271x CSI-2 receiver.
	  This is a V4L2 driver that controls the CSI-2 receiver directly,
	  independently from the VC4 firmware.

	  This driver is mutually exclusive with the use of bcm2835-camera. The
	  firmware will disable all access to the peripheral from within the
	  firmware if it finds a DT node using it, and bcm2835-camera will
	  therefore fail to probe.

	  To compile this driver as a module, choose M here. The module will be
	  called bcm2835-unicam.
+3 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0

obj-$(CONFIG_VIDEO_BCM2835_UNICAM) += bcm2835-unicam.o
Loading