]> git.itanic.dy.fi Git - linux-stable/commitdiff
media: ipu-bridge: Change ov2740 link-frequency to 180 MHz
authorHans de Goede <hdegoede@redhat.com>
Mon, 4 Dec 2023 12:39:46 +0000 (13:39 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 13 Dec 2023 12:21:20 +0000 (13:21 +0100)
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>
drivers/media/pci/intel/ipu-bridge.c

index e38198e259c03ce9444571d2a3902499492c6e45..f980e3125a7b9d0dbe91d07db7254576bfdfd2fc 100644 (file)
@@ -53,7 +53,7 @@ static const struct ipu_sensor_config ipu_supported_sensors[] = {
        /* Omnivision ov8856 */
        IPU_SENSOR_CONFIG("OVTI8856", 3, 180000000, 360000000, 720000000),
        /* Omnivision ov2740 */
-       IPU_SENSOR_CONFIG("INT3474", 1, 360000000),
+       IPU_SENSOR_CONFIG("INT3474", 1, 180000000),
        /* Hynix hi556 */
        IPU_SENSOR_CONFIG("INT3537", 1, 437000000),
        /* Omnivision ov13b10 */