1 From 9c68ba121ba173dd5711b4537bfcdf82ec731725 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Wed, 3 Apr 2024 16:08:07 +0100
4 Subject: [PATCH 1040/1085] dt: Add camX_sync option to configure a GPIO
7 Unicam now takes an optional GPIO to expose frame start/end timing,
8 so add an override to configure that.
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
12 arch/arm/boot/dts/broadcom/bcm270x-rpi.dtsi | 13 +++++++++++++
13 arch/arm/boot/dts/overlays/README | 12 ++++++++++++
14 2 files changed, 25 insertions(+)
16 --- a/arch/arm/boot/dts/broadcom/bcm270x-rpi.dtsi
17 +++ b/arch/arm/boot/dts/broadcom/bcm270x-rpi.dtsi
19 drm_fb0_vc4 = <&aliases>, "drm-fb0=",&vc4;
20 drm_fb1_vc4 = <&aliases>, "drm-fb1=",&vc4;
21 drm_fb2_vc4 = <&aliases>, "drm-fb2=",&vc4;
23 + cam1_sync = <&csi1>, "sync-gpios:0=", <&gpio>,
24 + <&csi1>, "sync-gpios:4",
25 + <&csi1>, "sync-gpios:8=0", <GPIO_ACTIVE_HIGH>;
26 + cam1_sync_inverted = <&csi1>, "sync-gpios:0=", <&gpio>,
27 + <&csi1>, "sync-gpios:4",
28 + <&csi1>, "sync-gpios:8=0", <GPIO_ACTIVE_LOW>;
29 + cam0_sync = <&csi0>, "sync-gpios:0=", <&gpio>,
30 + <&csi0>, "sync-gpios:4",
31 + <&csi0>, "sync-gpios:8=0", <GPIO_ACTIVE_HIGH>;
32 + cam0_sync_inverted = <&csi0>, "sync-gpios:0=", <&gpio>,
33 + <&csi0>, "sync-gpios:4",
34 + <&csi0>, "sync-gpios:8=0", <GPIO_ACTIVE_LOW>;
38 --- a/arch/arm/boot/dts/overlays/README
39 +++ b/arch/arm/boot/dts/overlays/README
40 @@ -170,6 +170,18 @@ Params:
41 Default of GPIO expander 5 on CM4, but override
42 switches to normal GPIO.
44 + cam0_sync Enable a GPIO to reflect frame sync from CSI0,
45 + going high on frame start, and low on frame end.
47 + cam0_sync_inverted Enable a GPIO to reflect frame sync from CSI0
48 + going low on frame start, and high on frame end.
50 + cam1_sync Enable a GPIO to reflect frame sync from CSI1,
51 + going high on frame start, and low on frame end.
53 + cam1_sync_inverted Enable a GPIO to reflect frame sync from CSI1
54 + going low on frame start, and high on frame end.
56 cooling_fan Enables the Pi 5 cooling fan (enabled
57 automatically by the firmware)