Camera error: uncorr_err: request timed out after 2500 ms

Platform: Orin NX
SDK: 35.4.1
When running the command to capture images, an error occurred. How can I resolve this?

v4l2-ctl -d /dev/video0 --verbose --set-fmt-video=width=1920,height=1080,pixelformat=UYVY --set-ctrl=sensor_mode=0 --stream-mmap --stream-count=100

error log:

VIDIOC_QUERYCAP: ok
VIDIOC_S_EXT_CTRLS: ok
VIDIOC_G_FMT: ok
[  613.578424] imx568 10-001a: tegracam_init_ctrl_ranges_by_mode:ctrl Gain min:1, max:480, step:10, default:480
[  613.588565] imx568 10-001a: tegracam_init_ctrl_ranges_by_mode:ctrl Exposure min:5, max:1000000, step:1, default:1000
[  613.599421] imx568 10-001a: tegracam_init_ctrl_ranges_by_mode:ctrl Frame Rate min:10000000, max:79000000, step:1, default:79000000
VIDIOC_S_FMT: ok
Format Video Capture:
        Width/Height      : 2448/2048
        Pixel Format      : 'RG10' (10-bit Bayer RGRG/GBGB)
        Field             : None
        Bytes per Line    : 4896
        Size Image        : 10027008
        Colorspace        : sRGB
        Transfer Function : Default (maps to sRGB)
        YCbCr/HSV Encoding: Default (maps to ITU-R 601)
        Quantization      : Default (maps to Full Range)
        Flags             :
                VIDIOC_REQBUFS returned 0 (Success)
                VIDIOC_QUERYBUF returned 0 (Success)
                VIDIOC_QUERYBUF returned 0 (Success)
                VIDIOC_QUERYBUF returned 0 (Success)
                VIDIOC_QUERYBUF returned 0 (Success)
                VIDIOC_QBUF returned 0 (Success)
                VIDIOC_QBUF returned 0 (Success)
                VIDIOC_QBUF returned 0 (Success)
                VIDIOC_QBUF returned 0 (Success)
[  613.625391] imx568 10-001a: imx568_power_on:  power on
[  613.641343] imx568 10-001a: camera_common_mclk_enable:  enable MCLK with 37125000 Hz
[  613.661395] bwmgr API not supported
[  613.669633] imx568 10-001a: imx568_set_mode: set mode=0
[  613.678581] imx568 10-001a: imx568_set_mode: set mode init regs list
[  613.696171] imx568 10-001a: imx568_set_mode: set mode init regs list successfully
[  613.703872] imx568 10-001a: tegracam_init_ctrl_ranges_by_mode:ctrl Gain min:1, max:480, step:10, default:480
[  613.713973] imx568 10-001a: tegracam_init_ctrl_ranges_by_mode:ctrl Exposure min:5, max:1000000, step:1, default:1000
[  613.724800] imx568 10-001a: tegracam_init_ctrl_ranges_by_mode:ctrl Frame Rate min:10000000, max:79000000, step:1, default:79000000
[  613.761145] imx568 10-001a: imx568_start_streaming: start streaming
                VIDIOC_STREAMON returned 0 (Success)
[  616.374553] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
cap dqbuf: 0 seq:      0 bytesused: 10027008 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
[  616.383708] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
cap dqbuf: 0 seq:      0 bytesused: 10027008 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq:      1 bytesused: 10027008 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq:      2 bytesused: 10027008 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq:      3 bytesused: 10027008 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
[  616.394286] (NULL device *): vi_capture_control_message: NULL VI channel received
[  616.401984] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[  616.412610] (NULL device *): vi_capture_control_message: NULL VI channel received
[  616.420297] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[  616.431046] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[  619.190691] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
cap dqbuf: 0 seq:      0 bytesused: 10027008 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
[  619.199837] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
cap dqbuf: 0 seq:      0 bytesused: 10027008 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 1 seq:      1 bytesused: 10027008 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 2 seq:      2 bytesused: 10027008 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
cap dqbuf: 3 seq:      3 bytesused: 10027008 ts: 0.000000 (error, ts-monotonic, ts-src-eof)
[  619.210294] (NULL device *): vi_capture_control_message: NULL VI channel received
[  619.218000] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[  619.228623] (NULL device *): vi_capture_control_message: NULL VI channel received
[  619.236309] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[  619.247035] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
^C[  621.782442] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  621.791935] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  621.802744] (NULL device *): vi_capture_control_message: NULL VI channel received
[  621.810463] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[  621.821113] (NULL device *): vi_capture_control_message: NULL VI channel received
[  621.828831] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[  621.839662] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[  621.849704] imx568 10-001a: imx568_stop_streaming: stop streaming
[  621.859380] bwmgr API not supported
[  621.868285] imx568 10-001a: imx568_power_off:  power off

dtsi:

#include <dt-bindings/media/camera.h>

/ {
	tegra-capture-vi  {
		num-channels = <2>;
		ports {
			#address-cells = <1>;
			#size-cells = <0>;
			vi_port0: port@0 {
				reg = <0>;
				rbpcv2_imx568_vi_in0: endpoint {
					port-index = <0>;
					bus-width = <4>;
					remote-endpoint = <&rbpcv2_imx568_csi_out0>;
				};
			};
			vi_port1: port@1 {
				reg = <1>;
				rbpcv2_imx568_vi_in1: endpoint {
					port-index = <2>;
					bus-width = <4>;
					remote-endpoint = <&rbpcv2_imx568_csi_out1>;
				};
			};
		};
	};

	host1x@13e00000 {
		nvcsi@15a00000 {
			num-channels = <2>;
			#address-cells = <1>;
			#size-cells = <0>;
			csi_chan0: channel@0 {
				reg = <0>;
				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					csi_chan0_port0: port@0 {
						reg = <0>;
						rbpcv2_imx568_csi_in0: endpoint@0 {
							port-index = <0>;
							bus-width = <4>;
							remote-endpoint = <&rbpcv2_imx568_out0>;
						};
					};
					csi_chan0_port1: port@1 {
						reg = <1>;
						rbpcv2_imx568_csi_out0: endpoint@1 {
							remote-endpoint = <&rbpcv2_imx568_vi_in0>;
						};
					};
				};
			};
			csi_chan1: channel@1 {
				reg = <1>;
				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					csi_chan1_port0: port@0 {
						reg = <0>;
						rbpcv2_imx568_csi_in1: endpoint@2 {
							port-index = <2>;
							bus-width = <4>;
							remote-endpoint = <&rbpcv2_imx568_out1>;
						};
					};
					csi_chan1_port1: port@1 {
						reg = <1>;
						rbpcv2_imx568_csi_out1: endpoint@3 {
							remote-endpoint = <&rbpcv2_imx568_vi_in1>;
						};
					};
				};
			};
		};
	};

	cam_i2cmux {
		i2c_0:i2c@0 {
			imx568_cam0: rbpcv2_imx568_a@1a {
				compatible = "sony,imx568";
				/* I2C device address */
				reg = <0x1a>;

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

				/* Physical dimensions of sensor */
				physical_w = "6.708";
				physical_h = "5.612";

				sensor_model = "imx568";

				use_sensor_mode_id = "true";

				/**
				* ==== Modes ====
				* A modeX node is required to support v4l2 driver
				* implementation with NVIDIA camera software stack
				*
				* == Signal properties ==
				*
				* phy_mode = "";
				* PHY mode used by the MIPI lanes for this device
				*
				* tegra_sinterface = "";
				* CSI Serial interface connected to tegra
				* Incase of virtual HW devices, use virtual
				* For SW emulated devices, use host
				*
				* pix_clk_hz = "";
				* Sensor pixel clock used for calculations like exposure and framerate
				*
				* readout_orientation = "0";
				* Based on camera module orientation.
				* Only change readout_orientation if you specifically
				* Program a different readout order for this mode
				*
				* lane_polarity
				* Based on the camera connector pin.
				* CSIx_D0 | CSIx_D1 | CSI(X+1)_D0 | CSI(X+1)CSIx_D1
				*    LSB  |   BIT1  |     BIT2    |      MSB
				* if there is a polarity swap on any lane, the bit corrsponding
				* to the lane should be set
				* e.g. polarity swap on CSIx_D0 only -> lane_polarity = "1"; 0001
				* e.g. polarity swap on CSIx_D1 and CSI(X+1)_D0 -> lane_polarity = "6"; 0110
				*
				* == Image format Properties ==
				*
				* active_w = "";
				* Pixel active region width
				*
				* active_h = "";
				* Pixel active region height
				*
				* pixel_t = "";
				* The sensor readout pixel pattern
				*
				* line_length = "";
				* Pixel line length (width) for sensor mode.
				*
				* == Source Control Settings ==
				*
				* Gain factor used to convert fixed point integer to float
				* Gain range [min_gain/gain_factor, max_gain/gain_factor]
				* Gain step [step_gain/gain_factor is the smallest step that can be configured]
				* Default gain [Default gain to be initialized for the control.
				*     use min_gain_val as default for optimal results]
				* Framerate factor used to convert fixed point integer to float
				* Framerate range [min_framerate/framerate_factor, max_framerate/framerate_factor]
				* Framerate step [step_framerate/framerate_factor is the smallest step that can be configured]
				* Default Framerate [Default framerate to be initialized for the control.
				*     use max_framerate to get required performance]
				* Exposure factor used to convert fixed point integer to float
				* For convenience use 1 sec = 1000000us as conversion factor
				* Exposure range [min_exp_time/exposure_factor, max_exp_time/exposure_factor]
				* Exposure step [step_exp_time/exposure_factor is the smallest step that can be configured]
				* Default Exposure Time [Default exposure to be initialized for the control.
				*     Set default exposure based on the default_framerate for optimal exposure settings]
				*
				* gain_factor = ""; (integer factor used for floating to fixed point conversion)
				* min_gain_val = ""; (ceil to integer)
				* max_gain_val = ""; (ceil to integer)
				* step_gain_val = ""; (ceil to integer)
				* default_gain = ""; (ceil to integer)
				* Gain limits for mode
				*
				* exposure_factor = ""; (integer factor used for floating to fixed point conversion)
				* min_exp_time = ""; (ceil to integer)
				* max_exp_time = ""; (ceil to integer)
				* step_exp_time = ""; (ceil to integer)
				* default_exp_time = ""; (ceil to integer)
				* Exposure Time limits for mode (sec)
				*
				* framerate_factor = ""; (integer factor used for floating to fixed point conversion)
				* min_framerate = ""; (ceil to integer)
				* max_framerate = ""; (ceil to integer)
				* step_framerate = ""; (ceil to integer)
				* default_framerate = ""; (ceil to integer)
				* Framerate limits for mode (fps)
				*
				* embedded_metadata_height = "";
				* Sensor embedded metadata height in units of rows.
				* If sensor does not support embedded metadata value should be 0.
				*/
				mode0 { /* imx568_MODE_2448*2048_79FPS */
					mclk_khz = "37125";
					num_lanes = "4";
					tegra_sinterface = "serial_a";
					phy_mode = "DPHY";
					discontinuous_clk = "no";
					dpcm_enable = "false";
					cil_settletime = "0";
					lane_polarity = "6";

					active_w = "2448";
					active_h = "2048";
					mode_type = "bayer";
					pixel_phase = "rggb";
					dynamic_pixel_bit_depth = "10";
					csi_pixel_bit_depth = "10";
					readout_orientation = "0";
					line_length = "2472";
					inherent_gain = "1";
					mclk_multiplier = "9.33"; 
					pix_clk_hz = "475200000"; 

					gain_factor = "10";
					framerate_factor = "1000";
					exposure_factor = "1000000";
					min_gain_val = "1"; 	/* 0dB */
					max_gain_val = "480"; /* dB */
					step_gain_val = "10";  /* 0.1 */
					default_gain = "480"; /*  */
					min_hdr_ratio = "1";
					max_hdr_ratio = "1";
					min_framerate = "10000000"; /* 10.0 fps */
					max_framerate = "79000000"; /* 79.0 fps */
					step_framerate = "1";
					default_framerate = "79000000"; /* 21.0 fps */
					min_exp_time = "5"; 
					max_exp_time = "1000000"; /* us */
					step_exp_time = "1";
					default_exp_time = "1000"; /* us */

					embedded_metadata_height = "0";
				};
				

				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					port@0 {
						reg = <0>;
						rbpcv2_imx568_out0: endpoint {
							port-index = <0>;
							bus-width = <4>;
							remote-endpoint = <&rbpcv2_imx568_csi_in0>;
						};
					};
				};
			};
		};
		i2c_1: i2c@1 {
			imx568_cam1: rbpcv2_imx568_c@1a {
				compatible = "sony,imx568";
				/* I2C device address */
				reg = <0x1a>;

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

				/* Physical dimensions of sensor */
				physical_w = "6.708";
				physical_h = "5.612";

				sensor_model = "imx568";

				use_sensor_mode_id = "true";

				/**
				* ==== Modes ====
				* A modeX node is required to support v4l2 driver
				* implementation with NVIDIA camera software stack
				*
				* == Signal properties ==
				*
				* phy_mode = "";
				* PHY mode used by the MIPI lanes for this device
				*
				* tegra_sinterface = "";
				* CSI Serial interface connected to tegra
				* Incase of virtual HW devices, use virtual
				* For SW emulated devices, use host
				*
				* pix_clk_hz = "";
				* Sensor pixel clock used for calculations like exposure and framerate
				*
				* readout_orientation = "0";
				* Based on camera module orientation.
				* Only change readout_orientation if you specifically
				* Program a different readout order for this mode
				*
				* == Image format Properties ==
				*
				* active_w = "";
				* Pixel active region width
				*
				* active_h = "";
				* Pixel active region height
				*
				* pixel_t = "";
				* The sensor readout pixel pattern
				*
				* line_length = "";
				* Pixel line length (width) for sensor mode.
				*
				* == Source Control Settings ==
				*
				* Gain factor used to convert fixed point integer to float
				* Gain range [min_gain/gain_factor, max_gain/gain_factor]
				* Gain step [step_gain/gain_factor is the smallest step that can be configured]
				* Default gain [Default gain to be initialized for the control.
				*     use min_gain_val as default for optimal results]
				* Framerate factor used to convert fixed point integer to float
				* Framerate range [min_framerate/framerate_factor, max_framerate/framerate_factor]
				* Framerate step [step_framerate/framerate_factor is the smallest step that can be configured]
				* Default Framerate [Default framerate to be initialized for the control.
				*     use max_framerate to get required performance]
				* Exposure factor used to convert fixed point integer to float
				* For convenience use 1 sec = 1000000us as conversion factor
				* Exposure range [min_exp_time/exposure_factor, max_exp_time/exposure_factor]
				* Exposure step [step_exp_time/exposure_factor is the smallest step that can be configured]
				* Default Exposure Time [Default exposure to be initialized for the control.
				*     Set default exposure based on the default_framerate for optimal exposure settings]
				*
				* gain_factor = ""; (integer factor used for floating to fixed point conversion)
				* min_gain_val = ""; (ceil to integer)
				* max_gain_val = ""; (ceil to integer)
				* step_gain_val = ""; (ceil to integer)
				* default_gain = ""; (ceil to integer)
				* Gain limits for mode
				*
				* exposure_factor = ""; (integer factor used for floating to fixed point conversion)
				* min_exp_time = ""; (ceil to integer)
				* max_exp_time = ""; (ceil to integer)
				* step_exp_time = ""; (ceil to integer)
				* default_exp_time = ""; (ceil to integer)
				* Exposure Time limits for mode (sec)
				*
				* framerate_factor = ""; (integer factor used for floating to fixed point conversion)
				* min_framerate = ""; (ceil to integer)
				* max_framerate = ""; (ceil to integer)
				* step_framerate = ""; (ceil to integer)
				* default_framerate = ""; (ceil to integer)
				* Framerate limits for mode (fps)
				*
				* embedded_metadata_height = "";
				* Sensor embedded metadata height in units of rows.
				* If sensor does not support embedded metadata value should be 0.
				*/
				mode0 { /* imx568_MODE_2448*2048_79FPS */
					mclk_khz = "37125";
					num_lanes = "4";
					tegra_sinterface = "serial_a";
					phy_mode = "DPHY";
					discontinuous_clk = "no";
					dpcm_enable = "false";
					cil_settletime = "0";
					lane_polarity = "6";

					active_w = "2448";
					active_h = "2048";
					mode_type = "bayer";
					pixel_phase = "rggb";
					dynamic_pixel_bit_depth = "10";
					csi_pixel_bit_depth = "10";
					readout_orientation = "0";
					line_length = "2472";
					inherent_gain = "1";
					mclk_multiplier = "9.33"; 
					pix_clk_hz = "475200000"; 

					gain_factor = "10";
					framerate_factor = "1000";
					exposure_factor = "1000000";
					min_gain_val = "1"; 	/* dB */
					max_gain_val = "480"; /* dB */
					step_gain_val = "10";  /* 0.1 */
					default_gain = "480"; /*  */
					min_hdr_ratio = "1";
					max_hdr_ratio = "1";
					min_framerate = "10000000"; /* 10.0 fps */
					max_framerate = "79000000"; /* 79.0 fps */
					step_framerate = "1";
					default_framerate = "79000000"; /* 21.0 fps */
					min_exp_time = "5";
					max_exp_time = "1000000"; /* us */
					step_exp_time = "1";
					default_exp_time = "1000"; /* us */

					embedded_metadata_height = "0";
				};

				 /* IMX219_MODE_3280x1848_28FPS */

				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					port@0 {
						reg = <0>;
						rbpcv2_imx568_out1: endpoint {
							status = "okay";
							port-index = <2>;
							bus-width = <4>;
							remote-endpoint = <&rbpcv2_imx568_csi_in1>;
						};
					};
				};
			};
		};
	};

	lens_imx568@RBPCV2 {
		min_focus_distance = "0.0";
		hyper_focal = "0.0";
		focal_length = "3.04";
		f_number = "2.0";
		aperture = "0.0";
	};
};
/ {
	tcp: tegra-camera-platform {
		compatible = "nvidia, tegra-camera-platform";
		/**
		* Physical settings to calculate max ISO BW
		*
		* num_csi_lanes = <>;
		* Total number of CSI lanes when all cameras are active
		*
		* max_lane_speed = <>;
		* Max lane speed in Kbit/s
		*
		* min_bits_per_pixel = <>;
		* Min bits per pixel
		*
		* vi_peak_byte_per_pixel = <>;
		* Max byte per pixel for the VI ISO case
		*
		* vi_bw_margin_pct = <>;
		* Vi bandwidth margin in percentage
		*
		* max_pixel_rate = <>;
		* Max pixel rate in Kpixel/s for the ISP ISO case
		*
		* isp_peak_byte_per_pixel = <>;
		* Max byte per pixel for the ISP ISO case
		*
		* isp_bw_margin_pct = <>;
		* Isp bandwidth margin in percentage
		*/
		num_csi_lanes = <4>;
		max_lane_speed = <1500000>;
		min_bits_per_pixel = <10>;
		vi_peak_byte_per_pixel = <2>;
		vi_bw_margin_pct = <25>;
		isp_peak_byte_per_pixel = <5>;
		isp_bw_margin_pct = <25>;

		/**
		 * The general guideline for naming badge_info contains 3 parts, and is as follows,
		 * The first part is the camera_board_id for the module; if the module is in a FFD
		 * platform, then use the platform name for this part.
		 * The second part contains the position of the module, ex. "rear" or "front".
		 * The third part contains the last 6 characters of a part number which is found
		 * in the module's specsheet from the vendor.
		 */
		modules {
			cam_module0: module0 {
				badge = "jakku_front_RBP194";
				position = "front";
				orientation = "1";
				cam_module0_drivernode0: drivernode0 {
					pcl_id = "v4l2_sensor";
					devname = "imx568 9-0010";
					proc-device-tree = "/proc/device-tree/cam_i2cmux/i2c@0/rbpcv2_imx568_a@1a";
				};
				cam_module0_drivernode1: drivernode1 {
					pcl_id = "v4l2_lens";
					proc-device-tree = "/proc/device-tree/lens_imx568@RBPCV2/";
				};
			};
			cam_module1: module1 {
				badge = "jakku_rear_RBP194";
				position = "rear";
				orientation = "1";
				cam_module1_drivernode0: drivernode0 {
					pcl_id = "v4l2_sensor";
					devname = "imx568 10-0010";
					proc-device-tree = "/proc/device-tree/cam_i2cmux/i2c@1/rbpcv2_imx568_c@1a";
				};
				cam_module1_drivernode1: drivernode1 {
					pcl_id = "v4l2_lens";
					proc-device-tree = "/proc/device-tree/lens_imx568@RBPCV2/";
				};
			};
		};
	};
};

trace log:

# tracer: nop
#
# entries-in-buffer/entries-written: 70270/70270   #P:4
#
#                                _-----=> irqs-off
#                               / _----=> need-resched
#                              | / _---=> hardirq/softirq
#                              || / _--=> preempt-depth
#                              ||| /     delay
#           TASK-PID     CPU#  ||||   TIMESTAMP  FUNCTION
#              | |         |   ||||      |         |
     kworker/2:2-109     [002] ....  1493.915458: rtcpu_string: tstamp:47267740959 id:0x04010000 str:"VM0 activating."
     kworker/2:2-109     [002] ....  1493.915462: rtcpu_vinotify_event: tstamp:47268382467 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1512571959200 data:0x759e300010000000
     kworker/2:2-109     [002] ....  1493.915463: rtcpu_vinotify_event: tstamp:47268382603 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1512571965664 data:0x0000000031000001
     kworker/2:2-109     [002] ....  1493.915463: rtcpu_vinotify_event: tstamp:47268382755 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1512572011456 data:0x759e2d0010000000
     kworker/2:2-109     [002] ....  1493.915463: rtcpu_vinotify_event: tstamp:47268382889 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:1512572017984 data:0x0000000031000002
     kworker/2:2-109     [002] ....  1494.027456: rtcpu_nvcsi_intr: tstamp:47270755745 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:2-109     [002] ....  1494.027458: rtcpu_nvcsi_intr: tstamp:47270757175 class:GLOBAL type:PHY_INTR0 phy:1 cil:1 st:0 vc:0 status:0x00000008
     kworker/2:2-109     [002] ....  1494.027459: rtcpu_nvcsi_intr: tstamp:47270757892 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:2-109     [002] ....  1494.027459: rtcpu_nvcsi_intr: tstamp:47270759145 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:2-109     [002] ....  1494.027459: rtcpu_nvcsi_intr: tstamp:47270760041 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:2-109     [002] ....  1494.027460: rtcpu_nvcsi_intr: tstamp:47270760403 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:2-109     [002] ....  1494.027460: rtcpu_nvcsi_intr: tstamp:47270761829 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:2-109     [002] ....  1494.027460: rtcpu_nvcsi_intr: tstamp:47270764337 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:2-109     [002] ....  1494.027460: rtcpu_nvcsi_intr: tstamp:47270764696 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:2-109     [002] ....  1494.027460: rtcpu_nvcsi_intr: tstamp:47270765050 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:2-109     [002] ....  1494.027461: rtcpu_nvcsi_intr: tstamp:47270766663 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:2-109     [002] ....  1494.027461: rtcpu_nvcsi_intr: tstamp:47270770425 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:2-109     [002] ....  1494.027461: rtcpu_nvcsi_intr: tstamp:47270771856 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:2-109     [002] ....  1494.027462: rtcpu_nvcsi_intr: tstamp:47270772393 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:2-109     [002] ....  1494.027462: rtcpu_nvcsi_intr: tstamp:47270773825 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:2-109     [002] ....  1494.027462: rtcpu_nvcsi_intr: tstamp:47270774900 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:2-109     [002] ....  1494.027462: rtcpu_nvcsi_intr: tstamp:47270776331 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080

Is there a problem with the DTS configuration I have set? Could you please help me take a look? I have been unable to resolve this issue, and I’m not sure what the cause is.

CAM0 only support 2 lanes configuration and need set the port-index =1
and tegra_sinterface = “serial_b”

I have made the modifications according to your suggestions, but the error remains the same and I’m not sure what the problem is. What should I do next to fix it?

/*
 * Copyright (c) 2022, NVIDIA CORPORATION.  All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
#include <dt-bindings/media/camera.h>

/ {
	tegra-capture-vi  {
		num-channels = <2>;
		ports {
			#address-cells = <1>;
			#size-cells = <0>;
			vi_port0: port@0 {
				reg = <0>;
				rbpcv2_imx568_vi_in0: endpoint {
					port-index = <0>;
					bus-width = <4>;
					remote-endpoint = <&rbpcv2_imx568_csi_out0>;
				};
			};
			vi_port1: port@1 {
				reg = <1>;
				rbpcv2_imx568_vi_in1: endpoint {
					port-index = <2>;
					bus-width = <4>;
					remote-endpoint = <&rbpcv2_imx568_csi_out1>;
				};
			};
		};
	};

	host1x@13e00000 {
		nvcsi@15a00000 {
			num-channels = <2>;
			#address-cells = <1>;
			#size-cells = <0>;
			csi_chan0: channel@0 {
				reg = <0>;
				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					csi_chan0_port0: port@0 {
						reg = <0>;
						rbpcv2_imx568_csi_in0: endpoint@0 {
							port-index = <1>;
							bus-width = <4>;
							remote-endpoint = <&rbpcv2_imx568_out0>;
						};
					};
					csi_chan0_port1: port@1 {
						reg = <1>;
						rbpcv2_imx568_csi_out0: endpoint@1 {
							remote-endpoint = <&rbpcv2_imx568_vi_in0>;
						};
					};
				};
			};
			csi_chan1: channel@1 {
				reg = <1>;
				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					csi_chan1_port0: port@0 {
						reg = <0>;
						rbpcv2_imx568_csi_in1: endpoint@2 {
							port-index = <2>;
							bus-width = <4>;
							remote-endpoint = <&rbpcv2_imx568_out1>;
						};
					};
					csi_chan1_port1: port@1 {
						reg = <1>;
						rbpcv2_imx568_csi_out1: endpoint@3 {
							remote-endpoint = <&rbpcv2_imx568_vi_in1>;
						};
					};
				};
			};
		};
	};

	cam_i2cmux {
		i2c_0:i2c@0 {
			imx568_cam0: rbpcv2_imx568_a@1a {
				compatible = "sony,imx568";
				/* I2C device address */
				reg = <0x1a>;

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

				/* Physical dimensions of sensor */
				physical_w = "6.708";
				physical_h = "5.612";

				sensor_model = "imx568";

				use_sensor_mode_id = "true";

				/**
				* ==== Modes ====
				* A modeX node is required to support v4l2 driver
				* implementation with NVIDIA camera software stack
				*
				* == Signal properties ==
				*
				* phy_mode = "";
				* PHY mode used by the MIPI lanes for this device
				*
				* tegra_sinterface = "";
				* CSI Serial interface connected to tegra
				* Incase of virtual HW devices, use virtual
				* For SW emulated devices, use host
				*
				* pix_clk_hz = "";
				* Sensor pixel clock used for calculations like exposure and framerate
				*
				* readout_orientation = "0";
				* Based on camera module orientation.
				* Only change readout_orientation if you specifically
				* Program a different readout order for this mode
				*
				* lane_polarity
				* Based on the camera connector pin.
				* CSIx_D0 | CSIx_D1 | CSI(X+1)_D0 | CSI(X+1)CSIx_D1
				*    LSB  |   BIT1  |     BIT2    |      MSB
				* if there is a polarity swap on any lane, the bit corrsponding
				* to the lane should be set
				* e.g. polarity swap on CSIx_D0 only -> lane_polarity = "1"; 0001
				* e.g. polarity swap on CSIx_D1 and CSI(X+1)_D0 -> lane_polarity = "6"; 0110
				*
				* == Image format Properties ==
				*
				* active_w = "";
				* Pixel active region width
				*
				* active_h = "";
				* Pixel active region height
				*
				* pixel_t = "";
				* The sensor readout pixel pattern
				*
				* line_length = "";
				* Pixel line length (width) for sensor mode.
				*
				* == Source Control Settings ==
				*
				* Gain factor used to convert fixed point integer to float
				* Gain range [min_gain/gain_factor, max_gain/gain_factor]
				* Gain step [step_gain/gain_factor is the smallest step that can be configured]
				* Default gain [Default gain to be initialized for the control.
				*     use min_gain_val as default for optimal results]
				* Framerate factor used to convert fixed point integer to float
				* Framerate range [min_framerate/framerate_factor, max_framerate/framerate_factor]
				* Framerate step [step_framerate/framerate_factor is the smallest step that can be configured]
				* Default Framerate [Default framerate to be initialized for the control.
				*     use max_framerate to get required performance]
				* Exposure factor used to convert fixed point integer to float
				* For convenience use 1 sec = 1000000us as conversion factor
				* Exposure range [min_exp_time/exposure_factor, max_exp_time/exposure_factor]
				* Exposure step [step_exp_time/exposure_factor is the smallest step that can be configured]
				* Default Exposure Time [Default exposure to be initialized for the control.
				*     Set default exposure based on the default_framerate for optimal exposure settings]
				*
				* gain_factor = ""; (integer factor used for floating to fixed point conversion)
				* min_gain_val = ""; (ceil to integer)
				* max_gain_val = ""; (ceil to integer)
				* step_gain_val = ""; (ceil to integer)
				* default_gain = ""; (ceil to integer)
				* Gain limits for mode
				*
				* exposure_factor = ""; (integer factor used for floating to fixed point conversion)
				* min_exp_time = ""; (ceil to integer)
				* max_exp_time = ""; (ceil to integer)
				* step_exp_time = ""; (ceil to integer)
				* default_exp_time = ""; (ceil to integer)
				* Exposure Time limits for mode (sec)
				*
				* framerate_factor = ""; (integer factor used for floating to fixed point conversion)
				* min_framerate = ""; (ceil to integer)
				* max_framerate = ""; (ceil to integer)
				* step_framerate = ""; (ceil to integer)
				* default_framerate = ""; (ceil to integer)
				* Framerate limits for mode (fps)
				*
				* embedded_metadata_height = "";
				* Sensor embedded metadata height in units of rows.
				* If sensor does not support embedded metadata value should be 0.
				*/
				mode0 { /* imx568_MODE_2448*2048_79FPS */
					mclk_khz = "37125";
					num_lanes = "4";
					tegra_sinterface = "serial_b";
					phy_mode = "DPHY";
					discontinuous_clk = "no";
					dpcm_enable = "false";
					cil_settletime = "0";
					lane_polarity = "6";
					active_w = "2448";
					active_h = "2048";
					mode_type = "bayer";
					pixel_phase = "rggb";
					dynamic_pixel_bit_depth = "10";
					csi_pixel_bit_depth = "10";
					readout_orientation = "0";
					line_length = "2472";
					inherent_gain = "1";
					mclk_multiplier = "2"; 
					pix_clk_hz = "475200000"; 
					serdes_pix_clk_hz = "475200000";
					gain_factor = "10";
					framerate_factor = "1000";
					exposure_factor = "1000000";
					min_gain_val = "1"; 	/* 0dB */
					max_gain_val = "480"; /* dB */
					step_gain_val = "10";  /* 0.1 */
					default_gain = "480"; /*  */
					min_hdr_ratio = "1";
					max_hdr_ratio = "1";
					min_framerate = "10000000"; /* 10.0 fps */
					max_framerate = "79200000"; /* 79.0 fps */
					step_framerate = "1";
					default_framerate = "79200000"; /* 21.0 fps */
					min_exp_time = "5"; /* us, min_exp_time = (minimum coarse integration time) × line_length / pix_clk_hz × 1000000 */
					max_exp_time = "1000000"; /* us */
					step_exp_time = "1";
					default_exp_time = "1000"; /* us */

					embedded_metadata_height = "0";
				};
				

				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					port@0 {
						reg = <0>;
						rbpcv2_imx568_out0: endpoint {
							port-index = <1>;
							bus-width = <4>;
							remote-endpoint = <&rbpcv2_imx568_csi_in0>;
						};
					};
				};
			};
		};
		i2c_1: i2c@1 {
			imx568_cam1: rbpcv2_imx568_c@1a {
				compatible = "sony,imx568";
				/* I2C device address */
				reg = <0x1a>;

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

				/* Physical dimensions of sensor */
				physical_w = "6.708";
				physical_h = "5.612";

				sensor_model = "imx568";

				use_sensor_mode_id = "true";

				/**
				* ==== Modes ====
				* A modeX node is required to support v4l2 driver
				* implementation with NVIDIA camera software stack
				*
				* == Signal properties ==
				*
				* phy_mode = "";
				* PHY mode used by the MIPI lanes for this device
				*
				* tegra_sinterface = "";
				* CSI Serial interface connected to tegra
				* Incase of virtual HW devices, use virtual
				* For SW emulated devices, use host
				*
				* pix_clk_hz = "";
				* Sensor pixel clock used for calculations like exposure and framerate
				*
				* readout_orientation = "0";
				* Based on camera module orientation.
				* Only change readout_orientation if you specifically
				* Program a different readout order for this mode
				*
				* == Image format Properties ==
				*
				* active_w = "";
				* Pixel active region width
				*
				* active_h = "";
				* Pixel active region height
				*
				* pixel_t = "";
				* The sensor readout pixel pattern
				*
				* line_length = "";
				* Pixel line length (width) for sensor mode.
				*
				* == Source Control Settings ==
				*
				* Gain factor used to convert fixed point integer to float
				* Gain range [min_gain/gain_factor, max_gain/gain_factor]
				* Gain step [step_gain/gain_factor is the smallest step that can be configured]
				* Default gain [Default gain to be initialized for the control.
				*     use min_gain_val as default for optimal results]
				* Framerate factor used to convert fixed point integer to float
				* Framerate range [min_framerate/framerate_factor, max_framerate/framerate_factor]
				* Framerate step [step_framerate/framerate_factor is the smallest step that can be configured]
				* Default Framerate [Default framerate to be initialized for the control.
				*     use max_framerate to get required performance]
				* Exposure factor used to convert fixed point integer to float
				* For convenience use 1 sec = 1000000us as conversion factor
				* Exposure range [min_exp_time/exposure_factor, max_exp_time/exposure_factor]
				* Exposure step [step_exp_time/exposure_factor is the smallest step that can be configured]
				* Default Exposure Time [Default exposure to be initialized for the control.
				*     Set default exposure based on the default_framerate for optimal exposure settings]
				*
				* gain_factor = ""; (integer factor used for floating to fixed point conversion)
				* min_gain_val = ""; (ceil to integer)
				* max_gain_val = ""; (ceil to integer)
				* step_gain_val = ""; (ceil to integer)
				* default_gain = ""; (ceil to integer)
				* Gain limits for mode
				*
				* exposure_factor = ""; (integer factor used for floating to fixed point conversion)
				* min_exp_time = ""; (ceil to integer)
				* max_exp_time = ""; (ceil to integer)
				* step_exp_time = ""; (ceil to integer)
				* default_exp_time = ""; (ceil to integer)
				* Exposure Time limits for mode (sec)
				*
				* framerate_factor = ""; (integer factor used for floating to fixed point conversion)
				* min_framerate = ""; (ceil to integer)
				* max_framerate = ""; (ceil to integer)
				* step_framerate = ""; (ceil to integer)
				* default_framerate = ""; (ceil to integer)
				* Framerate limits for mode (fps)
				*
				* embedded_metadata_height = "";
				* Sensor embedded metadata height in units of rows.
				* If sensor does not support embedded metadata value should be 0.
				*/
				mode0 { /* imx568_MODE_2448*2048_79FPS */
					mclk_khz = "37125";
					num_lanes = "4";
					tegra_sinterface = "serial_b";
					phy_mode = "DPHY";
					discontinuous_clk = "no";
					dpcm_enable = "false";
					cil_settletime = "0";
					lane_polarity = "6";

					active_w = "2448";
					active_h = "2048";
					mode_type = "bayer";
					pixel_phase = "rggb";
					dynamic_pixel_bit_depth = "10";
					csi_pixel_bit_depth = "10";
					readout_orientation = "0";
					line_length = "2472";
					inherent_gain = "1";
					mclk_multiplier = "2"; 
					pix_clk_hz = "475200000"; 
					serdes_pix_clk_hz = "475200000";
					gain_factor = "10";
					framerate_factor = "1000";
					exposure_factor = "1000000";
					min_gain_val = "1"; 	/* dB */
					max_gain_val = "480"; /* dB */
					step_gain_val = "10";  /* 0.1 */
					default_gain = "480"; /*  */
					min_hdr_ratio = "1";
					max_hdr_ratio = "1";
					min_framerate = "10000000"; /* 10.0 fps */
					max_framerate = "79200000"; /* 79.0 fps */
					step_framerate = "1";
					default_framerate = "79200000"; /* 21.0 fps */
					min_exp_time = "5"; /* us, min_exp_time = (minimum coarse integration time) × line_length / pix_clk_hz × 1000000 */
					max_exp_time = "1000000"; /* us */
					step_exp_time = "1";
					default_exp_time = "1000"; /* us */

					embedded_metadata_height = "0";
				};

				 /* IMX219_MODE_3280x1848_28FPS */

				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					port@0 {
						reg = <0>;
						rbpcv2_imx568_out1: endpoint {
							status = "okay";
							port-index = <2>;
							bus-width = <4>;
							remote-endpoint = <&rbpcv2_imx568_csi_in1>;
						};
					};
				};
			};
		};
	};

	lens_imx568@RBPCV2 {
		min_focus_distance = "0.0";
		hyper_focal = "0.0";
		focal_length = "3.04";
		f_number = "2.0";
		aperture = "0.0";
	};
};
/ {
	tcp: tegra-camera-platform {
		compatible = "nvidia, tegra-camera-platform";
		/**
		* Physical settings to calculate max ISO BW
		*
		* num_csi_lanes = <>;
		* Total number of CSI lanes when all cameras are active
		*
		* max_lane_speed = <>;
		* Max lane speed in Kbit/s
		*
		* min_bits_per_pixel = <>;
		* Min bits per pixel
		*
		* vi_peak_byte_per_pixel = <>;
		* Max byte per pixel for the VI ISO case
		*
		* vi_bw_margin_pct = <>;
		* Vi bandwidth margin in percentage
		*
		* max_pixel_rate = <>;
		* Max pixel rate in Kpixel/s for the ISP ISO case
		*
		* isp_peak_byte_per_pixel = <>;
		* Max byte per pixel for the ISP ISO case
		*
		* isp_bw_margin_pct = <>;
		* Isp bandwidth margin in percentage
		*/
		num_csi_lanes = <8>;
		max_lane_speed = <1500000>;
		min_bits_per_pixel = <10>;
		vi_peak_byte_per_pixel = <2>;
		vi_bw_margin_pct = <25>;
		isp_peak_byte_per_pixel = <5>;
		isp_bw_margin_pct = <25>;

		/**
		 * The general guideline for naming badge_info contains 3 parts, and is as follows,
		 * The first part is the camera_board_id for the module; if the module is in a FFD
		 * platform, then use the platform name for this part.
		 * The second part contains the position of the module, ex. "rear" or "front".
		 * The third part contains the last 6 characters of a part number which is found
		 * in the module's specsheet from the vendor.
		 */
		modules {
			cam_module0: module0 {
				badge = "jakku_front_RBP194";
				position = "front";
				orientation = "1";
				cam_module0_drivernode0: drivernode0 {
					pcl_id = "v4l2_sensor";
					devname = "imx568 9-0010";
					proc-device-tree = "/proc/device-tree/cam_i2cmux/i2c@0/rbpcv2_imx568_a@1a";
				};
				cam_module0_drivernode1: drivernode1 {
					pcl_id = "v4l2_lens";
					proc-device-tree = "/proc/device-tree/lens_imx568@RBPCV2/";
				};
			};
			cam_module1: module1 {
				badge = "jakku_rear_RBP194";
				position = "rear";
				orientation = "1";
				cam_module1_drivernode0: drivernode0 {
					pcl_id = "v4l2_sensor";
					devname = "imx568 10-0010";
					proc-device-tree = "/proc/device-tree/cam_i2cmux/i2c@1/rbpcv2_imx568_c@1a";
				};
				cam_module1_drivernode1: drivernode1 {
					pcl_id = "v4l2_lens";
					proc-device-tree = "/proc/device-tree/lens_imx568@RBPCV2/";
				};
			};
		};
	};
};

trace log:

# tracer: nop
#
# entries-in-buffer/entries-written: 9/9   #P:4
#
#                                _-----=> irqs-off
#                               / _----=> need-resched
#                              | / _---=> hardirq/softirq
#                              || / _--=> preempt-depth
#                              ||| /     delay
#           TASK-PID     CPU#  ||||   TIMESTAMP  FUNCTION
#              | |         |   ||||      |         |
     kworker/3:2-98      [003] ....   494.761302: rtcpu_string: tstamp:16046969756 id:0x04010000 str:"VM0 activating."
     kworker/3:2-98      [003] ....   494.761307: rtcpu_vinotify_event: tstamp:16047434676 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:513507367616 data:0x759d580010000000
     kworker/3:2-98      [003] ....   494.761308: rtcpu_vinotify_event: tstamp:16047434830 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:513507374048 data:0x0000000031000001
     kworker/3:2-98      [003] ....   494.761308: rtcpu_vinotify_event: tstamp:16047434984 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:513507419488 data:0x759d550010000000
     kworker/3:2-98      [003] ....   494.761309: rtcpu_vinotify_event: tstamp:16047435116 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:513507426048 data:0x0000000031000002
     kworker/3:2-98      [003] ....   497.397265: rtcpu_vinotify_event: tstamp:16129745749 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:516149212704 data:0x759d580010000000
     kworker/3:2-98      [003] ....   497.397268: rtcpu_vinotify_event: tstamp:16129745885 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:516149240192 data:0x0000000031000001
     kworker/3:2-98      [003] ....   497.397268: rtcpu_vinotify_event: tstamp:16129746044 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:516149251552 data:0x759d550010000000
     kworker/3:2-98      [003] ....   497.397269: rtcpu_vinotify_event: tstamp:16129746177 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:516149290368 data:0x0000000031000002

error log:

[  497.333262] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  497.342409] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  497.352281] (NULL device *): vi_capture_control_message: NULL VI channel received
[  497.360018] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=1, csi_port=1
[  497.370699] (NULL device *): vi_capture_control_message: NULL VI channel received
[  497.378427] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 1 vc- 0
[  497.389212] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[  500.149450] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[  500.158688] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[  500.169320] (NULL device *): vi_capture_control_message: NULL VI channel received
[  500.177096] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=1, csi_port=1
[  500.187774] (NULL device *): vi_capture_control_message: NULL VI channel received
[  500.195487] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 1 vc- 0
[  500.206319] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[  500.215873] imx568 10-001a: imx568_stop_streaming: stop streaming

new dtsi:

/*
 * Copyright (c) 2016-2020, NVIDIA CORPORATION.  All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/ {
	tegra-capture-vi {
		num-channels = <1>;
		ports {
			#address-cells = <1>;
			#size-cells = <0>;
			port@0 {
				reg = <0>;
				liimx568_vi_in0: endpoint {
					port-index = <1>;
					bus-width = <4>;
					remote-endpoint = <&liimx568_csi_out0>;
				};
			};
		};
	};

	host1x@13e00000 {
		nvcsi@15a00000 {
			status = "okay";
			num-channels = <1>;
			#address-cells = <1>;
			#size-cells = <0>;
			channel@0 {
				reg = <0>;
				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					port@0 {
						reg = <0>;
						liimx568_csi_in0: endpoint@0 {
							port-index = <1>;
							bus-width = <4>;
							remote-endpoint = <&liimx568_imx568_out0>;
						};
					};
					port@1 {
						reg = <1>;
						liimx568_csi_out0: endpoint@1 {
							remote-endpoint = <&liimx568_vi_in0>;
						};
					};
				};
			};
		};
	};

	cam_i2cmux {
		i2c_1:i2c@1 {
			rbpcv2_imx568_a@1a {
				compatible = "sony,imx568";
				/* I2C device address */
				reg = <0x1a>;

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

				/* Physical dimensions of sensor */
				physical_w = "6.708";
				physical_h = "5.612";

				sensor_model = "imx568";

				use_sensor_mode_id = "true";

				/**
				* ==== Modes ====
				* A modeX node is required to support v4l2 driver
				* implementation with NVIDIA camera software stack
				*
				* == Signal properties ==
				*
				* phy_mode = "";
				* PHY mode used by the MIPI lanes for this device
				*
				* tegra_sinterface = "";
				* CSI Serial interface connected to tegra
				* Incase of virtual HW devices, use virtual
				* For SW emulated devices, use host
				*
				* pix_clk_hz = "";
				* Sensor pixel clock used for calculations like exposure and framerate
				*
				* readout_orientation = "0";
				* Based on camera module orientation.
				* Only change readout_orientation if you specifically
				* Program a different readout order for this mode
				*
				* == Image format Properties ==
				*
				* active_w = "";
				* Pixel active region width
				*
				* active_h = "";
				* Pixel active region height
				*
				* pixel_t = "";
				* The sensor readout pixel pattern
				*
				* line_length = "";
				* Pixel line length (width) for sensor mode.
				*
				* == Source Control Settings ==
				*
				* Gain factor used to convert fixed point integer to float
				* Gain range [min_gain/gain_factor, max_gain/gain_factor]
				* Gain step [step_gain/gain_factor is the smallest step that can be configured]
				* Default gain [Default gain to be initialized for the control.
				*     use min_gain_val as default for optimal results]
				* Framerate factor used to convert fixed point integer to float
				* Framerate range [min_framerate/framerate_factor, max_framerate/framerate_factor]
				* Framerate step [step_framerate/framerate_factor is the smallest step that can be configured]
				* Default Framerate [Default framerate to be initialized for the control.
				*     use max_framerate to get required performance]
				* Exposure factor used to convert fixed point integer to float
				* For convenience use 1 sec = 1000000us as conversion factor
				* Exposure range [min_exp_time/exposure_factor, max_exp_time/exposure_factor]
				* Exposure step [step_exp_time/exposure_factor is the smallest step that can be configured]
				* Default Exposure Time [Default exposure to be initialized for the control.
				*     Set default exposure based on the default_framerate for optimal exposure settings]
				*
				* gain_factor = ""; (integer factor used for floating to fixed point conversion)
				* min_gain_val = ""; (ceil to integer)
				* max_gain_val = ""; (ceil to integer)
				* step_gain_val = ""; (ceil to integer)
				* default_gain = ""; (ceil to integer)
				* Gain limits for mode
				*
				* exposure_factor = ""; (integer factor used for floating to fixed point conversion)
				* min_exp_time = ""; (ceil to integer)
				* max_exp_time = ""; (ceil to integer)
				* step_exp_time = ""; (ceil to integer)
				* default_exp_time = ""; (ceil to integer)
				* Exposure Time limits for mode (sec)
				*
				* framerate_factor = ""; (integer factor used for floating to fixed point conversion)
				* min_framerate = ""; (ceil to integer)
				* max_framerate = ""; (ceil to integer)
				* step_framerate = ""; (ceil to integer)
				* default_framerate = ""; (ceil to integer)
				* Framerate limits for mode (fps)
				*
				* embedded_metadata_height = "";
				* Sensor embedded metadata height in units of rows.
				* If sensor does not support embedded metadata value should be 0.
				*/
				mode0 { /* imx568_MODE_2448*2048_79FPS */
					mclk_khz = "37125";
					num_lanes = "4";
					tegra_sinterface = "serial_b";
					phy_mode = "DPHY";
					discontinuous_clk = "no";
					dpcm_enable = "false";
					cil_settletime = "0";
					lane_polarity = "6";

					active_w = "2448";
					active_h = "2048";
					mode_type = "bayer";
					pixel_phase = "rggb";
					dynamic_pixel_bit_depth = "10";
					csi_pixel_bit_depth = "10";
					readout_orientation = "0";
					line_length = "2472";
					inherent_gain = "1";
					mclk_multiplier = "2"; 
					pix_clk_hz = "475200000"; 
					serdes_pix_clk_hz = "1188000000";
					gain_factor = "10";
					framerate_factor = "1000";
					exposure_factor = "1000000";
					min_gain_val = "1"; 	/* dB */
					max_gain_val = "480"; /* dB */
					step_gain_val = "10";  /* 0.1 */
					default_gain = "480"; /*  */
					min_hdr_ratio = "1";
					max_hdr_ratio = "1";
					min_framerate = "10000000"; /* 10.0 fps */
					max_framerate = "79200000"; /* 79.0 fps */
					step_framerate = "1";
					default_framerate = "79200000"; 
					min_exp_time = "5"; /* us, min_exp_time = (minimum coarse integration time) × line_length / pix_clk_hz × 1000000 */
					max_exp_time = "1000000"; /* us */
					step_exp_time = "1";
					default_exp_time = "1000"; /* us */

					embedded_metadata_height = "0";
				};
		
				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					port@0 {
						reg = <0>;
						liimx568_imx568_out0: endpoint {
							port-index = <1>;
							bus-width = <4>;
							remote-endpoint = <&liimx568_csi_in0>;
							};
						};
					};
				};
		};
	};

	lens_imx568@RBPCV2 {
		min_focus_distance = "0.0";
		hyper_focal = "0.0";
		focal_length = "3.04";
		f_number = "2.0";
		aperture = "0.0";
	};
};

/ {

	tegra-camera-platform {
		compatible = "nvidia, tegra-camera-platform";
		/**
		* Physical settings to calculate max ISO BW
		*
		* num_csi_lanes = <>;
		* Total number of CSI lanes when all cameras are active
		*
		* max_lane_speed = <>;
		* Max lane speed in Kbit/s
		*
		* min_bits_per_pixel = <>;
		* Min bits per pixel
		*
		* vi_peak_byte_per_pixel = <>;
		* Max byte per pixel for the VI ISO case
		*
		* vi_bw_margin_pct = <>;
		* Vi bandwidth margin in percentage
		*
		* max_pixel_rate = <>;
		* Max pixel rate in Kpixel/s for the ISP ISO case
		*
		* isp_peak_byte_per_pixel = <>;
		* Max byte per pixel for the ISP ISO case
		*
		* isp_bw_margin_pct = <>;
		* Isp bandwidth margin in percentage
		*/
		num_csi_lanes = <4>;
		max_lane_speed = <1500000>;
		min_bits_per_pixel = <10>;
		vi_peak_byte_per_pixel = <2>;
		vi_bw_margin_pct = <25>;
		isp_peak_byte_per_pixel = <5>;
		isp_bw_margin_pct = <25>;

		/**
		 * The general guideline for naming badge_info contains 3 parts, and is as follows,
		 * The first part is the camera_board_id for the module; if the module is in a FFD
		 * platform, then use the platform name for this part.
		 * The second part contains the position of the module, ex. "rear" or "front".
		 * The third part contains the last 6 characters of a part number which is found
		 * in the module's specsheet from the vender.
		 */
		modules {
			cam_module0: module0 {
				badge = "jakku_front_RBP194";
				position = "front";
				orientation = "1";
				cam_module0_drivernode0: drivernode0 {
					pcl_id = "v4l2_sensor";
					devname = "imx568 9-0010";
					proc-device-tree = "/proc/device-tree/cam_i2cmux/i2c@1/rbpcv2_imx568_a@1a";
				};
				cam_module0_drivernode1: drivernode1 {
					pcl_id = "v4l2_lens";
					proc-device-tree = "/proc/device-tree/lens_imx568@RBPCV2/";
				};
			};
		};
	};
};

mesg log:


[   70.093344] (NULL device *): vi_capture_control_message: NULL VI channel received
[   70.101075] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=1, csi_port=1
[   70.111744] (NULL device *): vi_capture_control_message: NULL VI channel received
[   70.119462] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 1 vc- 0
[   70.130179] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[   72.665574] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[   72.674745] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[   72.685370] (NULL device *): vi_capture_control_message: NULL VI channel received
[   72.693122] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=1, csi_port=1
[   72.703804] (NULL device *): vi_capture_control_message: NULL VI channel received
[   72.711533] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 1 vc- 0
[   72.722309] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[   72.731904] imx568 9-001a: imx568_stop_streaming: stop streaming

trace log:

# tracer: nop
#
# entries-in-buffer/entries-written: 10/10   #P:4
#
#                                _-----=> irqs-off
#                               / _----=> need-resched
#                              | / _---=> hardirq/softirq
#                              || / _--=> preempt-depth
#                              ||| /     delay
#           TASK-PID     CPU#  ||||   TIMESTAMP  FUNCTION
#              | |         |   ||||      |         |
     kworker/0:2-104     [000] ....   510.009782: rtcpu_string: tstamp:16520796959 id:0x04010000 str:"VM0 activating."
     kworker/0:2-104     [000] ....   510.009786: rtcpu_vinotify_event: tstamp:16521262945 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:528669600704 data:0x759d580010000000
     kworker/0:2-104     [000] ....   510.009787: rtcpu_vinotify_event: tstamp:16521263115 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:528669607136 data:0x0000000031000001
     kworker/0:2-104     [000] ....   510.009787: rtcpu_vinotify_event: tstamp:16521263289 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:528669652992 data:0x759d550010000000
     kworker/0:2-104     [000] ....   510.009788: rtcpu_vinotify_event: tstamp:16521263434 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:528669659520 data:0x0000000031000002
     kworker/0:2-104     [000] ....   512.808692: rtcpu_vinotify_event: tstamp:16608456897 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:531459511040 data:0x759d580010000000
     kworker/0:2-104     [000] ....   512.808696: rtcpu_vinotify_event: tstamp:16608457040 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:531459557632 data:0x0000000031000001
     kworker/0:2-104     [000] ....   512.808696: rtcpu_vinotify_event: tstamp:16608457197 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:531459613152 data:0x759d550010000000
     kworker/0:2-104     [000] ....   512.808697: rtcpu_vinotify_event: tstamp:16608457329 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:531459640992 data:0x0000000031000002
     kworker/0:2-104     [000] ....   521.104739: rtcpu_string: tstamp:16867840332 id:0x04010000 str:"VM0 deactivating."

CAM0 only support 2 lanes configure. Need modify the sensor output as 2 lanes mode too.

How can I make changes to support 4 lanes if I want to?

Due to HW CAM0 can’t support 2 lanes. You can design customized sensor board to use other CSI port instead of CSI0-1

Please check the sensor design guide from downloader center.

Does the hardware need to be modified to support 4 lanes for CAM0?

I changed it to CAM1, but I still couldn’t get any image output.

dtsi:

/*
 * Copyright (c) 2016-2020, NVIDIA CORPORATION.  All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/ {
	tegra-capture-vi {
		num-channels = <1>;
		ports {
			#address-cells = <1>;
			#size-cells = <0>;
			port@0 {
				reg = <0>;
				liimx568_vi_in0: endpoint {
					port-index = <2>;
					bus-width = <4>;
					remote-endpoint = <&liimx568_csi_out0>;
				};
			};
		};
	};

	host1x@13e00000 {
		nvcsi@15a00000 {
			status = "okay";
			num-channels = <1>;
			#address-cells = <1>;
			#size-cells = <0>;
			channel@0 {
				reg = <0>;
				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					port@0 {
						reg = <0>;
						liimx568_csi_in0: endpoint@0 {
							port-index = <2>;
							bus-width = <4>;
							remote-endpoint = <&liimx568_imx568_out0>;
						};
					};
					port@1 {
						reg = <1>;
						liimx568_csi_out0: endpoint@1 {
							remote-endpoint = <&liimx568_vi_in0>;
						};
					};
				};
			};
		};
	};

	cam_i2cmux {
		i2c_0:i2c@0 {
			rbpcv2_imx568_a@1a {
				compatible = "sony,imx568";
				/* I2C device address */
				reg = <0x1a>;

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

				/* Physical dimensions of sensor */
				physical_w = "6.708";
				physical_h = "5.612";

				sensor_model = "imx568";

				use_sensor_mode_id = "true";

				/**
				* ==== Modes ====
				* A modeX node is required to support v4l2 driver
				* implementation with NVIDIA camera software stack
				*
				* == Signal properties ==
				*
				* phy_mode = "";
				* PHY mode used by the MIPI lanes for this device
				*
				* tegra_sinterface = "";
				* CSI Serial interface connected to tegra
				* Incase of virtual HW devices, use virtual
				* For SW emulated devices, use host
				*
				* pix_clk_hz = "";
				* Sensor pixel clock used for calculations like exposure and framerate
				*
				* readout_orientation = "0";
				* Based on camera module orientation.
				* Only change readout_orientation if you specifically
				* Program a different readout order for this mode
				*
				* == Image format Properties ==
				*
				* active_w = "";
				* Pixel active region width
				*
				* active_h = "";
				* Pixel active region height
				*
				* pixel_t = "";
				* The sensor readout pixel pattern
				*
				* line_length = "";
				* Pixel line length (width) for sensor mode.
				*
				* == Source Control Settings ==
				*
				* Gain factor used to convert fixed point integer to float
				* Gain range [min_gain/gain_factor, max_gain/gain_factor]
				* Gain step [step_gain/gain_factor is the smallest step that can be configured]
				* Default gain [Default gain to be initialized for the control.
				*     use min_gain_val as default for optimal results]
				* Framerate factor used to convert fixed point integer to float
				* Framerate range [min_framerate/framerate_factor, max_framerate/framerate_factor]
				* Framerate step [step_framerate/framerate_factor is the smallest step that can be configured]
				* Default Framerate [Default framerate to be initialized for the control.
				*     use max_framerate to get required performance]
				* Exposure factor used to convert fixed point integer to float
				* For convenience use 1 sec = 1000000us as conversion factor
				* Exposure range [min_exp_time/exposure_factor, max_exp_time/exposure_factor]
				* Exposure step [step_exp_time/exposure_factor is the smallest step that can be configured]
				* Default Exposure Time [Default exposure to be initialized for the control.
				*     Set default exposure based on the default_framerate for optimal exposure settings]
				*
				* gain_factor = ""; (integer factor used for floating to fixed point conversion)
				* min_gain_val = ""; (ceil to integer)
				* max_gain_val = ""; (ceil to integer)
				* step_gain_val = ""; (ceil to integer)
				* default_gain = ""; (ceil to integer)
				* Gain limits for mode
				*
				* exposure_factor = ""; (integer factor used for floating to fixed point conversion)
				* min_exp_time = ""; (ceil to integer)
				* max_exp_time = ""; (ceil to integer)
				* step_exp_time = ""; (ceil to integer)
				* default_exp_time = ""; (ceil to integer)
				* Exposure Time limits for mode (sec)
				*
				* framerate_factor = ""; (integer factor used for floating to fixed point conversion)
				* min_framerate = ""; (ceil to integer)
				* max_framerate = ""; (ceil to integer)
				* step_framerate = ""; (ceil to integer)
				* default_framerate = ""; (ceil to integer)
				* Framerate limits for mode (fps)
				*
				* embedded_metadata_height = "";
				* Sensor embedded metadata height in units of rows.
				* If sensor does not support embedded metadata value should be 0.
				*/
				mode0 { /* imx568_MODE_2448*2048_79FPS */
					mclk_khz = "37125";
					num_lanes = "4";
					tegra_sinterface = "serial_c";
					phy_mode = "DPHY";
					discontinuous_clk = "no";
					dpcm_enable = "false";
					cil_settletime = "0";
					lane_polarity = "6";

					active_w = "2448";
					active_h = "2048";
					mode_type = "bayer";
					pixel_phase = "rggb";
					dynamic_pixel_bit_depth = "10";
					csi_pixel_bit_depth = "10";
					readout_orientation = "0";
					line_length = "2472";
					inherent_gain = "1";
					mclk_multiplier = "2"; 
					pix_clk_hz = "475200000"; 
					// serdes_pix_clk_hz = "190080000";
					gain_factor = "10";
					framerate_factor = "1000";
					exposure_factor = "1000000";
					min_gain_val = "1"; 	/* dB */
					max_gain_val = "480"; /* dB */
					step_gain_val = "10";  /* 0.1 */
					default_gain = "480"; /*  */
					min_hdr_ratio = "1";
					max_hdr_ratio = "1";
					min_framerate = "10000000"; /* 10.0 fps */
					max_framerate = "79200000"; /* 79.0 fps */
					step_framerate = "1";
					default_framerate = "79200000"; 
					min_exp_time = "5"; /* us, min_exp_time = (minimum coarse integration time) × line_length / pix_clk_hz × 1000000 */
					max_exp_time = "1000000"; /* us */
					step_exp_time = "1";
					default_exp_time = "1000"; /* us */

					embedded_metadata_height = "0";
				};
		
				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					port@0 {
						reg = <0>;
						liimx568_imx568_out0: endpoint {
							port-index = <2>;
							bus-width = <4>;
							remote-endpoint = <&liimx568_csi_in0>;
							};
						};
					};
				};
		};
	};

	lens_imx568@RBPCV2 {
		min_focus_distance = "0.0";
		hyper_focal = "0.0";
		focal_length = "3.04";
		f_number = "2.0";
		aperture = "0.0";
	};
};

/ {

	tegra-camera-platform {
		compatible = "nvidia, tegra-camera-platform";
		/**
		* Physical settings to calculate max ISO BW
		*
		* num_csi_lanes = <>;
		* Total number of CSI lanes when all cameras are active
		*
		* max_lane_speed = <>;
		* Max lane speed in Kbit/s
		*
		* min_bits_per_pixel = <>;
		* Min bits per pixel
		*
		* vi_peak_byte_per_pixel = <>;
		* Max byte per pixel for the VI ISO case
		*
		* vi_bw_margin_pct = <>;
		* Vi bandwidth margin in percentage
		*
		* max_pixel_rate = <>;
		* Max pixel rate in Kpixel/s for the ISP ISO case
		*
		* isp_peak_byte_per_pixel = <>;
		* Max byte per pixel for the ISP ISO case
		*
		* isp_bw_margin_pct = <>;
		* Isp bandwidth margin in percentage
		*/
		num_csi_lanes = <4>;
		max_lane_speed = <1500000>;
		min_bits_per_pixel = <10>;
		vi_peak_byte_per_pixel = <2>;
		vi_bw_margin_pct = <25>;
		isp_peak_byte_per_pixel = <5>;
		isp_bw_margin_pct = <25>;

		/**
		 * The general guideline for naming badge_info contains 3 parts, and is as follows,
		 * The first part is the camera_board_id for the module; if the module is in a FFD
		 * platform, then use the platform name for this part.
		 * The second part contains the position of the module, ex. "rear" or "front".
		 * The third part contains the last 6 characters of a part number which is found
		 * in the module's specsheet from the vender.
		 */
		modules {
			cam_module0: module0 {
				badge = "jakku_front_RBP194";
				position = "front";
				orientation = "1";
				cam_module0_drivernode0: drivernode0 {
					pcl_id = "v4l2_sensor";
					devname = "imx568 9-0010";
					proc-device-tree = "/proc/device-tree/cam_i2cmux/i2c@0/rbpcv2_imx568_a@1a";
				};
				cam_module0_drivernode1: drivernode1 {
					pcl_id = "v4l2_lens";
					proc-device-tree = "/proc/device-tree/lens_imx568@RBPCV2/";
				};
			};
		};
	};
};

trace log:

# tracer: nop
#
# entries-in-buffer/entries-written: 13/13   #P:4
#
#                                _-----=> irqs-off
#                               / _----=> need-resched
#                              | / _---=> hardirq/softirq
#                              || / _--=> preempt-depth
#                              ||| /     delay
#           TASK-PID     CPU#  ||||   TIMESTAMP  FUNCTION
#              | |         |   ||||      |         |
     kworker/1:3-127     [001] ....    60.435955: rtcpu_dbg_set_loglevel: tstamp:2471063692 old:0 new:3
     kworker/1:3-127     [001] ....    60.435961: rtcpu_dbg_exit: tstamp:2471063864
     kworker/1:2-126     [001] ....    65.484179: rtcpu_string: tstamp:2630271171 id:0x04010000 str:"VM0 deactivating."
     kworker/1:3-127     [001] ....   261.519469: rtcpu_string: tstamp:8755037558 id:0x04010000 str:"VM0 activating."
     kworker/1:3-127     [001] ....   261.519473: rtcpu_vinotify_event: tstamp:8755703399 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:280165333312 data:0x759e300010000000
     kworker/1:3-127     [001] ....   261.519474: rtcpu_vinotify_event: tstamp:8755703557 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:280165339840 data:0x0000000031000001
     kworker/1:3-127     [001] ....   261.519474: rtcpu_vinotify_event: tstamp:8755703711 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:280165385568 data:0x759e2d0010000000
     kworker/1:3-127     [001] ....   261.519474: rtcpu_vinotify_event: tstamp:8755703845 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:280165392128 data:0x0000000031000002
     kworker/1:3-127     [001] ....   264.207444: rtcpu_vinotify_event: tstamp:8839796565 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:282869263392 data:0x759e300010000000
     kworker/1:3-127     [001] ....   264.207447: rtcpu_vinotify_event: tstamp:8839796705 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:282869306048 data:0x0000000031000001
     kworker/1:3-127     [001] ....   264.207447: rtcpu_vinotify_event: tstamp:8839796860 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:282869323680 data:0x759e2d0010000000
     kworker/1:3-127     [001] ....   264.207448: rtcpu_vinotify_event: tstamp:8839796993 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:282869384064 data:0x0000000031000002
     kworker/1:3-127     [001] ....   272.559141: rtcpu_string: tstamp:9101115070 id:0x04010000 str:"VM0 deactivating."

Did you connect the camera to devkit? or customized sensor board?
Devkit only support 2 lanes by HW connection.

This is the interface diagram of my board, which is the same as the Jetson Orin Nano Developer Kit baseboard interface.

OK, the trace log show didn’t receive any validate data from sensor.
Maybe need to probe the signal to confirm.

1 Like

When capturing images, the test data line and clock undergo changes, and the output clock frequency is equal to the frame rate. However, images still cannot be captured. What could be the reason for this?

CSI2_CLK_P/CSI2_CLK_N:

lanes data:

Could you dump the device tree to confirm the config.

sudo dtc -I fs -O dts -o extracted_proc.dts /proc/device-tree

dumped device tree, Could you please help me confirm if there is any issue with the device tree?

dump.txt (427.6 KB)

Didn’t find any incorrect for the port-index.
Reference to below link to disable the firewall to check the NVCSI REG.
Read below REG like “sudo busybox devmem 0x15a201dc” to check if the Word Count.

NVCSI_STREAM_*_PH_WC_0
15a101dc: NVCSI_STREAM_0_PH_WC_0                                  
15a181dc: NVCSI_STREAM_1_PH_WC_0                                  
15a201dc: NVCSI_STREAM_2_PH_WC_0                                  
15a281dc: NVCSI_STREAM_3_PH_WC_0                                  
15a301dc: NVCSI_STREAM_4_PH_WC_0                                  
15a381dc: NVCSI_STREAM_5_PH_WC_0

sudo busybox devmem The output values are all 0xFFFFFFFF. Does this have any impact?

Looks like the firewall doesn’t disable.
Check the kernel message if panic message to confirm.

How should this be handled?