media: hi556: Add support for reset GPIO
authorHans de Goede <hdegoede@redhat.com>
Mon, 15 Apr 2024 13:10:36 +0000 (15:10 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 22 Apr 2024 09:41:05 +0000 (11:41 +0200)
commit860f262dd0dd9206cfb2d446af319b5d5a95b3e3
tree427bfa99d15cfcca440b75e32cf829e5a1fc18e1
parent7d968b5badfccb1c05892cd6d6d76fd58bb9636f
media: hi556: Add support for reset GPIO

On some ACPI platforms, such as Chromebooks the ACPI methods to
change the power-state (_PS0 and _PS3) fully take care of powering
on/off the sensor.

On other ACPI platforms, such as e.g. various HP models with IPU6 +
hi556 sensor, the sensor driver must control the reset GPIO itself.

Add support for having the driver control an optional reset GPIO.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/hi556.c