Tool/software:
Hi TI expert,
we have custom board and using camera, with 1 camera plugin we have bellow log and can set mapping and can stream success
Manual config:
v4l2-ctl -d /dev/video-ar0234-cam0 --set-fmt-video=width=1280,height=720,pixelformat=UYVY
v4l2-ctl -d /dev/video-ar0234-cam0 --get-fmt-video
media-ctl -d 2 -V '"ar0234 7-0042":0 [fmt:UYVY8_1X16/1280x720 field:none]'
media-ctl -d 2 -V '"ds90ub953 6-0044":0 [fmt:UYVY8_1X16/1280x720 field:none]'
media-ctl -d 2 -V '"ds90ub960 6-0030":0 [fmt:UYVY8_1X16/1280x720 field:none]'
media-ctl -d 2 -V '"cdns_csi2rx.4524000.csi-bridge":0 [fmt:UYVY8_1X16/1280x720 field:none]'
media-ctl -d 2 -V '"4520000.ticsi2rx":0 [fmt:UYVY8_1X16/1280x720 field:none]'
media-ctl -d 2 -V '"4520000.ticsi2rx":2 [fmt:UYVY8_1X16/1280x720 field:none]'
v4l2-ctl -d /dev/video-ar0234-cam0 --stream-mmap
media-ctl -d 2 -p Media controller API version 6.12.17 Media device information ------------------------ driver j721e-csi2rx model TI-CSI2RX serial bus info platform:4520000.ticsi2rx hw revision 0x1 driver version 6.12.17 Device topology - entity 1: 4520000.ticsi2rx (9 pads, 9 links, 1 route) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev0 routes: 0/0 -> 2/0 [ACTIVE] pad0: SINK [stream:0 fmt:UYVY8_1X16/1280x720 field:none] <- "cdns_csi2rx.4524000.csi-bridge":1 [ENABLED,IMMUTABLE] pad1: SOURCE -> "4520000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE] pad2: SOURCE [stream:0 fmt:UYVY8_1X16/1280x720 field:none] -> "4520000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE] pad3: SOURCE -> "4520000.ticsi2rx context 2":0 [ENABLED,IMMUTABLE] pad4: SOURCE -> "4520000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE] pad5: SOURCE -> "4520000.ticsi2rx context 4":0 [ENABLED,IMMUTABLE] pad6: SOURCE -> "4520000.ticsi2rx context 5":0 [ENABLED,IMMUTABLE] pad7: SOURCE -> "4520000.ticsi2rx context 6":0 [ENABLED,IMMUTABLE] pad8: SOURCE -> "4520000.ticsi2rx context 7":0 [ENABLED,IMMUTABLE] - entity 11: cdns_csi2rx.4524000.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/1280x720 field:none] <- "ds90ub960 6-0030":4 [ENABLED,IMMUTABLE] pad1: SOURCE [stream:0 fmt:UYVY8_1X16/1280x720 field:none] -> "4520000.ticsi2rx":0 [ENABLED,IMMUTABLE] pad2: SOURCE pad3: SOURCE pad4: SOURCE - entity 17: ds90ub960 6-0030 (6 pads, 2 links, 1 route) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev2 routes: 0/0 -> 4/0 [ACTIVE] pad0: SINK [stream:0 fmt:UYVY8_1X16/1280x720 field:none] <- "ds90ub953 6-0044":1 [ENABLED,IMMUTABLE] pad1: SINK pad2: SINK pad3: SINK pad4: SOURCE [stream:0 fmt:UYVY8_1X16/1280x720 field:none] -> "cdns_csi2rx.4524000.csi-bridge":0 [ENABLED,IMMUTABLE] pad5: SOURCE - entity 26: ds90ub953 6-0044 (2 pads, 2 links, 1 route) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev3 routes: 0/0 -> 1/0 [ACTIVE] pad0: SINK [stream:0 fmt:UYVY8_1X16/1280x720 field:none] <- "ar0234 7-0042":0 [ENABLED,IMMUTABLE] pad1: SOURCE [stream:0 fmt:UYVY8_1X16/1280x720 field:none] -> "ds90ub960 6-0030":0 [ENABLED,IMMUTABLE] - entity 31: ar0234 7-0042 (1 pad, 1 link, 2 routes) type V4L2 subdev subtype Sensor flags 0 device node name /dev/v4l-subdev4 routes: 0/0 -> 0/0 [ACTIVE] 0/0 -> 0/1 [INACTIVE] pad0: SOURCE [stream:0 fmt:UYVY8_1X16/1280x720 field:none colorspace:srgb] -> "ds90ub953 6-0044":0 [ENABLED,IMMUTABLE] - entity 37: 4520000.ticsi2rx context 0 (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video4 pad0: SINK <- "4520000.ticsi2rx":1 [ENABLED,IMMUTABLE] - entity 43: 4520000.ticsi2rx context 1 (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video5 pad0: SINK <- "4520000.ticsi2rx":2 [ENABLED,IMMUTABLE] - entity 49: 4520000.ticsi2rx context 2 (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video6 pad0: SINK <- "4520000.ticsi2rx":3 [ENABLED,IMMUTABLE] - entity 55: 4520000.ticsi2rx context 3 (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video7 pad0: SINK <- "4520000.ticsi2rx":4 [ENABLED,IMMUTABLE] - entity 61: 4520000.ticsi2rx context 4 (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video8 pad0: SINK <- "4520000.ticsi2rx":5 [ENABLED,IMMUTABLE] - entity 67: 4520000.ticsi2rx context 5 (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video9 pad0: SINK <- "4520000.ticsi2rx":6 [ENABLED,IMMUTABLE] - entity 73: 4520000.ticsi2rx context 6 (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video10 pad0: SINK <- "4520000.ticsi2rx":7 [ENABLED,IMMUTABLE] - entity 79: 4520000.ticsi2rx context 7 (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video11 pad0: SINK <- "4520000.ticsi2rx":8 [ENABLED,IMMUTABLE]
But when using 2 camera
root@j784s4-evm:~# media-ctl -d 2 -p Media controller API version 6.12.17 Media device information ------------------------ driver j721e-csi2rx model TI-CSI2RX serial bus info platform:4520000.ticsi2rx hw revision 0x1 driver version 6.12.17 Device topology - entity 1: 4520000.ticsi2rx (9 pads, 9 links, 2 routes) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev0 routes: 0/0 -> 2/0 [ACTIVE] 0/1 -> 3/0 [ACTIVE] pad0: SINK [stream:0 fmt:UYVY8_1X16/1280x720 field:none] [stream:1 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range] <- "cdns_csi2rx.4524000.csi-bridge":1 [ENABLED,IMMUTABLE] pad1: SOURCE -> "4520000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE] pad2: SOURCE [stream:0 fmt:UYVY8_1X16/1280x720 field:none] -> "4520000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE] pad3: SOURCE [stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range] -> "4520000.ticsi2rx context 2":0 [ENABLED,IMMUTABLE] pad4: SOURCE -> "4520000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE] pad5: SOURCE -> "4520000.ticsi2rx context 4":0 [ENABLED,IMMUTABLE] pad6: SOURCE -> "4520000.ticsi2rx context 5":0 [ENABLED,IMMUTABLE] pad7: SOURCE -> "4520000.ticsi2rx context 6":0 [ENABLED,IMMUTABLE] pad8: SOURCE -> "4520000.ticsi2rx context 7":0 [ENABLED,IMMUTABLE] - entity 11: cdns_csi2rx.4524000.csi-bridge (5 pads, 2 links, 2 routes) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev1 routes: 0/0 -> 1/0 [ACTIVE] 0/1 -> 1/1 [ACTIVE] pad0: SINK [stream:0 fmt:UYVY8_1X16/1280x720 field:none] [stream:1 fmt:UYVY8_1X16/1280x720 field:none] <- "ds90ub960 6-0030":4 [ENABLED,IMMUTABLE] pad1: SOURCE [stream:0 fmt:UYVY8_1X16/1280x720 field:none] [stream:1 fmt:UYVY8_1X16/1280x720 field:none] -> "4520000.ticsi2rx":0 [ENABLED,IMMUTABLE] pad2: SOURCE pad3: SOURCE pad4: SOURCE - entity 17: ds90ub960 6-0030 (6 pads, 3 links, 2 routes) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev2 routes: 0/0 -> 4/0 [ACTIVE] 1/0 -> 4/1 [ACTIVE] pad0: SINK [stream:0 fmt:UYVY8_1X16/1280x720 field:none] <- "ds90ub953 6-0044":1 [ENABLED,IMMUTABLE] pad1: SINK [stream:0 fmt:UYVY8_1X16/1280x720 field:none] <- "ds90ub953 6-0045":1 [ENABLED,IMMUTABLE] pad2: SINK pad3: SINK pad4: SOURCE [stream:0 fmt:UYVY8_1X16/1280x720 field:none] [stream:1 fmt:UYVY8_1X16/1280x720 field:none] -> "cdns_csi2rx.4524000.csi-bridge":0 [ENABLED,IMMUTABLE] pad5: SOURCE - entity 26: ds90ub953 6-0045 (2 pads, 2 links, 1 route) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev3 routes: 0/0 -> 1/0 [ACTIVE] pad0: SINK [stream:0 fmt:UYVY8_1X16/1280x720 field:none colorspace:srgb] <- "ar0234 8-0042":0 [ENABLED,IMMUTABLE] pad1: SOURCE [stream:0 fmt:UYVY8_1X16/1280x720 field:none colorspace:srgb] -> "ds90ub960 6-0030":1 [ENABLED,IMMUTABLE] - entity 31: ds90ub953 6-0044 (2 pads, 2 links, 1 route) type V4L2 subdev subtype Unknown flags 0 device node name /dev/v4l-subdev4 routes: 0/0 -> 1/0 [ACTIVE] pad0: SINK [stream:0 fmt:UYVY8_1X16/1280x720 field:none] <- "ar0234 7-0042":0 [ENABLED,IMMUTABLE] pad1: SOURCE [stream:0 fmt:UYVY8_1X16/1280x720 field:none] -> "ds90ub960 6-0030":0 [ENABLED,IMMUTABLE] - entity 36: ar0234 7-0042 (1 pad, 1 link, 2 routes) type V4L2 subdev subtype Sensor flags 0 device node name /dev/v4l-subdev5 routes: 0/0 -> 0/0 [ACTIVE] 0/0 -> 0/1 [INACTIVE] pad0: SOURCE [stream:0 fmt:UYVY8_1X16/1280x720 field:none colorspace:srgb] -> "ds90ub953 6-0044":0 [ENABLED,IMMUTABLE] - entity 40: ar0234 8-0042 (1 pad, 1 link, 2 routes) type V4L2 subdev subtype Sensor flags 0 device node name /dev/v4l-subdev6 routes: 0/0 -> 0/0 [ACTIVE] 0/0 -> 0/1 [INACTIVE] pad0: SOURCE [stream:0 fmt:UYVY8_1X16/1280x720 field:none colorspace:srgb] -> "ds90ub953 6-0045":0 [ENABLED,IMMUTABLE] - entity 46: 4520000.ticsi2rx context 0 (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video4 pad0: SINK <- "4520000.ticsi2rx":1 [ENABLED,IMMUTABLE] - entity 52: 4520000.ticsi2rx context 1 (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video5 pad0: SINK <- "4520000.ticsi2rx":2 [ENABLED,IMMUTABLE] - entity 58: 4520000.ticsi2rx context 2 (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video6 pad0: SINK <- "4520000.ticsi2rx":3 [ENABLED,IMMUTABLE] - entity 64: 4520000.ticsi2rx context 3 (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video7 pad0: SINK <- "4520000.ticsi2rx":4 [ENABLED,IMMUTABLE] - entity 70: 4520000.ticsi2rx context 4 (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video8 pad0: SINK <- "4520000.ticsi2rx":5 [ENABLED,IMMUTABLE] - entity 76: 4520000.ticsi2rx context 5 (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video9 pad0: SINK <- "4520000.ticsi2rx":6 [ENABLED,IMMUTABLE] - entity 82: 4520000.ticsi2rx context 6 (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video10 pad0: SINK <- "4520000.ticsi2rx":7 [ENABLED,IMMUTABLE] - entity 88: 4520000.ticsi2rx context 7 (1 pad, 1 link) type Node subtype V4L flags 0 device node name /dev/video11 pad0: SINK <- "4520000.ticsi2rx":8 [ENABLED,IMMUTABLE]
try to set for camera 1, but not success
v4l2-ctl --device=/dev/videoX --stream-mmap
VIDIOC_STREAMON returned -1 (Broken pipe)
Thanks,
BRs