]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: i2c: ov5647: Use the same PLL config for full, 1080p, and binned modes
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 22 Dec 2025 08:15:39 +0000 (13:45 +0530)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 14 Jan 2026 22:33:03 +0000 (23:33 +0100)
In order to simplify the driver slightly, use the same PLL
configuration, and hence pixel rate and link frequency (to be
added) for the full, 1080p, and binned modes.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Jai Luthra <jai.luthra@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/ov5647.c

index 13b703f39b106b5ac43db23612ae051e475bb734..d4a13e17692ff178e9dc257bcca0e44c92705825 100644 (file)
@@ -252,7 +252,7 @@ static struct regval_list ov5647_2592x1944_10bpp[] = {
 };
 
 static struct regval_list ov5647_1080p30_10bpp[] = {
-       {0x3036, 0x62},
+       {0x3036, 0x69},
        {0x3821, 0x02},
        {0x3820, 0x00},
        {0x3612, 0x5b},
@@ -288,7 +288,7 @@ static struct regval_list ov5647_1080p30_10bpp[] = {
 };
 
 static struct regval_list ov5647_2x2binned_10bpp[] = {
-       {0x3036, 0x62},
+       {0x3036, 0x69},
        {0x3821, 0x03},
        {0x3820, 0x41},
        {0x3612, 0x59},
@@ -396,7 +396,7 @@ static const struct ov5647_mode ov5647_modes[] = {
                        .width          = 1928,
                        .height         = 1080,
                },
-               .pixel_rate     = 81666700,
+               .pixel_rate     = 87500000,
                .hts            = 2416,
                .vts            = 0x450,
                .reg_list       = ov5647_1080p30_10bpp,
@@ -417,7 +417,7 @@ static const struct ov5647_mode ov5647_modes[] = {
                        .width          = 2592,
                        .height         = 1944,
                },
-               .pixel_rate     = 81666700,
+               .pixel_rate     = 87500000,
                .hts            = 1896,
                .vts            = 0x59b,
                .reg_list       = ov5647_2x2binned_10bpp,