Message ID | 20190708100641.2702-1-dongchun.zhu@mediatek.com (mailing list archive) |
---|---|
Headers |
Received: from vger.kernel.org ([209.132.180.67]) by www.linuxtv.org with esmtp (Exim 4.84_2) (envelope-from <linux-media-owner@vger.kernel.org>) id 1hkQd2-0001Cp-7b; Mon, 08 Jul 2019 10:12:12 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728946AbfGHKMK (ORCPT <rfc822;mkrufky@linuxtv.org> + 1 other); Mon, 8 Jul 2019 06:12:10 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:33203 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728596AbfGHKMK (ORCPT <rfc822; linux-media@vger.kernel.org>); Mon, 8 Jul 2019 06:12:10 -0400 X-UUID: 4fa6ef644d1e4e3c9b7dac5dafb96f67-20190708 X-UUID: 4fa6ef644d1e4e3c9b7dac5dafb96f67-20190708 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from <dongchun.zhu@mediatek.com>) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 2008999992; Mon, 08 Jul 2019 18:11:54 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 8 Jul 2019 18:11:53 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 8 Jul 2019 18:11:52 +0800 From: <dongchun.zhu@mediatek.com> To: <mchehab@kernel.org>, <robh+dt@kernel.org>, <mark.rutland@arm.com>, <matthias.bgg@gmail.com>, <sakari.ailus@linux.intel.com>, <tfiga@chromium.org>, <bingbu.cao@intel.com> CC: <srv_heupstream@mediatek.com>, <linux-mediatek@lists.infradead.org>, <linux-arm-kernel@lists.infradead.org>, <sj.huang@mediatek.com>, <linux-media@vger.kernel.org>, <devicetree@vger.kernel.org>, <louis.kuo@mediatek.com>, <shengnan.wang@mediatek.com>, <dongchun.zhu@mediatek.com> Subject: [PATCH 0/2] media: add support for DW9768 VCM driver Date: Mon, 8 Jul 2019 18:06:39 +0800 Message-ID: <20190708100641.2702-1-dongchun.zhu@mediatek.com> X-Mailer: git-send-email 2.9.2 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org |
Series |
media: add support for DW9768 VCM driver
|
|
Message
Dongchun Zhu
July 8, 2019, 10:06 a.m. UTC
From: Dongchun Zhu <dongchun.zhu@mediatek.com>
Hello,
Add a v4l2 sub-device driver for Dongwoon's DW9768 lens voice coil.
This is a voice coil module using the i2c bus to control the focus position.
The DW9768 can control the position with 10 bits value and
consists of two 8 bit registers show as below:
register 0x04(DW9768_REG_POSITION):
+---+---+---+---+---+---+---+---+
|D07|D06|D05|D04|D03|D02|D01|D00|
+---+---+---+---+---+---+---+---+
register 0x03:
+---+---+---+---+---+---+---+---+
|---|---|---|---|---|---|D09|D08|
+---+---+---+---+---+---+---+---+
This driver support :
- set DW9768 to standby mode once suspend and turn it back to active if resume
- set the position via V4L2_CID_FOCUS_ABSOLUTE ctrl
Dongchun Zhu (2):
media: i2c: dw9768: Add DT support and MAINTAINERS entry
media: i2c: dw9768: Add DW9768 VCM driver
.../bindings/media/i2c/dongwoon,dw9768.txt | 9 +
MAINTAINERS | 8 +
drivers/media/i2c/Kconfig | 10 +
drivers/media/i2c/Makefile | 1 +
drivers/media/i2c/dw9768.c | 458 +++++++++++++++++++++
5 files changed, 486 insertions(+)
create mode 100644 Documentation/devicetree/bindings/media/i2c/dongwoon,dw9768.txt
create mode 100644 drivers/media/i2c/dw9768.c
Comments
On Mon, Jul 8, 2019 at 7:12 PM <dongchun.zhu@mediatek.com> wrote: > > From: Dongchun Zhu <dongchun.zhu@mediatek.com> > > Hello, > > Add a v4l2 sub-device driver for Dongwoon's DW9768 lens voice coil. > This is a voice coil module using the i2c bus to control the focus position. > > The DW9768 can control the position with 10 bits value and > consists of two 8 bit registers show as below: > register 0x04(DW9768_REG_POSITION): > +---+---+---+---+---+---+---+---+ > |D07|D06|D05|D04|D03|D02|D01|D00| > +---+---+---+---+---+---+---+---+ > register 0x03: > +---+---+---+---+---+---+---+---+ > |---|---|---|---|---|---|D09|D08| > +---+---+---+---+---+---+---+---+ > > This driver support : > - set DW9768 to standby mode once suspend and turn it back to active if resume > - set the position via V4L2_CID_FOCUS_ABSOLUTE ctrl > > Dongchun Zhu (2): > media: i2c: dw9768: Add DT support and MAINTAINERS entry > media: i2c: dw9768: Add DW9768 VCM driver > > .../bindings/media/i2c/dongwoon,dw9768.txt | 9 + > MAINTAINERS | 8 + > drivers/media/i2c/Kconfig | 10 + > drivers/media/i2c/Makefile | 1 + > drivers/media/i2c/dw9768.c | 458 +++++++++++++++++++++ > 5 files changed, 486 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/i2c/dongwoon,dw9768.txt > create mode 100644 drivers/media/i2c/dw9768.c > > -- > 2.9.2 > Gentle ping. Some help with review would be appreciated! Best regards, Tomasz