Toshiba 4K HDMI to CSI (8-lane) bridge on TX2 NX

Dear All,

I’m porting the driver of TC358840 chipset from TX2 to TX2 NX from this repository : GitHub - InES-HPMM/linux-l4t-4.9: Linux kernel 4.9 forked from Nvidia Linux4Tegra for TX2. Supports L4T 32.2.1

Mostly I added necessary .dtsi for the new tegra186 SoC member (lanai) as below :

kernel_src/hardware/nvidia/platform/t18x/lanai/kernel-dts/common/tegra186-toto-camera.dtsi
kernel_src/hardware/nvidia/platform/t18x/lanai/kernel-dts/common/tegra186-toto-lanai-camera.dtsi

Then included the later one :

kernel_src/hardware/nvidia/platform/t18x/lanai/kernel-dts/tegra186-p3636-0001-p3509-0000-a01.dts
20:#include "common/tegra186-toto-lanai-camera.dtsi"

The driver could make appear /dev/video0 with following info :

nvidia@TX2NX:~$ v4l2-ctl -d /dev/video0 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
	Index       : 0
	Type        : Video Capture
	Pixel Format: 'AR24'
	Name        : 32-bit BGRA 8-8-8-8

	Index       : 1
	Type        : Video Capture
	Pixel Format: 'UYVY'
	Name        : UYVY 4:2:2

	Index       : 2
	Type        : Video Capture
	Pixel Format: 'NV16'
	Name        : Y/CbCr 4:2:2

ANd I2C dumping :

nvidia@TX2NX:~$ dmesg | grep tc35
[    5.188704] tc358840 7-000f: Device Tree Parameters:
[    5.188798] tc358840 7-000f: reset_gpio = 424
[    5.188800] tc358840 7-000f: refclk_hz = 48000000
[    5.188802] tc358840 7-000f: ddc5v_delay = 50 ms
[    5.188804] tc358840 7-000f: enable_hdcp = 0
[    5.188805] tc358840 7-000f: csi_port = 3
[    5.188807] tc358840 7-000f: lineinitcnt = 4000
[    5.188808] tc358840 7-000f: lptxtimecnt = 4
[    5.188810] tc358840 7-000f: tclk_headercnt = 1573379
[    5.188812] tc358840 7-000f: tclk_trailcnt = 262149
[    5.188813] tc358840 7-000f: ths_headercnt = 851972
[    5.188815] tc358840 7-000f: twakeup = 16000
[    5.188816] tc358840 7-000f: tclk_postcnt = 10
[    5.188818] tc358840 7-000f: ths_trailcnt = 524294
[    5.188820] tc358840 7-000f: hstxvregcnt = 32
[    5.188821] tc358840 7-000f: pll_prd = 10
[    5.188823] tc358840 7-000f: pll_fbd = 125
[    5.188853] tc358840 7-000f: camera_common_regulator_get vif ERR: ffffffffffffffed
[    5.188855] tc358840 7-000f: cannot get regulator vif -19
[    5.188858] tc358840 7-000f: Releasing System Reset (gpio 0x01A8)
[    5.188896] tc358840 7-000f: Chip found @ 7h0F (c250000.i2c)
[    5.196324] tc358840 7-000f: I2C read 0x0000 = 0x4700
[    5.196327] tc358840 7-000f: TC358840 ChipID 0x47, Revision 0x00
[    5.202916] tc358840 7-000f: I2C read 0x8520 = 0x01
[    5.203395] tc358840 7-000f: I2C read 0x8520 = 0x01
[    5.204118] tc358840 7-000f: I2C read 0x8523 = 0xC0
[    5.204226] tc358840 7-000f: tc358840_initial_setup():
[    5.204228] tc358840 7-000f: enable_stream: disable
[    5.204230] tc358840 7-000f: tc358840_sleep_mode(): disable
[    5.204432] tc358840 7-000f: I2C read 0x0002 = 0x0081
[    5.204621] tc358840 7-000f: I2C write 0x0002 = 0x0080
[    5.204821] tc358840 7-000f: I2C read 0x0002 = 0x0080
[    5.205607] tc358840 7-000f: I2C write 0x0002 = 0x5F80
[    5.205787] tc358840 7-000f: I2C write 0x0002 = 0x0000
[    5.205788] tc358840 7-000f: tc358840_init_interrupts():
[    5.205943] tc358840 7-000f: I2C write 0x8502 = 0xFF
[    5.206082] tc358840 7-000f: I2C write 0x8503 = 0xFF
[    5.206227] tc358840 7-000f: I2C write 0x8504 = 0xFF
[    5.208882] tc358840 7-000f: I2C write 0x8505 = 0xFF
[    5.209108] tc358840 7-000f: I2C write 0x8506 = 0xFF
[    5.209250] tc358840 7-000f: I2C write 0x8507 = 0xFF
[    5.209389] tc358840 7-000f: I2C write 0x8508 = 0xFF
[    5.209526] tc358840 7-000f: I2C write 0x8509 = 0xFF
[    5.209663] tc358840 7-000f: I2C write 0x850B = 0xFF
[    5.209827] tc358840 7-000f: I2C write 0x0014 = 0x0F3F
[    5.210004] tc358840 7-000f: I2C write 0x0014 = 0x0000
[    5.210168] tc358840 7-000f: I2C write 0x0016 = 0x0F3F
[    5.210170] tc358840 7-000f: tc358840_s_dv_timings():
[    5.210173] tc358840 7-000f: tc358840_s_dv_timings: 1920x1080p60.0 (2200x1125)
[    5.210176] tc358840 7-000f: enable_stream: disable
[    5.210178] tc358840 7-000f: tc358840_set_csi:
[    5.210380] tc358840 7-000f: I2C read 0x0002 = 0x0000
[    5.210543] tc358840 7-000f: I2C write 0x0002 = 0x0200
[    5.210705] tc358840 7-000f: I2C write 0x0002 = 0x0000
[    5.210707] tc358840 7-000f: tc358840_set_csi: Enabling CSI TX0
[    5.210919] tc358840 7-000f: I2C write 0x0108 = 0x00000001
[    5.210920] tc358840 7-000f: tc358840_set_pll:
[    5.211168] tc358840 7-000f: I2C read 0x02AC = 0x00020200
[    5.211170] tc358840 7-000f: tc358840_set_pll: Updating PLL clock of CSI TX0
[    5.211381] tc358840 7-000f: I2C write 0x02AC = 0x0000A07D
[    5.211641] tc358840 7-000f: I2C read 0x02A0 = 0x00000000
[    5.211852] tc358840 7-000f: I2C write 0x02A0 = 0x00000001
[    5.224057] tc358840 7-000f: I2C write 0x02A0 = 0x00000003
[    5.224273] tc358840 7-000f: I2C write 0x010C = 0x00000001
[    5.224701] tc358840 7-000f: I2C write 0x0118 = 0x00000014
[    5.224926] tc358840 7-000f: I2C write 0x0120 = 0x00000FA0
[    5.225183] tc358840 7-000f: I2C read 0x0150 = 0x00000000
[    5.225400] tc358840 7-000f: I2C write 0x0254 = 0x00000004
[    5.225788] tc358840 7-000f: I2C write 0x0258 = 0x00180203
[    5.226127] tc358840 7-000f: I2C write 0x025C = 0x00040005
[    5.226360] tc358840 7-000f: I2C write 0x0260 = 0x000D0004
[    5.226583] tc358840 7-000f: I2C write 0x0264 = 0x00003E80
[    5.226805] tc358840 7-000f: I2C write 0x0268 = 0x0000000A
[    5.227033] tc358840 7-000f: I2C write 0x026C = 0x00080006
[    5.227441] tc358840 7-000f: I2C write 0x0270 = 0x00000020
[    5.227683] tc358840 7-000f: I2C write 0x0274 = 0x0000001F
[    5.227916] tc358840 7-000f: I2C write 0x011C = 0x00000001
[    5.228175] tc358840 7-000f: I2C read 0x01B0 = 0x00000000
[    5.228179] tc358840 7-000f: tc358840_set_csi: Enabling CSI TX1
[    5.228401] tc358840 7-000f: I2C write 0x0308 = 0x00000001
[    5.228404] tc358840 7-000f: tc358840_set_pll:
[    5.228662] tc358840 7-000f: I2C read 0x04AC = 0x00020200
[    5.228665] tc358840 7-000f: tc358840_set_pll: Updating PLL clock of CSI TX1
[    5.228899] tc358840 7-000f: I2C write 0x04AC = 0x0000A07D
[    5.229163] tc358840 7-000f: I2C read 0x04A0 = 0x00000000
[    5.229391] tc358840 7-000f: I2C write 0x04A0 = 0x00000001
[    5.240729] tc358840 7-000f: I2C write 0x04A0 = 0x00000003
[    5.240957] tc358840 7-000f: I2C write 0x030C = 0x00000001
[    5.241188] tc358840 7-000f: I2C write 0x0318 = 0x00000014
[    5.241409] tc358840 7-000f: I2C write 0x0320 = 0x00000FA0
[    5.241666] tc358840 7-000f: I2C read 0x0350 = 0x00000000
[    5.241893] tc358840 7-000f: I2C write 0x0454 = 0x00000004
[    5.242114] tc358840 7-000f: I2C write 0x0458 = 0x00180203
[    5.242434] tc358840 7-000f: I2C write 0x045C = 0x00040005
[    5.242660] tc358840 7-000f: I2C write 0x0460 = 0x000D0004
[    5.242881] tc358840 7-000f: I2C write 0x0464 = 0x00003E80
[    5.243102] tc358840 7-000f: I2C write 0x0468 = 0x0000000A
[    5.243328] tc358840 7-000f: I2C write 0x046C = 0x00080006
[    5.243547] tc358840 7-000f: I2C write 0x0470 = 0x00000020
[    5.243792] tc358840 7-000f: I2C write 0x0474 = 0x0000001F
[    5.244178] tc358840 7-000f: I2C write 0x031C = 0x00000001
[    5.244506] tc358840 7-000f: I2C read 0x03B0 = 0x00000000
[    5.244512] tc358840 7-000f: tc358840_set_splitter():
[    5.244721] tc358840 7-000f: I2C read 0x5000 = 0x0100
[    5.244888] tc358840 7-000f: I2C write 0x5000 = 0x0100
[    5.245093] tc358840 7-000f: I2C read 0x5080 = 0x0100
[    5.245300] tc358840 7-000f: I2C write 0x5080 = 0x0100
[    5.245505] tc358840 7-000f: I2C read 0x500C = 0x8000
[    5.245672] tc358840 7-000f: I2C write 0x500C = 0x0000
[    5.245674] tc358840 7-000f: tc358840_set_ref_clk():
[    5.245825] tc358840 7-000f: I2C write 0x8540 = 0xC0
[    5.245998] tc358840 7-000f: I2C write 0x8541 = 0x12
[    5.246178] tc358840 7-000f: I2C write 0x8630 = 0x00
[    5.246342] tc358840 7-000f: I2C write 0x8631 = 0x53
[    5.246507] tc358840 7-000f: I2C write 0x8632 = 0x07
[    5.246651] tc358840 7-000f: I2C write 0x8670 = 0x02
[    5.246801] tc358840 7-000f: I2C write 0x8671 = 0xBA
[    5.246946] tc358840 7-000f: I2C write 0x8672 = 0x49
[    5.247094] tc358840 7-000f: I2C write 0x8673 = 0x0C
[    5.247248] tc358840 7-000f: I2C write 0x8674 = 0x02
[    5.247414] tc358840 7-000f: I2C write 0x8A0C = 0xC0
[    5.247584] tc358840 7-000f: I2C write 0x8A0D = 0x12
[    5.247766] tc358840 7-000f: I2C read 0x8543 = 0x02
[    5.247914] tc358840 7-000f: I2C write 0x8543 = 0x01
[    5.248145] tc358840 7-000f: I2C read 0x85E0 = 0x00
[    5.248303] tc358840 7-000f: I2C write 0x85E0 = 0x02
[    5.248732] tc358840 7-000f: I2C read 0x8544 = 0x10
[    5.248880] tc358840 7-000f: I2C write 0x8544 = 0x00
[    5.248883] tc358840 7-000f: tc358840_set_hdmi_phy():
[    5.248885] tc358840 7-000f: tc358840_reset_phy:
[    5.249706] tc358840 7-000f: I2C read 0x8414 = 0xB3
[    5.249887] tc358840 7-000f: I2C write 0x8414 = 0xB2
[    5.250067] tc358840 7-000f: I2C read 0x8414 = 0xB2
[    5.250208] tc358840 7-000f: I2C write 0x8414 = 0xB3
[    5.250349] tc358840 7-000f: I2C write 0x8410 = 0x02
[    5.250526] tc358840 7-000f: I2C read 0x8413 = 0x3E
[    5.250666] tc358840 7-000f: I2C write 0x8413 = 0x3E
[    5.250870] tc358840 7-000f: I2C read 0x8413 = 0x3E
[    5.251039] tc358840 7-000f: I2C write 0x8413 = 0x3F
[    5.251182] tc358840 7-000f: I2C write 0x84F0 = 0x31
[    5.251327] tc358840 7-000f: I2C write 0x84F4 = 0x01
[    5.251329] tc358840 7-000f: tc358840_set_hdmi_hdcp: disable
[    5.251731] tc358840 7-000f: I2C read 0x8563 = 0x11
[    5.251902] tc358840 7-000f: I2C write 0x8563 = 0x11
[    5.252124] tc358840 7-000f: I2C read 0x8564 = 0x0F
[    5.252267] tc358840 7-000f: I2C write 0x8564 = 0x0F
[    5.252742] tc358840 7-000f: I2C read 0x85D1 = 0x00
[    5.252907] tc358840 7-000f: I2C write 0x85D1 = 0x00
[    5.253087] tc358840 7-000f: I2C read 0x8560 = 0x24
[    5.253329] tc358840 7-000f: I2C write 0x8560 = 0x00
[    5.253510] tc358840 7-000f: I2C read 0x8842 = 0x00
[    5.253657] tc358840 7-000f: I2C write 0x8842 = 0x08
[    5.253848] tc358840 7-000f: I2C read 0x8840 = 0x80
[    5.253993] tc358840 7-000f: I2C write 0x8840 = 0xE0
[    5.253995] tc358840 7-000f: tc358840_set_hdmi_audio():
[    5.254135] tc358840 7-000f: I2C write 0x8600 = 0x00
[    5.254274] tc358840 7-000f: I2C write 0x8602 = 0xF3
[    5.254412] tc358840 7-000f: I2C write 0x8603 = 0x02
[    5.254551] tc358840 7-000f: I2C write 0x8604 = 0x0C
[    5.254692] tc358840 7-000f: I2C write 0x8606 = 0x05
[    5.254967] tc358840 7-000f: I2C write 0x8607 = 0x00
[    5.255119] tc358840 7-000f: I2C write 0x8620 = 0x22
[    5.255450] tc358840 7-000f: I2C write 0x8640 = 0x01
[    5.255659] tc358840 7-000f: I2C write 0x8641 = 0x65
[    5.255801] tc358840 7-000f: I2C write 0x8642 = 0x07
[    5.255947] tc358840 7-000f: I2C write 0x8652 = 0x02
[    5.256117] tc358840 7-000f: I2C write 0x8665 = 0x10
[    5.256321] tc358840 7-000f: I2C read 0x0004 = 0x0000
[    5.256521] tc358840 7-000f: I2C write 0x0004 = 0x0C14
[    5.256526] tc358840 7-000f: tc358840_set_hdmi_info_frame_mode(): DUMMY
[    5.256772] tc358840 7-000f: I2C read 0x8570 = 0x8E
[    5.256951] tc358840 7-000f: I2C write 0x8570 = 0x86
[    5.256954] tc358840 7-000f: tc358840_set_csi_mbus_config():
[    5.256956] tc358840 7-000f: tc358840_set_csi_mbus_config: YCbCr 422 16-bit
[    5.257113] tc358840 7-000f: I2C write 0x8A00 = 0x01
[    5.257256] tc358840 7-000f: I2C write 0x8A01 = 0x14
[    5.257403] tc358840 7-000f: I2C write 0x8A02 = 0x02
[    5.257570] tc358840 7-000f: I2C write 0x8A08 = 0x31
[    5.257775] tc358840 7-000f: I2C read 0x0004 = 0x0C14
[    5.257940] tc358840 7-000f: I2C write 0x0004 = 0x0CD4
[    5.258143] tc358840 7-000f: I2C write 0x0006 = 0x0000
[    5.258510] tc358840 7-000f: tc358840_process_isr:
[    5.258687] tc358840 7-000f: I2C write 0x0016 = 0xFDFF
[    5.258692] tc358840 7-000f: tc358840 found @ 7h0F (c250000.i2c)
[    5.258702] tegra-vi4 15700000.vi: subdev tc358840 7-000f bound
[    5.258911] tc358840 7-000f: I2C read 0x0014 = 0x0000
[    5.258915] tc358840 7-000f: tc358840_isr: IntStatus = 0x0000
[    5.259591] tc358840 7-000f: tc358840_enum_mbus_code()
[    5.259595] tc358840 7-000f: tc358840_enum_mbus_code()
[    5.259597] tc358840 7-000f: tc358840_enum_mbus_code()
[    5.259939] tc358840 7-000f: I2C read 0x8A08 = 0x31
[    5.259943] tc358840 7-000f: tc358840_get_fmt():
[    5.259946] tc358840 7-000f: tc358840_get_fmt(): width=1920, height=1080, code=0x0000200F, field=1
[    5.269930] Modules linked in: r8188eu(C+) tc358840(+) cfg80211 zram spidev overlay userspace_alert nvgpu bluedroid_pm ip_tables x_tables
[    5.440172] [<ffffff800115902c>] tc358840_probe+0xbfc/0xdc0 [tc358840]
[    5.491708] [<ffffff8001162018>] tc358840_driver_init+0x18/0x30 [tc358840]
[   15.440500] tc358840 7-000f: tc358840_delayed_work_enable_interrupt:
[   15.447086] tc358840 7-000f: I2C read 0x8520 = 0x01
[   15.451999] tc358840 7-000f: tc358840_enable_interrupts: cable connected = 1
[   15.459295] tc358840 7-000f: I2C write 0x8512 = 0xCE
[   15.464483] tc358840 7-000f: I2C write 0x8512 = 0xFE
[   15.469683] tc358840 7-000f: I2C write 0x8513 = 0xDF
[   15.474842] tc358840 7-000f: I2C write 0x8515 = 0x3D
[   15.480062] tc358840 7-000f: I2C write 0x8516 = 0xFE
[   15.485245] tc358840 7-000f: I2C write 0x851B = 0xFD
[   15.490262] tc358840 7-000f: tc358840_s_edid, pad 0, start block 0, blocks 2
[   15.497415] tc358840 7-000f: tc358840_disable_edid:
[   15.502540] tc358840 7-000f: I2C read 0x8544 = 0x00
[   15.507604] tc358840 7-000f: I2C write 0x8544 = 0x00
[   15.512811] tc358840 7-000f: I2C write 0x85E3 = 0x00
[   15.517956] tc358840 7-000f: I2C write 0x85E4 = 0x01
[   15.523149] tc358840 7-000f: I2C write 0x8C00 = 0x00
[   15.528285] tc358840 7-000f: I2C write 0x8C01 = 0xFF
[   15.533407] tc358840 7-000f: I2C write 0x8C02 = 0xFF
[   15.538528] tc358840 7-000f: I2C write 0x8C03 = 0xFF
[   15.543734] tc358840 7-000f: I2C write 0x8C04 = 0xFF
[   15.548874] tc358840 7-000f: I2C write 0x8C05 = 0xFF
[   15.553995] tc358840 7-000f: I2C write 0x8C06 = 0xFF
[   15.559115] tc358840 7-000f: I2C write 0x8C07 = 0x00
[   15.564236] tc358840 7-000f: I2C write 0x8C08 = 0x52
[   15.569358] tc358840 7-000f: I2C write 0x8C09 = 0x62
[   15.574475] tc358840 7-000f: I2C write 0x8C0A = 0x88
[   15.579671] tc358840 7-000f: I2C write 0x8C0B = 0x88
[   15.584861] tc358840 7-000f: I2C write 0x8C0C = 0x00
[   15.589991] tc358840 7-000f: I2C write 0x8C0D = 0x88
[   15.595278] tc358840 7-000f: I2C write 0x8C0E = 0x88
[   15.600400] tc358840 7-000f: I2C write 0x8C0F = 0x88
[   15.605888] tc358840 7-000f: I2C write 0x8C10 = 0x1C
[   15.611011] tc358840 7-000f: I2C write 0x8C11 = 0x15
[   15.616130] tc358840 7-000f: I2C write 0x8C12 = 0x01
[   15.621445] tc358840 7-000f: I2C write 0x8C13 = 0x03
[   15.626575] tc358840 7-000f: I2C write 0x8C14 = 0x80
[   15.631696] tc358840 7-000f: I2C write 0x8C15 = 0x00
[   15.636980] tc358840 7-000f: I2C write 0x8C16 = 0x00
[   15.642115] tc358840 7-000f: I2C write 0x8C17 = 0x78
[   15.647237] tc358840 7-000f: I2C write 0x8C18 = 0x0A
[   15.652357] tc358840 7-000f: I2C write 0x8C19 = 0x0D
[   15.657643] tc358840 7-000f: I2C write 0x8C1A = 0xC9
[   15.662780] tc358840 7-000f: I2C write 0x8C1B = 0xA0
[   15.667896] tc358840 7-000f: I2C write 0x8C1C = 0x57
[   15.673013] tc358840 7-000f: I2C write 0x8C1D = 0x47
[   15.678128] tc358840 7-000f: I2C write 0x8C1E = 0x98
[   15.683409] tc358840 7-000f: I2C write 0x8C1F = 0x27
[   15.688541] tc358840 7-000f: I2C write 0x8C20 = 0x12
[   15.693645] tc358840 7-000f: I2C write 0x8C21 = 0x48
[   15.698956] tc358840 7-000f: I2C write 0x8C22 = 0x4C
[   15.704086] tc358840 7-000f: I2C write 0x8C23 = 0x00
[   15.709203] tc358840 7-000f: I2C write 0x8C24 = 0x00
[   15.714492] tc358840 7-000f: I2C write 0x8C25 = 0x00
[   15.719623] tc358840 7-000f: I2C write 0x8C26 = 0x01
[   15.724915] tc358840 7-000f: I2C write 0x8C27 = 0x01
[   15.730089] tc358840 7-000f: I2C write 0x8C28 = 0x01
[   15.735239] tc358840 7-000f: I2C write 0x8C29 = 0x01
[   15.740350] tc358840 7-000f: I2C write 0x8C2A = 0x01
[   15.745475] tc358840 7-000f: I2C write 0x8C2B = 0x01
[   15.750595] tc358840 7-000f: I2C write 0x8C2C = 0x01
[   15.755712] tc358840 7-000f: I2C write 0x8C2D = 0x01
[   15.761032] tc358840 7-000f: I2C write 0x8C2E = 0x01
[   15.766210] tc358840 7-000f: I2C write 0x8C2F = 0x01
[   15.771329] tc358840 7-000f: I2C write 0x8C30 = 0x01
[   15.776471] tc358840 7-000f: I2C write 0x8C31 = 0x01
[   15.781576] tc358840 7-000f: I2C write 0x8C32 = 0x01
[   15.786855] tc358840 7-000f: I2C write 0x8C33 = 0x01
[   15.791986] tc358840 7-000f: I2C write 0x8C34 = 0x01
[   15.797297] tc358840 7-000f: I2C write 0x8C35 = 0x01
[   15.802431] tc358840 7-000f: I2C write 0x8C36 = 0xEC
[   15.807720] tc358840 7-000f: I2C write 0x8C37 = 0x68
[   15.812854] tc358840 7-000f: I2C write 0x8C38 = 0x00
[   15.817976] tc358840 7-000f: I2C write 0x8C39 = 0xA0
[   15.823091] tc358840 7-000f: I2C write 0x8C3A = 0xF0
[   15.828206] tc358840 7-000f: I2C write 0x8C3B = 0x70
[   15.833488] tc358840 7-000f: I2C write 0x8C3C = 0x37
[   15.838617] tc358840 7-000f: I2C write 0x8C3D = 0x80
[   15.843904] tc358840 7-000f: I2C write 0x8C3E = 0x30
[   15.849036] tc358840 7-000f: I2C write 0x8C3F = 0x20
[   15.854149] tc358840 7-000f: I2C write 0x8C40 = 0x3A
[   15.859427] tc358840 7-000f: I2C write 0x8C41 = 0x00
[   15.864603] tc358840 7-000f: I2C write 0x8C42 = 0x00
[   15.869743] tc358840 7-000f: I2C write 0x8C43 = 0x70
[   15.875059] tc358840 7-000f: I2C write 0x8C44 = 0xF8
[   15.880197] tc358840 7-000f: I2C write 0x8C45 = 0x00
[   15.885545] tc358840 7-000f: I2C write 0x8C46 = 0x00
[   15.890669] tc358840 7-000f: I2C write 0x8C47 = 0x1C
[   15.895839] tc358840 7-000f: I2C write 0x8C48 = 0x02
[   15.901000] tc358840 7-000f: I2C write 0x8C49 = 0x3A
[   15.906127] tc358840 7-000f: I2C write 0x8C4A = 0x80
[   15.911246] tc358840 7-000f: I2C write 0x8C4B = 0x18
[   15.916367] tc358840 7-000f: I2C write 0x8C4C = 0x71
[   15.921652] tc358840 7-000f: I2C write 0x8C4D = 0x38
[   15.926780] tc358840 7-000f: I2C write 0x8C4E = 0x2D
[   15.931897] tc358840 7-000f: I2C write 0x8C4F = 0x40
[   15.937187] tc358840 7-000f: I2C write 0x8C50 = 0x58
[   15.942315] tc358840 7-000f: I2C write 0x8C51 = 0x2C
[   15.947617] tc358840 7-000f: I2C write 0x8C52 = 0x45
[   15.952760] tc358840 7-000f: I2C write 0x8C53 = 0x00
[   15.957879] tc358840 7-000f: I2C write 0x8C54 = 0xC4
[   15.962997] tc358840 7-000f: I2C write 0x8C55 = 0x8E
[   15.968429] tc358840 7-000f: I2C write 0x8C56 = 0x21
[   15.973877] tc358840 7-000f: I2C write 0x8C57 = 0x00
[   15.979040] tc358840 7-000f: I2C write 0x8C58 = 0x00
[   15.984236] tc358840 7-000f: I2C write 0x8C59 = 0x1E
[   15.989418] tc358840 7-000f: I2C write 0x8C5A = 0x00
[   15.994616] tc358840 7-000f: I2C write 0x8C5B = 0x00
[   15.999837] tc358840 7-000f: I2C write 0x8C5C = 0x00
[   16.005000] tc358840 7-000f: I2C write 0x8C5D = 0xFC
[   16.010169] tc358840 7-000f: I2C write 0x8C5E = 0x00
[   16.015366] tc358840 7-000f: I2C write 0x8C5F = 0x54
[   16.020669] tc358840 7-000f: I2C write 0x8C60 = 0x6F
[   16.025834] tc358840 7-000f: I2C write 0x8C61 = 0x73
[   16.031000] tc358840 7-000f: I2C write 0x8C62 = 0x68
[   16.036468] tc358840 7-000f: I2C write 0x8C63 = 0x69
[   16.041647] tc358840 7-000f: I2C write 0x8C64 = 0x62
[   16.046845] tc358840 7-000f: I2C write 0x8C65 = 0x61
[   16.052096] tc358840 7-000f: I2C write 0x8C66 = 0x2D
[   16.057282] tc358840 7-000f: I2C write 0x8C67 = 0x55
[   16.062470] tc358840 7-000f: I2C write 0x8C68 = 0x48
[   16.067647] tc358840 7-000f: I2C write 0x8C69 = 0x32
[   16.072820] tc358840 7-000f: I2C write 0x8C6A = 0x44
[   16.077998] tc358840 7-000f: I2C write 0x8C6B = 0x0A
[   16.083158] tc358840 7-000f: I2C write 0x8C6C = 0x00
[   16.088329] tc358840 7-000f: I2C write 0x8C6D = 0x00
[   16.093512] tc358840 7-000f: I2C write 0x8C6E = 0x00
[   16.098684] tc358840 7-000f: I2C write 0x8C6F = 0xFD
[   16.103857] tc358840 7-000f: I2C write 0x8C70 = 0x00
[   16.109101] tc358840 7-000f: I2C write 0x8C71 = 0x17
[   16.114342] tc358840 7-000f: I2C write 0x8C72 = 0x3D
[   16.119594] tc358840 7-000f: I2C write 0x8C73 = 0x0F
[   16.124851] tc358840 7-000f: I2C write 0x8C74 = 0x8C
[   16.130017] tc358840 7-000f: I2C write 0x8C75 = 0x17
[   16.135180] tc358840 7-000f: I2C write 0x8C76 = 0x00
[   16.140330] tc358840 7-000f: I2C write 0x8C77 = 0x0A
[   16.145506] tc358840 7-000f: I2C write 0x8C78 = 0x20
[   16.150675] tc358840 7-000f: I2C write 0x8C79 = 0x20
[   16.155857] tc358840 7-000f: I2C write 0x8C7A = 0x20
[   16.161020] tc358840 7-000f: I2C write 0x8C7B = 0x20
[   16.166225] tc358840 7-000f: I2C write 0x8C7C = 0x20
[   16.171422] tc358840 7-000f: I2C write 0x8C7D = 0x20
[   16.176787] tc358840 7-000f: I2C write 0x8C7E = 0x01
[   16.181971] tc358840 7-000f: I2C write 0x8C7F = 0xAF
[   16.187192] tc358840 7-000f: I2C write 0x8C80 = 0x02
[   16.192421] tc358840 7-000f: I2C write 0x8C81 = 0x03
[   16.197616] tc358840 7-000f: I2C write 0x8C82 = 0x1A
[   16.202810] tc358840 7-000f: I2C write 0x8C83 = 0x74
[   16.207994] tc358840 7-000f: I2C write 0x8C84 = 0x47
[   16.213188] tc358840 7-000f: I2C write 0x8C85 = 0x32
[   16.218388] tc358840 7-000f: I2C write 0x8C86 = 0x10
[   16.223612] tc358840 7-000f: I2C write 0x8C87 = 0x04
[   16.228809] tc358840 7-000f: I2C write 0x8C88 = 0x32
[   16.234027] tc358840 7-000f: I2C write 0x8C89 = 0x32
[   16.239210] tc358840 7-000f: I2C write 0x8C8A = 0x32
[   16.244344] tc358840 7-000f: I2C write 0x8C8B = 0x32
[   16.249576] tc358840 7-000f: I2C write 0x8C8C = 0x23
[   16.254721] tc358840 7-000f: I2C write 0x8C8D = 0x09
[   16.259850] tc358840 7-000f: I2C write 0x8C8E = 0x07
[   16.265076] tc358840 7-000f: I2C write 0x8C8F = 0x01
[   16.270249] tc358840 7-000f: I2C write 0x8C90 = 0x83
[   16.275374] tc358840 7-000f: I2C write 0x8C91 = 0x01
[   16.280515] tc358840 7-000f: I2C write 0x8C92 = 0x00
[   16.285731] tc358840 7-000f: I2C write 0x8C93 = 0x00
[   16.290850] tc358840 7-000f: I2C write 0x8C94 = 0x65
[   16.295972] tc358840 7-000f: I2C write 0x8C95 = 0x03
[   16.301092] tc358840 7-000f: I2C write 0x8C96 = 0x0C
[   16.306209] tc358840 7-000f: I2C write 0x8C97 = 0x00
[   16.311326] tc358840 7-000f: I2C write 0x8C98 = 0x10
[   16.316469] tc358840 7-000f: I2C write 0x8C99 = 0x00
[   16.321687] tc358840 7-000f: I2C write 0x8C9A = 0x01
[   16.326815] tc358840 7-000f: I2C write 0x8C9B = 0x1D
[   16.331931] tc358840 7-000f: I2C write 0x8C9C = 0x00
[   16.337047] tc358840 7-000f: I2C write 0x8C9D = 0x72
[   16.342162] tc358840 7-000f: I2C write 0x8C9E = 0x51
[   16.347279] tc358840 7-000f: I2C write 0x8C9F = 0xD0
[   16.352396] tc358840 7-000f: I2C write 0x8CA0 = 0x1E
[   16.357513] tc358840 7-000f: I2C write 0x8CA1 = 0x20
[   16.362630] tc358840 7-000f: I2C write 0x8CA2 = 0x6E
[   16.367743] tc358840 7-000f: I2C write 0x8CA3 = 0x28
[   16.373057] tc358840 7-000f: I2C write 0x8CA4 = 0x55
[   16.378187] tc358840 7-000f: I2C write 0x8CA5 = 0x00
[   16.383303] tc358840 7-000f: I2C write 0x8CA6 = 0xC4
[   16.388420] tc358840 7-000f: I2C write 0x8CA7 = 0x8E
[   16.393699] tc358840 7-000f: I2C write 0x8CA8 = 0x21
[   16.398830] tc358840 7-000f: I2C write 0x8CA9 = 0x00
[   16.403943] tc358840 7-000f: I2C write 0x8CAA = 0x00
[   16.409227] tc358840 7-000f: I2C write 0x8CAB = 0x1E
[   16.414372] tc358840 7-000f: I2C write 0x8CAC = 0xEC
[   16.419488] tc358840 7-000f: I2C write 0x8CAD = 0x68
[   16.424606] tc358840 7-000f: I2C write 0x8CAE = 0x00
[   16.429729] tc358840 7-000f: I2C write 0x8CAF = 0xA0
[   16.434845] tc358840 7-000f: I2C write 0x8CB0 = 0xF0
[   16.439961] tc358840 7-000f: I2C write 0x8CB1 = 0x70
[   16.445255] tc358840 7-000f: I2C write 0x8CB2 = 0x37
[   16.450385] tc358840 7-000f: I2C write 0x8CB3 = 0x80
[   16.455539] tc358840 7-000f: I2C write 0x8CB4 = 0x30
[   16.460661] tc358840 7-000f: I2C write 0x8CB5 = 0x20
[   16.465783] tc358840 7-000f: I2C write 0x8CB6 = 0x3A
[   16.470897] tc358840 7-000f: I2C write 0x8CB7 = 0x00
[   16.476012] tc358840 7-000f: I2C write 0x8CB8 = 0x00
[   16.481130] tc358840 7-000f: I2C write 0x8CB9 = 0x70
[   16.486250] tc358840 7-000f: I2C write 0x8CBA = 0xF8
[   16.491365] tc358840 7-000f: I2C write 0x8CBB = 0x00
[   16.496486] tc358840 7-000f: I2C write 0x8CBC = 0x00
[   16.501594] tc358840 7-000f: I2C write 0x8CBD = 0x1C
[   16.506886] tc358840 7-000f: I2C write 0x8CBE = 0xEC
[   16.512126] tc358840 7-000f: I2C write 0x8CBF = 0x68
[   16.517300] tc358840 7-000f: I2C write 0x8CC0 = 0x00
[   16.522448] tc358840 7-000f: I2C write 0x8CC1 = 0xA0
[   16.527567] tc358840 7-000f: I2C write 0x8CC2 = 0xF0
[   16.532697] tc358840 7-000f: I2C write 0x8CC3 = 0x70
[   16.537814] tc358840 7-000f: I2C write 0x8CC4 = 0x37
[   16.542936] tc358840 7-000f: I2C write 0x8CC5 = 0x80
[   16.548051] tc358840 7-000f: I2C write 0x8CC6 = 0x30
[   16.553212] tc358840 7-000f: I2C write 0x8CC7 = 0x20
[   16.558363] tc358840 7-000f: I2C write 0x8CC8 = 0x3A
[   16.563504] tc358840 7-000f: I2C write 0x8CC9 = 0x00
[   16.568630] tc358840 7-000f: I2C write 0x8CCA = 0x00
[   16.573754] tc358840 7-000f: I2C write 0x8CCB = 0x70
[   16.578879] tc358840 7-000f: I2C write 0x8CCC = 0xF8
[   16.584496] tc358840 7-000f: I2C write 0x8CCD = 0x00
[   16.589611] tc358840 7-000f: I2C write 0x8CCE = 0x00
[   16.594790] tc358840 7-000f: I2C write 0x8CCF = 0x1C
[   16.599942] tc358840 7-000f: I2C write 0x8CD0 = 0xEC
[   16.605150] tc358840 7-000f: I2C write 0x8CD1 = 0x68
[   16.610308] tc358840 7-000f: I2C write 0x8CD2 = 0x00
[   16.615474] tc358840 7-000f: I2C write 0x8CD3 = 0xA0
[   16.620610] tc358840 7-000f: I2C write 0x8CD4 = 0xF0
[   16.625767] tc358840 7-000f: I2C write 0x8CD5 = 0x70
[   16.630892] tc358840 7-000f: I2C write 0x8CD6 = 0x37
[   16.636013] tc358840 7-000f: I2C write 0x8CD7 = 0x80
[   16.641171] tc358840 7-000f: I2C write 0x8CD8 = 0x30
[   16.646290] tc358840 7-000f: I2C write 0x8CD9 = 0x20
[   16.651449] tc358840 7-000f: I2C write 0x8CDA = 0x3A
[   16.656579] tc358840 7-000f: I2C write 0x8CDB = 0x00
[   16.661744] tc358840 7-000f: I2C write 0x8CDC = 0x00
[   16.666881] tc358840 7-000f: I2C write 0x8CDD = 0x70
[   16.672045] tc358840 7-000f: I2C write 0x8CDE = 0xF8
[   16.677167] tc358840 7-000f: I2C write 0x8CDF = 0x00
[   16.682290] tc358840 7-000f: I2C write 0x8CE0 = 0x00
[   16.687743] tc358840 7-000f: I2C write 0x8CE1 = 0x1C
[   16.692878] tc358840 7-000f: I2C write 0x8CE2 = 0x00
[   16.698015] tc358840 7-000f: I2C write 0x8CE3 = 0x00
[   16.703180] tc358840 7-000f: I2C write 0x8CE4 = 0x00
[   16.708343] tc358840 7-000f: I2C write 0x8CE5 = 0x00
[   16.713525] tc358840 7-000f: I2C write 0x8CE6 = 0x00
[   16.718740] tc358840 7-000f: I2C write 0x8CE7 = 0x00
[   16.723958] tc358840 7-000f: I2C write 0x8CE8 = 0x00
[   16.729256] tc358840 7-000f: I2C write 0x8CE9 = 0x00
[   16.734508] tc358840 7-000f: I2C write 0x8CEA = 0x00
[   16.739768] tc358840 7-000f: I2C write 0x8CEB = 0x00
[   16.745241] tc358840 7-000f: I2C write 0x8CEC = 0x00
[   16.750511] tc358840 7-000f: I2C write 0x8CED = 0x00
[   16.755718] tc358840 7-000f: I2C write 0x8CEE = 0x00
[   16.760937] tc358840 7-000f: I2C write 0x8CEF = 0x00
[   16.766204] tc358840 7-000f: I2C write 0x8CF0 = 0x00
[   16.771380] tc358840 7-000f: I2C write 0x8CF1 = 0x00
[   16.776525] tc358840 7-000f: I2C write 0x8CF2 = 0x00
[   16.781736] tc358840 7-000f: I2C write 0x8CF3 = 0x00
[   16.786943] tc358840 7-000f: I2C write 0x8CF4 = 0x00
[   16.792395] tc358840 7-000f: I2C write 0x8CF5 = 0x00
[   16.797599] tc358840 7-000f: I2C write 0x8CF6 = 0x00
[   16.802808] tc358840 7-000f: I2C write 0x8CF7 = 0x00
[   16.808006] tc358840 7-000f: I2C write 0x8CF8 = 0x00
[   16.813176] tc358840 7-000f: I2C write 0x8CF9 = 0x00
[   16.818350] tc358840 7-000f: I2C write 0x8CFA = 0x00
[   16.823547] tc358840 7-000f: I2C write 0x8CFB = 0x00
[   16.828708] tc358840 7-000f: I2C write 0x8CFC = 0x00
[   16.833861] tc358840 7-000f: I2C write 0x8CFD = 0x00
[   16.838989] tc358840 7-000f: I2C write 0x8CFE = 0x00
[   16.844114] tc358840 7-000f: I2C write 0x8CFF = 0x26
[   16.849421] tc358840 7-000f: I2C read 0x8520 = 0x01
[   16.854350] tc358840 7-000f: tc358840_enable_edid:
[   16.859165] tc358840 7-000f: tc358840_enable_interrupts: cable connected = 1
[   16.866394] tc358840 7-000f: I2C write 0x8512 = 0xCE
[   16.871539] tc358840 7-000f: I2C write 0x8512 = 0xFE
[   16.876667] tc358840 7-000f: I2C write 0x8513 = 0xDF
[   16.881863] tc358840 7-000f: I2C write 0x8515 = 0x3D
[   16.887056] tc358840 7-000f: I2C write 0x8516 = 0xFE
[   16.892252] tc358840 7-000f: I2C write 0x851B = 0xFD
[   16.897474] tc358840 7-000f: I2C read 0x8520 = 0x01
[   16.960470] tc358840 7-000f: tc358840_delayed_work_enable_hotplug:
[   16.966973] tc358840 7-000f: I2C read 0x8544 = 0x00
[   16.972097] tc358840 7-000f: I2C write 0x8544 = 0x01

Before starting streaming, I followed the instructions in Jetson/l4t/Camera BringUp - eLinux.org to boost the clocks and enable the tracing :

root@TX2NX:/home/nvidia# echo 1 > /sys/kernel/debug/bpmp/debug/clk/vi/mrq_rate_locked
root@TX2NX:/home/nvidia# echo 1 > /sys/kernel/debug/bpmp/debug/clk/isp/mrq_rate_locked
root@TX2NX:/home/nvidia# echo 1 > /sys/kernel/debug/bpmp/debug/clk/nvcsi/mrq_rate_locked
root@TX2NX:/home/nvidia# cat /sys/kernel/debug/bpmp/debug/clk/vi/max_rate |tee /sys/kernel/debug/bpmp/debug/clk/vi/rate
1036800000
root@TX2NX:/home/nvidia# cat /sys/kernel/debug/bpmp/debug/clk/isp/max_rate | tee  /sys/kernel/debug/bpmp/debug/clk/isp/rate
1126400000
root@TX2NX:/home/nvidia#  cat /sys/kernel/debug/bpmp/debug/clk/nvcsi/max_rate | tee /sys/kernel/debug/bpmp/debug/clk/nvcsi/rate
225000000
root@TX2NX:/home/nvidia#   echo 1 > /sys/kernel/debug/tracing/tracing_on
root@TX2NX:/home/nvidia#  echo 30720 > /sys/kernel/debug/tracing/buffer_size_kb
root@TX2NX:/home/nvidia# echo 1 > /sys/kernel/debug/tracing/events/tegra_rtcpu/enable
root@TX2NX:/home/nvidia#  echo 1 > /sys/kernel/debug/tracing/events/freertos/enable
root@TX2NX:/home/nvidia# echo 2 > /sys/kernel/debug/camrtc/log-level
root@TX2NX:/home/nvidia#  echo 1 > /sys/kernel/debug/tracing/events/camera_common/enable
root@TX2NX:/home/nvidia#  echo > /sys/kernel/debug/tracing/trace

Then I tried to capture 1 frame :

v4l2-ctl -d /dev/video0 --set-fmt-video=width=3840,height=2160,pixelformat=UYVY  --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=toto.raw
New timings found

But above command hung, associated I2C dumping :

[  307.720708] tc358840 7-000f: I2C read 0x8A08 = 0x31
[  307.725625] tc358840 7-000f: tc358840_get_fmt():
[  307.730322] tc358840 7-000f: tc358840_get_fmt(): width=1920, height=1080, code=0x0000200F, field=1
[  307.739410] tc358840 7-000f: tc358840_set_fmt():
[  307.744243] tc358840 7-000f: I2C read 0x8A08 = 0x31
[  307.749171] tc358840 7-000f: tc358840_get_fmt():
[  307.753858] tc358840 7-000f: tc358840_get_fmt(): width=1920, height=1080, code=0x0000200F, field=1
[  307.762894] tc358840 7-000f: tc358840_set_fmt():
[  307.767587] tc358840 7-000f: tc358840_set_fmt(): format->which=1
[  307.773860] tc358840 7-000f: enable_stream: disable
[  307.778925] tc358840 7-000f: tc358840_set_csi:
[  307.783743] tc358840 7-000f: I2C read 0x0002 = 0x0000
[  307.789291] tc358840 7-000f: I2C write 0x0002 = 0x0200
[  307.794665] tc358840 7-000f: I2C write 0x0002 = 0x0000
[  307.799840] tc358840 7-000f: tc358840_set_csi: Enabling CSI TX0
[  307.805992] tc358840 7-000f: I2C write 0x0108 = 0x00000001
[  307.811613] tc358840 7-000f: tc358840_set_pll:
[  307.816466] tc358840 7-000f: I2C read 0x02AC = 0x00020200
[  307.821901] tc358840 7-000f: tc358840_set_pll: Updating PLL clock of CSI TX0
[  307.829199] tc358840 7-000f: I2C write 0x02AC = 0x0000A07D
[  307.834945] tc358840 7-000f: I2C read 0x02A0 = 0x00000000
[  307.840573] tc358840 7-000f: I2C write 0x02A0 = 0x00000001
[  307.857439] tc358840 7-000f: I2C write 0x02A0 = 0x00000003
[  307.863190] tc358840 7-000f: I2C write 0x010C = 0x00000001
[  307.868917] tc358840 7-000f: I2C write 0x0118 = 0x00000014
[  307.874635] tc358840 7-000f: I2C write 0x0120 = 0x00000FA0
[  307.880383] tc358840 7-000f: I2C read 0x0150 = 0x00000000
[  307.886174] tc358840 7-000f: I2C write 0x0254 = 0x00000004
[  307.892124] tc358840 7-000f: I2C write 0x0258 = 0x00180203
[  307.897875] tc358840 7-000f: I2C write 0x025C = 0x00040005
[  307.903589] tc358840 7-000f: I2C write 0x0260 = 0x000D0004
[  307.909297] tc358840 7-000f: I2C write 0x0264 = 0x00003E80
[  307.915009] tc358840 7-000f: I2C write 0x0268 = 0x0000000A
[  307.920720] tc358840 7-000f: I2C write 0x026C = 0x00080006
[  307.926433] tc358840 7-000f: I2C write 0x0270 = 0x00000020
[  307.932291] tc358840 7-000f: I2C write 0x0274 = 0x0000001F
[  307.938209] tc358840 7-000f: I2C write 0x011C = 0x00000001
[  307.944291] tc358840 7-000f: I2C read 0x01B0 = 0x00000000
[  307.949838] tc358840 7-000f: tc358840_set_csi: Enabling CSI TX1
[  307.956105] tc358840 7-000f: I2C write 0x0308 = 0x00000001
[  307.961628] tc358840 7-000f: tc358840_set_pll:
[  307.966334] tc358840 7-000f: I2C read 0x04AC = 0x00020200
[  307.971860] tc358840 7-000f: tc358840_set_pll: Updating PLL clock of CSI TX1
[  307.979395] tc358840 7-000f: I2C write 0x04AC = 0x0000A07D
[  307.985199] tc358840 7-000f: I2C read 0x04A0 = 0x00000000
[  307.990830] tc358840 7-000f: I2C write 0x04A0 = 0x00000001
[  308.007807] tc358840 7-000f: I2C write 0x04A0 = 0x00000003
[  308.013697] tc358840 7-000f: I2C write 0x030C = 0x00000001
[  308.019501] tc358840 7-000f: I2C write 0x0318 = 0x00000014
[  308.025237] tc358840 7-000f: I2C write 0x0320 = 0x00000FA0
[  308.031004] tc358840 7-000f: I2C read 0x0350 = 0x00000000
[  308.036785] tc358840 7-000f: I2C write 0x0454 = 0x00000004
[  308.042700] tc358840 7-000f: I2C write 0x0458 = 0x00180203
[  308.048564] tc358840 7-000f: I2C write 0x045C = 0x00040005
[  308.054311] tc358840 7-000f: I2C write 0x0460 = 0x000D0004
[  308.060068] tc358840 7-000f: I2C write 0x0464 = 0x00003E80
[  308.065790] tc358840 7-000f: I2C write 0x0468 = 0x0000000A
[  308.071677] tc358840 7-000f: I2C write 0x046C = 0x00080006
[  308.077612] tc358840 7-000f: I2C write 0x0470 = 0x00000020
[  308.083421] tc358840 7-000f: I2C write 0x0474 = 0x0000001F
[  308.089133] tc358840 7-000f: I2C write 0x031C = 0x00000001
[  308.094889] tc358840 7-000f: I2C read 0x03B0 = 0x00000000
[  308.100435] tc358840 7-000f: tc358840_set_csi_mbus_config():
[  308.106200] tc358840 7-000f: tc358840_set_csi_mbus_config: YCbCr 422 16-bit
[  308.113474] tc358840 7-000f: I2C write 0x8A00 = 0x01
[  308.118616] tc358840 7-000f: I2C write 0x8A01 = 0x14
[  308.123734] tc358840 7-000f: I2C write 0x8A02 = 0x02
[  308.128854] tc358840 7-000f: I2C write 0x8A08 = 0x31
[  308.134036] tc358840 7-000f: I2C read 0x0004 = 0x0CD4
[  308.139265] tc358840 7-000f: I2C write 0x0004 = 0x0CD4
[  308.144730] tc358840 7-000f: I2C write 0x0006 = 0x0000
[  308.150492] tc358840 7-000f: tc358840_g_input_status():
[  308.155942] tc358840 7-000f: I2C read 0x8520 = 0x9F
[  308.161030] tc358840 7-000f: I2C read 0x8520 = 0x9F
[  308.165921] tc358840 7-000f: tc358840_g_input_status: status = 0x0
[  308.172165] tc358840 7-000f: tc358840_query_dv_timings():
[  308.177768] tc358840 7-000f: I2C read 0x8520 = 0x9F
[  308.182843] tc358840 7-000f: I2C read 0x8520 = 0x9F
[  308.187911] tc358840 7-000f: I2C read 0x8522 = 0x02
[  308.192979] tc358840 7-000f: I2C read 0x8583 = 0x0F
[  308.198060] tc358840 7-000f: I2C read 0x8582 = 0x00
[  308.203180] tc358840 7-000f: I2C read 0x858D = 0x08
[  308.208491] tc358840 7-000f: I2C read 0x858C = 0x70
[  308.213892] tc358840 7-000f: I2C read 0x858F = 0x11
[  308.219126] tc358840 7-000f: I2C read 0x858E = 0x30
[  308.224269] tc358840 7-000f: I2C read 0x8591 = 0x11
[  308.229393] tc358840 7-000f: I2C read 0x8590 = 0x94
[  308.234527] tc358840 7-000f: I2C read 0x85C2 = 0x01
[  308.239862] tc358840 7-000f: I2C read 0x85C1 = 0x4E
[  308.244911] tc358840 7-000f: tc358840_query_dv_timings: 3840x2160p30.0 (4400x2250)
[  308.252839] tc358840 7-000f: tc358840_g_dv_timings():
[  308.257934] tc358840 7-000f: tc358840_s_dv_timings():
[  308.263000] tc358840 7-000f: tc358840_s_dv_timings: 3840x2160p30.0 (4400x2250)
[  308.270235] tc358840 7-000f: enable_stream: disable
[  308.275118] tc358840 7-000f: tc358840_set_csi:
[  308.279928] tc358840 7-000f: I2C read 0x0002 = 0x0000
[  308.285420] tc358840 7-000f: I2C write 0x0002 = 0x0200
[  308.290833] tc358840 7-000f: I2C write 0x0002 = 0x0000
[  308.296033] tc358840 7-000f: tc358840_set_csi: Enabling CSI TX0
[  308.302174] tc358840 7-000f: I2C write 0x0108 = 0x00000001
[  308.307781] tc358840 7-000f: tc358840_set_pll:
[  308.312641] tc358840 7-000f: I2C read 0x02AC = 0x00020200
[  308.318071] tc358840 7-000f: tc358840_set_pll: Updating PLL clock of CSI TX0
[  308.325342] tc358840 7-000f: I2C write 0x02AC = 0x0000A07D
[  308.331103] tc358840 7-000f: I2C read 0x02A0 = 0x00000000
[  308.336890] tc358840 7-000f: I2C write 0x02A0 = 0x00000001
[  308.353837] tc358840 7-000f: I2C write 0x02A0 = 0x00000003
[  308.359553] tc358840 7-000f: I2C write 0x010C = 0x00000001
[  308.365262] tc358840 7-000f: I2C write 0x0118 = 0x00000014
[  308.370992] tc358840 7-000f: I2C write 0x0120 = 0x00000FA0
[  308.376970] tc358840 7-000f: I2C read 0x0150 = 0x00000000
[  308.382901] tc358840 7-000f: I2C write 0x0254 = 0x00000004
[  308.388678] tc358840 7-000f: I2C write 0x0258 = 0x00180203
[  308.394550] tc358840 7-000f: I2C write 0x025C = 0x00040005
[  308.400534] tc358840 7-000f: I2C write 0x0260 = 0x000D0004
[  308.406263] tc358840 7-000f: I2C write 0x0264 = 0x00003E80
[  308.412176] tc358840 7-000f: I2C write 0x0268 = 0x0000000A
[  308.418157] tc358840 7-000f: I2C write 0x026C = 0x00080006
[  308.423984] tc358840 7-000f: I2C write 0x0270 = 0x00000020
[  308.429749] tc358840 7-000f: I2C write 0x0274 = 0x0000001F
[  308.435476] tc358840 7-000f: I2C write 0x011C = 0x00000001
[  308.441227] tc358840 7-000f: I2C read 0x01B0 = 0x00000000
[  308.446644] tc358840 7-000f: tc358840_set_csi: Enabling CSI TX1
[  308.453120] tc358840 7-000f: I2C write 0x0308 = 0x00000001
[  308.459330] tc358840 7-000f: tc358840_set_pll:
[  308.464069] tc358840 7-000f: I2C read 0x04AC = 0x00020200
[  308.469491] tc358840 7-000f: tc358840_set_pll: Updating PLL clock of CSI TX1
[  308.476762] tc358840 7-000f: I2C write 0x04AC = 0x0000A07D
[  308.482509] tc358840 7-000f: I2C read 0x04A0 = 0x00000000
[  308.488131] tc358840 7-000f: I2C write 0x04A0 = 0x00000001
[  308.504864] tc358840 7-000f: I2C write 0x04A0 = 0x00000003
[  308.510578] tc358840 7-000f: I2C write 0x030C = 0x00000001
[  308.516624] tc358840 7-000f: I2C write 0x0318 = 0x00000014
[  308.522530] tc358840 7-000f: I2C write 0x0320 = 0x00000FA0
[  308.528306] tc358840 7-000f: I2C read 0x0350 = 0x00000000
[  308.533936] tc358840 7-000f: I2C write 0x0454 = 0x00000004
[  308.539646] tc358840 7-000f: I2C write 0x0458 = 0x00180203
[  308.545550] tc358840 7-000f: I2C write 0x045C = 0x00040005
[  308.551510] tc358840 7-000f: I2C write 0x0460 = 0x000D0004
[  308.557278] tc358840 7-000f: I2C write 0x0464 = 0x00003E80
[  308.563048] tc358840 7-000f: I2C write 0x0468 = 0x0000000A
[  308.568949] tc358840 7-000f: I2C write 0x046C = 0x00080006
[  308.574868] tc358840 7-000f: I2C write 0x0470 = 0x00000020
[  308.580758] tc358840 7-000f: I2C write 0x0474 = 0x0000001F
[  308.586660] tc358840 7-000f: I2C write 0x031C = 0x00000001
[  308.592441] tc358840 7-000f: I2C read 0x03B0 = 0x00000000
[  308.597860] tc358840 7-000f: tc358840_set_splitter():
[  308.603132] tc358840 7-000f: I2C read 0x5000 = 0x0100
[  308.608477] tc358840 7-000f: I2C write 0x5000 = 0x0000
[  308.614413] tc358840 7-000f: I2C read 0x5080 = 0x0100
[  308.619653] tc358840 7-000f: I2C write 0x5080 = 0x0000
[  308.625012] tc358840 7-000f: I2C read 0x500C = 0x0000
[  308.630398] tc358840 7-000f: I2C write 0x500C = 0x8000
[  308.655781] tc358840 7-000f: tc358840_s_stream():
[  308.660739] tc358840 7-000f: enable_stream: enable
[  308.666128] tc358840 7-000f: I2C read 0x0150 = 0x00000000
[  308.671781] tc358840 7-000f: I2C write 0x0150 = 0x00000000
[  308.677530] tc358840 7-000f: I2C read 0x0150 = 0x00000000
[  308.683163] tc358840 7-000f: I2C write 0x0150 = 0x00000020
[  308.688945] tc358840 7-000f: I2C read 0x0350 = 0x00000000
[  308.694576] tc358840 7-000f: I2C write 0x0350 = 0x00000000
[  308.700354] tc358840 7-000f: I2C read 0x0350 = 0x00000000
[  308.706003] tc358840 7-000f: I2C write 0x0350 = 0x00000020
[  308.711665] tc358840 7-000f: I2C write 0x857F = 0xC0
[  308.716853] tc358840 7-000f: I2C write 0x854A = 0x01
[  308.722015] tc358840 7-000f: I2C read 0x8520 = 0x9F
[  308.727044] tc358840 7-000f: enable_stream: Stream enabled! Remaining timeout attempts: 100
[  308.735945] tc358840 7-000f: I2C read 0x0004 = 0x0CD4
[  308.741296] tc358840 7-000f: I2C write 0x0004 = 0x8CF7

And the trace gave :

# tracer: nop
#
# entries-in-buffer/entries-written: 3712/3712   #P:6
#
#                              _-----=> irqs-off
#                             / _----=> need-resched
#                            | / _---=> hardirq/softirq
#                            || / _--=> preempt-depth
#                            ||| /     delay
#           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
#              | |       |   ||||       |         |
     kworker/3:0-30    [003] ....   160.753628: rtos_queue_peek_from_isr_failed: tstamp:5252060218 queue:0x0b4b4500
     kworker/3:0-30    [003] ....   160.865665: rtos_queue_peek_from_isr_failed: tstamp:5257060211 queue:0x0b4b4500
     kworker/3:0-30    [003] ....   161.033662: rtos_queue_peek_from_isr_failed: tstamp:5262060208 queue:0x0b4b4500
     kworker/3:0-30    [003] ....   161.145685: rtos_queue_peek_from_isr_failed: tstamp:5264787694 queue:0x0b4b4500
        v4l2-ctl-8720  [000] ....   181.238224: tegra_channel_open: vi-output, tc358840 7-000f
        v4l2-ctl-8720  [000] ....   181.239306: tegra_channel_set_power: tc358840 7-000f : 0x1
        v4l2-ctl-8720  [000] ....   181.239308: tegra_channel_set_power: 150c0000.nvcsi--1 : 0x1
        v4l2-ctl-8720  [000] ....   181.239310: csi_s_power: enable : 0x1
        v4l2-ctl-8720  [005] ....   181.352420: tegra_channel_capture_setup: vnc_id 0 W 3840 H 2160 fmt cb
        v4l2-ctl-8720  [005] ....   181.352570: tegra_channel_capture_setup: vnc_id 1 W 3840 H 2160 fmt cb
 vi-output, tc35-8721  [005] ....   181.352692: tegra_channel_set_stream: enable : 0x1
 vi-output, tc35-8721  [000] ....   181.353822: tegra_channel_set_stream: 150c0000.nvcsi--1 : 0x1
 vi-output, tc35-8721  [000] ....   181.353824: csi_s_stream: enable : 0x1
 vi-output, tc35-8721  [000] ....   181.353909: tegra_channel_set_stream: tc358840 7-000f : 0x1
     kworker/3:0-30    [003] ....   181.369960: rtos_queue_peek_from_isr_failed: tstamp:5897484447 queue:0x0b4b4500
     kworker/3:0-30    [003] ....   181.369964: rtcpu_start: tstamp:5897485610
     kworker/3:0-30    [003] ....   181.369966: rtos_queue_send_from_isr_failed: tstamp:5897492010 queue:0x0b4a7258
     kworker/3:0-30    [003] ....   181.369967: rtos_queue_send_from_isr_failed: tstamp:5897492120 queue:0x0b4aad68
     kworker/3:0-30    [003] ....   181.369968: rtos_queue_send_from_isr_failed: tstamp:5897492228 queue:0x0b4ac998
     kworker/3:0-30    [003] ....   181.369969: rtos_queue_send_from_isr_failed: tstamp:5897492338 queue:0x0b4af2d8
     kworker/3:0-30    [003] ....   181.369969: rtos_queue_send_from_isr_failed: tstamp:5897492443 queue:0x0b4b0098
     kworker/3:0-30    [003] ....   181.369970: rtos_queue_send_from_isr_failed: tstamp:5897492548 queue:0x0b4b0e58
     kworker/3:0-30    [003] ....   181.369970: rtos_queue_send_from_isr_failed: tstamp:5897492653 queue:0x0b4b1c18
     kworker/3:0-30    [003] ....   181.369972: rtos_queue_send_failed: tstamp:5897493103 queue:0x0b4a7258
     kworker/3:0-30    [003] ....   181.369972: rtos_queue_send_from_isr_failed: tstamp:5897494873 queue:0x0b4a7258
     kworker/3:0-30    [003] ....   181.369973: rtos_queue_send_from_isr_failed: tstamp:5897494981 queue:0x0b4aad68
     kworker/3:0-30    [003] ....   181.369974: rtos_queue_send_from_isr_failed: tstamp:5897495087 queue:0x0b4ac998
     kworker/3:0-30    [003] ....   181.369974: rtos_queue_send_from_isr_failed: tstamp:5897495196 queue:0x0b4af2d8
     kworker/3:0-30    [003] ....   181.369975: rtos_queue_send_from_isr_failed: tstamp:5897495301 queue:0x0b4b0098
     kworker/3:0-30    [003] ....   181.369976: rtos_queue_send_from_isr_failed: tstamp:5897495406 queue:0x0b4b0e58
     kworker/3:0-30    [003] ....   181.369976: rtos_queue_send_from_isr_failed: tstamp:5897495511 queue:0x0b4b1c18
     kworker/3:0-30    [003] ....   181.369977: rtos_queue_send_failed: tstamp:5897496463 queue:0x0b4a7258
     kworker/3:0-30    [003] ....   181.369977: rtos_queue_send_from_isr_failed: tstamp:5897498765 queue:0x0b4a7258
     kworker/3:0-30    [003] ....   181.369978: rtos_queue_send_from_isr_failed: tstamp:5897498871 queue:0x0b4aad68
     kworker/3:0-30    [003] ....   181.369978: rtos_queue_send_from_isr_failed: tstamp:5897498977 queue:0x0b4ac998
     kworker/3:0-30    [003] ....   181.369979: rtos_queue_send_from_isr_failed: tstamp:5897499090 queue:0x0b4af2d8
     kworker/3:0-30    [003] ....   181.369980: rtos_queue_send_from_isr_failed: tstamp:5897499194 queue:0x0b4b0098
     kworker/3:0-30    [003] ....   181.369980: rtos_queue_send_from_isr_failed: tstamp:5897499299 queue:0x0b4b0e58
     kworker/3:0-30    [003] ....   181.369981: rtos_queue_send_from_isr_failed: tstamp:5897499404 queue:0x0b4b1c18
     kworker/3:0-30    [003] ....   181.369981: rtos_queue_send_failed: tstamp:5897500340 queue:0x0b4a7258
     kworker/3:0-30    [003] ....   181.426066: rtcpu_vinotify_event: tstamp:5898429795 tag:CHANSEL_PXL_SOF channel:0x01 frame:0 vi_tstamp:5898429280 data:0x00000001
     kworker/3:0-30    [003] ....   181.426073: rtcpu_vinotify_event: tstamp:5898429963 tag:ATOMP_FS channel:0x01 frame:0 vi_tstamp:5898429284 data:0x00000000
     kworker/3:0-30    [003] ....   181.426075: rtcpu_vinotify_event: tstamp:5899430689 tag:CHANSEL_PXL_EOF channel:0x01 frame:0 vi_tstamp:5899430268 data:0x086f0002
     kworker/3:0-30    [003] ....   181.426077: rtcpu_vinotify_event: tstamp:5899434003 tag:ATOMP_FE channel:0x01 frame:0 vi_tstamp:5899433556 data:0x00000000
     kworker/3:0-30    [003] ....   181.538070: rtos_queue_peek_from_isr_failed: tstamp:5902484786 queue:0x0b4b4500
 vi-output, tc35-8721  [005] ....   181.575135: tegra_channel_capture_setup: vnc_id 0 W 3840 H 2160 fmt cb
 vi-output, tc35-8721  [005] ....   181.575302: tegra_channel_capture_setup: vnc_id 1 W 3840 H 2160 fmt cb
 vi-output, tc35-8721  [005] ....   181.575338: tegra_channel_capture_frame: sof:-549620699028.-271094535808
     kworker/3:0-30    [003] ....   181.594057: rtos_queue_send_from_isr_failed: tstamp:5904428997 queue:0x0b4a7258

Output of v4l2-ctl --query-dv-timing :

$ v4l2-ctl --query-dv-timing
	Active width: 3840
	Active height: 2160
	Total width: 4400
	Total height: 2250
	Frame format: progressive
	Polarities: -vsync -hsync
	Pixelclock: 297000000 Hz (30.00 frames per second)
	Horizontal frontporch: 0
	Horizontal sync: 560
	Horizontal backporch: 0
	Vertical frontporch: 0
	Vertical sync: 90
	Vertical backporch: 0
	Standards: 
	Flags: 

Associated I2C dumping of above command :

[ 1341.670267] tc358840 7-000f: tc358840_query_dv_timings():
[ 1341.670521] tc358840 7-000f: I2C read 0x8520 = 0x9F
[ 1341.670809] tc358840 7-000f: I2C read 0x8520 = 0x9F
[ 1341.671024] tc358840 7-000f: I2C read 0x8522 = 0x02
[ 1341.671236] tc358840 7-000f: I2C read 0x8583 = 0x0F
[ 1341.671464] tc358840 7-000f: I2C read 0x8582 = 0x00
[ 1341.671673] tc358840 7-000f: I2C read 0x858D = 0x08
[ 1341.671876] tc358840 7-000f: I2C read 0x858C = 0x70
[ 1341.672077] tc358840 7-000f: I2C read 0x858F = 0x11
[ 1341.672279] tc358840 7-000f: I2C read 0x858E = 0x30
[ 1341.672479] tc358840 7-000f: I2C read 0x8591 = 0x11
[ 1341.672677] tc358840 7-000f: I2C read 0x8590 = 0x94
[ 1341.672942] tc358840 7-000f: I2C read 0x85C2 = 0x01
[ 1341.673134] tc358840 7-000f: I2C read 0x85C1 = 0x4E
[ 1341.673137] tc358840 7-000f: tc358840_query_dv_timings: 3840x2160p30.0 (4400x2250)

Output of media-ctl -p -d /dev/media0

$ media-ctl -p -d /dev/media0
Media controller API version 0.1.0

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

Device topology
- entity 1: 150c0000.nvcsi--1 (2 pads, 2 links)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev0
	pad0: Sink
		<- "tc358840 7-000f":0 [ENABLED]
	pad1: Source
		-> "vi-output, tc358840 7-000f":0 [ENABLED]

- entity 4: tc358840 7-000f (2 pads, 1 link)
            type V4L2 subdev subtype Sensor flags 0
            device node name /dev/v4l-subdev1
	pad0: Source
		[fmt:UYVY8_1X16/3840x2160 field:none colorspace:smpte170m]
		[dv.caps:BT.656/1120 min:1x1@0 max:10000x10000@297000000 stds:CEA-861,DMT,CVT,GTF caps:progressive,reduced-blanking,custom]
		[dv.detect:BT.656/1120 3840x2160p30 (4400x2250) stds: flags:]
		[dv.current:BT.656/1120 3840x2160p30 (4400x2250) stds: flags:]
		-> "150c0000.nvcsi--1":0 [ENABLED]
	pad1: Source
		[dv.caps:BT.656/1120 min:1x1@0 max:10000x10000@297000000 stds:CEA-861,DMT,CVT,GTF caps:progressive,reduced-blanking,custom]
		[dv.detect:BT.656/1120 3840x2160p30 (4400x2250) stds: flags:]
		[dv.current:BT.656/1120 3840x2160p30 (4400x2250) stds: flags:]

- entity 7: vi-output, tc358840 7-000f (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video0
	pad0: Sink
		<- "150c0000.nvcsi--1":1 [ENABLED]

The custom dtsi is in attachment. tegra186-toto-camera.dtsi (6.2 KB)

Could anyone help me to tell what happended according to the trace, please ?

Thanks in advance and best regards,
Khang.

Hi again,

By enabling the VI channel debug :

echo file vi4_fops.c +p > /sys/kernel/debug/dynamic_debug/control
echo file channel.c +p > /sys/kernel/debug/dynamic_debug/control
echo file capture.c +p > /sys/kernel/debug/dynamic_debug/control
echo file capture_vi_channel.c +p > /sys/kernel/debug/dynamic_debug/control
[  194.972722] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  194.979599] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  194.990267] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  194.998484] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  195.006623] video4linux video0: free_ring_buffers: capture init latency is 343 ms
[  195.216713] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  195.223152] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  195.233749] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  195.242073] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  195.452636] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  195.459178] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  195.469452] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  195.477710] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  195.688715] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  195.695159] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  195.705614] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  195.713998] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  195.924542] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  195.930989] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  195.941497] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  195.949733] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  196.160583] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  196.167087] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  196.177709] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  196.185973] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  196.396482] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  196.402929] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  196.413511] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  196.421929] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  196.632448] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  196.638908] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  196.649617] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  196.657936] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203

What seems to be incoherent for me is the value 1920, I would guess the expected value is 3840.

Best regards,
Khang

Following the instruction in Problem of getting data from MIPI CSI Jetson TX2, I added more debug info to check necessary parameters for gang mode :

diff --git a/kerneltree/kernel/nvidia/drivers/media/platform/tegra/camera/vi/channel.c b/kerneltree/kernel/nvidia/drivers/media/platform/tegra/camera/vi/channel.c
index 5de404504..4c88363dc 100644
--- a/kerneltree/kernel/nvidia/drivers/media/platform/tegra/camera/vi/channel.c
+++ b/kerneltree/kernel/nvidia/drivers/media/platform/tegra/camera/vi/channel.c
@@ -133,6 +133,10 @@ static void update_gang_mode(struct tegra_channel *chan)
                chan->valid_ports = 1;
        }
 
+        dev_info(&chan->video->dev,
+                        "[L4ES] %s: chan->gang_mode=%d, chan->valid_ports=%d, width=%d, height=%d\n",
+                        __func__, chan->gang_mode, chan->valid_ports, width, height);
+
        update_gang_mode_params(chan);
 }

diff --git a/kerneltree/kernel/nvidia/drivers/media/platform/tegra/camera/vi/graph.c b/kerneltree/kernel/nvidia/drivers/media/platform/tegra/camera/vi/graph.c
index 6c14896ad..3d26f8645 100644
--- a/kerneltree/kernel/nvidia/drivers/media/platform/tegra/camera/vi/graph.c
+++ b/kerneltree/kernel/nvidia/drivers/media/platform/tegra/camera/vi/graph.c
@@ -556,6 +556,8 @@ int tegra_vi_get_port_info(struct tegra_channel *chan,
                                dev_err(chan->vi->dev, "port index error\n");
                        chan->port[0] = value;
 
+                       dev_info(chan->vi->dev, "[L4ES] %s: chan->port[0]=port-index=%d\n", __func__, chan->port[0]);
+
                        if (value > NVCSI_PORT_H) {
                                dev_err(chan->vi->dev, "port index >%d!\n",
                                        NVCSI_PORT_H);
@@ -568,6 +570,8 @@ int tegra_vi_get_port_info(struct tegra_channel *chan,
                                dev_err(chan->vi->dev, "num lanes error\n");
                        chan->numlanes = value;
 
+                       dev_info(chan->vi->dev, "[L4ES] %s: chan->numlanes=bus-width=%d\n", __func__, chan->numlanes);
+
                        if (value > 12) {
                                dev_err(chan->vi->dev, "num lanes >12!\n");
                                return -EINVAL;

diff --git a/kerneltree/kernel/nvidia/drivers/media/platform/tegra/camera/vi/vi4_fops.c b/kerneltree/kernel/nvidia/drivers/media/platform/tegra/camera/vi/vi4_fops.c
index 7b19eb1d3..7f5ecce53 100644
--- a/kerneltree/kernel/nvidia/drivers/media/platform/tegra/camera/vi/vi4_fops.c
+++ b/kerneltree/kernel/nvidia/drivers/media/platform/tegra/camera/vi/vi4_fops.c
@@ -470,6 +470,10 @@ static int tegra_channel_capture_setup(struct tegra_channel *chan,
                width = chan->gang_width;
        }
 
+        dev_info(chan->vi->dev,
+                "[L4ES] %s: chan->valid_ports=%d, chan->gang_height=%d, chan->gang_width=%d\n",
+                __func__, chan->valid_ports, chan->gang_height, chan->gang_width);
+
        err = tegra_channel_notify_enable(chan, index);
        if (err < 0) {
                dev_err(chan->vi->dev,

And debug log is as below :

  • On system startup :
[    1.497478] tegra-vi4 15700000.vi: [L4ES] tegra_vi_get_port_info: chan->port[0]=port-index=0
[    1.497481] tegra-vi4 15700000.vi: [L4ES] tegra_vi_get_port_info: chan->numlanes=bus-width=8
[    4.466558] video4linux video0: [L4ES] update_gang_mode: chan->gang_mode=0, chan->valid_ports=1, width=1920, height=1080
  • During streaming with v4l2-ctl -d /dev/video0 --set-fmt-video=width=3840,height=2160,pixelformat=UYVY --set-ctrl bypass_mode=0 --stream-mmap --stream-skip=10 --stream-count=15 --stream-to=toto.raw
$ v4l2-ctl -d /dev/video0 --set-fmt-video=width=3840,height=2160,pixelformat=UYVY --set-ctrl bypass_mode=0 --stream-mmap --stream-skip=10 --stream-count=15 --stream-to=toto.raw
New timings found
[  807.726734] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  807.733222] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  807.745210] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=2, chan->gang_height=2160, chan->gang_width=1920
[  807.745501] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  807.745511] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=2, chan->gang_height=2160, chan->gang_width=1920
[  807.745668] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  807.946772] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  807.953270] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  807.963409] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=2, chan->gang_height=2160, chan->gang_width=1920
[  807.963669] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  807.963676] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=2, chan->gang_height=2160, chan->gang_width=1920
[  807.963829] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  808.166737] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  808.173229] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  808.183528] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=2, chan->gang_height=2160, chan->gang_width=1920
[  808.183911] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  808.183932] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=2, chan->gang_height=2160, chan->gang_width=1920
[  808.184083] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  808.386760] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  808.393299] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  808.405305] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=2, chan->gang_height=2160, chan->gang_width=1920
[  808.405523] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  808.405529] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=2, chan->gang_height=2160, chan->gang_width=1920
[  808.405662] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  808.606727] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  808.613179] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  808.623360] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=2, chan->gang_height=2160, chan->gang_width=1920
[  808.623717] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  808.623738] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=2, chan->gang_height=2160, chan->gang_width=1920
[  808.623968] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  808.826762] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  808.833218] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  808.843439] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=2, chan->gang_height=2160, chan->gang_width=1920
[  808.843862] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  808.843871] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=2, chan->gang_height=2160, chan->gang_width=1920
[  808.844103] tegra-vi4 15700000.vi: Create Surface with imgW=1920, imgH=2160, memFmt=203
[  809.046746] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
...

I don’t understand why gang_width go back to 1920 instead of 3840.

Regards,
K.

gang mode means receive two 19202160 from two 4 lanes CSI/VI and then merge them to (21920)2160 aka 38402160, Maybe you can try 1920*1080 non gang mode first.

Hi @ShaneCCC ,

I re-configured the .dtsi for 1080p resolution over 4-lane MIPI-CSI2 as below :

	i2c@c250000 {
		hdmi_cam: tc358840_a@0f {
			compatible = "toshiba,tc358840";

			/* I2C device address */
			reg = <0x0f>;
			
			/* Sensor Model */
			sensor_model ="tc358840";

			/* V4L2 device node location */
			devnode = "video0";

			/* Power Supply */
			vdig-reg = <&p3509_vdd_sys_en>;
			vif-reg = <&p3509_vdd_1v8_cvb>;

			refclk_hz = <48000000>; /* 40 - 50 MHz */

			ddc5v_delay = <1>; /* 50 ms */

			/* HDCP */
			/* TODO: Not yet implemented */
			enable_hdcp = <0>;

			/* CSI Output */
			csi_port = <1>;		/* Enable TX0 only */

			lineinitcnt = <0x00000FA0>;
			lptxtimecnt = <0x00000004>;
			tclk_headercnt = <0x00180203>;
			tclk_trailcnt = <0x00040005>;
			ths_headercnt = <0x000D0004>;
			twakeup = <0x00003E80>;
			tclk_postcnt = <0x0000000A>;
			ths_trailcnt = <0x00080006>;
			hstxvregcnt = <0x00000020>;

			/* PLL */
			/* Bps per lane is (refclk_hz / pll_prd) * pll_fbd */
			pll_prd = <10>;
			pll_fbd = <125>;

			status = "okay";

			port@0 {
				ret = <0>;
				tc358840_out0: endpoint {
					port-index = <0>;
					bus-width = <4>;
					remote-endpoint = <&tc358840_csi_in0>;
				};
			};
		};
	};
Registered device's info :
$ v4l2-ctl --all
Driver Info (not using libv4l2):
	Driver name   : tegra-video
	Card type     : vi-output, tc358840 7-000f
	Bus info      : platform:15700000.vi:0
	Driver version: 4.9.201
	Capabilities  : 0x84200001
		Video Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps   : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Priority: 2
Video input : 0 (HDMI 0: ok)
DV timings:
	Active width: 1920
	Active height: 1080
	Total width: 2200
	Total height: 1125
	Frame format: progressive
	Polarities: +vsync +hsync
	Pixelclock: 148500000 Hz (60.00 frames per second)
	Horizontal frontporch: 88
	Horizontal sync: 44
	Horizontal backporch: 148
	Vertical frontporch: 4
	Vertical sync: 5
	Vertical backporch: 36
	Standards: CTA-861, DMT
	Flags: framerate can be reduced by 1/1.001, CE-video
DV timings capabilities:
	Minimum Width: 1
	Maximum Width: 10000
	Minimum Height: 1
	Maximum Height: 10000
	Minimum PClock: 0
	Maximum PClock: 297000000
	Standards: CTA-861, DMT, CVT, GTF
	Capabilities: Progressive, Reduced Blanking, Custom Formats
Format Video Capture:
	Width/Height      : 1920/1080
	Pixel Format      : 'UYVY'
	Field             : None
	Bytes per Line    : 3840
	Size Image        : 4147200
	Colorspace        : SMPTE 170M
	Transfer Function : Default (maps to Rec. 709)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Limited Range)
	Flags             : 

Camera Controls

                    bypass_mode 0x009a2064 (intmenu): min=0 max=1 default=0 value=0
                override_enable 0x009a2065 (intmenu): min=0 max=1 default=0 value=0
                   height_align 0x009a2066 (int)    : min=1 max=16 step=1 default=1 value=1
                     size_align 0x009a2067 (intmenu): min=0 max=2 default=0 value=0
               write_isp_format 0x009a2068 (int)    : min=1 max=1 step=1 default=1 value=1
       sensor_signal_properties 0x009a2069 (u32)    : min=0 max=0 step=0 default=0 flags=read-only, has-payload
        sensor_image_properties 0x009a206a (u32)    : min=0 max=0 step=0 default=0 flags=read-only, has-payload
      sensor_control_properties 0x009a206b (u32)    : min=0 max=0 step=0 default=0 flags=read-only, has-payload
              sensor_dv_timings 0x009a206c (u32)    : min=0 max=0 step=0 default=0 flags=read-only, has-payload
               low_latency_mode 0x009a206d (bool)   : default=0 value=0
               preferred_stride 0x009a206e (int)    : min=0 max=65535 step=1 default=0 value=0
                   sensor_modes 0x009a2082 (int)    : min=0 max=30 step=1 default=30 value=30 flags=read-only
            audio_sampling_rate 0x009a3001 (int)    : min=0 max=768000 step=1 default=0 value=0 flags=read-only
                  audio_present 0x009a3002 (bool)   : default=0 value=0 flags=read-only
                 splitter_width 0x009a3003 (int)    : min=320 max=1920 step=16 default=1920 value=1920 flags=read-only

Digital Video Controls

                  power_present 0x00a00964 (bitmask): max=0x00000001 default=0x00000000 value=0x00000001 flags=read-only

And tried to capture with v4l2-ctl :

$ v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=UYVY --set-ctrl bypass_mode=0 --stream-mmap --stream-skip=10 --stream-count=15 --stream-to=toto.raw
New timings found

Strangely that I got inverted error :

[  116.188347] tc358840 7-000f: tc358840_g_input_status():
[  116.188562] tc358840 7-000f: I2C read 0x8520 = 0x9F
[  116.188754] tc358840 7-000f: I2C read 0x8520 = 0x9F
[  116.188758] tc358840 7-000f: tc358840_g_input_status: status = 0x0
[  116.188790] tc358840 7-000f: tc358840_g_dv_timings():
[  116.188981] tc358840 7-000f: tc358840_dv_timings_cap():
[  151.793588] tc358840 7-000f: I2C read 0x8A08 = 0x31
[  151.793594] tc358840 7-000f: tc358840_get_fmt():
[  151.793600] tc358840 7-000f: tc358840_get_fmt(): width=1920, height=1080, code=0x0000200F, field=1
[  151.793604] tc358840 7-000f: tc358840_set_fmt():
[  151.793805] tc358840 7-000f: I2C read 0x8A08 = 0x31
[  151.793809] tc358840 7-000f: tc358840_get_fmt():
[  151.793813] tc358840 7-000f: tc358840_get_fmt(): width=1920, height=1080, code=0x0000200F, field=1
[  151.793816] tc358840 7-000f: tc358840_set_fmt():
[  151.793820] tc358840 7-000f: tc358840_set_fmt(): format->which=1
[  151.793824] tc358840 7-000f: enable_stream: disable
[  151.793828] tc358840 7-000f: tc358840_set_csi:
[  151.794048] tc358840 7-000f: I2C read 0x0002 = 0x0000
[  151.794236] tc358840 7-000f: I2C write 0x0002 = 0x0200
[  151.794422] tc358840 7-000f: I2C write 0x0002 = 0x0000
[  151.794426] tc358840 7-000f: tc358840_set_csi: Enabling CSI TX0
[  151.794660] tc358840 7-000f: I2C write 0x0108 = 0x00000001
[  151.794664] tc358840 7-000f: tc358840_set_pll:
[  151.794930] tc358840 7-000f: I2C read 0x02AC = 0x00020200
[  151.794934] tc358840 7-000f: tc358840_set_pll: Updating PLL clock of CSI TX0
[  151.795168] tc358840 7-000f: I2C write 0x02AC = 0x0000A07D
[  151.795435] tc358840 7-000f: I2C read 0x02A0 = 0x00000000
[  151.795668] tc358840 7-000f: I2C write 0x02A0 = 0x00000001
[  151.806971] tc358840 7-000f: I2C write 0x02A0 = 0x00000003
[  151.807226] tc358840 7-000f: I2C write 0x010C = 0x00000001
[  151.807477] tc358840 7-000f: I2C write 0x0118 = 0x00000014
[  151.807728] tc358840 7-000f: I2C write 0x0120 = 0x00000FA0
[  151.808011] tc358840 7-000f: I2C read 0x0150 = 0x00000000
[  151.808366] tc358840 7-000f: I2C write 0x0254 = 0x00000004
[  151.808676] tc358840 7-000f: I2C write 0x0258 = 0x00180203
[  151.808971] tc358840 7-000f: I2C write 0x025C = 0x00040005
[  151.809295] tc358840 7-000f: I2C write 0x0260 = 0x000D0004
[  151.809605] tc358840 7-000f: I2C write 0x0264 = 0x00003E80
[  151.809902] tc358840 7-000f: I2C write 0x0268 = 0x0000000A
[  151.810194] tc358840 7-000f: I2C write 0x026C = 0x00080006
[  151.810487] tc358840 7-000f: I2C write 0x0270 = 0x00000020
[  151.810778] tc358840 7-000f: I2C write 0x0274 = 0x0000001F
[  151.811066] tc358840 7-000f: I2C write 0x011C = 0x00000001
[  151.811386] tc358840 7-000f: I2C read 0x01B0 = 0x00000000
[  151.811398] tc358840 7-000f: tc358840_set_csi: Disabling CSI TX1
[  151.811720] tc358840 7-000f: I2C read 0x0318 = 0x00000000
[  151.812006] tc358840 7-000f: I2C write 0x0318 = 0x00000000
[  151.812017] tc358840 7-000f: tc358840_set_csi_mbus_config():
[  151.812026] tc358840 7-000f: tc358840_set_csi_mbus_config: YCbCr 422 16-bit
[  151.812236] tc358840 7-000f: I2C write 0x8A00 = 0x01
[  151.812590] tc358840 7-000f: I2C write 0x8A01 = 0x14
[  151.812844] tc358840 7-000f: I2C write 0x8A02 = 0x02
[  151.813047] tc358840 7-000f: I2C write 0x8A08 = 0x31
[  151.813299] tc358840 7-000f: I2C read 0x0004 = 0x0CD4
[  151.813517] tc358840 7-000f: I2C write 0x0004 = 0x0CD4
[  151.813740] tc358840 7-000f: I2C write 0x0006 = 0x0000
[  151.813763] video4linux video0: tegra_channel_update_format: Resolution= 1920x1080 bytesperline=3840
[  151.813843] tc358840 7-000f: tc358840_g_input_status():
[  151.814124] tc358840 7-000f: I2C read 0x8520 = 0x9F
[  151.814530] tc358840 7-000f: I2C read 0x8520 = 0x9F
[  151.814538] tc358840 7-000f: tc358840_g_input_status: status = 0x0
[  151.814579] tc358840 7-000f: tc358840_query_dv_timings():
[  151.814803] tc358840 7-000f: I2C read 0x8520 = 0x9F
[  151.815017] tc358840 7-000f: I2C read 0x8520 = 0x9F
[  151.815224] tc358840 7-000f: I2C read 0x8522 = 0x02
[  151.815424] tc358840 7-000f: I2C read 0x8583 = 0x0F
[  151.815623] tc358840 7-000f: I2C read 0x8582 = 0x00
[  151.815824] tc358840 7-000f: I2C read 0x858D = 0x08
[  151.816023] tc358840 7-000f: I2C read 0x858C = 0x70
[  151.816227] tc358840 7-000f: I2C read 0x858F = 0x11
[  151.816429] tc358840 7-000f: I2C read 0x858E = 0x30
[  151.816704] tc358840 7-000f: I2C read 0x8591 = 0x11
[  151.816976] tc358840 7-000f: I2C read 0x8590 = 0x94
[  151.817242] tc358840 7-000f: I2C read 0x85C2 = 0x01
[  151.817452] tc358840 7-000f: I2C read 0x85C1 = 0x4E
[  151.817462] tc358840 7-000f: tc358840_query_dv_timings: 3840x2160p30.0 (4400x2250)
[  151.817481] tc358840 7-000f: tc358840_g_dv_timings():
[  151.817488] tc358840 7-000f: tc358840_s_dv_timings():
[  151.817495] tc358840 7-000f: tc358840_s_dv_timings: 3840x2160p30.0 (4400x2250)
[  151.817501] tc358840 7-000f: enable_stream: disable
[  151.817506] tc358840 7-000f: tc358840_set_csi:
[  151.817743] tc358840 7-000f: I2C read 0x0002 = 0x0000
[  151.817947] tc358840 7-000f: I2C write 0x0002 = 0x0200
[  151.818150] tc358840 7-000f: I2C write 0x0002 = 0x0000
[  151.818156] tc358840 7-000f: tc358840_set_csi: Enabling CSI TX0
[  151.818405] tc358840 7-000f: I2C write 0x0108 = 0x00000001
[  151.818410] tc358840 7-000f: tc358840_set_pll:
[  151.818694] tc358840 7-000f: I2C read 0x02AC = 0x00020200
[  151.818700] tc358840 7-000f: tc358840_set_pll: Updating PLL clock of CSI TX0
[  151.818951] tc358840 7-000f: I2C write 0x02AC = 0x0000A07D
[  151.819234] tc358840 7-000f: I2C read 0x02A0 = 0x00000000
[  151.819482] tc358840 7-000f: I2C write 0x02A0 = 0x00000001
[  151.830786] tc358840 7-000f: I2C write 0x02A0 = 0x00000003
[  151.831043] tc358840 7-000f: I2C write 0x010C = 0x00000001
[  151.831296] tc358840 7-000f: I2C write 0x0118 = 0x00000014
[  151.831546] tc358840 7-000f: I2C write 0x0120 = 0x00000FA0
[  151.831829] tc358840 7-000f: I2C read 0x0150 = 0x00000000
[  151.832082] tc358840 7-000f: I2C write 0x0254 = 0x00000004
[  151.832378] tc358840 7-000f: I2C write 0x0258 = 0x00180203
[  151.832740] tc358840 7-000f: I2C write 0x025C = 0x00040005
[  151.833066] tc358840 7-000f: I2C write 0x0260 = 0x000D0004
[  151.833366] tc358840 7-000f: I2C write 0x0264 = 0x00003E80
[  151.833659] tc358840 7-000f: I2C write 0x0268 = 0x0000000A
[  151.833955] tc358840 7-000f: I2C write 0x026C = 0x00080006
[  151.834242] tc358840 7-000f: I2C write 0x0270 = 0x00000020
[  151.834526] tc358840 7-000f: I2C write 0x0274 = 0x0000001F
[  151.834898] tc358840 7-000f: I2C write 0x011C = 0x00000001
[  151.835245] tc358840 7-000f: I2C read 0x01B0 = 0x00000000
[  151.835257] tc358840 7-000f: tc358840_set_csi: Disabling CSI TX1
[  151.835585] tc358840 7-000f: I2C read 0x0318 = 0x00000000
[  151.835877] tc358840 7-000f: I2C write 0x0318 = 0x00000000
[  151.835887] tc358840 7-000f: tc358840_set_splitter():
[  151.836157] tc358840 7-000f: I2C read 0x5000 = 0x0100
[  151.836433] tc358840 7-000f: I2C write 0x5000 = 0x0000
[  151.836738] tc358840 7-000f: I2C read 0x5080 = 0x0100
[  151.836965] tc358840 7-000f: I2C write 0x5080 = 0x0000
[  151.837213] tc358840 7-000f: I2C read 0x500C = 0x0000
[  151.837425] tc358840 7-000f: I2C write 0x500C = 0x8000
[  151.837444] video4linux video0: tegra_channel_update_format: Resolution= 3840x2160 bytesperline=7680
[  151.858199] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  151.859256] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  151.860439] tc358840 7-000f: tc358840_s_stream():
[  151.860442] tc358840 7-000f: enable_stream: enable
[  151.860715] tc358840 7-000f: I2C read 0x0150 = 0x00000000
[  151.860937] tc358840 7-000f: I2C write 0x0150 = 0x00000000
[  151.861194] tc358840 7-000f: I2C read 0x0150 = 0x00000000
[  151.861412] tc358840 7-000f: I2C write 0x0150 = 0x00000020
[  151.861667] tc358840 7-000f: I2C read 0x0350 = 0x00000000
[  151.861883] tc358840 7-000f: I2C write 0x0350 = 0x00000000
[  151.862138] tc358840 7-000f: I2C read 0x0350 = 0x00000000
[  151.862354] tc358840 7-000f: I2C write 0x0350 = 0x00000020
[  151.862499] tc358840 7-000f: I2C write 0x857F = 0xC0
[  151.862643] tc358840 7-000f: I2C write 0x854A = 0x01
[  151.862825] tc358840 7-000f: I2C read 0x8520 = 0x9F
[  151.862827] tc358840 7-000f: enable_stream: Stream enabled! Remaining timeout attempts: 100
[  151.863033] tc358840 7-000f: I2C read 0x0004 = 0x0CD4
[  151.863203] tc358840 7-000f: I2C write 0x0004 = 0x8CF5
[  152.064369] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  152.070844] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  152.081110] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  152.081445] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  152.081477] video4linux video0: free_ring_buffers: capture init latency is 224 ms
[  152.284434] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  152.290904] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  152.300968] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  152.301291] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  152.504422] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  152.510923] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  152.521026] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  152.521378] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  152.724432] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  152.730928] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  152.741033] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  152.741280] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  152.944456] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  152.950903] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  152.960793] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  152.961171] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  153.164420] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  153.170947] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  153.181008] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  153.181257] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  153.384485] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  153.391088] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  153.401139] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  153.401442] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  153.604491] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  153.610942] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  153.621129] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  153.621421] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  153.824517] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  153.830969] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  153.841169] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  153.841552] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  154.044506] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  154.050950] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  154.060961] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  154.061216] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  154.264516] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  154.271033] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  154.281007] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  154.281260] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  154.484524] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  154.490975] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  154.500963] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  154.501542] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  154.704688] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  154.711184] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  154.723037] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  154.723263] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  154.924520] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  154.930965] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  154.942672] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  154.942936] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  155.144585] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  155.151028] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  155.161070] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  155.161367] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  155.364580] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  155.371055] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  155.381020] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  155.381242] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  155.584583] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  155.591168] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  155.601152] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  155.601417] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  155.804556] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  155.811030] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  155.820970] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  155.821190] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  156.024612] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  156.031064] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  156.041074] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  156.041396] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  156.244625] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  156.251068] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  156.261065] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  156.261372] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  156.464647] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  156.471090] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  156.481044] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  156.481309] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  156.684669] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  156.691230] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  156.702655] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  156.702885] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  156.904646] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  156.911177] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  156.922593] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  156.922803] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  157.124772] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  157.131378] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  157.141398] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  157.141732] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  157.344704] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  157.351161] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  157.361025] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  157.361265] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  157.564715] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  157.571160] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  157.581031] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  157.581273] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  157.784727] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  157.791183] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  157.801071] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  157.801326] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  158.004689] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  158.011180] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  158.022982] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  158.023206] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  158.224672] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  158.231236] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  158.241892] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  158.242182] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  158.444727] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  158.451166] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  158.461185] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  158.461559] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  158.664744] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  158.671219] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  158.681127] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  158.681397] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  158.884738] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  158.891227] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  158.901896] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  158.902184] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  159.104771] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  159.111307] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  159.122709] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  159.122929] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  159.324807] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  159.331263] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  159.343432] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  159.343687] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  159.544805] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  159.551253] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  159.561270] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  159.561576] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  159.764792] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  159.771238] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  159.782257] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  159.782473] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  159.984857] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  159.991300] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  160.003031] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  160.003271] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  160.204771] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  160.211263] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  160.222959] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  160.223183] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  160.424760] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  160.431270] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  160.443169] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  160.443382] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  160.644822] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  160.651273] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  160.661155] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  160.661404] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  160.864826] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  160.871285] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  160.881138] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  160.881384] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  161.084836] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  161.091283] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  161.101459] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  161.101754] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  161.304841] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  161.311309] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  161.321172] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  161.321440] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  161.524867] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  161.531303] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  161.543407] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  161.543652] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  161.744879] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  161.751333] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  161.761646] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  161.761940] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  161.964953] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  161.971475] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  161.981480] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  161.981786] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  162.184926] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  162.191377] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  162.201417] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  162.201716] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  162.404908] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  162.411355] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  162.422324] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  162.422537] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203
[  162.624924] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[  162.631388] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[  162.643594] tegra-vi4 15700000.vi: [L4ES] tegra_channel_capture_setup: chan->valid_ports=1, chan->gang_height=0, chan->gang_width=0
[  162.643844] tegra-vi4 15700000.vi: Create Surface with imgW=3840, imgH=2160, memFmt=203

I would have expected to see imgW=1920, imgH=1080 but NO. What do you think ?

Regards,
K.

That’s weird, it could be the tc358840.c didn’t configure correct.

HI @ShaneCCC ,

I just probed the signals and found that there’s no signal on both CSI0_CLK+/- and CSI3_CLK+/-. Otherwise, there’s good signals on CSIi-Dj+/-. Aside from defected ESD component, could it be from the TX2 NX side or the TC358840 side, please ?

P/S : I did a quick cold measurement and there’s no short-circuit between neither CSI0_CLK+/- nor CSI3_CLK+/- and GND.

Best regards,
Khang

I would suggest to configure TC358840 output test pattern to check the signal.

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