Camera stream on jetson nano CSI4 interface

Hello,

I have customer board with a camera on Interface CSI4 with 2 lanes. I have following devicetree configuration see above. The camera starts to stream but no data can be captured. I have measured the csi signals and it seems ok.

Do I need additional configurations to get CSI4 interface to work?

[ 32.689431] video4linux video0: frame start syncpt timeout!0
[ 32.695151] vi 54080000.vi: TEGRA_CSI_PIXEL_PARSER_STATUS 0x00000000
[ 32.695159] vi 54080000.vi: TEGRA_CSI_CIL_STATUS 0x00000000
[ 32.695167] vi 54080000.vi: TEGRA_CSI_CILX_STATUS 0x00000000

host1x {
	vi_base: vi {
		num-channels = <1>;
		ports {
			#address-cells = <1>;
			#size-cells = <0>;
			vi_port0: port@0 {
				reg = <0>;
				rbpcv2_imx219_vi_in0: endpoint {
					port-index = <2>;
					bus-width = <2>;
					remote-endpoint = <&rbpcv2_imx219_csi_out0>;
				};
			};
		};
	};

	csi_base: nvcsi {
		num-channels = <1>;
		#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_imx219_csi_in0: endpoint@0 {
						port-index = <2>;
						bus-width = <2>;
						remote-endpoint = <&basler_camera_out0>;
					};
				};
				csi_chan0_port1: port@1 {
					reg = <1>;
					rbpcv2_imx219_csi_out0: endpoint@1 {
						remote-endpoint = <&rbpcv2_imx219_vi_in0>;
					};
				};
			};
		};
	};
};

Modify the port-index to 4 for and tegra_sinterface = “serial_e”;
Have detail information for the device tree from below document.

https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/jetson_xavier_camera_soft_archi.html#

When I look in this document for jetson nano. I understand the mapping for the CSI Interfaces is following:
CSI0 ist port-index 0 tegra_sinterface = “serial_a”;
CSI1 ist port-index 1 tegra_sinterface = “serial_b”;
CSI2 ist port-index 4 tegra_sinterface = “serial_e”;
CSI3 ist port-index 5 tegra_sinterface = “serial_f”;
CSI4 ist port index 2 tegra_sinterface = “serial_c”;

The jetson nano devkit use CSI0 and CSI2.
Nevertheless I test with port-index 4 and get the same result.

Other configuration then the port-index to enable CSI4 is not necessary?
Or must I do a pinmux configuration for example?

CSI_C = serial_c = port-index =<2>;
CSI4_CLK_N
CSI4_CLK_P
CSI4_D0_N
CSI4_D0_P
CSI4_D1_N
CSI4_D1_P

CSI_D = serial_d = port-index =<3>;
CSI4_D2_N
CSI4_D2_P
CSI4_D3_N
CSI4_D3_P

ok I use the first one of your proposal and I capture no data.

CSI_C = serial_c = port-index =<2>;
CSI4_CLK_N
CSI4_CLK_P
CSI4_D0_N
CSI4_D0_P
CSI4_D1_N
CSI4_D1_P

I want to inform you, that I tested the csi4 port on the evk and it works like expected.
I found out that our design has a bug.

Thank you for your help.

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