Hi,
I applied a patch that JerryChang posted in post #7, and adjust port-index from post #3 and here are my observations.
I have 4 lane csi configuration and I’m able to capture through isp, but not v4l2 pipe.
Capture OK:
gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM),width=1920, height=1080, framerate=120/1, format=NV12' ! nvoverlaysink -e
&
argus_camera app
Capture failed(only on csi gh):
v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=RG12 --stream-mmap --stream-count=100 -d /dev/video0
&
qv4l2 app
Error code for v4l2 pipe is same as for rary in post #13.
When connecting 2 sensors(one of them on csi gh, one on csi ab) I got 2 video dev nodes for csi ab, non for csi gh.
When connecting 3 sensors(one of them on csi gh, one on csi ab, one on csi-cd or csi-ef) I got 2 video dev nodes for csi ab, non for csi gh, one for csi-cd/ef
Media controller API version 0.1.0
Media device information
------------------------
driver tegra194-vi5
model NVIDIA Tegra Video Input Device
serial
bus info
hw revision 0x3
driver version 0.0.0
Device topology
- entity 1: imx283 30-001a (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev0
pad0: Source
[fmt:SRGGB10_1X10/5496x3694 field:none colorspace:srgb]
-> "15a00000.nvcsi--6":0 [ENABLED]
- entity 3: 15a00000.nvcsi--6 (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev1
pad0: Sink
<- "imx283 30-001a":0 [ENABLED]
pad1: Source
-> "vi-output, imx283 30-001a":0 [ENABLED]
- entity 6: vi-output, imx283 30-001a (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Sink
<- "15a00000.nvcsi--6":1 [ENABLED]
- entity 18: imx283 32-001a (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev2
pad0: Source
[fmt:SRGGB10_1X10/5496x3694 field:none colorspace:srgb]
-> "15a00000.nvcsi--5":0 [ENABLED]
- entity 20: 15a00000.nvcsi--5 (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev3
pad0: Sink
<- "imx283 32-001a":0 [ENABLED]
pad1: Source
-> "vi-output, imx283 32-001a":0 [ENABLED]
- entity 23: vi-output, imx283 32-001a (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video1
pad0: Sink
<- "15a00000.nvcsi--5":1 [ENABLED]
- entity 35: imx283 36-001a (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev4
pad0: Source
[fmt:SRGGB10_1X10/5496x3694 field:none colorspace:srgb]
-> "15a00000.nvcsi--3":0 [ENABLED]
- entity 37: 15a00000.nvcsi--3 (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev5
pad0: Sink
<- "imx283 36-001a":0 [ENABLED]
pad1: Source
-> "vi-output, imx283 36-001a":0 [ENABLED]
- entity 40: vi-output, imx283 36-001a (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video2
pad0: Sink
<- "15a00000.nvcsi--3":1 [ENABLED]
3 sensors(not on csi-gh). Everything is ok.
Also when connecting 4 sensors I got this error code:
[ 47.622500] tegra194-isp5 14800000.isp: isp_channel_power_on
[ 47.627348] t194-nvcsi 15a00000.nvcsi: Selected no CSI lane, cannot do calibration
[ 47.627521] t194-nvcsi 15a00000.nvcsi: calibration failed with -22 error
[ 47.631123] tegra194-isp5 14800000.isp: 6 GoS tables configured.
[ 47.631144] tegra194-isp5 14800000.isp: gos[0] = 0xeca00000
[ 47.631151] tegra194-isp5 14800000.isp: gos[1] = 0xeca01000
[ 47.631155] tegra194-isp5 14800000.isp: gos[2] = 0xeca02000
[ 47.631158] tegra194-isp5 14800000.isp: gos[3] = 0xeca03000
[ 47.631161] tegra194-isp5 14800000.isp: gos[4] = 0xeca04000
[ 47.631164] tegra194-isp5 14800000.isp: gos[5] = 0xeca05000
[ 47.674072] [RCE] Total number of isp channels : 16
[ 49.176936] tegra194-vi5 15c10000.vi: vi_channel_power_on_vi_device
[ 49.177195] tegra194-vi5 15c10000.vi: 6 GoS tables configured.
[ 49.177204] tegra194-vi5 15c10000.vi: gos[0] = 0xeca00000
[ 49.177208] tegra194-vi5 15c10000.vi: gos[1] = 0xeca01000
[ 49.177212] tegra194-vi5 15c10000.vi: gos[2] = 0xeca02000
[ 49.177215] tegra194-vi5 15c10000.vi: gos[3] = 0xeca03000
[ 49.177219] tegra194-vi5 15c10000.vi: gos[4] = 0xeca04000
[ 49.177222] tegra194-vi5 15c10000.vi: gos[5] = 0xeca05000
[ 49.198062] [RCE] vi5_hwinit: firmware CL2018061801 protocol version 2.2
[ 50.728624] tegra194-vi5 15c10000.vi: vi_channel_power_off_vi_device
[ 50.765512] imx283 32-001a: imx283_set_frame_length: setting frame length not implemented
[ 50.768131] tegra-i2c 3180000.i2c: no acknowledge from address 0x1a
[ 50.770856] imx283 32-001a: imx283_read_reg: i2c read failed, 3038
[ 50.771004] imx283 32-001a: imx283_set_integration_time: failed to read VMAX
[ 50.773429] tegra194-vi5 15c10000.vi: vi_channel_power_on_vi_device
[ 50.773654] tegra194-vi5 15c10000.vi: 6 GoS tables configured.
[ 50.773663] tegra194-vi5 15c10000.vi: gos[0] = 0xeca00000
[ 50.773668] tegra194-vi5 15c10000.vi: gos[1] = 0xeca01000
[ 50.773672] tegra194-vi5 15c10000.vi: gos[2] = 0xeca02000
[ 50.773677] tegra194-vi5 15c10000.vi: gos[3] = 0xeca03000
[ 50.773680] tegra194-vi5 15c10000.vi: gos[4] = 0xeca04000
[ 50.773685] tegra194-vi5 15c10000.vi: gos[5] = 0xeca05000
[ 50.898209] tegra-i2c 3180000.i2c: no acknowledge from address 0x1a
[ 50.898599] imx283 32-001a: imx283_write_reg: i2c write failed, 303f = 1
[ 50.898727] imx283 32-001a: imx283_write_buffered_reg: error setting group reghold
[ 50.898858] imx283 32-001a: imx283_set_gain: failed to set gain
[ 50.908550] tegra-i2c 3180000.i2c: no acknowledge from address 0x1a
[ 50.908907] regmap_util_write_table_8:regmap_util_write_table:-121
[ 50.909022] imx283 32-001a: imx283_start_stream: unable to stop stream
[ 50.912408] tegra-i2c 3180000.i2c: no acknowledge from address 0x1a
[ 50.912842] imx283 32-001a: imx283_read_reg: i2c read failed, 3038
[ 50.913045] imx283 32-001a: imx283_set_integration_time: failed to read VMAX
[ 50.930068] tegra-i2c 3180000.i2c: no acknowledge from address 0x1a
[ 50.930385] imx283 32-001a: imx283_read_reg: i2c read failed, 3038
[ 50.930555] imx283 32-001a: imx283_set_integration_time: failed to read VMAX
[ 52.414029] tegra194-vi5 15c10000.vi: no reply from camera processor
[ 52.414174] tegra194-vi5 15c10000.vi: vi capture get status failed
[ 52.445988] fence timeout on [ffffffc347740f00] after 1500ms
[ 52.446002] name=[nvhost_sync:38], current value=0 waiting value=1
[ 52.446011] ---- mlocks ----