root@am62xx-evm:/sys/class/video4linux# media-ctl -p Media controller API version 6.1.33 [11554.340441] tp2855 1-0044: tp2855 tp2855_get_frame_interval() Media device information ------------------------ driver [11554.348682] tp2855 1-0044: tp2855 interval.numerator = 1 j721e-csi2rx model TI-CSI2RX serial b[11554.359609] tp2855 1-0044: tp2855 tp2855->fps = 25 us info platform:30102000.ticsi2rx hw revision 0x1 [11554.370037] tp2855 1-0044: tp2855 interval.denominator = 6 driver version 6.1.33 Device topology - entity 1: 30102000.[11554.381212] tp2855 1-0044: tp2855 tp2855_get_frame_interval() ticsi2rx (5 pads, 5 links, 1 route) type V4L2 subde[11554.392400] tp2855 1-0044: tp2855 interval.numerator = 1 v subtype Unknown flags 0 device node name /dev/v4l[11554.403307] tp2855 1-0044: tp2855 tp2855->fps = 25 -subdev0 routes: 0/0 -> 1/0 [ACTIVE] pad0: Sink [strea[11554.413720] tp2855 1-0044: tp2855 interval.denominator = 6 m:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb [11554.424891] tp2855 1-0044: tp2855 tp2855_get_frame_interval() ycbcr:601 quantization:lim-range] <- "cdns_csi2rx.30101000.cs[11554.436101] tp2855 1-0044: tp2855 interval.numerator = 1 i-bridge":1 [ENABLED,IMMUTABLE] pad1: Source [stream:0 fmt:[11554.447012] tp2855 1-0044: tp2855 tp2855->fps = 25 UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:60[11554.457427] tp2855 1-0044: tp2855 interval.denominator = 6 1 quantization:lim-range] -> "30102000.ticsi2rx context 0":0 [11554.468605] tp2855 1-0044: tp2855 tp2855_get_frame_interval() [ENABLED,IMMUTABLE] pad2: Source -> "30102000.ticsi2rx cont[11554.479807] tp2855 1-0044: tp2855 interval.numerator = 1 ext 1":0 [ENABLED,IMMUTABLE] pad3: Source -> "30102000.tics[11554.490722] tp2855 1-0044: tp2855 tp2855->fps = 25 i2rx context 2":0 [ENABLED,IMMUTABLE] pad4: Source -> "3010[11554.501140] tp2855 1-0044: tp2855 interval.denominator = 6 2000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE] - entity 7: cdns_csi2rx.30101000.csi-bridge (5 pads, 2 links, 1 route) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev1 routes: 0/0 -> 1/0 [ACTIVE] pad0: Sink [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range] <- "tp2855 1-0044":0 [ENABLED,IMMUTABLE] pad1: Source [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range] -> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE] pad2: Source pad3: Source pad4: Source - entity 13: tp2855 1-0044 (1 pad, 1 link, 4 routes) type V4L2 subdev subtype Sensor flags 0 device node name /dev/v4l-subdev2 routes: 0/0 -> 0/0 [ACTIVE] 0/0 -> 0/1 [ACTIVE] 0/0 -> 0/2 [ACTIVE] 0/0 -> 0/3 [ACTIVE] pad0: Source [stream:0 fmt:YUYV8_1X16/720x480@1/6 field:none] [stream:1 fmt:YUYV8_1X16/720x480@1/6 field:none] [stream:2 fmt:YUYV8_1X16/720x480@1/6 field:none] [stream:3 fmt:YUYV8_1X16/720x480@1/6 field:none] -> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE] - entity 19: 30102000.ticsi2rx context 0 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video0 pad0: Sink <- "30102000.ticsi2rx":1 [ENABLED,IMMUTABLE] - entity 25: 30102000.ticsi2rx context 1 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video1 pad0: Sink <- "30102000.ticsi2rx":2 [ENABLED,IMMUTABLE] - entity 31: 30102000.ticsi2rx context 2 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video2 pad0: Sink <- "30102000.ticsi2rx":3 [ENABLED,IMMUTABLE] - entity 37: 30102000.ticsi2rx context 3 (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video3 pad0: Sink <- "30102000.ticsi2rx":4 [ENABLED,IMMUTABLE] root@am62xx-evm:/sys/class/video4linux# ls -l total 0 lrwxrwxrwx 1 root root 0 Apr 28 17:42 v4l-subdev0 -> ../../devices/platform/bus@f0000/30102000.ticsi2rx/video4linux/v4l-subdev0 lrwxrwxrwx 1 root root 0 Apr 28 17:42 v4l-subdev1 -> ../../devices/platform/bus@f0000/30102000.ticsi2rx/30101000.csi-bridge/video4linux/v4l-subdev1 lrwxrwxrwx 1 root root 0 Apr 28 17:42 v4l-subdev2 -> ../../devices/platform/bus@f0000/20010000.i2c/i2c-1/1-0044/video4linux/v4l-subdev2 lrwxrwxrwx 1 root root 0 Apr 28 17:42 video0 -> ../../devices/platform/bus@f0000/30102000.ticsi2rx/video4linux/video0 lrwxrwxrwx 1 root root 0 Apr 28 17:42 video1 -> ../../devices/platform/bus@f0000/30102000.ticsi2rx/video4linux/video1 lrwxrwxrwx 1 root root 0 Apr 28 17:42 video2 -> ../../devices/platform/bus@f0000/30102000.ticsi2rx/video4linux/video2 lrwxrwxrwx 1 root root 0 Apr 28 17:42 video3 -> ../../devices/platform/bus@f0000/30102000.ticsi2rx/video4linux/video3 root@am62xx-evm:/sys/class/video4linux# v4l2-ctl --device=/dev/video0 --all Driver Info: Driver name : j721e-csi2rx Card type : j721e-csi2rx Bus info : platform:30102000.ticsi2rx Driver version : 6.1.33 Capabilities : 0xa4200001 Video Capture I/O MC Streaming Extended Pix Format Device Capabilities Device Caps : 0x24200001 Video Capture I/O MC Streaming Extended Pix Format Media Driver Info: Driver name : j721e-csi2rx Model : TI-CSI2RX Serial : Bus info : platform:30102000.ticsi2rx Media version : 6.1.33 Hardware revision: 0x00000001 (1) Driver version : 6.1.33 Interface Info: ID : 0x03000015 Type : V4L Video Entity Info: ID : 0x00000013 (19) Name : 30102000.ticsi2rx context 0 Function : V4L2 I/O Pad 0x01000014 : 0: Sink Link 0x02000017: from remote pad 0x1000003 of entity '30102000.ticsi2rx' (Video Interface Bridge): Data, Enabled, Immutable Priority: 2 Video input : 0 (30102000.ticsi2rx context 0: ok) Format Video Capture: Width/Height : 640/480 Pixel Format : 'UYVY' (UYVY 4:2:2) Field : Any Bytes per Line : 1280 Size Image : 614400 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Limited Range) Flags : root@am62xx-evm:/sys/class/video4linux# v4l2-ctl --device=/dev/video1 --all Driver Info: Driver name : j721e-csi2rx Card type : j721e-csi2rx Bus info : platform:30102000.ticsi2rx Driver version : 6.1.33 Capabilities : 0xa4200001 Video Capture I/O MC Streaming Extended Pix Format Device Capabilities Device Caps : 0x24200001 Video Capture I/O MC Streaming Extended Pix Format Media Driver Info: Driver name : j721e-csi2rx Model : TI-CSI2RX Serial : Bus info : platform:30102000.ticsi2rx Media version : 6.1.33 Hardware revision: 0x00000001 (1) Driver version : 6.1.33 Interface Info: ID : 0x0300001b Type : V4L Video Entity Info: ID : 0x00000019 (25) Name : 30102000.ticsi2rx context 1 Function : V4L2 I/O Pad 0x0100001a : 0: Sink Link 0x0200001d: from remote pad 0x1000004 of entity '30102000.ticsi2rx' (Video Interface Bridge): Data, Enabled, Immutable Priority: 2 Video input : 0 (30102000.ticsi2rx context 1: ok) Format Video Capture: Width/Height : 640/480 Pixel Format : 'UYVY' (UYVY 4:2:2) Field : Any Bytes per Line : 1280 Size Image : 614400 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Limited Range) Flags : root@am62xx-evm:/sys/class/video4linux# v4l2-ctl --device=/dev/video2 --all Driver Info: Driver name : j721e-csi2rx Card type : j721e-csi2rx Bus info : platform:30102000.ticsi2rx Driver version : 6.1.33 Capabilities : 0xa4200001 Video Capture I/O MC Streaming Extended Pix Format Device Capabilities Device Caps : 0x24200001 Video Capture I/O MC Streaming Extended Pix Format Media Driver Info: Driver name : j721e-csi2rx Model : TI-CSI2RX Serial : Bus info : platform:30102000.ticsi2rx Media version : 6.1.33 Hardware revision: 0x00000001 (1) Driver version : 6.1.33 Interface Info: ID : 0x03000021 Type : V4L Video Entity Info: ID : 0x0000001f (31) Name : 30102000.ticsi2rx context 2 Function : V4L2 I/O Pad 0x01000020 : 0: Sink Link 0x02000023: from remote pad 0x1000005 of entity '30102000.ticsi2rx' (Video Interface Bridge): Data, Enabled, Immutable Priority: 2 Video input : 0 (30102000.ticsi2rx context 2: ok) Format Video Capture: Width/Height : 640/480 Pixel Format : 'UYVY' (UYVY 4:2:2) Field : Any Bytes per Line : 1280 Size Image : 614400 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Limited Range) Flags : root@am62xx-evm:/sys/class/video4linux# v4l2-ctl --device=/dev/video3 --all Driver Info: Driver name : j721e-csi2rx Card type : j721e-csi2rx Bus info : platform:30102000.ticsi2rx Driver version : 6.1.33 Capabilities : 0xa4200001 Video Capture I/O MC Streaming Extended Pix Format Device Capabilities Device Caps : 0x24200001 Video Capture I/O MC Streaming Extended Pix Format Media Driver Info: Driver name : j721e-csi2rx Model : TI-CSI2RX Serial : Bus info : platform:30102000.ticsi2rx Media version : 6.1.33 Hardware revision: 0x00000001 (1) Driver version : 6.1.33 Interface Info: ID : 0x03000027 Type : V4L Video Entity Info: ID : 0x00000025 (37) Name : 30102000.ticsi2rx context 3 Function : V4L2 I/O Pad 0x01000026 : 0: Sink Link 0x02000029: from remote pad 0x1000006 of entity '30102000.ticsi2rx' (Video Interface Bridge): Data, Enabled, Immutable Priority: 2 Video input : 0 (30102000.ticsi2rx context 3: ok) Format Video Capture: Width/Height : 640/480 Pixel Format : 'UYVY' (UYVY 4:2:2) Field : Any Bytes per Line : 1280 Size Image : 614400 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Limited Range) Flags #cat camera_setting.sh #!/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 -R '"cdns_csi2rx.30101000.csi-bridge" [0/0 -> 1/0 [1], 0/1 -> 1/1 [1], 0/2 -> 1/2 [1], 0/3 -> 1/3 [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]' media-ctl -V '"cdns_csi2rx.30101000.csi-bridge":0/0 [fmt:SBGGI10_1X10/720x480 field:none colorspace:srgb]' media-ctl -V '"cdns_csi2rx.30101000.csi-bridge":0/1 [fmt:SBGGI10_1X10/720x480 field:none colorspace:srgb]' media-ctl -V '"cdns_csi2rx.30101000.csi-bridge":0/2 [fmt:SBGGI10_1X10/720x480 field:none colorspace:srgb]' media-ctl -V '"cdns_csi2rx.30101000.csi-bridge":0/3 [fmt:SBGGI10_1X10/720x480 field:none colorspace:srgb]' # Set j721e-csi2rx routes media-ctl -R '"30102000.ticsi2rx" [0/0 -> 1/0 [1], 0/1 -> 2/0 [1],0/2 -> 3/0 [1], 0/3 -> 4/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]' media-ctl -V '"30102000.ticsi2rx":0/0 [fmt:SBGGI10_1X10/720x480 field:none colorspace:srgb]' media-ctl -V '"30102000.ticsi2rx":0/1 [fmt:SBGGI10_1X10/720x480 field:none colorspace:srgb]' media-ctl -V '"30102000.ticsi2rx":0/2 [fmt:SBGGI10_1X10/720x480 field:none colorspace:srgb]' media-ctl -V '"30102000.ticsi2rx":0/3 [fmt:SBGGI10_1X10/720x480 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 v4l2-ctl -z platform:30102000.ticsi2rx -d "30102000.ticsi2rx context 0" -v width=720,height=480,pixelformat=BGI0 v4l2-ctl -z platform:30102000.ticsi2rx -d "30102000.ticsi2rx context 1" -v width=720,height=480,pixelformat=BGI0 v4l2-ctl -z platform:30102000.ticsi2rx -d "30102000.ticsi2rx context 2" -v width=720,height=480,pixelformat=BGI0 v4l2-ctl -z platform:30102000.ticsi2rx -d "30102000.ticsi2rx context 3" -v width=720,height=480,pixelformat=BGI0