CSI port GANG MODE

Hello,

I tried to interface TC358840 (HDMI to CSI bridge converter) with NVIDIA JETSON TX2 NX SOM.

I want to read 4K@30fps video input from this chip.

For that I need to implement 8 x CSI lane interface with this chip.

For that we have to configure CSI ports in to GANG mode.

According to some reference I tried to make device tree changes.

tegra186-tx2-tc358840.txt (8.3 KB)

Can somebody please guide me on this?

Thanks for support.

I think you can just reference to tegra186-camera-imx274.dtsi to modify the bus-width to 8 for enabling gang mode.

Thanks

Hello,

Thank you so much for reply.

Actually I refer the same dtsi ,

tegra186-camera-imx274 .txt (9.7 KB)

In this dtsi I think they are using CSI port2,3 and 4.

But in my case I am planning to use csi port 0,1,2,3 total 8 lanes.

Actually I was trying to interface with TC358840.

Initially with 4 lane configuration I can able to read FHD HDMI input.

Now I am trying to read 4K HDMI input using 8 lane, but I am getting following error

tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 360.995802] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel

When I try to read input.

If you have any suggestion on this please let me know.

Thanks a lot for support.

Get the trace log to check.

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 3 > /sys/kernel/debug/camrtc/log-level
echo 1 > /sys/kernel/debug/tracing/events/camera_common/enable
echo > /sys/kernel/debug/tracing/trace

v4l2-ctl --stream-mmap -c bypass_mode=0

cat /sys/kernel/debug/tracing/trace

Hello,

Thanks a lot for reply.

Sorry for my lack of understanding.

I tried to take trace log using above given commands but for all of them system is not permitting.

Please check attached document.

debug03_04_2026_1.txt (2.0 KB)

Did I missed something ? Do I need to enable something els?

Please guide me on this.

Thanks a lot for support.

The log tell the Permission denied.

Enable the trace log by supervisor mode like “sudo su” first then enter those command.

user@user-desktop:~$ sudo echo 1 > /sys/kernel/debug/tracing/tracing_on
bash: /sys/kernel/debug/tracing/tracing_on: Permission denied

Hello,

Sorry for delayed reply.

Please check attachments of debug trace log.

debug09_04_2026_1.txt (75.7 KB)

debug09_04_2026_2.txt (10.5 KB)

Thanks a lot for support.

This log tell PIXEL_SHORT_LINE that could be incorrect output size.

Thanks

     kworker/5:2-1912  [005] ....   342.152514: rtcpu_vinotify_event: tstamp:10934688145 tag:CHANSEL_FAULT channel:0x00 frame:0 vi_tstamp:10934687335 data:0x00000200

Hello,

I was trying to resolve this issue.

I refer some links on TC358840 interfacing.

Device tree changes are almost same as suggested in most of the link.

I was try to make changes in driver.

This driver properly work for 2K hdmi input but not working on 4K hdmi input.

If you have any reference please let me know.

Thanks a lot for support.

2K is working on 4 lanes mode but 4K working on 8 lanes.

Maybe try 4K by 4 lanes to confirm.

Thanks

Hello @rusurya,

you may need few but important changes in your DTS. Mainly:

try pointing to the base CSI port instead of the current one

csi_port = <0>

Additionally, there’s a typo in the DTS that you shared (line 53)

#address-ells =<1>

Implement and test these changes separately and then combined to be sure about what may result in a change in behavior.

Regards,
Daniel R.
Embedded SW Engineer at RidgeRun
Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com
Website: www.ridgerun.com

Hello,

Sorry for delayed response.

I am using CSI 0 + CSI 1 + CSI 2 + CSI 3 (total 8 lanes) for CSI capturing.

I want to use both the ports (0 & 2) in GANG MODE for that I specified

csi_port = <3>;

Line 53 it was mistake it suppose to be

#address-cells = <1>;

Thanks a lot for support.