Device Tree for CSI MIPI

In the ‘cam_i2cmux’ node, if I put the regulator values below and when I execute ‘ls /dev/video0’, the Xavier NX Dev can’t detect the device.

avdd-reg = “vana”;
iovdd-reg = “vif”;
dvdd-reg = “vdig”;
vcmvdd-reg = “vvcm”;

However, if I comment those values, it detect the device.

Any help for this?

Have check the detail for the port-index and any others properties.

https://docs.nvidia.com/jetson/archives/l4t-archived/l4t-3261/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/camera_sensor_prog.47.1.html#wwpID0E0B50HA

Thank you.

When I set the code like below, I get the error like in the picture.

mode_type = “yuv”;
pixel_phase = “uyvy”;

Do you have any clue for this?

Do the device driver have problem?

Does the “csi_pixel_bit_depth” set as 16?
Have check the error message from it6911uxc to know what reason print the error.

What does 16 means for csi_pixel_bit_depth?

I have set the values like below.

cam_i2cmux{
	compatible = "i2c-mux-gpio";
	#address-cells = <1>;
	#size-cells = <0>;
	i2c-parent = <&cam_i2c>;			
	mux-gpios = <&tegra_aon_gpio CAM_I2C_MUX GPIO_ACTIVE_HIGH>;
	i2c@0 {
		reg = <0>;
		#address-cells = <1>;
		#size-cells = <0>;
		rbpcv2_lt6911uxc_a@2b {
			compatible = "nvidia,lt6911uxc";
			reg = <0x2b>;
			reset-gpios = <&tegra_main_gpio CAM0_PWDN GPIO_ACTIVE_HIGH>;
			//avdd-reg = "vana";
			//iovdd-reg = "vif";
			//dvdd-reg = "vdig";
			//vcmvdd-reg = "vvcm";
			physical_w = "3.674";
                            physical_h = "2.738";
			sensor_model = "lt6911uxc";
			set_mode_delay_ms = "150";
			use_sensor_mode_id = "false";
			status = "okay";
			
			mode0 {
				mclk_khz = "335996";
				num_lanes = "2";
				tegra_sinterface = "serial_a";
				phy_mode = "DPHY";
				discontinuous_clk = "no";
				cil_settletime = "0";
				dpcm_enable = "false";

				active_w = "1920";
				active_h = "1080";
				
				mode_type = "yuv";
				readout_orientation = "0";
				csi_pixel_bit_depth = "24";

				pixel_phase = "uyvy";
				line_length = "1920";
				//mclk_multiplier = "24";
				pix_clk_hz = "148500000";
				inherent_gain = "1";

				gain_factor = "16";
				framerate_factor = "1000000";
				exposure_factor = "1000000";
				min_gain_val = "16"; /* 1.00x */
				max_gain_val = "170"; /* 10.66x */
				step_gain_val = "1";
				default_gain = "16"; /* 1.00x */
				min_hdr_ratio = "1";
				max_hdr_ratio = "1";
				min_framerate = "2000000"; /* 2.0 fps */
				max_framerate = "60000000"; /* 60.0 fps */
				step_framerate = "1";
				default_framerate = "60000000"; /* 60.0 fps */
				min_exp_time = "13"; /* us */
				max_exp_time = "683709"; /* us */
				step_exp_time = "1";
				default_exp_time = "16667"; /* us  */
				
				embedded_metadata_height = "0";
			};
			
			ports {
				#address-cells = <1>;
				#size-cells = <0>;
				port@0 {
					reg = <0>;
					rbpcv2_lt6911uxc_out0: endpoint {
						status = "okay";
						port-index = <0>;
						bus-width = <2>;
						remote-endpoint = <&rbpcv2_lt6911uxc_csi_in0>;
					};
				};
			};				
		};
	};
	
};

The csi_pixel_bit_depth should be 16 for YUV422

Does it mean 16bit YUV?

Yes

What value do I have to set if I use YUV422 8-bit?

If I set csi_pixel_bit_depth as 8, the device didn’t detected.

Do you have any clue for this?

Thanks,

16 for YUV422 8-bit