]> git.ipfire.org Git - thirdparty/openwrt.git/blob
a2b7df78d9c9130f457bc1e585538bdaef2724f3
[thirdparty/openwrt.git] /
1 From ac56a225e0889e60e912ecd3a51333a5aee901fc Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Tue, 4 Mar 2025 15:28:53 +0000
4 Subject: [PATCH] dtoverlays: ov9281: Add continuous clock option as an
5 override
6
7 The previous change to make ov9281 always run in continuous clock
8 mode causes problems on Pi3 for reasons that aren't fully
9 understood. Pi4 is quite happy with it.
10
11 Change the default back to being non-continuous clock, and add
12 an override to select continuous clock mode and its slightly
13 greater max frame rate.
14
15 https://forums.raspberrypi.com/viewtopic.php?p=2300215
16
17 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
18 ---
19 arch/arm/boot/dts/overlays/README | 3 +++
20 arch/arm/boot/dts/overlays/ov9281-overlay.dts | 16 +++++++++++++++-
21 2 files changed, 18 insertions(+), 1 deletion(-)
22
23 --- a/arch/arm/boot/dts/overlays/README
24 +++ b/arch/arm/boot/dts/overlays/README
25 @@ -3570,6 +3570,9 @@ Params: rotation Mounting
26 Compute Module (CSI0, i2c_vc, and cam0_reg).
27 arducam Slow down the regulator for slow Arducam
28 modules.
29 + clk-continuous Switch to continuous mode on the CSI clock lane,
30 + which increases the maximum frame rate slightly.
31 + Appears not to work on Pi3.
32
33
34 Name: papirus
35 --- a/arch/arm/boot/dts/overlays/ov9281-overlay.dts
36 +++ b/arch/arm/boot/dts/overlays/ov9281-overlay.dts
37 @@ -64,6 +64,20 @@
38 };
39 };
40
41 + fragment@6 {
42 + target = <&csi_ep>;
43 + __overlay__ {
44 + clock-noncontinuous;
45 + };
46 + };
47 +
48 + fragment@7 {
49 + target = <&cam_endpoint>;
50 + __overlay__ {
51 + clock-noncontinuous;
52 + };
53 + };
54 +
55 __overrides__ {
56 rotation = <&cam_node>,"rotation:0";
57 orientation = <&cam_node>,"orientation:0";
58 @@ -75,7 +89,7 @@
59 <&cam_node>, "avdd-supply:0=",<&cam0_reg>,
60 <&reg_frag>, "target:0=",<&cam0_reg>;
61 arducam = <0>, "+5";
62 -
63 + clk-continuous = <0>, "-6-7";
64 };
65 };
66