From 1434cfa9721d1c28658ad2a5b50e9c196187f61d Mon Sep 17 00:00:00 2001 From: Shreyash Sinha Date: Tue, 13 Aug 2024 19:26:30 +0530 Subject: [PATCH] scripts: ox05b.sh: Added script to configure ox05b camera Signed-off-by: Shreyash Sinha --- scripts/ox05b.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 scripts/ox05b.sh diff --git a/scripts/ox05b.sh b/scripts/ox05b.sh new file mode 100755 index 0000000..f1d1d18 --- /dev/null +++ b/scripts/ox05b.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Set CDNS CSI Bridge +media-ctl -R '"cdns_csi2rx.30101000.csi-bridge" [0/0 -> 1/0 [1], 0/1 -> 1/1 [1]]' +media-ctl -V '"cdns_csi2rx.30101000.csi-bridge":0/0 [fmt:SBGGI10_1X10/2592x1944 field:none colorspace:srgb]' +media-ctl -V '"cdns_csi2rx.30101000.csi-bridge":0/1 [fmt:SBGGI10_1X10/2592x1944 field:none colorspace:srgb]' + +# Set j721e-csi2rx routes +media-ctl -R '"30102000.ticsi2rx" [0/0 -> 1/0 [1], 0/1 -> 2/0 [1]]' +media-ctl -V '"30102000.ticsi2rx":0/0 [fmt:SBGGI10_1X10/2592x1944 field:none colorspace:srgb]' +media-ctl -V '"30102000.ticsi2rx":0/1 [fmt:SBGGI10_1X10/2592x1944 field:none colorspace:srgb]' + +# Set video node formats +v4l2-ctl -z platform:30102000.ticsi2rx -d "30102000.ticsi2rx context 0" -v width=2592,height=1944,pixelformat=BGI0 +v4l2-ctl -z platform:30102000.ticsi2rx -d "30102000.ticsi2rx context 1" -v width=2592,height=1944,pixelformat=BGI0