lede/target/linux/bcm27xx/patches-6.12/950-0906-dtoverlays-ov9281-Add-continuous-clock-option-as-an-.patch
=?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= d81c03f05e 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-06-20 17:01:06 +08:00

66 lines
2.0 KiB
Diff

From 17904cb5a47f482baf26acc364f37d6d579ceb17 Mon Sep 17 00:00:00 2001
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
Date: Tue, 4 Mar 2025 15:28:53 +0000
Subject: [PATCH] dtoverlays: ov9281: Add continuous clock option as an
override
The previous change to make ov9281 always run in continuous clock
mode causes problems on Pi3 for reasons that aren't fully
understood. Pi4 is quite happy with it.
Change the default back to being non-continuous clock, and add
an override to select continuous clock mode and its slightly
greater max frame rate.
https://forums.raspberrypi.com/viewtopic.php?p=2300215
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
arch/arm/boot/dts/overlays/README | 3 +++
arch/arm/boot/dts/overlays/ov9281-overlay.dts | 15 +++++++++++++++
2 files changed, 18 insertions(+)
--- a/arch/arm/boot/dts/overlays/README
+++ b/arch/arm/boot/dts/overlays/README
@@ -3622,6 +3622,9 @@ Params: rotation Mounting
Compute Module (CSI0, i2c_vc, and cam0_reg).
arducam Slow down the regulator for slow Arducam
modules.
+ clk-continuous Switch to continuous mode on the CSI clock lane,
+ which increases the maximum frame rate slightly.
+ Appears not to work on Pi3.
Name: papirus
--- a/arch/arm/boot/dts/overlays/ov9281-overlay.dts
+++ b/arch/arm/boot/dts/overlays/ov9281-overlay.dts
@@ -70,6 +70,20 @@
};
};
+ fragment@7 {
+ target = <&csi_ep>;
+ __overlay__ {
+ clock-noncontinuous;
+ };
+ };
+
+ fragment@8 {
+ target = <&cam_endpoint>;
+ __overlay__ {
+ clock-noncontinuous;
+ };
+ };
+
__overrides__ {
rotation = <&cam_node>,"rotation:0";
orientation = <&cam_node>,"orientation:0";
@@ -81,6 +95,7 @@
<&cam_node>, "avdd-supply:0=",<&cam0_reg>,
<&reg_frag>, "target:0=",<&cam0_reg>;
arducam = <0>, "+6";
+ clk-continuous = <0>, "-7-8";
};
};