Jetson Orin NX – Custom MIPI CSI-2 Camera: Driver/DTS Loaded but No Image

Hello NVIDIA team,

I am currently bringing up a custom UV-THG69225AW-E MIPI CSI-2 camera on a Jetson Orin NX, but I cannot get any valid image. The screen remains completely black when starting the stream.

I would appreciate help from the NVIDIA camera/CSI team to review my Device Tree and tegracam driver, which are attached to this post.

1. Jetson platform

My current platform information is:

Model:
NVIDIA Jetson Orin NX Engineering Reference Developer Kit

L4T:
R36.5.0

2. Hardware configuration

  • Camera connected to CAM1 / 15-pin FPC connector

  • 2-lane MIPI CSI-2

  • Camera output: 640 × 512 @ 30 FPS

  • Pixel format: YUYV / YUV 4:2:2

  • Clock lane is connected normally.

  • Both data-lane P/N polarities are swapped on my PCB.

The actual physical connections are:

Jetson Data 0 P  <-------->  Camera Data 1 N
Jetson Data 0 N  <-------->  Camera Data 1 P

Jetson Data 1 P  <-------->  Camera Data 3 N
Jetson Data 1 N  <-------->  Camera Data 3 P

Jetson Clock P   <-------->  Camera Clock P
Jetson Clock N   <-------->  Camera Clock N

Therefore:

  1. Camera Data Lane 1 → Jetson Data Lane 0

  2. Camera Data Lane 3 → Jetson Data Lane 1

  3. P/N polarity is swapped on both data lanes

  4. Clock lane is connected normally without P/N swapping

3. Current Device Tree configuration

The relevant configuration is:

tegra_sinterface = "serial_b";
num_lanes = "2";
active_w = "640";
active_h = "512";
pixel_phase = "yuyv";
csi_pixel_bit_depth = "16";
line_length = "1294";
pix_clk_hz = "27000000";
lane_polarity = "3";

The camera is connected to CAM1 / serial_b using two data lanes.

The complete DTS is attached to this post.

4. Driver

I am using a custom tegracam-based driver for this camera.

The camera module is controlled through UART/VISCA rather than a conventional image-sensor I2C register interface. Therefore, the current driver does not configure image-sensor registers through I2C.

The driver mainly handles:

  • Camera registration with the NVIDIA tegracam framework

  • V4L2 registration

  • 640 × 512 @ 30 FPS mode

  • Reset GPIO

  • MCLK

  • Start/stop streaming

The current start_streaming() implementation releases SYS_RST_N to allow the camera module to start its MIPI output.

The driver source is also attached for review.

5. Current problem

The driver can probe successfully and the V4L2 device is created, but when I start streaming:

  • No valid image is received

  • The screen remains completely black

  • No valid frame can be obtained from the camera

At this point, I am not sure whether the problem is in the Device Tree configuration, lane mapping/polarity, NVCSI configuration, or the tegracam driver implementation.

6. Request for help

Could you please review the attached DTS and driver, especially:

  • The CAM1 / CSI-B 2-lane configuration
  • The lane mapping and P/N polarity
  • lane_polarity = "3"
  • The 640 × 512 @ 30 FPS timing parameters
  • The current tegracam driver implementation

I would also appreciate any recommended NVCSI/VI debug commands or logs that can help determine whether the MIPI data is reaching NVCSI/VI.

Thank you for your help.

Driverr.zip (6.5 KB)

hello lbinh0309,

firstly, CSI0 D1 and CSI1 D0 P/N will always been swizzled for P/N.
let’s give it a try to update lane_polarity, here’s mask bits for lane_polarity
bit 0: CSI0 D0
bit 1: CSI0 D1
bit 2: CSI1 D0
bit 3: CSI1 D1
since you’re using serial_b, you’ll need to toggle polarity swap on CSI1.
let’s give it a try to configure lane_polarity = "10"; // 0xA, 1010b"

secondly, you should also review Sensor Pixel Clock, which must be set correctly to avoid potential issues.
FYI, I usually using sensor CSI lane output rate, pixel_clk_hz = sensor data rate per lane (Mbps) * number of lanes / bits per pixel

lastly, you may enable VI tracing logs, please upload those debug messages as single text file to the attachment for investigation.

sudo -s
modprobe rtcpu_debug
echo 1 > /sys/kernel/debug/tracing/tracing_on
echo 30720 > /sys/kernel/debug/tracing/buffer_size_kb
echo 1 > /sys/kernel/debug/tracing/events/tegra_rtcpu/enable
echo 1 > /sys/kernel/debug/tracing/events/freertos/enable
echo 2 > /sys/kernel/debug/camrtc/log-level
echo > /sys/kernel/debug/tracing/trace

Hello,

I checked the collected logs again. The trace and dmesg files are not empty and do contain capture-related messages.

Findings:

  • lane_polarity = “10” is confirmed in the runtime device tree.
  • The driver probes and binds successfully.
  • VI trace shows VM0 activating and VIFALC_TDSTATE / VIFALC_ACTIONLST events.
  • Kernel log repeatedly reports:
    tegra-camrtc-capture-vi: uncorr_err: request timed out after 2500 ms
    Current configuration:
  • 640x512 @ 30fps
  • YUV422
  • 2 lanes
  • serial_b
  • lane_polarity = “10”
  • pix_clk_hz = “27000000”
  • pixel_phase = “yuyv”
    For this setup, I only use MIPI CSI as the image transport interface. I am not sending UART/VISCA control commands.
    Attached:
  • vi_trace.txt
  • cam_dmesg.txt

cam_dmesg.txt (12.5 KB)

vi_trace.txt (5.8 KB)

hello lbinh0309,

it looks there’s no validate frames, that’s also why VI failure, request timed out after 2500ms has reported.

you may also check VI tracing logs,
let me share you VI tracing logs with a success image capture as an example.
here must be one pair of CHANSEL_PXL_SOF/CHANSEL_PXL_EOF to indicate a frame has detected by VI engine.
afterwards, it’s ATOMP_FRAME_DONE to indicate it’s complete writing a frame to memory.
for instance,

rtcpu_vinotify_event: tstamp:4058867917 cch:-1 vi:0 tag:CSIMUX_STREAM channel:0x00 frame:0 vi_tstamp:129874754944 data:0x0000000000000001
rtcpu_vinotify_event: tstamp:4059206674 cch:0 vi:0 tag:ATOMP_FS channel:0x00 frame:1 vi_tstamp:129891804896 data:0x0000000800000000
rtcpu_vinotify_event: tstamp:4059206818 cch:0 vi:0 tag:CHANSEL_PXL_SOF channel:0x23 frame:1 vi_tstamp:129891808928 data:0x0000000000000001
rtcpu_vinotify_event: tstamp:4059206976 cch:0 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:1 vi_tstamp:129891815424 data:0x0000000008020001
rtcpu_vinotify_error: tstamp:4060164160 cch:0 vi:0 tag:CSIMUX_FRAME channel:0x00 frame:1 vi_tstamp:129925171392 data:0x00000000000000a0
rtcpu_vinotify_event: tstamp:4060166846 cch:0 vi:0 tag:CHANSEL_PXL_EOF channel:0x23 frame:1 vi_tstamp:129923836800 data:0x0000000004370002
rtcpu_vinotify_event: tstamp:4060167015 cch:0 vi:0 tag:ATOMP_FRAME_DONE channel:0x23 frame:1 vi_tstamp:129923837312 data:0x0000000000000000

Thank you for checking the trace.
In particular, could you please help confirm whether my CSI-B 2-lane configuration and lane_polarity = “10” are correct for the physical lane connection I described above?

If there are any additional NVCSI/CSI PHY logs or commands that can help determine whether CSI packets are reaching the Jetson receiver, please let me know.

hello lbinh0309,

yes, it should be correct by setting lane_polarity = “10”.
if that’s possible, please try arrange hardware sources to probe the high-speed MIPI signaling for issue narrow down.