media: dw9807-vcm: Add support for DW9817 bidirectional VCM driver
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Tue, 3 Jan 2023 15:38:08 +0000 (15:38 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:26 +0000 (11:33 +0000)
commit92ecfaab67e86b301d5cd361a2a2614a2f214384
tree70e3e2caacb1a2832b12d198fc61188c78210725
parent34bfb8f466a1d912ec7f67a66c41003fea0218b5
media: dw9807-vcm: Add support for DW9817 bidirectional VCM driver

The DW9817 is effectively the same as DW9807 from a programming
interface, however it drives +/-100mA instead of 0-100mA. This means
that the power on ramp needs to take the lens from the midpoint, and
power off return it there. It also changes the default position for
the module.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/media/i2c/dw9807-vcm.c