]> git.baikalelectronics.ru Git - kernel.git/commit
media: ipu3-cio2: Add support for instantiating i2c-clients for VCMs
authorHans de Goede <hdegoede@redhat.com>
Fri, 3 Dec 2021 10:28:57 +0000 (11:28 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 16 Dec 2021 19:58:56 +0000 (20:58 +0100)
commit94ba870d46ac7ea1b1c8d3eb4e515b6c82e3744a
treea2804ed58bb1026147fad9228b26fd9e0fffe107
parenta777ee8fc2987c6c67c4aaf71bc799315e8c830f
media: ipu3-cio2: Add support for instantiating i2c-clients for VCMs

Some sensors come with a variable-focus lens where the lens focus is
controller by a VCM (Voice Coil Motor). If there is a VCM for the
lens-focus, and if so which one, is described on the vcm_type field
of the ACPI SSDB table.

These VCMs are a second I2C device listed as an extra I2cSerialBusV2
resource in the same ACPI device as the sensor. The i2c-core-acpi.c
code only instantiates an i2c-client for the first I2cSerialBusV2
resource.

Add support for instantiating an i2c-client for the VCM with
the type of the i2c-client set based on the SSDB vcm_type field.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/pci/intel/ipu3/cio2-bridge.c
drivers/media/pci/intel/ipu3/cio2-bridge.h