Skip to content

Commit

Permalink
media: i2c: Add driver for THine THP7312
Browse files Browse the repository at this point in the history
The THP7312 is an external camera ISP from THine. Add a V4L2 subdev
driver for it.

Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Co-developed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
[Sakari Ailus: squash a patch to fix missing mutex_unlock by Laurent.]
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
  • Loading branch information
Paul Elder authored and Hans Verkuil committed Dec 4, 2023
1 parent 0d9e32a commit 7a52ab4
Show file tree
Hide file tree
Showing 4 changed files with 2,258 additions and 0 deletions.
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -21671,6 +21671,7 @@ S: Maintained
T: git git://linuxtv.org/media_tree.git
F: Documentation/devicetree/bindings/media/i2c/thine,thp7312.yaml
F: Documentation/userspace-api/media/drivers/thp7312.rst
F: drivers/media/i2c/thp7312.c
F: include/uapi/linux/thp7312.h

THUNDERBOLT DMA TRAFFIC TEST DRIVER
Expand Down
16 changes: 16 additions & 0 deletions drivers/media/i2c/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,22 @@ source "drivers/media/i2c/et8ek8/Kconfig"

endif

menu "Camera ISPs"
visible if MEDIA_CAMERA_SUPPORT

config VIDEO_THP7312
tristate "THine THP7312 support"
depends on I2C
select MEDIA_CONTROLLER
select V4L2_CCI_I2C
select V4L2_FWNODE
select VIDEO_V4L2_SUBDEV_API
help
This is a Video4Linux2 sensor-level driver for the THine
THP7312 ISP.

endmenu

menu "Lens drivers"
visible if MEDIA_CAMERA_SUPPORT

Expand Down
1 change: 1 addition & 0 deletions drivers/media/i2c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ obj-$(CONFIG_VIDEO_TDA7432) += tda7432.o
obj-$(CONFIG_VIDEO_TDA9840) += tda9840.o
obj-$(CONFIG_VIDEO_TEA6415C) += tea6415c.o
obj-$(CONFIG_VIDEO_TEA6420) += tea6420.o
obj-$(CONFIG_VIDEO_THP7312) += thp7312.o
obj-$(CONFIG_VIDEO_THS7303) += ths7303.o
obj-$(CONFIG_VIDEO_THS8200) += ths8200.o
obj-$(CONFIG_VIDEO_TLV320AIC23B) += tlv320aic23b.o
Expand Down
Loading

0 comments on commit 7a52ab4

Please sign in to comment.