media: i2c: Add ar0234 camera sensor driver
Subsystems (2)
PATCH v5 1/1 media: i2c: Add ar0234 camera sensor driver
The driver is implemented with V4L2 framework,
and supports following features:
- manual exposure and analog/digital gain control
- vblank/hblank control
- vflip/hflip control
- runtime PM support
- 1280x960@30fps and 1920x1200@60fps support
- dynamical pll_params set
---
v2 --> v3:
- remove unused reg setting
- add vflip/hflip control
- add external clock check & lanes check
v3 --> v4:
- used macro for all registers defined in spec
- switch to {enable,disable}_streams
v4 --> v5:
- set pll params dynamically by CCS PLL helper
- remove fixed pixel rate and link freq list, filter valid link_freq through CCS PLL helper
- remove fixed external freq check, limited by CCS PLL helper
- add 1920x1200@60fps mode
The driver is tested with Intel IPU and refers todrivers/media/pci/intel/ipu6.
--- drivers/media/i2c/Kconfig | 11 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/ar0234.c | 1056 ++++++++++++++++++++++++++++++++++++ 3 files changed, 1068 insertions(+) create mode 100644 drivers/media/i2c/ar0234.c
drivers/media/i2c/Kconfig +11 -0
@@ -51,6 +51,17 @@ config VIDEO_ALVIUM_CSI2 To compile this driver as a module, choose M here: the module will be called alvium-csi2. +config VIDEO_AR0234 + tristate "ON Semiconductor AR0234 sensor support" + depends on ACPI || COMPILE_TEST + select V4L2_CCI_I2C + help + This is a Video4Linux2 sensor driver for the ON Semiconductor + AR0234 camera. + + To compile this driver as a module, choose M here: the + module will be called ar0234. + config VIDEO_AR0521 tristate "ON Semiconductor AR0521 sensor support" help
drivers/media/i2c/Makefile +1 -0
@@ -19,6 +19,7 @@ obj-$(CONFIG_VIDEO_AK7375) += ak7375.o obj-$(CONFIG_VIDEO_AK881X) += ak881x.o obj-$(CONFIG_VIDEO_ALVIUM_CSI2) += alvium-csi2.o obj-$(CONFIG_VIDEO_APTINA_PLL) += aptina-pll.o +obj-$(CONFIG_VIDEO_AR0234) += ar0234.o obj-$(CONFIG_VIDEO_AR0521) += ar0521.o obj-$(CONFIG_VIDEO_BT819) += bt819.o obj-$(CONFIG_VIDEO_BT856) += bt856.o
drivers/media/i2c/ar0234.c new file +1056 -0
1,056 lines not on this page · raw message
base-commit: 3c93533c94aa4b609dab8ea16648ce0849a92d6c
Signature · 1 line
2.34.1