Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: ipu-bridge: Change ov2740 link-frequency to 180 MHz

The only known devices that use an ov2740 sensor in combination with
the ipu-bridge code are various Lenovo ThinkPad models, which all
need the link-frequency to be 180 MHz for things to work properly.

The ov2740 driver used to only support 360 MHz link-frequency,
which is why the ipu-bridge entry used 360 MHz, but now the
ov2740 driver has been extended to also support 180 MHz.

The ov2740 is actually used with 360 MHz link-frequency on Chromebooks.
On Chromebooks the camera/sensor fwnode graph is part of the ACPI tables.
The ipu-bridge code is used to dynamically generate the graph when it is
missing, so it is not used on Chromebooks and the ov2740 will keep using
360 MHz link-frequency there as before.

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>

authored by

Hans de Goede and committed by
Hans Verkuil
fb16c04a efff0a80

+1 -1
+1 -1
drivers/media/pci/intel/ipu-bridge.c
··· 53 53 /* Omnivision ov8856 */ 54 54 IPU_SENSOR_CONFIG("OVTI8856", 3, 180000000, 360000000, 720000000), 55 55 /* Omnivision ov2740 */ 56 - IPU_SENSOR_CONFIG("INT3474", 1, 360000000), 56 + IPU_SENSOR_CONFIG("INT3474", 1, 180000000), 57 57 /* Hynix hi556 */ 58 58 IPU_SENSOR_CONFIG("INT3537", 1, 437000000), 59 59 /* Omnivision ov13b10 */