Skip to content

Commit 5814f32

Browse files
Niklas Söderlundmchehab
Niklas Söderlund
authored andcommitted
media: staging: max96712: Add basic support for MAX96712 GMSL2 deserializer
Add basic support for Maxim MAX96712 quad GMSL2 deserializers. The driver is capable of powering on the device and configuring the MIPI CSI-2 bus in a DPHY 4-lane configuration as well as operating the internal VTG (Video Timing Generator) and VPG (Video Pattern Generator). Using these features the driver is able to act as a 1080p @ 30 fps V4L2 video source. Producing either a checkerboard or gradient pattern on the CSI-2 bus, selectable thru a V4L2 control. While the driver is useful as-is and have been used to prove the correct operation of the MAX96712 itself and "downstream" devices using the MAX96712 as a video source there are a lot of features missing. Most notably the ability to operate the GMSL bus. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
1 parent 819d679 commit 5814f32

File tree

6 files changed

+464
-0
lines changed

6 files changed

+464
-0
lines changed

MAINTAINERS

+6
Original file line numberDiff line numberDiff line change
@@ -11523,6 +11523,12 @@ S: Maintained
1152311523
F: Documentation/devicetree/bindings/media/i2c/maxim,max9286.yaml
1152411524
F: drivers/media/i2c/max9286.c
1152511525

11526+
MAX96712 QUAD GMSL2 DESERIALIZER DRIVER
11527+
M: Niklas Söderlund <niklas.soderlund@ragnatech.se>
11528+
L: linux-media@vger.kernel.org
11529+
S: Maintained
11530+
F: drivers/staging/media/max96712/max96712.c
11531+
1152611532
MAX9860 MONO AUDIO VOICE CODEC DRIVER
1152711533
M: Peter Rosin <peda@axentia.se>
1152811534
L: alsa-devel@alsa-project.org (moderated for non-subscribers)

drivers/staging/media/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ source "drivers/staging/media/hantro/Kconfig"
2626

2727
source "drivers/staging/media/imx/Kconfig"
2828

29+
source "drivers/staging/media/max96712/Kconfig"
30+
2931
source "drivers/staging/media/meson/vdec/Kconfig"
3032

3133
source "drivers/staging/media/omap4iss/Kconfig"

drivers/staging/media/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
obj-$(CONFIG_INTEL_ATOMISP) += atomisp/
33
obj-$(CONFIG_VIDEO_IMX_MEDIA) += imx/
4+
obj-$(CONFIG_VIDEO_MAX96712) += max96712/
45
obj-$(CONFIG_VIDEO_MESON_VDEC) += meson/vdec/
56
obj-$(CONFIG_VIDEO_OMAP4) += omap4iss/
67
obj-$(CONFIG_VIDEO_ROCKCHIP_VDEC) += rkvdec/
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
config VIDEO_MAX96712
3+
tristate "Maxim MAX96712 Quad GMSL2 Deserializer support"
4+
depends on I2C
5+
depends on OF_GPIO
6+
select V4L2_FWNODE
7+
select VIDEO_V4L2_SUBDEV_API
8+
select MEDIA_CONTROLLER
9+
help
10+
This driver supports the Maxim MAX96712 Quad GMSL2 Deserializer.
11+
12+
To compile this driver as a module, choose M here: the
13+
module will be called max96712.
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
obj-$(CONFIG_VIDEO_MAX96712) += max96712.o

0 commit comments

Comments
 (0)