We defined both 2 and 4 lane modes for our camera sensor. The bus widths of the VI and CSI are set to 4.
Streaming works as expected with gstreamer using nvarguscamerasrc.
However v4l2 streaming (tested with v4l2-ctl) only works for the 4 lane mode.
Is it possible to make the v4l2 stream work for both 2 lane and 4 lane modes using the same device tree setup?
let me double check…
you’re trying to have different sensor mode index with 2-lane and 4-lane configuration, right?
please see-also developer guide, especially the Device Properties section.
for instance, v4l2 by default selects a mode based on resolution, color format, and frame rate.
please try adding use_sensor_mode_id = "true"; into sensor device tree to bypass the default mode selection logic.
here’s sample pipeline to run v4l2 with use_sensor_mode_id for mode selection,
i.e. $ v4l2-ctl -d /dev/video0 --set-fmt-video=width=1280,height=720,pixelformat=RG10 --set-ctrl bypass_mode=0 --set-ctrl sensor_mode=4 --stream-mmap --stream-count=100