LX898217XC is a 11 bit DAC, designed for linear control of voice coil motor. This driver creates a V4L2 subdevice and provides control to set the desired focus.
Tested on Oneplus 6 (oneplus-enchilada) Co-developed-by: Vitalii Skorkin <[email protected]> Signed-off-by: Vitalii Skorkin <[email protected]> Co-developed-by: Antonio Rische <[email protected]> Signed-off-by: Antonio Rische <[email protected]> Signed-off-by: Vasiliy Doylov <[email protected]> --- Changes in v3: - Fixed MAINTAINERS (Krzysztof) - Reordered commits (Krzysztof) - Removed blank line from device-tree documentation (Krzysztof) - Refactored to use CCI regmap - Refactored to use dev_err_probe in probe - Link to v2: https://lore.kernel.org/all/20250304-media-i2c-lc898217xc-initial-driver-v2-0-6a463cef3...@mainlining.org/ Changes in v2: - PM functions annotated as __maybe_unused. - Fixed dt bindings documentation commit message - Added v4l2 events (now v4l2-compliance shows no failed tests) - Link to v1: https://lore.kernel.org/r/20250304-media-i2c-lc898217xc-initial-driver-v1-0-e2ffd2b2f...@mainlining.org --- Vasiliy Doylov (3): media: dt-bindings: Add LC898217XC documentation media: i2c: Add driver for LC898217XC VCM MAINTAINERS: Add entry for Onsemi LC898217XC lens voice coil driver .../bindings/media/i2c/onnn,lc898217xc.yaml | 53 +++++ MAINTAINERS | 7 + drivers/media/i2c/Kconfig | 9 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/lc898217xc.c | 254 +++++++++++++++++++++ 5 files changed, 324 insertions(+) --- base-commit: 7d31f578f3230f3b7b33b0930b08f9afd8429817 change-id: 20250227-media-i2c-lc898217xc-initial-driver-d7b50a135ce5 Best regards, -- Vasiliy Doylov <[email protected]>

