Thor is equipped with 12 serial cameras

According to the description on the forum and in light of our hardware design, I would like to confirm whether the configuration of the device tree is correct.

overlay_dts.txt (24.2 KB)

The hardware connections are as shown in the following diagram:

The approximate correspondence in the device tree is as follows:

When I used the following command to preview the video stream, I couldn’t see the image from the camera.

gst-launch-1.0 -v v4l2src device="/dev/video0" ! video/x-raw,framerate=30/1,width=1920,height=1080 ! xvimagesink

The corresponding dmesg information is as follows:

[ 1392.505477] tegra194-vi5 8181200000.host1x:vi0@8188400000: [PIPELINE 0] VI capture setup complete (channel_id=0, csi_stream=0, vc=3)
[ 1392.505860] [RCE] VM0 deactivatingVM0 activatingVI ch[35] frame configuration: 1920x1080
[ 1392.505871] [RCE]     left skip pixels=0 top skip lines=0
[ 1392.505876] [RCE]     right crop pixels=1920 bottom crop lines=1080
[ 1392.561856] [RCE]     pixel format=VI_PIXFMT_FORMAT_T_U8_Y8__V8_Y8 fmt=19
[ 1392.561868] [RCE] ===== NVCSI Stream Configuration =====
[ 1392.561871] [RCE] stream_id: PP 0, csi_port: PORT A
[ 1392.561873] [RCE] Brick: PHY 0, Mode: D-PHY
[ 1392.561876] [RCE] Partition: CIL A, LP bypass: Enabled, Lanes: 4
[ 1392.561878] [RCE] Clock information:
[ 1392.561881] [RCE] CIL rate: 270000000 Hz
[ 1392.561883] [RCE] MIPI clock rate: 800000 kHz
[ 1392.561886] [RCE] Physical rate: 1600000 Kbps
[ 1392.561890] [RCE] T_HS settle: autoconfigured, T_CLK settle: autoconfigured
               ======================================
[ 1392.561895] [RCE] NVCSI prod write phy: 0 cil: 0 reg=0x00011c1c mask=0x06000000 value=0x04000000 (was 0x04020100)
[ 1392.561898] [RCE] NVCSI prod write phy: 0 cil: 0 reg=0x00011c1c mask=0x06070000 value=0x00020000 (was 0x04020100)
[ 1392.561901] [RCE] NVCSI prod write phy: 0 cil: 0 reg=0x00011c58 mask=0x000f0000 value=0x000f0000 (was 0x000f0002)
[ 1392.561905] [RCE] NVCSI prod write phy: 0 cil: 0 reg=0x00011c68 mask=0xffffffff value=0x84208420 (was 0xa49bc56f)
[ 1392.561908] [RCE] NVCSI prod write phy: 0 cil: 0 reg=0x00011c6c mask=0xffffffff value=0x84208420 (was 0x942193eb)
[ 1392.561911] [RCE] NVCSI prod write phy: 0 cil: 0 reg=0x00011c90 mask=0x0000f0fc value=0x00002040 (was 0x00000055)
[ 1392.561914] [RCE] NVCSI prod write phy: 0 cil: 0 reg=0x00011c94 mask=0x000000ff value=0x00000011 (was 0x00070000)
[ 1392.561918] [RCE] NVCSI prod write phy: 0 cil: 0 reg=0x00011cb4 mask=0x007f7f7f value=0x00404444 (was 0x00000000)
[ 1392.561921] [RCE] NVCSI prod write phy: 0 cil: 0 reg=0x00011cec mask=0x000000ff value=0x00000027 (was 0x00007411)
[ 1392.561927] [RCE] CSI port AB IDAC calibration result with freqband=0:
[ 1392.561930] [RCE]   Trio A0 rxab=26 rxbc=19 rxca=24
[ 1392.561932] [RCE]   Trio A1 rxab=14 rxbc=18 rxca=21
[ 1392.561935] [RCE] CSI port AB IDAC calibration result with freqband=0:
[ 1392.561937] [RCE]   Trio B0 rxab=21 rxbc=19 rxca=16
[ 1392.561940] [RCE]   Trio B1 rxab=16 rxbc=17 rxca=22
[ 1392.561943] [RCE] CSI port AB
[ 1392.561945] [RCE]   AFE_HFGAIN_IO0_A=7
[ 1392.561948] [RCE]   AFE_HFGAIN_IO1_A=7
[ 1392.561950] [RCE]   AFE_HFGAIN_CLK_A=7
[ 1392.561952] [RCE]   AFE_HFGAIN_IO0_B=7
[ 1392.561954] [RCE]   AFE_HFGAIN_IO1_B=7
[ 1392.561957] [RCE]   AFE_HFGAIN_CLK_B=7

System version is:

root@nvidia:/home/nvidia# cat /etc/nv_tegra_release
# R39 (release), REVISION: 2.1, GCID: 46758480, BOARD: generic, EABI: aarch64, DATE: Fri Aug  7 05:54:22 AM UTC 2026
# KERNEL_VARIANT: oot
TARGET_USERSPACE_LIB_DIR=nvidia
TARGET_USERSPACE_LIB_DIR_PATH=usr/lib/aarch64-linux-gnu/nvidia
  1. Get the trace log to check.
  2. Probe the MIPI signal to confirm the output.

Hi,

Looking at your overlay, the port indices 0, 2, and 4 seem to match the CSI A/C/E connections in your diagram and NVIDIA’s mapping.

One thing caught my attention: your table maps /dev/video0 to VC 0, but the log shows vc=3. The video devices may simply have been registered in a different order. Could you share the output of these commands to check which camera /dev/video0 corresponds to?

v4l2-ctl --list-devices
media-ctl -d /dev/media0 -p

I also noticed that vc-id is set in the sensor and VI endpoints, but is missing from the NVCSI input endpoints in the attached overlay. It may already be defined in the base device tree, so I would check that before making changes. NVIDIA’s documentation describes how these values should match the deserializer output.

As Shane suggested, a trace while streaming just one camera would help us understand where capture stops. You can follow the VI tracing instructions, using log level 3 for JetPack 7. Please share that trace and the full GStreamer output.

Best regards,
Alejandro Godínez
Embedded Software Engineer, RidgeRun

Contact us: support@ridgerun.com
Developers Wiki: https://developer.ridgerun.com
Website: https://www.ridgerun.com

About open /dev/video0

root@nvidia:/home/nvidia# cat /sys/kernel/debug/tracing/trace
# tracer: nop
#
# entries-in-buffer/entries-written: 159/159   #P:14
#
#                                _-----=> irqs-off/BH-disabled
#                               / _----=> need-resched
#                              | / _---=> hardirq/softirq
#                              || / _--=> preempt-depth
#                              ||| / _-=> migrate-disable
#                              |||| /     delay
#           TASK-PID     CPU#  |||||  TIMESTAMP  FUNCTION
#              | |         |   |||||     |         |
  gst-launch-1.0-10562   [005] .....   938.454739: tegra_channel_open: vi-output, sgx-raw 17-0023
  gst-launch-1.0-10562   [005] .....   938.454757: tegra_channel_close: vi-output, sgx-raw 17-0023
  gst-launch-1.0-10562   [005] .....   938.454763: tegra_channel_open: vi-output, sgx-raw 17-0022
  gst-launch-1.0-10562   [005] .....   938.454775: tegra_channel_close: vi-output, sgx-raw 17-0022
  gst-launch-1.0-10562   [005] .....   938.454778: tegra_channel_open: vi-output, sgx-raw 19-0021
  gst-launch-1.0-10562   [005] .....   938.454790: tegra_channel_close: vi-output, sgx-raw 19-0021
  gst-launch-1.0-10562   [005] .....   938.454793: tegra_channel_open: vi-output, sgx-raw 19-0020
  gst-launch-1.0-10562   [005] .....   938.454803: tegra_channel_close: vi-output, sgx-raw 19-0020
  gst-launch-1.0-10562   [005] .....   938.454806: tegra_channel_open: vi-output, sgx-raw 17-0021
  gst-launch-1.0-10562   [005] .....   938.454816: tegra_channel_close: vi-output, sgx-raw 17-0021
  gst-launch-1.0-10562   [005] .....   938.454820: tegra_channel_open: vi-output, sgx-raw 17-0020
  gst-launch-1.0-10562   [005] .....   938.454830: tegra_channel_close: vi-output, sgx-raw 17-0020
  gst-launch-1.0-10562   [005] .....   938.454833: tegra_channel_open: vi-output, sgx-raw 18-0023
  gst-launch-1.0-10562   [005] .....   938.454844: tegra_channel_close: vi-output, sgx-raw 18-0023
  gst-launch-1.0-10562   [005] .....   938.454847: tegra_channel_open: vi-output, sgx-raw 18-0022
  gst-launch-1.0-10562   [005] .....   938.454858: tegra_channel_close: vi-output, sgx-raw 18-0022
  gst-launch-1.0-10562   [005] .....   938.454862: tegra_channel_open: vi-output, sgx-raw 18-0021
  gst-launch-1.0-10562   [005] .....   938.454872: tegra_channel_close: vi-output, sgx-raw 18-0021
  gst-launch-1.0-10562   [005] .....   938.454875: tegra_channel_open: vi-output, sgx-raw 18-0020
  gst-launch-1.0-10562   [005] .....   938.454884: tegra_channel_close: vi-output, sgx-raw 18-0020
  gst-launch-1.0-10562   [005] .....   938.454888: tegra_channel_open: vi-output, sgx-raw 19-0023
  gst-launch-1.0-10562   [005] .....   938.454898: tegra_channel_close: vi-output, sgx-raw 19-0023
  gst-launch-1.0-10562   [005] .....   938.454902: tegra_channel_open: vi-output, sgx-raw 19-0022
  gst-launch-1.0-10562   [005] .....   938.454907: tegra_channel_close: vi-output, sgx-raw 19-0022
  gst-launch-1.0-10562   [005] .....   938.460959: tegra_channel_open: vi-output, sgx-raw 17-0023
    v4l2src0:src-10565   [011] .....   938.481761: tegra_channel_set_power: sgx-raw 17-0023 : 0x1
    v4l2src0:src-10565   [011] .....   938.481767: camera_common_s_power: status : 0x1
    v4l2src0:src-10565   [011] .....   938.506119: tegra_channel_set_power: 8181200000.host1x:nvcsi@8188000000--9 : 0x1
    v4l2src0:src-10565   [011] .....   938.506122: csi_s_power: enable : 0x1
    v4l2src0:src-10565   [011] .....   938.506538: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt 13
 vi-output, sgx--10567   [003] .....   938.507876: vi_task_submit: class_id:48 ch:0 syncpt_id:106 syncpt_thresh:7291 pid:10567 tid:10567
 vi-output, sgx--10567   [003] .....   938.507887: vi_task_submit: class_id:48 ch:0 syncpt_id:106 syncpt_thresh:7294 pid:10567 tid:10567
 vi-output, sgx--10567   [003] .....   938.507889: vi_task_submit: class_id:48 ch:0 syncpt_id:106 syncpt_thresh:7297 pid:10567 tid:10567
 vi-output, sgx--10567   [003] .....   938.507889: vi_task_submit: class_id:48 ch:0 syncpt_id:106 syncpt_thresh:7300 pid:10567 tid:10567
    v4l2src0:src-10565   [011] .....   938.508088: tegra_channel_set_stream: enable : 0x1
    v4l2src0:src-10565   [011] .....   938.510655: tegra_channel_set_stream: 8181200000.host1x:nvcsi@8188000000--9 : 0x1
    v4l2src0:src-10565   [011] .....   938.510659: csi_s_stream: enable : 0x1
    v4l2src0:src-10565   [011] .....   938.513523: tegra_channel_set_stream: sgx-raw 17-0023 : 0x1
     kworker/0:1-10      [000] .....   938.560980: rtcpu_unknown: tstamp:962355340702 id:0x000d0000 len:36 data:5a 00 00 00 04 00 00 00 43 10 00 00 00 00 00 00 6a 00 00 00 7b 1c 00 00 00 00 00 00 00 00 00 00 03 00 00 00
     kworker/0:1-10      [000] .....   938.560982: rtcpu_unknown: tstamp:962355988748 id:0x000d0001 len:16 data:5a 00 00 00 00 00 00 00 00 00 00 00 23 00 00 00
     kworker/0:1-10      [000] .....   938.560983: rtcpu_string: tstamp:962356667795 id:0x04010000 str:"VI ch[35] frame configuration: 1920x1080
"
     kworker/0:1-10      [000] .....   938.560995: rtcpu_string: tstamp:962356683322 id:0x04010000 str:"    left skip pixels=0 top skip lines=0
"
     kworker/0:1-10      [000] .....   938.560999: rtcpu_string: tstamp:962356699952 id:0x04010000 str:"    right crop pixels=1920 bottom crop lines=10"
     kworker/0:1-10      [000] .....   938.560999: rtcpu_string: tstamp:962356715795 id:0x04010000 str:"80
"
     kworker/0:1-10      [000] .....   938.561002: rtcpu_string: tstamp:962356732878 id:0x04010000 str:"    pixel format=VI_PIXFMT_FORMAT_T_U8_Y8__V8_Y"
     kworker/0:1-10      [000] .....   938.561003: rtcpu_string: tstamp:962356748313 id:0x04010000 str:"8 fmt=19
"
     kworker/0:1-10      [000] .....   938.561006: rtcpu_unknown: tstamp:962359418563 id:0x000f0004 len:40 data:00 00 00 00 00 00 00 00 00 00 00 00 07 00 00 00 00 00 00 00 00 35 0c 00 04 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00
     kworker/0:1-10      [000] .....   938.561006: rtcpu_string: tstamp:962359435304 id:0x04010000 str:"===== NVCSI Stream Configuration =====
"
     kworker/0:1-10      [000] .....   938.561009: rtcpu_string: tstamp:962359449554 id:0x04010000 str:"stream_id: PP 0, csi_port: PORT A
"
     kworker/0:1-10      [000] .....   938.561012: rtcpu_string: tstamp:962359463257 id:0x04010000 str:"Brick: PHY 0, Mode: D-PHY
"
     kworker/0:1-10      [000] .....   938.561015: rtcpu_string: tstamp:962359478943 id:0x04010000 str:"Partition: CIL A, LP bypass: Enabled, Lanes: 4
"
     kworker/0:1-10      [000] .....   938.561018: rtcpu_string: tstamp:962359489563 id:0x04010000 str:"Clock information:
"
     kworker/0:1-10      [000] .....   938.561020: rtcpu_string: tstamp:962359501785 id:0x04010000 str:"CIL rate: 270000000 Hz
"
     kworker/0:1-10      [000] .....   938.561023: rtcpu_string: tstamp:962359515017 id:0x04010000 str:"MIPI clock rate: 800000 kHz
"
     kworker/0:1-10      [000] .....   938.561025: rtcpu_string: tstamp:962359527600 id:0x04010000 str:"Physical rate: 1600000 Kbps
"
     kworker/0:1-10      [000] .....   938.561028: rtcpu_string: tstamp:962359537535 id:0x04010000 str:"T_HS settle: "
     kworker/0:1-10      [000] .....   938.561029: rtcpu_string: tstamp:962359547424 id:0x04010000 str:"autoconfigured"
     kworker/0:1-10      [000] .....   938.561029: rtcpu_string: tstamp:962359557424 id:0x04010000 str:", T_CLK settle: "
     kworker/0:1-10      [000] .....   938.561030: rtcpu_string: tstamp:962359567470 id:0x04010000 str:"autoconfigured"
     kworker/0:1-10      [000] .....   938.561030: rtcpu_string: tstamp:962359580683 id:0x04010000 str:"
======================================
"
     kworker/0:1-10      [000] .....   938.561034: rtcpu_unknown: tstamp:962359590396 id:0x000f0005 len:8 data:00 00 00 00 00 00 00 00
     kworker/0:1-10      [000] .....   938.561034: rtcpu_unknown: tstamp:962359832711 id:0x000f0000 len:12 data:00 00 00 00 00 00 00 00 00 00 00 00
     kworker/0:1-10      [000] .....   938.561035: rtcpu_string: tstamp:962359869637 id:0x04010000 str:"NVCSI prod write phy: 0 cil: 0 reg=0x00011c1c m"
     kworker/0:1-10      [000] .....   938.561035: rtcpu_string: tstamp:962359894239 id:0x04010000 str:"ask=0x06000000 value=0x04000000 (was 0x04020100"
     kworker/0:1-10      [000] .....   938.561036: rtcpu_string: tstamp:962359901156 id:0x04010000 str:"
"
     kworker/0:1-10      [000] .....   938.561039: rtcpu_string: tstamp:962359940461 id:0x04010000 str:"NVCSI prod write phy: 0 cil: 0 reg=0x00011c1c m"
     kworker/0:1-10      [000] .....   938.561039: rtcpu_string: tstamp:962359964952 id:0x04010000 str:"ask=0x06070000 value=0x00020000 (was 0x04020100"
     kworker/0:1-10      [000] .....   938.561039: rtcpu_string: tstamp:962359971841 id:0x04010000 str:"
"
     kworker/0:1-10      [000] .....   938.561042: rtcpu_string: tstamp:962359999980 id:0x04010000 str:"NVCSI prod write phy: 0 cil: 0 reg=0x00011c58 m"
     kworker/0:1-10      [000] .....   938.561042: rtcpu_string: tstamp:962360023739 id:0x04010000 str:"ask=0x000f0000 value=0x000f0000 (was 0x000f0002"
     kworker/0:1-10      [000] .....   938.561043: rtcpu_string: tstamp:962360030591 id:0x04010000 str:"
"
     kworker/0:1-10      [000] .....   938.561045: rtcpu_string: tstamp:962360059165 id:0x04010000 str:"NVCSI prod write phy: 0 cil: 0 reg=0x00011c68 m"
     kworker/0:1-10      [000] .....   938.561046: rtcpu_string: tstamp:962360083369 id:0x04010000 str:"ask=0xffffffff value=0x84208420 (was 0x9c1bcd6f"
     kworker/0:1-10      [000] .....   938.561046: rtcpu_string: tstamp:962360090211 id:0x04010000 str:"
"
     kworker/0:1-10      [000] .....   938.561049: rtcpu_string: tstamp:962360118646 id:0x04010000 str:"NVCSI prod write phy: 0 cil: 0 reg=0x00011c6c m"
     kworker/0:1-10      [000] .....   938.561049: rtcpu_string: tstamp:962360144257 id:0x04010000 str:"ask=0xffffffff value=0x84208420 (was 0x93df93ed"
     kworker/0:1-10      [000] .....   938.561050: rtcpu_string: tstamp:962360151711 id:0x04010000 str:"
"
     kworker/0:1-10      [000] .....   938.561052: rtcpu_string: tstamp:962360178915 id:0x04010000 str:"NVCSI prod write phy: 0 cil: 0 reg=0x00011c90 m"
     kworker/0:1-10      [000] .....   938.561053: rtcpu_string: tstamp:962360202776 id:0x04010000 str:"ask=0x0000f0fc value=0x00002040 (was 0x00000055"
     kworker/0:1-10      [000] .....   938.561053: rtcpu_string: tstamp:962360209609 id:0x04010000 str:"
"
     kworker/0:1-10      [000] .....   938.561056: rtcpu_string: tstamp:962360237480 id:0x04010000 str:"NVCSI prod write phy: 0 cil: 0 reg=0x00011c94 m"
     kworker/0:1-10      [000] .....   938.561056: rtcpu_string: tstamp:962360261470 id:0x04010000 str:"ask=0x000000ff value=0x00000011 (was 0x00070000"
     kworker/0:1-10      [000] .....   938.561056: rtcpu_string: tstamp:962360268387 id:0x04010000 str:"
"
     kworker/0:1-10      [000] .....   938.561059: rtcpu_string: tstamp:962360295915 id:0x04010000 str:"NVCSI prod write phy: 0 cil: 0 reg=0x00011cb4 m"
     kworker/0:1-10      [000] .....   938.561059: rtcpu_string: tstamp:962360320248 id:0x04010000 str:"ask=0x007f7f7f value=0x00404444 (was 0x00000000"
     kworker/0:1-10      [000] .....   938.561060: rtcpu_string: tstamp:962360327165 id:0x04010000 str:"
"
     kworker/0:1-10      [000] .....   938.561062: rtcpu_string: tstamp:962360354304 id:0x04010000 str:"NVCSI prod write phy: 0 cil: 0 reg=0x00011cec m"
     kworker/0:1-10      [000] .....   938.561062: rtcpu_string: tstamp:962360378285 id:0x04010000 str:"ask=0x000000ff value=0x00000027 (was 0x00007411"
     kworker/0:1-10      [000] .....   938.561063: rtcpu_string: tstamp:962360385109 id:0x04010000 str:"
"
     kworker/0:1-10      [000] .....   938.561065: rtcpu_unknown: tstamp:962360462054 id:0x000a000a len:16 data:00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00
     kworker/0:1-10      [000] .....   938.561066: rtcpu_unknown: tstamp:962360477008 id:0x000a000f len:20 data:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00
     kworker/0:1-10      [000] .....   938.561066: rtcpu_unknown: tstamp:962361729924 id:0x000a0010 len:12 data:00 00 00 00 00 00 00 00 00 00 00 00
     kworker/0:1-10      [000] .....   938.561066: rtcpu_unknown: tstamp:962361743952 id:0x000a000c len:4 data:00 00 00 00
     kworker/0:1-10      [000] .....   938.561067: rtcpu_unknown: tstamp:962361793517 id:0x000a0009 len:24 data:00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 30 00 00 00 21 00 00 00
     kworker/0:1-10      [000] .....   938.561068: rtcpu_string: tstamp:962361813128 id:0x04010000 str:"CSI port AB IDAC calibration result with freqba"
     kworker/0:1-10      [000] .....   938.561068: rtcpu_string: tstamp:962361829257 id:0x04010000 str:"nd=0:
"
     kworker/0:1-10      [000] .....   938.561071: rtcpu_string: tstamp:962361844822 id:0x04010000 str:"  Trio A0 rxab=26 rxbc=20 rxca=24
"
     kworker/0:1-10      [000] .....   938.561074: rtcpu_string: tstamp:962361859433 id:0x04010000 str:"  Trio A1 rxab=15 rxbc=19 rxca=21
"
     kworker/0:1-10      [000] .....   938.561076: rtcpu_string: tstamp:962361876711 id:0x04010000 str:"CSI port AB IDAC calibration result with freqba"
     kworker/0:1-10      [000] .....   938.561076: rtcpu_string: tstamp:962361892628 id:0x04010000 str:"nd=0:
"
     kworker/0:1-10      [000] .....   938.561079: rtcpu_string: tstamp:962361907239 id:0x04010000 str:"  Trio B0 rxab=21 rxbc=19 rxca=16
"
     kworker/0:1-10      [000] .....   938.561081: rtcpu_string: tstamp:962361921841 id:0x04010000 str:"  Trio B1 rxab=15 rxbc=16 rxca=21
"
     kworker/0:1-10      [000] .....   938.561083: rtcpu_unknown: tstamp:962361929887 id:0x000a000d len:16 data:00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00
     kworker/0:1-10      [000] .....   938.561083: rtcpu_unknown: tstamp:962361948480 id:0x000a0006 len:28 data:00 00 00 00 07 00 00 00 07 00 00 00 07 00 00 00 07 00 00 00 07 00 00 00 07 00 00 00
     kworker/0:1-10      [000] .....   938.561084: rtcpu_string: tstamp:962361959119 id:0x04010000 str:"CSI port AB
"
     kworker/0:1-10      [000] .....   938.561086: rtcpu_string: tstamp:962361970693 id:0x04010000 str:"  AFE_HFGAIN_IO0_A=7
"
     kworker/0:1-10      [000] .....   938.561089: rtcpu_string: tstamp:962361982341 id:0x04010000 str:"  AFE_HFGAIN_IO1_A=7
"
     kworker/0:1-10      [000] .....   938.561091: rtcpu_string: tstamp:962361993887 id:0x04010000 str:"  AFE_HFGAIN_CLK_A=7
"
     kworker/0:1-10      [000] .....   938.561093: rtcpu_string: tstamp:962362006091 id:0x04010000 str:"  AFE_HFGAIN_IO0_B=7
"
     kworker/0:1-10      [000] .....   938.561095: rtcpu_string: tstamp:962362018285 id:0x04010000 str:"  AFE_HFGAIN_IO1_B=7
"
     kworker/0:1-10      [000] .....   938.561098: rtcpu_string: tstamp:962362030489 id:0x04010000 str:"  AFE_HFGAIN_CLK_B=7
"
     kworker/0:1-10      [000] .....   938.561100: rtcpu_unknown: tstamp:962362039091 id:0x000f0001 len:8 data:00 00 00 00 00 00 00 00
     kworker/0:1-10      [000] .....   938.561102: rtcpu_nvcsi_intr: tstamp:962362893859 class:GLOBAL type:PHY_INTR0 phy:0 cil:0 st:0 vc:0 status:0x01c00000
     kworker/0:1-10      [000] .....   938.561102: rtcpu_nvcsi_intr: tstamp:962362893859 class:GLOBAL type:PHY_INTR0 phy:0 cil:1 st:0 vc:0 status:0x00c00000
     kworker/0:1-10      [000] .....   938.561102: rtcpu_unknown: tstamp:962362966322 id:0x000a000e len:36 data:00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 05 00 00 00 01 00 00 00 00 00 00 00 02 00 00 00 02 00 00 00
     kworker/0:1-10      [000] .....   938.561103: rtcpu_unknown: tstamp:962362984730 id:0x000a000b len:4 data:00 00 00 00
  gst-launch-1.0-10562   [005] .....   941.017190: tegra_channel_set_stream: enable : 0x0
  gst-launch-1.0-10562   [005] .....   941.017192: tegra_channel_set_stream: sgx-raw 17-0023 : 0x0
  gst-launch-1.0-10562   [005] .....   941.017206: tegra_channel_set_stream: 8181200000.host1x:nvcsi@8188000000--9 : 0x0
  gst-launch-1.0-10562   [005] .....   941.017208: csi_s_stream: enable : 0x0
  gst-launch-1.0-10562   [005] .....   941.021351: tegra_channel_set_power: sgx-raw 17-0023 : 0x0
  gst-launch-1.0-10562   [005] .....   941.021361: camera_common_s_power: status : 0x0
  gst-launch-1.0-10562   [005] .....   941.024233: tegra_channel_set_power: 8181200000.host1x:nvcsi@8188000000--9 : 0x0
  gst-launch-1.0-10562   [005] .....   941.024235: csi_s_power: enable : 0x0
     kworker/0:1-10      [000] .....   941.024960: rtcpu_unknown: tstamp:964865969331 id:0x000f0002 len:16 data:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
     kworker/0:1-10      [000] .....   941.024963: rtcpu_string: tstamp:964866005239 id:0x04010000 str:"NVCSI prod write phy: 0 cil: 0 reg=0x00011c1c m"
     kworker/0:1-10      [000] .....   941.024964: rtcpu_string: tstamp:964866030100 id:0x04010000 str:"ask=0x06000000 value=0x04000000 (was 0x00020000"
     kworker/0:1-10      [000] .....   941.024965: rtcpu_string: tstamp:964866037044 id:0x04010000 str:"
"
     kworker/0:1-10      [000] .....   941.024974: rtcpu_string: tstamp:964866075850 id:0x04010000 str:"NVCSI prod write phy: 0 cil: 0 reg=0x00011c1c m"
     kworker/0:1-10      [000] .....   941.024975: rtcpu_string: tstamp:964866100553 id:0x04010000 str:"ask=0x06070000 value=0x00020000 (was 0x04020000"
     kworker/0:1-10      [000] .....   941.024975: rtcpu_string: tstamp:964866107442 id:0x04010000 str:"
"
     kworker/0:1-10      [000] .....   941.024979: rtcpu_string: tstamp:964866135748 id:0x04010000 str:"NVCSI prod write phy: 0 cil: 0 reg=0x00011c58 m"
     kworker/0:1-10      [000] .....   941.024979: rtcpu_string: tstamp:964866160007 id:0x04010000 str:"ask=0x000f0000 value=0x000f0000 (was 0x000f0002"
     kworker/0:1-10      [000] .....   941.024980: rtcpu_string: tstamp:964866166877 id:0x04010000 str:"
"
     kworker/0:1-10      [000] .....   941.024984: rtcpu_string: tstamp:964866195516 id:0x04010000 str:"NVCSI prod write phy: 0 cil: 0 reg=0x00011c68 m"
     kworker/0:1-10      [000] .....   941.024984: rtcpu_string: tstamp:964866219998 id:0x04010000 str:"ask=0xffffffff value=0x84208420 (was 0xacdfc535"
     kworker/0:1-10      [000] .....   941.024985: rtcpu_string: tstamp:964866226822 id:0x04010000 str:"
"
     kworker/0:1-10      [000] .....   941.024988: rtcpu_string: tstamp:964866255294 id:0x04010000 str:"NVCSI prod write phy: 0 cil: 0 reg=0x00011c6c m"
     kworker/0:1-10      [000] .....   941.024988: rtcpu_string: tstamp:964866279757 id:0x04010000 str:"ask=0xffffffff value=0x84208420 (was 0xac1f84eb"
     kworker/0:1-10      [000] .....   941.024989: rtcpu_string: tstamp:964866286572 id:0x04010000 str:"
"
     kworker/0:1-10      [000] .....   941.024992: rtcpu_string: tstamp:964866313683 id:0x04010000 str:"NVCSI prod write phy: 0 cil: 0 reg=0x00011c90 m"
     kworker/0:1-10      [000] .....   941.024992: rtcpu_string: tstamp:964866337572 id:0x04010000 str:"ask=0x0000f0fc value=0x00002040 (was 0x00002041"
     kworker/0:1-10      [000] .....   941.024993: rtcpu_string: tstamp:964866344340 id:0x04010000 str:"
"
     kworker/0:1-10      [000] .....   941.024995: rtcpu_string: tstamp:964866371850 id:0x04010000 str:"NVCSI prod write phy: 0 cil: 0 reg=0x00011c94 m"
     kworker/0:1-10      [000] .....   941.024996: rtcpu_string: tstamp:964866396016 id:0x04010000 str:"ask=0x000000ff value=0x00000011 (was 0x00700011"
     kworker/0:1-10      [000] .....   941.024997: rtcpu_string: tstamp:964866402822 id:0x04010000 str:"
"
     kworker/0:1-10      [000] .....   941.024999: rtcpu_string: tstamp:964866430322 id:0x04010000 str:"NVCSI prod write phy: 0 cil: 0 reg=0x00011cb4 m"
     kworker/0:1-10      [000] .....   941.025000: rtcpu_string: tstamp:964866454637 id:0x04010000 str:"ask=0x007f7f7f value=0x00404444 (was 0x00454041"
     kworker/0:1-10      [000] .....   941.025000: rtcpu_string: tstamp:964866461414 id:0x04010000 str:"
"
     kworker/0:1-10      [000] .....   941.025003: rtcpu_string: tstamp:964866488600 id:0x04010000 str:"NVCSI prod write phy: 0 cil: 0 reg=0x00011cec m"
     kworker/0:1-10      [000] .....   941.025004: rtcpu_string: tstamp:964866512664 id:0x04010000 str:"ask=0x000000ff value=0x00000027 (was 0x00007427"
     kworker/0:1-10      [000] .....   941.025004: rtcpu_string: tstamp:964866519488 id:0x04010000 str:"
"
     kworker/0:1-10      [000] .....   941.025007: rtcpu_unknown: tstamp:964866588951 id:0x000a000a len:16 data:00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00
     kworker/0:1-10      [000] .....   941.025007: rtcpu_unknown: tstamp:964866617692 id:0x000a000c len:4 data:00 00 00 00
     kworker/0:1-10      [000] .....   941.025007: rtcpu_unknown: tstamp:964866641276 id:0x000f0003 len:8 data:00 00 00 00 00 00 00 00
     kworker/0:1-10      [000] .....   941.025008: rtcpu_unknown: tstamp:964869006979 id:0x000d0004 len:4 data:00 00 00 00
     kworker/0:1-10      [000] .....   941.025008: rtcpu_unknown: tstamp:964869743007 id:0x000d0005 len:8 data:00 00 00 00 00 00 00 00
  gst-launch-1.0-10562   [005] .....   941.075484: tegra_channel_close: vi-output, sgx-raw 17-0023
     kworker/0:1-10      [000] .....   946.852895: rtcpu_string: tstamp:970661664987 id:0x04010000 str:"VM0 deactivating"
root@nvidia:/home/nvidia#

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

Media device information
------------------------
driver          tegra-camrtc-ca
model           NVIDIA Tegra Video Input Device
serial
bus info        platform:tegra-capture-vi
hw revision     0x3
driver version  6.8.12

Device topology
- entity 1: 8181200000.host1x:nvcsi@8188000 (2 pads, 2 links, 0 routes)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev0
        pad0: Sink
                <- "sgx-raw 17-0020":0 [ENABLED]
        pad1: Source
                -> "vi-output, sgx-raw 17-0020":0 [ENABLED]

- entity 4: 8181200000.host1x:nvcsi@8188000 (2 pads, 2 links, 0 routes)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev1
        pad0: Sink
                <- "sgx-raw 17-0021":0 [ENABLED]
        pad1: Source
                -> "vi-output, sgx-raw 17-0021":0 [ENABLED]

- entity 7: 8181200000.host1x:nvcsi@8188000 (2 pads, 2 links, 0 routes)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev2
        pad0: Sink
                <- "sgx-raw 17-0022":0 [ENABLED]
        pad1: Source
                -> "vi-output, sgx-raw 17-0022":0 [ENABLED]

- entity 10: 8181200000.host1x:nvcsi@8188000 (2 pads, 2 links, 0 routes)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev3
        pad0: Sink
                <- "sgx-raw 17-0023":0 [ENABLED]
        pad1: Source
                -> "vi-output, sgx-raw 17-0023":0 [ENABLED]

- entity 13: 8181200000.host1x:nvcsi@8188000 (2 pads, 2 links, 0 routes)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev4
        pad0: Sink
                <- "sgx-raw 18-0020":0 [ENABLED]
        pad1: Source
                -> "vi-output, sgx-raw 18-0020":0 [ENABLED]

- entity 16: 8181200000.host1x:nvcsi@8188000 (2 pads, 2 links, 0 routes)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev5
        pad0: Sink
                <- "sgx-raw 18-0021":0 [ENABLED]
        pad1: Source
                -> "vi-output, sgx-raw 18-0021":0 [ENABLED]

- entity 19: 8181200000.host1x:nvcsi@8188000 (2 pads, 2 links, 0 routes)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev6
        pad0: Sink
                <- "sgx-raw 18-0022":0 [ENABLED]
        pad1: Source
                -> "vi-output, sgx-raw 18-0022":0 [ENABLED]

- entity 22: 8181200000.host1x:nvcsi@8188000 (2 pads, 2 links, 0 routes)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev7
        pad0: Sink
                <- "sgx-raw 18-0023":0 [ENABLED]
        pad1: Source
                -> "vi-output, sgx-raw 18-0023":0 [ENABLED]

- entity 25: 8181200000.host1x:nvcsi@8188000 (2 pads, 2 links, 0 routes)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev8
        pad0: Sink
                <- "sgx-raw 19-0020":0 [ENABLED]
        pad1: Source
                -> "vi-output, sgx-raw 19-0020":0 [ENABLED]

- entity 28: 8181200000.host1x:nvcsi@8188000 (2 pads, 2 links, 0 routes)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev9
        pad0: Sink
                <- "sgx-raw 19-0021":0 [ENABLED]
        pad1: Source
                -> "vi-output, sgx-raw 19-0021":0 [ENABLED]

- entity 31: 8181200000.host1x:nvcsi@8188000 (2 pads, 2 links, 0 routes)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev10
        pad0: Sink
                <- "sgx-raw 19-0022":0 [ENABLED]
        pad1: Source
                -> "vi-output, sgx-raw 19-0022":0 [ENABLED]

- entity 34: 8181200000.host1x:nvcsi@8188000 (2 pads, 2 links, 0 routes)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev11
        pad0: Sink
                <- "sgx-raw 19-0023":0 [ENABLED]
        pad1: Source
                -> "vi-output, sgx-raw 19-0023":0 [ENABLED]

- entity 157: sgx-raw 17-0023 (1 pad, 1 link, 0 routes)
              type V4L2 subdev subtype Sensor flags 0
              device node name /dev/v4l-subdev12
        pad0: Source
                [stream:0 fmt:UYVY8_1X16/1920x1080@1/30 field:none colorspace:srgb]
                -> "8181200000.host1x:nvcsi@8188000":0 [ENABLED]

- entity 159: vi-output, sgx-raw 17-0023 (1 pad, 1 link)
              type Node subtype V4L flags 0
              device node name /dev/video0
        pad0: Sink
                <- "8181200000.host1x:nvcsi@8188000":1 [ENABLED]

- entity 185: sgx-raw 17-0022 (1 pad, 1 link, 0 routes)
              type V4L2 subdev subtype Sensor flags 0
              device node name /dev/v4l-subdev13
        pad0: Source
                [stream:0 fmt:UYVY8_1X16/1920x1080@1/30 field:none colorspace:srgb]
                -> "8181200000.host1x:nvcsi@8188000":0 [ENABLED]

- entity 187: vi-output, sgx-raw 17-0022 (1 pad, 1 link)
              type Node subtype V4L flags 0
              device node name /dev/video1
        pad0: Sink
                <- "8181200000.host1x:nvcsi@8188000":1 [ENABLED]

- entity 197: sgx-raw 17-0021 (1 pad, 1 link, 0 routes)
              type V4L2 subdev subtype Sensor flags 0
              device node name /dev/v4l-subdev14
        pad0: Source
                [stream:0 fmt:UYVY8_1X16/1920x1080@1/30 field:none colorspace:srgb]
                -> "8181200000.host1x:nvcsi@8188000":0 [ENABLED]

- entity 199: vi-output, sgx-raw 17-0021 (1 pad, 1 link)
              type Node subtype V4L flags 0
              device node name /dev/video2
        pad0: Sink
                <- "8181200000.host1x:nvcsi@8188000":1 [ENABLED]

- entity 209: sgx-raw 17-0020 (1 pad, 1 link, 0 routes)
              type V4L2 subdev subtype Sensor flags 0
              device node name /dev/v4l-subdev15
        pad0: Source
                [stream:0 fmt:UYVY8_1X16/1920x1080@1/30 field:none colorspace:srgb]
                -> "8181200000.host1x:nvcsi@8188000":0 [ENABLED]

- entity 211: vi-output, sgx-raw 17-0020 (1 pad, 1 link)
              type Node subtype V4L flags 0
              device node name /dev/video3
        pad0: Sink
                <- "8181200000.host1x:nvcsi@8188000":1 [ENABLED]

- entity 221: sgx-raw 18-0023 (1 pad, 1 link, 0 routes)
              type V4L2 subdev subtype Sensor flags 0
              device node name /dev/v4l-subdev16
        pad0: Source
                [stream:0 fmt:UYVY8_1X16/1920x1080@1/30 field:none colorspace:srgb]
                -> "8181200000.host1x:nvcsi@8188000":0 [ENABLED]

- entity 223: vi-output, sgx-raw 18-0023 (1 pad, 1 link)
              type Node subtype V4L flags 0
              device node name /dev/video4
        pad0: Sink
                <- "8181200000.host1x:nvcsi@8188000":1 [ENABLED]

- entity 233: sgx-raw 18-0022 (1 pad, 1 link, 0 routes)
              type V4L2 subdev subtype Sensor flags 0
              device node name /dev/v4l-subdev17
        pad0: Source
                [stream:0 fmt:UYVY8_1X16/1920x1080@1/30 field:none colorspace:srgb]
                -> "8181200000.host1x:nvcsi@8188000":0 [ENABLED]

- entity 235: vi-output, sgx-raw 18-0022 (1 pad, 1 link)
              type Node subtype V4L flags 0
              device node name /dev/video5
        pad0: Sink
                <- "8181200000.host1x:nvcsi@8188000":1 [ENABLED]

- entity 245: sgx-raw 18-0021 (1 pad, 1 link, 0 routes)
              type V4L2 subdev subtype Sensor flags 0
              device node name /dev/v4l-subdev18
        pad0: Source
                [stream:0 fmt:UYVY8_1X16/1920x1080@1/30 field:none colorspace:srgb]
                -> "8181200000.host1x:nvcsi@8188000":0 [ENABLED]

- entity 247: vi-output, sgx-raw 18-0021 (1 pad, 1 link)
              type Node subtype V4L flags 0
              device node name /dev/video6
        pad0: Sink
                <- "8181200000.host1x:nvcsi@8188000":1 [ENABLED]

- entity 257: sgx-raw 18-0020 (1 pad, 1 link, 0 routes)
              type V4L2 subdev subtype Sensor flags 0
              device node name /dev/v4l-subdev19
        pad0: Source
                [stream:0 fmt:UYVY8_1X16/1920x1080@1/30 field:none colorspace:srgb]
                -> "8181200000.host1x:nvcsi@8188000":0 [ENABLED]

- entity 259: vi-output, sgx-raw 18-0020 (1 pad, 1 link)
              type Node subtype V4L flags 0
              device node name /dev/video7
        pad0: Sink
                <- "8181200000.host1x:nvcsi@8188000":1 [ENABLED]

- entity 269: sgx-raw 19-0023 (1 pad, 1 link, 0 routes)
              type V4L2 subdev subtype Sensor flags 0
              device node name /dev/v4l-subdev20
        pad0: Source
                [stream:0 fmt:UYVY8_1X16/1920x1080@1/30 field:none colorspace:srgb]
                -> "8181200000.host1x:nvcsi@8188000":0 [ENABLED]

- entity 271: vi-output, sgx-raw 19-0023 (1 pad, 1 link)
              type Node subtype V4L flags 0
              device node name /dev/video8
        pad0: Sink
                <- "8181200000.host1x:nvcsi@8188000":1 [ENABLED]

- entity 281: sgx-raw 19-0022 (1 pad, 1 link, 0 routes)
              type V4L2 subdev subtype Sensor flags 0
              device node name /dev/v4l-subdev21
        pad0: Source
                [stream:0 fmt:UYVY8_1X16/1920x1080@1/30 field:none colorspace:srgb]
                -> "8181200000.host1x:nvcsi@8188000":0 [ENABLED]

- entity 283: vi-output, sgx-raw 19-0022 (1 pad, 1 link)
              type Node subtype V4L flags 0
              device node name /dev/video9
        pad0: Sink
                <- "8181200000.host1x:nvcsi@8188000":1 [ENABLED]

- entity 293: sgx-raw 19-0021 (1 pad, 1 link, 0 routes)
              type V4L2 subdev subtype Sensor flags 0
              device node name /dev/v4l-subdev22
        pad0: Source
                [stream:0 fmt:UYVY8_1X16/1920x1080@1/30 field:none colorspace:srgb]
                -> "8181200000.host1x:nvcsi@8188000":0 [ENABLED]

- entity 295: vi-output, sgx-raw 19-0021 (1 pad, 1 link)
              type Node subtype V4L flags 0
              device node name /dev/video10
        pad0: Sink
                <- "8181200000.host1x:nvcsi@8188000":1 [ENABLED]

- entity 305: sgx-raw 19-0020 (1 pad, 1 link, 0 routes)
              type V4L2 subdev subtype Sensor flags 0
              device node name /dev/v4l-subdev23
        pad0: Source
                [stream:0 fmt:UYVY8_1X16/1920x1080@1/30 field:none colorspace:srgb]
                -> "8181200000.host1x:nvcsi@8188000":0 [ENABLED]

- entity 307: vi-output, sgx-raw 19-0020 (1 pad, 1 link)
              type Node subtype V4L flags 0
              device node name /dev/video11
        pad0: Sink
                <- "8181200000.host1x:nvcsi@8188000":1 [ENABLED]

nvidia@nvidia:~$ v4l2-ctl --list-devices
NVIDIA Tegra Video Input Device (platform:tegra-capture-vi):
        /dev/media0

vi-output, sgx-raw 17-0023 (platform:tegra-capture-vi:0):
        /dev/video0
        /dev/video1
        /dev/video2
        /dev/video3

vi-output, sgx-raw 18-0023 (platform:tegra-capture-vi:2):
        /dev/video4
        /dev/video5
        /dev/video6
        /dev/video7

vi-output, sgx-raw 19-0023 (platform:tegra-capture-vi:4):
        /dev/video8
        /dev/video9
        /dev/video10
        /dev/video11

I’m very sorry for the delay. I just finished my vacation.

Looks like NVCSI/VI didn’t receive any data from the sensor.

You may need to probe the sensor output signal to confirm it match the MIPI signal.

Thanks

I’m not sure what the problem is with the configuration. Normally, when there is no MIPI signal, the preview image should be a green screen or a black screen. But now, during the preview, a screenshot of the desktop appears directly.

What’s do you mean?

I think you can verify the capture by “v4l2-ctl --stream-mmap -c bypass_mode=0” first.

Hi,

Thanks for sharing the trace and media topology. We can see that the /dev/video0 is connected to sgx-raw 17-0023, so the vc=3 in the log appears consistent. Your diagram’s /dev/video0 to VC 0 mapping may need updating.

I agree with Shane’s suggestion to try a direct V4L2 capture. Could you share the command’s output and any new dmesg messages? The desktop showing in the preview window does not tell us whether a camera frame was captured. If V4L2 also receives no frames, it would help to check whether the MAX96712 is outputting the expected stream on CSI A, including VC 3.

Best regards,
Alejandro Godínez
Embedded Software Engineer, RidgeRun

Contact us: support@ridgerun.com
Developers Wiki: https://developer.ridgerun.com
Website: https://www.ridgerun.com