Skip to contentSkip to conversation

media/i2c: Add driver for ams Mira220

PATCH In review Philippe Baetens 1 participant 1 message Jun 26, 2025 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 media/i2c: Add driver for ams Mira220

Adds a driver for the NIR-enhanced Mira220 1600x1400 global shutter image sensor.

new in v2:
Fix checkpatch warnings.

---
 drivers/media/i2c/Kconfig   |   14 +
 drivers/media/i2c/Makefile  |    1 +
 drivers/media/i2c/mira220.c | 1973 +++++++++++++++++++++++++++++++++++
 3 files changed, 1988 insertions(+)
 create mode 100644 drivers/media/i2c/mira220.c
drivers/media/i2c/Kconfig +14 -0
index e68202954..4fb5cd3ed 100644
@@ -269,6 +269,20 @@ config VIDEO_IMX415
 config VIDEO_MAX9271_LIB
 	tristate
 
+config VIDEO_MIRA220
+	tristate "ams MIRA220 sensor support"
+	depends on I2C && VIDEO_DEV
+	select MEDIA_CONTROLLER
+	select VIDEO_V4L2_SUBDEV_API
+	select V4L2_CCI_I2C
+	select V4L2_FWNODE
+	help
+	  This is a Video4Linux2 sensor driver for the ams
+	  MIRA220 camera.
+
+	  To compile this driver as a module, choose M here: the
+	  module will be called mira220.
+
 config VIDEO_MT9M001
 	tristate "mt9m001 support"
 	help
drivers/media/i2c/Makefile +1 -0
index 5873d2943..1d169cd0d 100644
@@ -70,6 +70,7 @@ obj-$(CONFIG_VIDEO_MAX9271_LIB) += max9271.o
 obj-$(CONFIG_VIDEO_MAX9286) += max9286.o
 obj-$(CONFIG_VIDEO_MAX96714) += max96714.o
 obj-$(CONFIG_VIDEO_MAX96717) += max96717.o
+obj-$(CONFIG_VIDEO_MIRA220)	+= mira220.o
 obj-$(CONFIG_VIDEO_ML86V7667) += ml86v7667.o
 obj-$(CONFIG_VIDEO_MSP3400) += msp3400.o
 obj-$(CONFIG_VIDEO_MT9M001) += mt9m001.o
drivers/media/i2c/mira220.c new file +1973 -0

1,973 lines not on this page · raw message

Signature · 1 line
2.39.5