Skip to content

Commit 7957a80

Browse files
shcgit6by9
authored andcommitted
media: i2c: Add driver for Sony IMX662 sensor
This patch adds a V4L2 subdevice driver for the Sony IMX662 CMOS image sensor. The sensor has a native resolution of 1936x1100 (effective 1920x1080) and can achieve up to 90 frames per second depending on the configuration. The driver supports: - MIPI CSI-2 with 2 or 4 data lanes. - RAW10 and RAW12 formats (both colour and monochrome). - Controls: exposure, analogue gain, horizontal/vertical blanking, horizontal/vertical flip, brightness. - Runtime PM. - Cropping via the selection API. - Multiple link frequencies selectable via device tree. Tested on ARM64 Rockchip RK3568 platform with a 24 MHz external clock and various link frequencies. Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com> Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent c095f3c commit 7957a80

File tree

3 files changed

+1113
-0
lines changed

3 files changed

+1113
-0
lines changed

drivers/media/i2c/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,17 @@ config VIDEO_IMX519
336336
To compile this driver as a module, choose M here: the
337337
module will be called IMX519.
338338

339+
config VIDEO_IMX662
340+
tristate "Sony IMX662 sensor support"
341+
depends on OF || COMPILE_TEST
342+
select V4L2_CCI_I2C
343+
help
344+
This is a Video4Linux2 sensor driver for the Sony
345+
IMX662 camera.
346+
347+
To compile this driver as a module, choose M here: the
348+
module will be called imx662.
349+
339350
config VIDEO_IMX708
340351
tristate "Sony IMX708 sensor support"
341352
depends on I2C && VIDEO_DEV

drivers/media/i2c/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ obj-$(CONFIG_VIDEO_IMX415) += imx415.o
6767
obj-$(CONFIG_VIDEO_IMX477) += imx477.o
6868
obj-$(CONFIG_VIDEO_IMX500) += imx500.o
6969
obj-$(CONFIG_VIDEO_IMX519) += imx519.o
70+
obj-$(CONFIG_VIDEO_IMX662) += imx662.o
7071
obj-$(CONFIG_VIDEO_IMX708) += imx708.o
7172
obj-$(CONFIG_VIDEO_IR_I2C) += ir-kbd-i2c.o
7273
obj-$(CONFIG_VIDEO_IRS1125) += irs1125.o

0 commit comments

Comments
 (0)