Max9296 port with two max9295+imx390 and only one camera can work

hi, nv team,
I’m working on one max9296 port with two max9295+gw5200+imx390 camera modules.

no I can get video0 and video1.

but when capture imge with v4l2-ctl , i can only get the realtime video from video0, ti works well

and the video1 just show green .

the camera modules output YUV422 8bit, UYVY.

after open camera debug

it shows

# tracer: nop
#
# entries-in-buffer/entries-written: 63/63   #P:12
#
#                                _-----=> irqs-off
#                               / _----=> need-resched
#                              | / _---=> hardirq/softirq
#                              || / _--=> preempt-depth
#                              ||| /     delay
#           TASK-PID     CPU#  ||||   TIMESTAMP  FUNCTION
#              | |         |   ||||      |         |
     kworker/1:0-20      [001] ....    93.193888: rtcpu_string: tstamp:3440596857 id:0x04010000 str:"VM0 deactivating."
        v4l2-ctl-2661    [005] ....   124.691063: tegra_channel_open: vi-output, imx390 30-001c
        v4l2-ctl-2661    [005] ....   124.696779: tegra_channel_set_power: imx390 30-001c : 0x1
        v4l2-ctl-2661    [005] ....   124.696791: camera_common_s_power: status : 0x1
        v4l2-ctl-2661    [005] ....   124.704461: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x1
        v4l2-ctl-2661    [005] ....   124.704465: csi_s_power: enable : 0x1
        v4l2-ctl-2661    [005] ....   124.704562: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt 10
        v4l2-ctl-2661    [005] ....   124.730749: tegra_channel_set_stream: enable : 0x1
     kworker/1:0-20      [001] ....   124.741721: rtcpu_string: tstamp:4426968347 id:0x04010000 str:"VM0 activating."
     kworker/1:0-20      [001] ....   124.741729: rtcpu_vinotify_event: tstamp:4427782684 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:141679820736 data:0xc55cff0010000000
     kworker/1:0-20      [001] ....   124.741730: rtcpu_vinotify_event: tstamp:4427782939 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:141679827328 data:0x0000000031000001
     kworker/1:0-20      [001] ....   124.741730: rtcpu_vinotify_event: tstamp:4427783189 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:141679879264 data:0xc55cfc0010000000
     kworker/1:0-20      [001] ....   124.741730: rtcpu_vinotify_event: tstamp:4427783400 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:141679885952 data:0x0000000031000002
        v4l2-ctl-2661    [006] ....   124.755595: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x1
        v4l2-ctl-2661    [006] ....   124.755598: csi_s_stream: enable : 0x1
        v4l2-ctl-2661    [006] ....   124.756268: tegra_channel_set_stream: imx390 30-001c : 0x1
 vi-output, imx3-2663    [000] ....   127.455963: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt 10
     kworker/1:0-20      [001] ....   127.505712: rtcpu_vinotify_event: tstamp:4512896473 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:144405345088 data:0xc55cff0010000000
     kworker/1:0-20      [001] ....   127.505715: rtcpu_vinotify_event: tstamp:4512896613 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:144405351712 data:0x0000000031000001
     kworker/1:0-20      [001] ....   127.505716: rtcpu_vinotify_event: tstamp:4512896765 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:144405387872 data:0xc55cfc0010000000
     kworker/1:0-20      [001] ....   127.505717: rtcpu_vinotify_event: tstamp:4512896896 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:144405394592 data:0x0000000031000002
        v4l2-ctl-2661    [007] ....   129.272261: tegra_channel_close: vi-output, imx390 30-001c
 vi-output, imx3-2663    [000] ....   129.984040: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt 10
        v4l2-ctl-2661    [009] ....   129.984704: tegra_channel_set_stream: enable : 0x0
        v4l2-ctl-2661    [009] ....   129.984707: tegra_channel_set_stream: imx390 30-001c : 0x0
        v4l2-ctl-2661    [000] ....   129.985065: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x0
        v4l2-ctl-2661    [000] ....   129.985069: csi_s_stream: enable : 0x0
        v4l2-ctl-2661    [005] ....   129.993065: tegra_channel_set_power: imx390 30-001c : 0x0
        v4l2-ctl-2661    [005] ....   129.993078: camera_common_s_power: status : 0x0
        v4l2-ctl-2661    [005] ....   129.993529: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x0
        v4l2-ctl-2661    [005] ....   129.993533: csi_s_power: enable : 0x0

the media-ctl show as follow

nvidia@ubuntu:~$ sudo media-ctl -p-d /dev/media0
Media controller API version 5.10.65

Media device information
------------------------
driver          tegra-camrtc-ca
model           NVIDIA Tegra Video Input Device
serial          
bus info        
hw revision     0x3
driver version  5.10.65

Device topology
- entity 1: 13e40000.host1x:nvcsi@15a00000- (2 pads, 2 links)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev0
	pad0: Sink
		<- "imx390 30-001b":0 [ENABLED]
	pad1: Source
		-> "vi-output, imx390 30-001b":0 [ENABLED]

- entity 4: 13e40000.host1x:nvcsi@15a00000- (2 pads, 2 links)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev1
	pad0: Sink
		<- "imx390 30-001c":0 [ENABLED]
	pad1: Source
		-> "vi-output, imx390 30-001c":0 [ENABLED]

- entity 7: imx390 30-001b (1 pad, 1 link)
            type V4L2 subdev subtype Sensor flags 0
            device node name /dev/v4l-subdev2
	pad0: Source
		[fmt:YUYV8_1X16/1920x1080 field:none colorspace:srgb]
		-> "13e40000.host1x:nvcsi@15a00000-":0 [ENABLED]

- entity 9: vi-output, imx390 30-001b (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video0
	pad0: Sink
		<- "13e40000.host1x:nvcsi@15a00000-":1 [ENABLED]

- entity 23: imx390 30-001c (1 pad, 1 link)
             type V4L2 subdev subtype Sensor flags 0
             device node name /dev/v4l-subdev3
	pad0: Source
		[fmt:YUYV8_1X16/1920x1080 field:none colorspace:srgb]
		-> "13e40000.host1x:nvcsi@15a00000-":0 [ENABLED]

- entity 25: vi-output, imx390 30-001c (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video1
	pad0: Sink
		<- "13e40000.host1x:nvcsi@15a00000-":1 [ENABLED]

so any idea about this issue.thx

Does this two camera connect to the same CSI port with virtual channel?

sorry for late reply, it’s my fault. I didn’t give the trigger for video1 camera module. it can work for both , thx

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.