[v15,0/2] media: i2c: Add support for OV02A10 sensor

Message ID 20201013130503.2412-1-dongchun.zhu@mediatek.com (mailing list archive)
Headers
Series media: i2c: Add support for OV02A10 sensor |

Message

Dongchun Zhu Oct. 13, 2020, 1:05 p.m. UTC
  Hello,

OminiVision OV02A10 is a 2-megapixel 10-bit RAW CMOS 1/5" sensor which has
a single MIPI lane interface. This is a camera sensor using the I2C bus
for control and the CSI-2 bus for data. 

The driver is implemented with V4L2 framework.
 - Async registered as a V4L2 sub-device.
 - As the first component of camera system including ISP pipeline.
 - A media entity providing one source pad in common and two for dual-cam.

Also this driver supports following features:
 - Manual exposure and analog gain control support
 - Vertical blanking control support
 - Test pattern support
 - Media controller support
 - Runtime PM support
 - Support resolution: 1600x1200 at 30FPS

Changes of v15 mainly address comments from Rob, Andy, Tomasz and Sakari.
Compared to v14:
 - Fix imperfections in DT
 - Use dev_err_probe() API in probe
 - Use i2c_smbus_read_word_swapped() API to read 16-bit data.
 - Fix other review comments to improve readability.

Please review.
Thanks.

Dongchun Zhu (2):
  media: dt-bindings: media: i2c: Document OV02A10 bindings
  media: i2c: Add OV02A10 image sensor driver

 .../bindings/media/i2c/ovti,ov02a10.yaml           |  162 +++
 MAINTAINERS                                        |    8 +
 drivers/media/i2c/Kconfig                          |   13 +
 drivers/media/i2c/Makefile                         |    1 +
 drivers/media/i2c/ov02a10.c                        | 1058 ++++++++++++++++++++
 5 files changed, 1242 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/media/i2c/ovti,ov02a10.yaml
 create mode 100644 drivers/media/i2c/ov02a10.c