[0/2] media: i2c: Add ROHM BU64754 Focus Motor driver

Message ID 20230915165946.4183839-1-kieran.bingham@ideasonboard.com (mailing list archive)
Series media: i2c: Add ROHM BU64754 Focus Motor driver |


Kieran Bingham Sept. 15, 2023, 4:59 p.m. UTC
  Provide support for the ROHM Motor Driver for Camera Autofocus.

Aside from a snippet of a product brief and the address to update for
the postion and power control I have very little information on this
device, so I have tried to keep it simple.

The new CCI helpers are great for simplifying the i2c register access
and setting up regmap!.

Register 0x00 on this device reads as 0x0705, and I believe this part is
also mentioned as BU6475 (making a leap there to assume that '75' is the
version) - so we could identify this at runtime. However as I don't have
a register datasheet to confirm this I have not implemented any runtime
version detection. Perhaps in the future if there are more ROHM VCMs
supported it could be useful.

Kieran Bingham (2):
  Documentation: dt-bindings: media: i2c: Add ROHM BU64754 bindings
  media: i2c: Add ROHM BU64754 Camera Autofocus Actuator

 .../bindings/media/i2c/rohm,bu64754.yaml      |  48 +++
 MAINTAINERS                                   |   8 +
 drivers/media/i2c/Kconfig                     |  13 +
 drivers/media/i2c/Makefile                    |   1 +
 drivers/media/i2c/bu64754.c                   | 308 ++++++++++++++++++
 5 files changed, 378 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/media/i2c/rohm,bu64754.yaml
 create mode 100644 drivers/media/i2c/bu64754.c