Skip to content

Commit ac56a22

Browse files
6by9pelwell
authored andcommitted
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>
1 parent f1076a9 commit ac56a22

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

arch/arm/boot/dts/overlays/README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3570,6 +3570,9 @@ Params: rotation Mounting rotation of the camera sensor (0 or
35703570
Compute Module (CSI0, i2c_vc, and cam0_reg).
35713571
arducam Slow down the regulator for slow Arducam
35723572
modules.
3573+
clk-continuous Switch to continuous mode on the CSI clock lane,
3574+
which increases the maximum frame rate slightly.
3575+
Appears not to work on Pi3.
35733576

35743577

35753578
Name: papirus

arch/arm/boot/dts/overlays/ov9281-overlay.dts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,20 @@
6464
};
6565
};
6666

67+
fragment@6 {
68+
target = <&csi_ep>;
69+
__overlay__ {
70+
clock-noncontinuous;
71+
};
72+
};
73+
74+
fragment@7 {
75+
target = <&cam_endpoint>;
76+
__overlay__ {
77+
clock-noncontinuous;
78+
};
79+
};
80+
6781
__overrides__ {
6882
rotation = <&cam_node>,"rotation:0";
6983
orientation = <&cam_node>,"orientation:0";
@@ -75,7 +89,7 @@
7589
<&cam_node>, "avdd-supply:0=",<&cam0_reg>,
7690
<&reg_frag>, "target:0=",<&cam0_reg>;
7791
arducam = <0>, "+5";
78-
92+
clk-continuous = <0>, "-6-7";
7993
};
8094
};
8195

0 commit comments

Comments
 (0)