|
|
Log in / Subscribe / Register

media: i2c: Add support for OV02A10 sensor

From:  Dongchun Zhu <dongchun.zhu-AT-mediatek.com>
To:  <linus.walleij-AT-linaro.org>, <bgolaszewski-AT-baylibre.com>, <mchehab-AT-kernel.org>, <andriy.shevchenko-AT-linux.intel.com>, <robh+dt-AT-kernel.org>, <mark.rutland-AT-arm.com>, <sakari.ailus-AT-linux.intel.com>, <drinkcat-AT-chromium.org>, <tfiga-AT-chromium.org>, <matthias.bgg-AT-gmail.com>, <bingbu.cao-AT-intel.com>
Subject:  [V9, 0/2] media: i2c: Add support for OV02A10 sensor
Date:  Sat, 23 May 2020 16:41:01 +0800
Message-ID:  <20200523084103.31276-1-dongchun.zhu@mediatek.com>
Cc:  <srv_heupstream-AT-mediatek.com>, <linux-mediatek-AT-lists.infradead.org>, <linux-arm-kernel-AT-lists.infradead.org>, <sj.huang-AT-mediatek.com>, <linux-media-AT-vger.kernel.org>, <devicetree-AT-vger.kernel.org>, <louis.kuo-AT-mediatek.com>, <shengnan.wang-AT-mediatek.com>, <dongchun.zhu-AT-mediatek.com>
Archive-link:  Article


Hello,

This series adds DT bindings in YAML and V4L2 sub-device driver for Omnivision's
OV02A10 2 megapixel CMOS 1/5" sensor, which has a single MIPI lane interface(I/F)
and output format of 10-bit RAW.

The driver is implemented with V4L2 Framework.
 - Async registered as one V4L2 sub-device.
 - As the first component of camera system including Seninf/ISP processing pipeline.
 - A media entity that provides one source pad in common and two for dual camera.
 
Previous versions of this patch-set can be found here:
 v8: https://lore.kernel.org/linux-media/20200509080627.23222-...
 v7: https://lore.kernel.org/linux-media/20200430080924.1140-1...
 v6: https://lore.kernel.org/linux-media/20191211112849.16705-...
 v5: https://lore.kernel.org/linux-media/20191104105713.24311-...
 v4: https://lore.kernel.org/linux-media/20190907092728.23897-...
 v3: https://lore.kernel.org/linux-media/20190819034331.13098-...
 v2: https://lore.kernel.org/linux-media/20190704084651.3105-1...
 v1: https://lore.kernel.org/linux-media/20190523102204.24112-...

Changes of v9 mainly address comments from Rob, Sakari, Tomasz, Andy.
Including:
 - Add more detailed descriptions for powerdown-gpios and reset-gpios in DT
 - Set default to properties: "rotation" and "ovti,mipi-tx-speed"
 - Remove reserved values of "ovti,mipi-tx-speed"
 - Use ARRAY_SIZE() directly to replace of defining macro function
 - Remove __maybe_unused specifier for ov02a10_power_on and ov02a10_power_off
 - Refine driver by removing unnecessary logs and unused macros or fields.
 - Power off sensor when async register subdev failed and !pm_runtime_enabled()
 - Fix other review comments in v8

Please review.
Thanks.

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

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

-- 
2.9.2


Copyright © 2020, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds