From a1b10f384363c4e1dde6aca98619f1fe6d114a33 Mon Sep 17 00:00:00 2001 From: Arun Cheriyan Date: Sun, 30 Aug 2026 15:29:47 +0530 Subject: [PATCH] media: i2c: ov5647: Add 90fps support for VGA mode The OV5647 sensor supports 90fps operation in hardware, but the existing VGA mode is configured for 60fps and does not make use of this capability. Increase the PLL multiplier for the VGA mode from 0x46 to 0x69 to allow the sensor to operate at 90fps. Update the reported pixel rate from 58.333 MHz to 87.5 MHz to match the new PLL configuration. Signed-off-by: Arun Cheriyan --- drivers/media/i2c/ov5647.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/i2c/ov5647.c b/drivers/media/i2c/ov5647.c index 08b831def18bc4..ff3dddd469a8af 100644 --- a/drivers/media/i2c/ov5647.c +++ b/drivers/media/i2c/ov5647.c @@ -337,7 +337,7 @@ static struct regval_list ov5647_2x2binned_10bpp[] = { }; static struct regval_list ov5647_640x480_10bpp[] = { - {0x3036, 0x46}, + {0x3036, 0x69}, {0x3821, 0x01}, {0x3820, 0x41}, {0x3612, 0x59}, @@ -435,7 +435,7 @@ static const struct ov5647_mode ov5647_modes[] = { .reg_list = ov5647_2x2binned_10bpp, .num_regs = ARRAY_SIZE(ov5647_2x2binned_10bpp) }, - /* 10-bit VGA full FOV 60fps. 2x2 binned and subsampled down to VGA. */ + /* 10-bit VGA full FOV 90fps. 2x2 binned and subsampled down to VGA. */ { .format = { .code = MEDIA_BUS_FMT_SBGGR10_1X10, @@ -450,7 +450,7 @@ static const struct ov5647_mode ov5647_modes[] = { .width = 2560, .height = 1920, }, - .pixel_rate = 58333000, + .pixel_rate = 87500000, .link_freq_index = FREQ_INDEX_VGA, .hts = 1852, .vts = 0x1f8,