Skip to content

Commit 9c68ba1

Browse files
6by9pelwell
authored andcommitted
dt: Add camX_sync option to configure a GPIO following cam FS/FE
Unicam now takes an optional GPIO to expose frame start/end timing, so add an override to configure that. Signed-off-by: Dave Stevenson <[email protected]>
1 parent 6a0ae67 commit 9c68ba1

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

arch/arm/boot/dts/broadcom/bcm270x-rpi.dtsi

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,19 @@
9797
drm_fb0_vc4 = <&aliases>, "drm-fb0=",&vc4;
9898
drm_fb1_vc4 = <&aliases>, "drm-fb1=",&vc4;
9999
drm_fb2_vc4 = <&aliases>, "drm-fb2=",&vc4;
100+
101+
cam1_sync = <&csi1>, "sync-gpios:0=", <&gpio>,
102+
<&csi1>, "sync-gpios:4",
103+
<&csi1>, "sync-gpios:8=0", <GPIO_ACTIVE_HIGH>;
104+
cam1_sync_inverted = <&csi1>, "sync-gpios:0=", <&gpio>,
105+
<&csi1>, "sync-gpios:4",
106+
<&csi1>, "sync-gpios:8=0", <GPIO_ACTIVE_LOW>;
107+
cam0_sync = <&csi0>, "sync-gpios:0=", <&gpio>,
108+
<&csi0>, "sync-gpios:4",
109+
<&csi0>, "sync-gpios:8=0", <GPIO_ACTIVE_HIGH>;
110+
cam0_sync_inverted = <&csi0>, "sync-gpios:0=", <&gpio>,
111+
<&csi0>, "sync-gpios:4",
112+
<&csi0>, "sync-gpios:8=0", <GPIO_ACTIVE_LOW>;
100113
};
101114
};
102115

arch/arm/boot/dts/overlays/README

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,18 @@ Params:
170170
Default of GPIO expander 5 on CM4, but override
171171
switches to normal GPIO.
172172

173+
cam0_sync Enable a GPIO to reflect frame sync from CSI0,
174+
going high on frame start, and low on frame end.
175+
176+
cam0_sync_inverted Enable a GPIO to reflect frame sync from CSI0
177+
going low on frame start, and high on frame end.
178+
179+
cam1_sync Enable a GPIO to reflect frame sync from CSI1,
180+
going high on frame start, and low on frame end.
181+
182+
cam1_sync_inverted Enable a GPIO to reflect frame sync from CSI1
183+
going low on frame start, and high on frame end.
184+
173185
cooling_fan Enables the Pi 5 cooling fan (enabled
174186
automatically by the firmware)
175187

0 commit comments

Comments
 (0)