dw9714: Initial driver for dw9714 VCM
PATCH v8 1/1 dw9714: Initial driver for dw9714 VCM
DW9714 is a 10 bit DAC, designed for linear
control of voice coil motor.
This driver creates a V4L2 subdevice and
provides control to set the desired focus.
---
Changes in v8:
- Set the PM runtime status as "active" before calling pm_runtime_enable() in probe
Changes in v7:
- Removed DW9714 ACPI hwid from ACPI match table, until the correct ACPI id is available
- Added details in an error message
Changes in v6:
- Addressed review comments from Sakari on v5 patch
Changes in v5:
- Addressed review comments from Tomasz, Sakari and Sylwester on v4 of this patch
Changes in v4:
- Addressed review comments from Tomasz
Changes in v3:
- Addressed most of the review comments from Sakari
on v1 of this patch
Changes in v2:
- Addressed review comments from Hans Verkuil
- Fixed a debug message typo
--- drivers/media/i2c/Kconfig | 10 ++ drivers/media/i2c/Makefile | 1 + drivers/media/i2c/dw9714.c | 291 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 302 insertions(+) create mode 100644 drivers/media/i2c/dw9714.c
drivers/media/i2c/Kconfig +10 -0
@@ -300,6 +300,16 @@ config VIDEO_AD5820 This is a driver for the AD5820 camera lens voice coil. It is used for example in Nokia N900 (RX-51). +config VIDEO_DW9714 + tristate "DW9714 lens voice coil support" + depends on I2C && VIDEO_V4L2 && MEDIA_CONTROLLER + depends on VIDEO_V4L2_SUBDEV_API + ---help--- + This is a driver for the DW9714 camera lens voice coil. + DW9714 is a 10 bit DAC with 120mA output current sink + capability. This is designed for linear control of + voice coil motors, controlled via I2C serial interface. + config VIDEO_SAA7110 tristate "Philips SAA7110 video decoder" depends on VIDEO_V4L2 && I2C
drivers/media/i2c/Makefile +1 -0
@@ -21,6 +21,7 @@ obj-$(CONFIG_VIDEO_SAA7127) += saa7127.o obj-$(CONFIG_VIDEO_SAA7185) += saa7185.o obj-$(CONFIG_VIDEO_SAA6752HS) += saa6752hs.o obj-$(CONFIG_VIDEO_AD5820) += ad5820.o +obj-$(CONFIG_VIDEO_DW9714) += dw9714.o obj-$(CONFIG_VIDEO_ADV7170) += adv7170.o obj-$(CONFIG_VIDEO_ADV7175) += adv7175.o obj-$(CONFIG_VIDEO_ADV7180) += adv7180.o
drivers/media/i2c/dw9714.c new file +291 -0
291 lines not on this page · raw message
Signature · 1 line
1.9.1
Hi Rajmohan,
Quoted 7 lines · Rajmohan Mani
DW9714 is a 10 bit DAC, designed for linear
control of voice coil motor.This driver creates a V4L2 subdevice and
provides control to set the desired focus.Signed-off-by Rajmohan Mani <[email protected]>
Signature · 2 lines
Sakari Ailus e-mail: [email protected] XMPP: [email protected]
Sakari Ailus
AppliedQuoted 6 lines · Sakari Ailus
Hi Rajmohan,
Quoted 3 lines · Rajmohan Mani
DW9714 is a 10 bit DAC, designed for linear
control of voice coil motor.
Quoted 6 lines
Quoted 4 lines
This driver creates a V4L2 subdevice and
provides control to set the desired focus.Signed-off-by Rajmohan Mani <[email protected]>Acked-by Sakari Ailus <[email protected]>
Applied to my tree.
Signature · 2 lines
Sakari Ailus e-mail: [email protected] XMPP: [email protected]
Hi Sakari,
Quoted 5 lines
Quoted 5 lines · Rajmohan Mani
Quoted 3 lines
DW9714 is a 10 bit DAC, designed for linear control of voice coil motor.
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
This driver creates a V4L2 subdevice and provides control to set the desired focus.
Signed-off-by Rajmohan Mani <[email protected]>Acked-by Sakari Ailus <[email protected]>Applied to my tree.
Great. Thanks for the update.