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
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.
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.
15 https://forums.raspberrypi.com/viewtopic.php?p=2300215
17 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
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(-)
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
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.
35 --- a/arch/arm/boot/dts/overlays/ov9281-overlay.dts
36 +++ b/arch/arm/boot/dts/overlays/ov9281-overlay.dts
44 + clock-noncontinuous;
49 + target = <&cam_endpoint>;
51 + clock-noncontinuous;
56 rotation = <&cam_node>,"rotation:0";
57 orientation = <&cam_node>,"orientation:0";
59 <&cam_node>, "avdd-supply:0=",<&cam0_reg>,
60 <®_frag>, "target:0=",<&cam0_reg>;
63 + clk-continuous = <0>, "-6-7";