Imx415 mipi module doesn't work properly

Hello. I am using the ORIN NX Devkit.
The version of Jetpack is 6.2.2+b24

I have purchased the IMX415 MIPI module and want to use it with ORIN NX. The module is functional, and I have tested it on RK35xx modules.
However, to use it with ORIN NX, you need to write your own driver. I have adapted the existing IMX477 driver by removing unnecessary features and focusing on receiving images in a single mode.

The power supply and transfer of configuration registers to the module are successful, but there is a problem with the CSI data transfer (as far as I understand).

I am using 4-lane mode (CSI2, CSI3).
The camera is connected to CAM1 (J21).

I am currently receiving the following errors:

 kworker/2:2-21771   [002] ....... 763418.459221: rtcpu_string: tstamp:23857395397773 id:0x04010000 str:"VM0 deactivating."
 kworker/2:2-21771   [002] ....... 763428.490920: rtcpu_string: tstamp:23857710134368 id:0x04010000 str:"VM0 activating."
 kworker/2:2-21771   [002] ....... 763428.546922: rtcpu_vinotify_event: tstamp:23857710777563 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:763446728803168 data:0x799e300010000000
 kworker/2:2-21771   [002] ....... 763428.546924: rtcpu_vinotify_event: tstamp:23857710777699 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:763446728809568 data:0x0000000031000001
 kworker/2:2-21771   [002] ....... 763428.546925: rtcpu_vinotify_event: tstamp:23857710777856 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:763446728812608 data:0x0000000007020001
 kworker/2:2-21771   [002] ....... 763428.546925: rtcpu_vinotify_event: tstamp:23857710777991 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:763446728855264 data:0x799e2d0010000000
 kworker/2:2-21771   [002] ....... 763428.546926: rtcpu_vinotify_event: tstamp:23857710778143 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:763446728861760 data:0x0000000031000002
 kworker/2:2-21771   [002] ....... 763428.602910: rtcpu_nvcsi_intr: tstamp:23857713154914 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602911: rtcpu_nvcsi_intr: tstamp:23857713154914 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602912: rtcpu_nvcsi_intr: tstamp:23857713172043 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602913: rtcpu_nvcsi_intr: tstamp:23857713172043 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602913: rtcpu_nvcsi_intr: tstamp:23857713177598 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602914: rtcpu_nvcsi_intr: tstamp:23857713177598 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602915: rtcpu_nvcsi_intr: tstamp:23857713215097 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602915: rtcpu_nvcsi_intr: tstamp:23857713215097 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602916: rtcpu_nvcsi_intr: tstamp:23857713229910 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602916: rtcpu_nvcsi_intr: tstamp:23857713229910 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602917: rtcpu_nvcsi_intr: tstamp:23857713261855 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602918: rtcpu_nvcsi_intr: tstamp:23857713261855 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602918: rtcpu_nvcsi_intr: tstamp:23857713267410 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602919: rtcpu_nvcsi_intr: tstamp:23857713267410 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602920: rtcpu_nvcsi_intr: tstamp:23857713299355 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602920: rtcpu_nvcsi_intr: tstamp:23857713299355 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602921: rtcpu_nvcsi_intr: tstamp:23857713357223 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602922: rtcpu_nvcsi_intr: tstamp:23857713357223 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602922: rtcpu_nvcsi_intr: tstamp:23857713389163 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602923: rtcpu_nvcsi_intr: tstamp:23857713389163 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602923: rtcpu_nvcsi_intr: tstamp:23857713411850 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602924: rtcpu_nvcsi_intr: tstamp:23857713411850 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602925: rtcpu_nvcsi_intr: tstamp:23857713464162 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602925: rtcpu_nvcsi_intr: tstamp:23857713464162 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602926: rtcpu_nvcsi_intr: tstamp:23857713509067 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602927: rtcpu_nvcsi_intr: tstamp:23857713509067 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602927: rtcpu_nvcsi_intr: tstamp:23857713516476 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
 kworker/2:2-21771   [002] ....... 763428.602928: rtcpu_nvcsi_intr: tstamp:23857713516476 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080

Here is my dtsi file, which was made according to imx415 datasheet and imx477 dtsi example:

#define CAM0_PWDN	TEGRA234_MAIN_GPIO(H, 6)
#define CAM1_PWDN	TEGRA234_MAIN_GPIO(AC, 0)
#define CAM_I2C_MUX 	TEGRA234_AON_GPIO(CC, 3)

#include <dt-bindings/tegra234-p3767-0000-common.h>

// here we describe sequence imx415 -> NVCSI -> VI



/ {
	overlay-name = "Camera IMX415-A";
	jetson-header-name = "Jetson 22pin CSI Connector";
	compatible = JETSON_COMPATIBLE_P3768;
	/* IMX415 connected to cam1 port */

	fragment@0 {
		target-path = "/";
		__overlay__ {
			tegra-capture-vi  {
				num-channels = <1>;
				ports {
					#address-cells = <1>;
					#size-cells = <0>;
					// exit is not described here, because it's final element and data moves to dma memory for user
					port@0 {
						reg = <0>;
						iki_imx415_vi_in0: endpoint {
							port-index = <2>;
							bus-width = <4>;
							remote-endpoint = <&iki_imx415_csi_out0>;
						};
					};
				};
			};
			tegra-camera-platform {
				compatible = "nvidia, tegra-camera-platform";
				/**
				 * 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 {
					module0 {
						badge = "waveshare_front_IMX415";
						position = "front";
						orientation = "1";
						drivernode0 {
							pcl_id = "v4l2_sensor";
							sysfs-device-tree = "/sys/firmware/devicetree/base/bus@0/cam_i2cmux/i2c@1/iki_imx415_a@1a";
						};
					};
				};
			};
			bus@0 {
				host1x@13e00000 {
					nvcsi@15a00000 {
						num-channels = <1>;
						#address-cells = <1>;
						#size-cells = <0>;
						channel@0 {
							reg = <0>;
							ports {
								#address-cells = <1>;
								#size-cells = <0>;
								port@0 {
									reg = <0>;
									iki_imx415_csi_in0: endpoint@0 {
										port-index = <2>;
										bus-width = <4>;
										remote-endpoint = <&iki_imx415_out0>;
									};
								};
								port@1 {
									reg = <1>;
									iki_imx415_csi_out0: endpoint@1 {
										remote-endpoint = <&iki_imx415_vi_in0>;
									};
								};
							};
						};
					};
				};
				cam_i2cmux {
					status = "okay";
					compatible = "i2c-mux-gpio";
					#address-cells = <1>;
					#size-cells = <0>;
					mux-gpios = <&gpio_aon CAM_I2C_MUX GPIO_ACTIVE_HIGH>;
					i2c-parent = <&cam_i2c>;
					i2c@0 {
						status = "okay";
						reg = <0>;
						#address-cells = <1>;
						#size-cells = <0>;
						rbpcv2_imx219_a@10 {
							status = "disabled";
						};
						
					};
					i2c@1 {
						status = "okay";
						reg = <1>;
						#address-cells = <1>;
						#size-cells = <0>;
						rbpcv2_imx219_c@10 {
							status = "disabled";
						};
						iki_imx415_a@1a {
							reset-gpios = <&gpio CAM1_PWDN GPIO_ACTIVE_HIGH>;
							compatible = "iki_ran,imx415";

							/* I2C device address */
							reg = <0x1a>;
							/* V4L2 device node location */

							/* clocks = <&bpmp_clks TEGRA234_CLK_EXTPERIPH1>, <&bpmp_clks TEGRA234_CLK_PLLP_OUT0>;*/
    						/* clock-names = "extperiph1", "pllp_grtba";*/
    						/* mclk = "extperiph1";*/

							devnode = "video0";
							physical_w = "5.600";
							physical_h = "3.232";
							sensor_model = "imx415";
							use_sensor_mode_id = "true";
						
							mode0 { /* IMX415_MODE_3840x2160 */
								mclk_khz = "37125";
								num_lanes = "4";
								tegra_sinterface = "serial_c";
								phy_mode = "DPHY";
								discontinuous_clk = "no";
								dpcm_enable = "false";
								cil_settletime = "0";
								lane_polarity = "0";
								active_w = "3840";
								active_h = "2160";
								mode_type = "bayer";
								pixel_phase = "rggb";
								csi_pixel_bit_depth = "12";
								readout_orientation = "0";
								line_length = "4400";
								inherent_gain = "1";
								mclk_multiplier = "8";
								pix_clk_hz = "297000000";
								gain_factor = "10";
								framerate_factor = "1000000";
								exposure_factor = "1000000";
								min_gain_val = "0"; 
								max_gain_val = "722"; 
								step_gain_val = "1";
								default_gain = "0"; 
								min_hdr_ratio = "1";
								max_hdr_ratio = "1";
								min_framerate = "1000000"; /* 1.0 fps */
								max_framerate = "30000000"; /* 30.0 fps */
								step_framerate = "1";
								default_framerate = "30000000"; /* 30.0 fps */
								min_exp_time = "30"; /* us */
								max_exp_time = "33200"; /* us */
								step_exp_time = "1";
								default_exp_time = "5000"; /* us */
								embedded_metadata_height = "0";
							};
							ports {
								#address-cells = <1>;
								#size-cells = <0>;
								port@0 {
									reg = <0>;
									iki_imx415_out0: endpoint {
										port-index = <2>;
										bus-width = <4>;
										remote-endpoint = <&iki_imx415_csi_in0>;
									};
								};
							};
						};
					};
				};
				gpio@6000d000 {
					camera-control-output-low {
						gpio-hog;
						output-low;
						gpios = <CAM1_PWDN 0  CAM0_PWDN 0>;
						label = "cam1-pwdn", "cam0-pwdn";
					};
				};
			};
		};
	};
};

I’ve tried various dtsi config settings, but I don’t know what else to try. I hope you can help me.

— 🤖 This is an automated AI response. I’m here to help, but please verify important details! —

Based on the provided context, I can see that you are experiencing issues with the IMX415 MIPI module on the Jetson Orin NX Devkit. The error messages you provided indicate that there are problems with the CSI data transfer.

Looking at your dtsi file, I notice that you have set the num_lanes to 4, which is correct for the IMX415 module. However, I also see that you have set the lane_polarity to 0, which might be the cause of the issue.

According to the IMX415 datasheet, the lane polarity should be set to 6 for 4-lane mode. I would recommend trying to set the lane_polarity to 6 in your dtsi file and see if that resolves the issue.

Additionally, I would like to suggest that you try to probe the sensor output signal to confirm that it is working correctly. You can use a logic analyzer or an oscilloscope to check the signal.

If you are still experiencing issues after trying these suggestions, please provide more information about your setup and the exact error messages you are seeing, and I will do my best to help you troubleshoot the issue.

Here is an example of how you can modify your dtsi file to set the lane_polarity to 6:

iki_imx415_a@1a {
    ...
    lane_polarity = <6>;
    ...
};

Please note that you should also verify that the port-index and tegra_sinterface settings are correct for your setup.

— We support team will also look into your issue to have further suggestions soon. please stay tuned. —

Hello! Thanks for your reply. I have already tried lane_polarity change, but it does not helped.
I tried again just now, no result:

bronstein@bronstein-desktop:~$ cat /proc/device-tree/bus@0/cam_i2cmux/i2c@1/iki_imx415_a@1a/mode0/lane_polarity 2>/dev/null
6bronstein@bronstein-desktop:~$head -n 100 /home/bronstein/trace_logs14
# tracer: nop
#
# entries-in-buffer/entries-written: 17419/17419   #P:4
#
#                                _-------=> irqs-off
#                               / _------=> need-resched
#                              | / _-----=> need-resched-lazy
#                              || / _----=> hardirq/softirq
#                              ||| / _---=> preempt-depth
#                              |||| / _--=> preempt-lazy-depth
#                              ||||| / _-=> migrate-disable
#                              |||||| /     delay
#           TASK-PID     CPU#  |||||||  TIMESTAMP  FUNCTION
#              | |         |   |||||||      |         |
     kworker/2:1-58      [002] .......    72.303816: rtcpu_string: tstamp:2901804745 id:0x04010000 str:"VM0 deactivating."
     kworker/2:1-58      [002] .......    76.403685: rtcpu_string: tstamp:3030474347 id:0x04010000 str:"VM0 activating."
     kworker/2:1-58      [002] .......    76.459681: rtcpu_vinotify_event: tstamp:3031134168 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:96980263072 data:0x799e300010000000
     kworker/2:1-58      [002] .......    76.459683: rtcpu_vinotify_event: tstamp:3031134308 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:96980269472 data:0x0000000031000001
     kworker/2:1-58      [002] .......    76.459684: rtcpu_vinotify_event: tstamp:3031134467 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:96980272544 data:0x0000000007020001
     kworker/2:1-58      [002] .......    76.459685: rtcpu_vinotify_event: tstamp:3031134604 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:96980319648 data:0x799e2d0010000000
     kworker/2:1-58      [002] .......    76.459685: rtcpu_vinotify_event: tstamp:3031134758 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:96980326112 data:0x0000000031000002
     kworker/2:1-58      [002] .......    76.515672: rtcpu_nvcsi_intr: tstamp:3033523144 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:1-58      [002] .......    76.515673: rtcpu_nvcsi_intr: tstamp:3033523144 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:1-58      [002] .......    76.515674: rtcpu_nvcsi_intr: tstamp:3033532865 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:1-58      [002] .......    76.515675: rtcpu_nvcsi_intr: tstamp:3033532865 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:1-58      [002] .......    76.515676: rtcpu_nvcsi_intr: tstamp:3033540272 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:1-58      [002] .......    76.515676: rtcpu_nvcsi_intr: tstamp:3033540272 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:1-58      [002] .......    76.515677: rtcpu_nvcsi_intr: tstamp:3033555548 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:1-58      [002] .......    76.515678: rtcpu_nvcsi_intr: tstamp:3033555548 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:1-58      [002] .......    76.515679: rtcpu_nvcsi_intr: tstamp:3033572677 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:1-58      [002] .......    76.515679: rtcpu_nvcsi_intr: tstamp:3033572677 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:1-58      [002] .......    76.515680: rtcpu_nvcsi_intr: tstamp:3033595363 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:1-58      [002] .......    76.515681: rtcpu_nvcsi_intr: tstamp:3033595363 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:1-58      [002] .......    76.515681: rtcpu_nvcsi_intr: tstamp:3033633324 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:1-58      [002] .......    76.515682: rtcpu_nvcsi_intr: tstamp:3033633324 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:1-58      [002] .......    76.515683: rtcpu_nvcsi_intr: tstamp:3033682860 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:1-58      [002] .......    76.515683: rtcpu_nvcsi_intr: tstamp:3033682860 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:1-58      [002] .......    76.515684: rtcpu_nvcsi_intr: tstamp:3033737949 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:1-58      [002] .......    76.515685: rtcpu_nvcsi_intr: tstamp:3033737949 class:CORRECTABLE_ERR type:PHY_INTR phy:1 cil:0 st:0 vc:0 status:0x00000080
     kworker/2:1-58      [002] .......    76.515685: rtcpu_nvcsi_intr: tstamp:3033745356 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000080

what about port-index and tegra_sinterface, i use CSI2, CSI3. As i understand this corresponds to tegra_sinterface = serial_c and port_index = 2. Is that correct?
now i don’t have appropriate logic analyzer or an oscilloscope, so i can’t make any check using them, but as I said, the module definitely works with RK-based chips, so it’s definitely a matter of using the ORIN NX driver settings.

hello bumatov,

that’s correct,
you should configure port-index = <2>; and tegra_sinterface = "serial_c"; to utilize CSI-2/3 (i.e. 4-lane on CSI-C)
you may ignore lane_polarity since it’s the settings for CSI-0 and CSI-1.

according to the logs.. PHY_INTR0 with the error code 0x80 it shows LP sequence error.
normally, it should follow by LP11->LP01->LP00->LP11 sequence. it’s more like a hardware issue.
please contact with sensor vendor, you may double check the power-on/off sequence as well.

I’ve made some progress; now I have different errors. Could you tell me please how to solve them?

kworker/1:2-164 [001] ....... 103.060501: rtcpu_string: tstamp:3863322220 id:0x04010000 str:"VM0 deactivating."
kworker/1:2-164 [001] ....... 113.464201: rtcpu_string: tstamp:4189198062 id:0x04010000 str:"VM0 activating."
kworker/1:2-164 [001] ....... 113.464208: rtcpu_vinotify_event: tstamp:4189900853 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:134060260832 data:0x799e30>
kworker/1:2-164 [001] ....... 113.464208: rtcpu_vinotify_event: tstamp:4189900995 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:134060267264 data:0x000000>
kworker/1:2-164 [001] ....... 113.464209: rtcpu_vinotify_event: tstamp:4189901153 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:134060270240 data:0x0000>
kworker/1:2-164 [001] ....... 113.464210: rtcpu_vinotify_event: tstamp:4189901289 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:134060317376 data:0x799e2d>
kworker/1:2-164 [001] ....... 113.464210: rtcpu_vinotify_event: tstamp:4189901451 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:134060323904 data:0x000000>
kworker/1:2-164 [001] ....... 113.632672: rtcpu_vinotify_event: tstamp:4193699196 cch:0 vi:1 tag:FS channel:0x00 frame:1 vi_tstamp:134183510048 data:0x0000000100000012
kworker/1:2-164 [001] ....... 113.632675: rtcpu_vinotify_event: tstamp:4193699360 cch:0 vi:1 tag:ATOMP_FS channel:0x00 frame:1 vi_tstamp:134183510112 data:0x000000080000>
kworker/1:2-164 [001] ....... 113.632676: rtcpu_vinotify_event: tstamp:4193699500 cch:0 vi:1 tag:CHANSEL_FAULT channel:0x23 frame:1 vi_tstamp:134183525376 data:0x0000000>
kworker/1:2-164 [001] ....... 113.632677: rtcpu_vinotify_event: tstamp:4193699658 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:1 vi_tstamp:134183582944 data:0x0000>
kworker/1:2-164 [001] ....... 113.632678: rtcpu_vinotify_event: tstamp:4193699791 cch:0 vi:1 tag:CHANSEL_NOMATCH channel:0x04 frame:1 vi_tstamp:134183540192 data:0x00000>
kworker/1:2-164 [001] ....... 113.632679: rtcpu_vinotify_event: tstamp:4193699943 cch:0 vi:1 tag:CHANSEL_FAULT channel:0x23 frame:1 vi_tstamp:134184073536 data:0x0000000>
kworker/1:2-164 [001] ....... 113.632679: rtcpu_vinotify_event: tstamp:4194259493 cch:0 vi:1 tag:CHANSEL_FAULT channel:0x23 frame:1 vi_tstamp:134216070592 data:0x0000000>
kworker/1:2-164 [001] ....... 113.632680: rtcpu_vinotify_event: tstamp:4194259646 cch:0 vi:1 tag:FE channel:0x00 frame:1 vi_tstamp:134216071008 data:0x0000000100000022
kworker/1:2-164 [001] ....... 113.632681: rtcpu_vinotify_event: tstamp:4194259782 cch:0 vi:1 tag:CHANSEL_SHORT_FRAME channel:0x04 frame:1 vi_tstamp:134216071040 data:0x0>
kworker/1:2-164 [001] ....... 113.632681: rtcpu_vinotify_event: tstamp:4194259937 cch:0 vi:1 tag:ATOMP_FE channel:0x00 frame:1 vi_tstamp:134216071104 data:0x000000080000>
kworker/1:2-164 [001] ....... 113.632682: rtcpu_vinotify_event: tstamp:4194260070 cch:0 vi:1 tag:ATOMP_FRAME_DONE channel:0x23 frame:1 vi_tstamp:134216071616 data:0x0000>
kworker/1:2-164 [001] ....... 113.632683: rtcpu_vinotify_event: tstamp:4194784126 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:134216217568 data:0x0000>
kworker/1:2-164 [001] ....... 113.632684: rtcpu_vinotify_event: tstamp:4194784262 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:134216380032 data:0x799e30>
kworker/1:2-164 [001] ....... 113.632684: rtcpu_vinotify_event: tstamp:4194784417 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:134216422752 data:0x000000>
kworker/1:2-164 [001] ....... 113.632685: rtcpu_vinotify_event: tstamp:4194784550 cch:0 vi:1 tag:FS channel:0x00 frame:2 vi_tstamp:134216842304 data:0x0000000200000012
kworker/1:2-164 [001] ....... 113.632686: rtcpu_vinotify_event: tstamp:4194784704 cch:0 vi:1 tag:ATOMP_FS channel:0x00 frame:2 vi_tstamp:134216842400 data:0x000000080000>
kworker/1:2-164 [001] ....... 113.632686: rtcpu_vinotify_event: tstamp:4194784838 cch:0 vi:1 tag:CHANSEL_FAULT channel:0x23 frame:2 vi_tstamp:134216857632 data:0x0000000>
kworker/1:2-164 [001] ....... 113.632687: rtcpu_vinotify_event: tstamp:4194785001 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:2 vi_tstamp:134216915200 data:0x0000>
kworker/1:2-164 [001] ....... 113.632688: rtcpu_vinotify_event: tstamp:4194785136 cch:0 vi:1 tag:CHANSEL_NOMATCH channel:0x04 frame:2 vi_tstamp:134216872448 data:0x00000

Thanks for the detailed troubleshooting so far. I can see you’ve made progress with the device tree configuration and the moderators have provided solid guidance on port-index and tegra_sinterface settings.

To help narrow down the CSI data transfer errors you’re encountering, I need a few more details:

  1. New errors in post #7: Can you share the exact kernel log excerpts or error messages from your latest test? Specifically, are the rtcpu_nvcsi_intr PHY_INTR0 errors still appearing, or have they changed?

  2. Device tree verification: Have you confirmed that all the changes suggested by the moderators (particularly the port-index and tegra_sinterface settings) are correctly applied in your current device tree overlay?

  3. CSI data transfer state: Are you still seeing the same PHY_INTR0 status 0x00000080 errors, or has the error pattern shifted? Any change in frequency or timing?

  4. Isolation testing: Have you tested with a different CSI port (e.g., CAM0 instead of CAM1) or a different camera module on the same port? This would help isolate whether the issue is module-specific or port-specific.

Once I have these details, I can provide more targeted guidance on the next diagnostic steps.

hello bumatov,

it looks some of the logs has truncated. could you please gather those VI tracing logs into a single text file, attach the file for reference.

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

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