[PATCH v4 0/3] media: i2c: lc898217xc: initial driver

From: Vasiliy Doylov via B4 Relay

Date: Tue Mar 24 2026 - 18:19:48 EST


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 <nikroks@xxxxxxxxxxxxxx>
Signed-off-by: Vitalii Skorkin <nikroks@xxxxxxxxxxxxxx>
Co-developed-by: Antonio Rische <nt8r@xxxxxxxxxxxxxx>
Signed-off-by: Antonio Rische <nt8r@xxxxxxxxxxxxxx>
Signed-off-by: Vasiliy Doylov <nekocwd@xxxxxxxxxxxxxx>
---
Changes in v4:
- Removed unused focus ctrl (Dave)
- Added ctrl state restore on runtime_resume (Dave)
- Removed subscribe/unsubscribe event handlers (Dave)
- Removed V4L2_SUBDEV_FL_HAS_EVENTS flag (Dave)
- Changed supplies from vcc to vdd + vana
- Fixed free and PM issues on probe fail
- Fixed typo in devicetree documentation
- Link to v3: https://lore.kernel.org/r/20251201-media-i2c-lc898217xc-initial-driver-v3-0-46e23897e921@xxxxxxxxxxxxxx

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-6a463cef3ea8@xxxxxxxxxxxxxx/

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-e2ffd2b2fd5e@xxxxxxxxxxxxxx

---
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 | 59 +++++
MAINTAINERS | 7 +
drivers/media/i2c/Kconfig | 9 +
drivers/media/i2c/Makefile | 1 +
drivers/media/i2c/lc898217xc.c | 289 +++++++++++++++++++++
5 files changed, 365 insertions(+)
---
base-commit: 09c0f7f1bcdbc3c37a5a760cbec76bf18f278406
change-id: 20250227-media-i2c-lc898217xc-initial-driver-d7b50a135ce5

Best regards,
--
Vasiliy Doylov <nekocwd@xxxxxxxxxxxxxx>