difos/target/linux/bcm27xx/patches-6.12/950-0515-media-i2c-ov5647-Use-the-same-PLL-config-for-full-10.patch
Álvaro Fernández Rojas 8f9e91ad03 bcm27xx: add 6.12 patches from RPi repo
These patches were generated from:
https://github.com/raspberrypi/linux/commits/rpi-6.12.y
With the following command:
git format-patch -N v6.12.27..HEAD
(HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e)

Exceptions:
- (def)configs patches
- github workflows patches
- applied & reverted patches
- readme patches
- wireless patches

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2025-05-21 11:32:18 +02:00

53 lines
1.5 KiB
Diff

From 3c3f2c6a0a065e0ed2022ad25c0f847beafbfe72 Mon Sep 17 00:00:00 2001
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
Date: Tue, 15 Oct 2024 19:36:13 +0100
Subject: [PATCH] media: i2c: ov5647: Use the same PLL config for full, 1080p,
and binned modes
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>
---
drivers/media/i2c/ov5647.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--- a/drivers/media/i2c/ov5647.c
+++ b/drivers/media/i2c/ov5647.c
@@ -252,7 +252,7 @@ static struct regval_list ov5647_2592x19
};
static struct regval_list ov5647_1080p30_10bpp[] = {
- {0x3036, 0x62},
+ {0x3036, 0x69},
{0x3821, 0x00},
{0x3820, 0x00},
{0x3612, 0x5b},
@@ -288,7 +288,7 @@ static struct regval_list ov5647_1080p30
};
static struct regval_list ov5647_2x2binned_10bpp[] = {
- {0x3036, 0x62},
+ {0x3036, 0x69},
{0x3821, 0x01},
{0x3820, 0x41},
{0x3612, 0x59},
@@ -396,7 +396,7 @@ static const struct ov5647_mode ov5647_m
.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_m
.width = 2592,
.height = 1944,
},
- .pixel_rate = 81666700,
+ .pixel_rate = 87500000,
.hts = 1896,
.vts = 0x59b,
.reg_list = ov5647_2x2binned_10bpp,