For use two imx390,I used two MAX9295 connected on one MAX9296 ,I need to use virtual channel.
I foud this vc_id in the follow device tree will affect my use,but I cant`t find its parsing in the kernel code.
imx390_b@12 {
compatible = "nvidia,imx390";
reg = <0x12>;
/* Physical dimensions of sensor */
physical_w = "15.0";
physical_h = "12.5";
sensor_model ="imx390";
/* Defines number of frames to be dropped by driver internally after applying */
/* sensor crop settings. Some sensors send corrupt frames after applying */
/* crop co-ordinates */
post_crop_frame_drop = "0";
/* Convert Gain to unit of dB (decibel) befor passing to kernel driver */
use_decibel_gain = "true";
/* if true, delay gain setting by one frame to be in sync with exposure */
delayed_gain = "true";
/* enable CID_SENSOR_MODE_ID for sensor modes selection */
use_sensor_mode_id = "true";
mode0 {/*mode IMX390_MODE_1920X1080_CROP_30FPS*/
mclk_khz = "24000";
num_lanes = "4";
tegra_sinterface = "serial_a";
vc_id = "1";
when vc_id =“0”,I can open camera,although I set its virtual channel to 1 in max9296
gmsl-link {
src-csi-port = "b";
dst-csi-port = "b";
serdes-csi-link = "b";
csi-mode = "1x4";
st-vc = <0>;
vc-id = <1>;
num-lanes = <4>;
streams = "raw12";
};
};