DTS for CSI virtual channel

Hi,

We are trying to integrate the NVP6324 IC to Jetson TX2 NX. We made a custom carrier board and connected the NVP to CSI 4 (serial_e) and I2C-2. NVP uses 4 Virtual Channels over the CSI, so my first question is about the Video Input DTS node. The “num-channels” in this case would be 4? Is that correct?

/ {
	host1x {
		vi@15700000 {
			num-channels = <4>; 
			ports {
				#address-cells = <1>;
				#size-cells = <0>;
				port@0 {
					reg = <0>;
					imx390_vi_in0: endpoint {
						vc-id = <0>;  
						port-index = <4>; 
						bus-width = <4>; 
						remote-endpoint = <&imx390_csi_out0>;
					};
				};
				port@1 {
					reg = <1>;
					imx390_vi_in1: endpoint {
						vc-id = <1>;
						port-index = <4>;
						bus-width = <4>;
						remote-endpoint = <&imx390_csi_out1>;
					};
				};
				port@2 {
					reg = <2>;
					imx390_vi_in2: endpoint {
						vc-id = <2>;
						port-index = <4>;
						bus-width = <4>;
						remote-endpoint = <&imx390_csi_out2>;
					};
				};
				port@3 {
					reg = <3>;
					imx390_vi_in3: endpoint {
						vc-id = <3>;
						port-index = <4>;
						bus-width = <4>;
						remote-endpoint = <&imx390_csi_out3>;
					};
				};
			};
		};

About the DTS I2c node, how can I configure 4 “dev-node” (video0, video1, video2, video3) using only one i2c interface? Any idea?

Regards.

Yes, num-channels is 4
You can using fake i2c slave address and handle it in your driver.