Image sensor IMX219 can not run in 4lanes mode

Orin Nano+devkit+Jetson linux36.4
I replace 2lanes imx219 to 4lanes imx219 in CAM0 slot(CAM0 support 4lanes and CAM1 only support 2lanes)
modify source/hardware/nvidia/t23x/nv-public/overlay/tegra234-camera-rbpcv2-imx219.dtsi
num_lanes = “2” to num_lanes = “4”; (in 1920*1080 mode)
make dtbs and copy to $Linux_for_Tegra/kernel/dtb/
sudo ./flash.sh jetson-orin-nano-devkit-nvme internal
nvgstcapture-1.0 can not preview imx219 and get error.

nvgstcapture-1.0 --prev-res=4

Encoder null, cannot set bitrate!
Encoder Profile = High
Codec not supported. Falling back to opensrc H264 encoder
Supported resolutions in case of ARGUS Camera
(2) : 640x480
(3) : 1280x720
(4) : 1920x1080
(5) : 2104x1560
(6) : 2592x1944
(7) : 2616x1472
(8) : 3840x2160
(9) : 3896x2192
(10): 4208x3120
(11): 5632x3168
(12): 5632x4224

Runtime ARGUS Camera Commands:

Help : ‘h’
Quit : ‘q’
Set Capture Mode:
mo:
(1): image
(2): video
Get Capture Mode:
gmo
Set sensor orientation:
so:
(0): none
(1): Rotate counter-clockwise 90 degrees
(2): Rotate 180 degrees
(3): Rotate clockwise 90 degrees
Get sensor orientation:
gso
Set sensor mode:
smo: e.g., smo:1
Get sensor mode:
gsmo
Set Whitebalance Mode:
wb:
(0): off
(1): auto
(2): incandescent
(3): fluorescent
(4): warm-fluorescent
(5): daylight
(6): cloudy-daylight
(7): twilight
(8): shade
(9): manual
Get Whitebalance Mode:
gwb
Set Saturation (0 to 2):
st: e.g., st:1.25
Get Saturation:
gst
Set Exposure Compensation (-2 to 2):
ec: e.g., ec:-2
Get Exposure Compensation:
gec
Set Auto Whitebalance Lock:
awbl: e.g., awbl:0
Get Auto Whitebalance Lock:
awbl
Set Auto Exposure Lock:
ael: e.g., ael:0
Get Auto Exposure Lock:
gael
Set TNR Mode:
tnrm: e.g., tnrm:1
(0): OFF
(1): FAST
(2): HIGH QUALITY
Get TNR Mode:
gtnrm
Set TNR Strength (-1 to 1):
tnrs: e.g., tnrs:0.5
Get TNR Strength:
gtnrs
Set EE Mode:
eem: e.g., eem:1
(0): OFF
(1): FAST
(2): HIGH QUALITY
Get EE Mode:
geem
Set EE Strength (-1 to 1):
ees: e.g., ees:0.5
Get EE Strength:
gees
Set Auto Exposure Anti-Banding (0 to 3):
aeab: e.g., aeab:2
(0): OFF
(1): MODE AUTO
(2): MODE 50HZ
(3): MODE 60HZ
Get Auto Exposure Anti-Banding:
gaeab
Set Gain Range:
gr: e.g., gr:1 16
Get Gain Range:
ggr
Set Exposure Time Range:
etr: e.g., etr:34000 35000
Get Exposure Time Range:
getr
Set ISP Digital Gain Range:
dgr: e.g., dgr:2 152
Get ISP Digital Gain Range:
gdgr
Capture: enter ‘j’ OR
followed by a timer (e.g., jx5000, capture after 5 seconds) OR
followed by multishot count (e.g., j:6, capture 6 images)
timer/multihot values are optional, capture defaults to single shot with timer=0s
Start Recording : enter ‘1’
Stop Recording : enter ‘0’
Video snapshot : enter ‘2’ (While recording video)
Get Preview Resolution:
gpcr
Get Image Capture Resolution:
gicr
Get Video Capture Resolution:
gvcr

Runtime encoder configuration options:

Set Encoding Bit-rate(in bytes):
br: e.g., br:4000000
Get Encoding Bit-rate(in bytes):
gbr
Set Encoding Profile(only for H.264):
ep: e.g., ep:1
(0): Baseline
(1): Main
(2): High
Get Encoding Profile(only for H.264):
gep
Force IDR Frame on video Encoder(only for H.264):
Enter ‘f’

bitrate = 4000

Using winsys: x11
** Message: 12:18:21.934: main:4732 iterating capture loop …
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3280 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 3280 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1640 x 1232 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: Running with following settings:
Camera index = 0
Camera mode = 2
Output Stream W = 1920 H = 1080
seconds to Run = 0
Frame Rate = 29.999999
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:734 NvBufSurfaceFromFd Failed.
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:245 (propagating)

cat source/hardware/nvidia/t23x/nv-public/overlay/tegra234-camera-rbpcv2-imx219.dtsi
// SPDX-License-Identifier: GPL-2.0-only
// SPDX-FileCopyrightText: Copyright (c) 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.

include <dt-bindings/clock/tegra234-clock.h>
include <dt-bindings/gpio/tegra234-gpio.h>

/ {
fragment-camera@0 {
target-path = “/”;
overlay {
tegra-capture-vi {
num-channels = <2>;
ports {
#address-cells = <1>;
#size-cells = <0>;
vi_port0: port@0 {
reg = <0>;
rbpcv2_imx219_vi_in0: endpoint {
port-index = <1>;
bus-width = <2>;
remote-endpoint = <&rbpcv2_imx219_csi_out0>;
};
};
vi_port1: port@1 {
reg = <1>;
rbpcv2_imx219_vi_in1: endpoint {
port-index = <2>;
bus-width = <2>;
remote-endpoint = <&rbpcv2_imx219_csi_out1>;
};
};
};
};

                    bus@0 {
                            host1x@13e00000 {
                                    nvcsi@15a00000 {
                                            num-channels = <2>;
                                            #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 = <1>;
                                                                            bus-width = <2>;
                                                                            remote-endpoint = <&rbpcv2_imx219_out0>;
                                                                    };
                                                            };
                                                            csi_chan0_port1: port@1 {
                                                                    reg = <1>;
                                                                    rbpcv2_imx219_csi_out0: endpoint@1 {
                                                                            remote-endpoint = <&rbpcv2_imx219_vi_in0>;
                                                                    };
                                                            };
                                                    };
                                            };
                                            csi_chan1: channel@1 {
                                                    reg = <1>;
                                                    ports {
                                                            #address-cells = <1>;
                                                            #size-cells = <0>;
                                                            csi_chan1_port0: port@0 {
                                                                    reg = <0>;
                                                                    rbpcv2_imx219_csi_in1: endpoint@2 {
                                                                            port-index = <2>;
                                                                            bus-width = <2>;
                                                                            remote-endpoint = <&rbpcv2_imx219_out1>;
                                                                    };
                                                            };
                                                            csi_chan1_port1: port@1 {
                                                                    reg = <1>;
                                                                    rbpcv2_imx219_csi_out1: endpoint@3 {
                                                                            remote-endpoint = <&rbpcv2_imx219_vi_in1>;
                                                                    };
                                                            };
                                                    };
                                            };
                                    };
                            };
                            cam_i2cmux {
                                    i2c_0:i2c@0 {
                                            imx219_cam0: rbpcv2_imx219_a@10 {
                                                    compatible = "sony,imx219";
                                                    /* I2C device address */
                                                    reg = <0x10>;
                                                    /* V4L2 device node location */
                                                    devnode = "video0";
                                                    /* Physical dimensions of sensor */
                                                    physical_w = "3.680";
                                                    physical_h = "2.760";
                                                    sensor_model = "imx219";
                                                    use_sensor_mode_id = "true";
                                                    /**
                                                    * ==== Modes ====
                                                    * A modeX node is required to support v4l2 driver
                                                    * implementation with NVIDIA camera software stack
                                                    *
                                                    * == Signal properties ==
                                                    *
                                                    * phy_mode = "";
                                                    * PHY mode used by the MIPI lanes for this device
                                                    *
                                                    * tegra_sinterface = "";
                                                    * CSI Serial interface connected to tegra
                                                    * Incase of virtual HW devices, use virtual
                                                    * For SW emulated devices, use host
                                                    *
                                                    * pix_clk_hz = "";
                                                    * Sensor pixel clock used for calculations like exposure and framerate
                                                    *
                                                    * readout_orientation = "0";
                                                    * Based on camera module orientation.
                                                    * Only change readout_orientation if you specifically
                                                    * Program a different readout order for this mode
                                                    *
                                                    * == Image format Properties ==
                                                    *
                                                    * active_w = "";
                                                    * Pixel active region width
                                                    *
                                                    * active_h = "";
                                                    * Pixel active region height
                                                    *
                                                    * pixel_t = "";
                                                    * The sensor readout pixel pattern
                                                    *
                                                    * line_length = "";
                                                    * Pixel line length (width) for sensor mode.
                                                    *
                                                    * == Source Control Settings ==
                                                    *
                                                    * Gain factor used to convert fixed point integer to float
                                                    * Gain range [min_gain/gain_factor, max_gain/gain_factor]
                                                    * Gain step [step_gain/gain_factor is the smallest step that can be configured]
                                                    * Default gain [Default gain to be initialized for the control.
                                                    *     use min_gain_val as default for optimal results]
                                                    * Framerate factor used to convert fixed point integer to float
                                                    * Framerate range [min_framerate/framerate_factor, max_framerate/framerate_factor]
                                                    * Framerate step [step_framerate/framerate_factor is the smallest step that can be configured]
                                                    * Default Framerate [Default framerate to be initialized for the control.
                                                    *     use max_framerate to get required performance]
                                                    * Exposure factor used to convert fixed point integer to float
                                                    * For convenience use 1 sec = 1000000us as conversion factor
                                                    * Exposure range [min_exp_time/exposure_factor, max_exp_time/exposure_factor]
                                                    * Exposure step [step_exp_time/exposure_factor is the smallest step that can be configured]
                                                    * Default Exposure Time [Default exposure to be initialized for the control.
                                                    *     Set default exposure based on the default_framerate for optimal exposure settings]
                                                    *
                                                    * gain_factor = ""; (integer factor used for floating to fixed point conversion)
                                                    * min_gain_val = ""; (ceil to integer)
                                                    * max_gain_val = ""; (ceil to integer)
                                                    * step_gain_val = ""; (ceil to integer)
                                                    * default_gain = ""; (ceil to integer)
                                                    * Gain limits for mode
                                                    *
                                                    * exposure_factor = ""; (integer factor used for floating to fixed point conversion)
                                                    * min_exp_time = ""; (ceil to integer)
                                                    * max_exp_time = ""; (ceil to integer)
                                                    * step_exp_time = ""; (ceil to integer)
                                                    * default_exp_time = ""; (ceil to integer)
                                                    * Exposure Time limits for mode (sec)
                                                    *
                                                    * framerate_factor = ""; (integer factor used for floating to fixed point conversion)
                                                    * min_framerate = ""; (ceil to integer)
                                                    * max_framerate = ""; (ceil to integer)
                                                    * step_framerate = ""; (ceil to integer)
                                                    * default_framerate = ""; (ceil to integer)
                                                    * Framerate limits for mode (fps)
                                                    *
                                                    * embedded_metadata_height = "";
                                                    * Sensor embedded metadata height in units of rows.
                                                    * If sensor does not support embedded metadata value should be 0.
                                                    */
                                                    mode0 { /* IMX219_MODE_3280x2464_21FPS */
                                                            mclk_khz = "24000";
                                                            num_lanes = "2";
                                                            tegra_sinterface = "serial_b";
                                                            lane_polarity = "6";
                                                            phy_mode = "DPHY";
                                                            discontinuous_clk = "yes";
                                                            dpcm_enable = "false";
                                                            cil_settletime = "0";
                                                            active_w = "3280";
                                                            active_h = "2464";
                                                            mode_type = "bayer";
                                                            pixel_phase = "rggb";
                                                            csi_pixel_bit_depth = "10";
                                                            readout_orientation = "90";
                                                            line_length = "3448";
                                                            inherent_gain = "1";
                                                            mclk_multiplier = "9.33";
                                                            pix_clk_hz = "182400000";
                                                            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 = "21000000"; /* 21.0 fps */
                                                            step_framerate = "1";
                                                            default_framerate = "21000000"; /* 21.0 fps */
                                                            min_exp_time = "13"; /* us */
                                                            max_exp_time = "683709"; /* us */
                                                            step_exp_time = "1";
                                                            default_exp_time = "2495"; /* us */
                                                            embedded_metadata_height = "2";
                                                    };
                                                    mode1 { /* IMX219_MODE_3280x1848_28FPS */
                                                            mclk_khz = "24000";
                                                            num_lanes = "2";
                                                            tegra_sinterface = "serial_b";
                                                            lane_polarity = "6";
                                                            phy_mode = "DPHY";
                                                            discontinuous_clk = "yes";
                                                            dpcm_enable = "false";
                                                            cil_settletime = "0";
                                                            active_w = "3280";
                                                            active_h = "1848";
                                                            mode_type = "bayer";
                                                            pixel_phase = "rggb";
                                                            csi_pixel_bit_depth = "10";
                                                            readout_orientation = "90";
                                                            line_length = "3448";
                                                            inherent_gain = "1";
                                                            mclk_multiplier = "9.33";
                                                            pix_clk_hz = "182400000";
                                                            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 = "28000000"; /* 28.0 fps */
                                                            step_framerate = "1";
                                                            default_framerate = "28000000"; /* 28.0 fps */
                                                            min_exp_time = "13"; /* us */
                                                            max_exp_time = "683709"; /* us */
                                                            step_exp_time = "1";
                                                            default_exp_time = "2495"; /* us */
                                                            embedded_metadata_height = "2";
                                                    };
                                                    mode2 { /* IMX219_MODE_1920x1080_30FPS */
                                                            mclk_khz = "24000";
                                                            num_lanes = "4";
                                                            tegra_sinterface = "serial_b";
                                                            lane_polarity = "6";
                                                            phy_mode = "DPHY";
                                                            discontinuous_clk = "yes";
                                                            dpcm_enable = "false";
                                                            cil_settletime = "0";
                                                            active_w = "1920";
                                                            active_h = "1080";
                                                            mode_type = "bayer";
                                                            pixel_phase = "rggb";
                                                            csi_pixel_bit_depth = "10";
                                                            readout_orientation = "90";
                                                            line_length = "3448";
                                                            inherent_gain = "1";
                                                            mclk_multiplier = "9.33";
                                                            pix_clk_hz = "182400000";
                                                            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 = "30000000"; /* 30.0 fps */
                                                            step_framerate = "1";
                                                            default_framerate = "30000000"; /* 30.0 fps */
                                                            min_exp_time = "13"; /* us */
                                                            max_exp_time = "683709"; /* us */
                                                            step_exp_time = "1";
                                                            default_exp_time = "2495"; /* us */
                                                            embedded_metadata_height = "2";
                                                    };
                                                    mode3 { /* IMX219_MODE_1640x1232_30FPS */
                                                            mclk_khz = "24000";
                                                            num_lanes = "2";
                                                            tegra_sinterface = "serial_b";
                                                            lane_polarity = "6";
                                                            phy_mode = "DPHY";
                                                            discontinuous_clk = "yes";
                                                            dpcm_enable = "false";
                                                            cil_settletime = "0";
                                                            active_w = "1640";
                                                            active_h = "1232";
                                                            mode_type = "bayer";
                                                            pixel_phase = "rggb";
                                                            csi_pixel_bit_depth = "10";
                                                            readout_orientation = "90";
                                                            line_length = "3448";
                                                            inherent_gain = "1";
                                                            mclk_multiplier = "9.33";
                                                            pix_clk_hz = "182400000";
                                                            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 = "30000000"; /* 60.0 fps */
                                                            step_framerate = "1";
                                                            default_framerate = "30000000"; /* 60.0 fps */
                                                            min_exp_time = "13"; /* us */
                                                            max_exp_time = "683709"; /* us */
                                                            step_exp_time = "1";
                                                            default_exp_time = "2495"; /* us */
                                                            embedded_metadata_height = "2";
                                                    };
                                                    mode4 { /* IMX219_MODE_1280x720_60FPS */
                                                            mclk_khz = "24000";
                                                            num_lanes = "2";
                                                            tegra_sinterface = "serial_b";
                                                            lane_polarity = "6";
                                                            phy_mode = "DPHY";
                                                            discontinuous_clk = "yes";
                                                            dpcm_enable = "false";
                                                            cil_settletime = "0";
                                                            active_w = "1280";
                                                            active_h = "720";
                                                            mode_type = "bayer";
                                                            pixel_phase = "rggb";
                                                            csi_pixel_bit_depth = "10";
                                                            readout_orientation = "90";
                                                            line_length = "3448";
                                                            inherent_gain = "1";
                                                            mclk_multiplier = "9.33";
                                                            pix_clk_hz = "182400000";
                                                            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 = "2495"; /* us */
                                                            embedded_metadata_height = "2";
                                                    };
                                                    ports {
                                                            #address-cells = <1>;
                                                            #size-cells = <0>;
                                                            port@0 {
                                                                    reg = <0>;
                                                                    rbpcv2_imx219_out0: endpoint {
                                                                            port-index = <1>;
                                                                            bus-width = <2>;
                                                                            remote-endpoint = <&rbpcv2_imx219_csi_in0>;
                                                                    };
                                                            };
                                                    };
                                            };
                                    };
                                    i2c_1: i2c@1 {
                                            imx219_cam1: rbpcv2_imx219_c@10 {
                                                    compatible = "sony,imx219";
                                                    /* I2C device address */
                                                    reg = <0x10>;
                                                    /* V4L2 device node location */
                                                    devnode = "video1";
                                                    /* Physical dimensions of sensor */
                                                    physical_w = "3.680";
                                                    physical_h = "2.760";
                                                    sensor_model = "imx219";
                                                    use_sensor_mode_id = "true";
                                                    /**
                                                    * ==== Modes ====
                                                    * A modeX node is required to support v4l2 driver
                                                    * implementation with NVIDIA camera software stack
                                                    *
                                                    * == Signal properties ==
                                                    *
                                                    * phy_mode = "";
                                                    * PHY mode used by the MIPI lanes for this device
                                                    *
                                                    * tegra_sinterface = "";
                                                    * CSI Serial interface connected to tegra
                                                    * Incase of virtual HW devices, use virtual
                                                    * For SW emulated devices, use host
                                                    *
                                                    * pix_clk_hz = "";
                                                    * Sensor pixel clock used for calculations like exposure and framerate
                                                    *
                                                    * readout_orientation = "0";
                                                    * Based on camera module orientation.
                                                    * Only change readout_orientation if you specifically
                                                    * Program a different readout order for this mode
                                                    *
                                                    * == Image format Properties ==
                                                    *
                                                    * active_w = "";
                                                    * Pixel active region width
                                                    *
                                                    * active_h = "";
                                                    * Pixel active region height
                                                    *
                                                    * pixel_t = "";
                                                    * The sensor readout pixel pattern
                                                    *
                                                    * line_length = "";
                                                    * Pixel line length (width) for sensor mode.
                                                    *
                                                    * == Source Control Settings ==
                                                    *
                                                    * Gain factor used to convert fixed point integer to float
                                                    * Gain range [min_gain/gain_factor, max_gain/gain_factor]
                                                    * Gain step [step_gain/gain_factor is the smallest step that can be configured]
                                                    * Default gain [Default gain to be initialized for the control.
                                                    *     use min_gain_val as default for optimal results]
                                                    * Framerate factor used to convert fixed point integer to float
                                                    * Framerate range [min_framerate/framerate_factor, max_framerate/framerate_factor]
                                                    * Framerate step [step_framerate/framerate_factor is the smallest step that can be configured]
                                                    * Default Framerate [Default framerate to be initialized for the control.
                                                    *     use max_framerate to get required performance]
                                                    * Exposure factor used to convert fixed point integer to float
                                                    * For convenience use 1 sec = 1000000us as conversion factor
                                                    * Exposure range [min_exp_time/exposure_factor, max_exp_time/exposure_factor]
                                                    * Exposure step [step_exp_time/exposure_factor is the smallest step that can be configured]
                                                    * Default Exposure Time [Default exposure to be initialized for the control.
                                                    *     Set default exposure based on the default_framerate for optimal exposure settings]
                                                    *
                                                    * gain_factor = ""; (integer factor used for floating to fixed point conversion)
                                                    * min_gain_val = ""; (ceil to integer)
                                                    * max_gain_val = ""; (ceil to integer)
                                                    * step_gain_val = ""; (ceil to integer)
                                                    * default_gain = ""; (ceil to integer)
                                                    * Gain limits for mode
                                                    *
                                                    * exposure_factor = ""; (integer factor used for floating to fixed point conversion)
                                                    * min_exp_time = ""; (ceil to integer)
                                                    * max_exp_time = ""; (ceil to integer)
                                                    * step_exp_time = ""; (ceil to integer)
                                                    * default_exp_time = ""; (ceil to integer)
                                                    * Exposure Time limits for mode (sec)
                                                    *
                                                    * framerate_factor = ""; (integer factor used for floating to fixed point conversion)
                                                    * min_framerate = ""; (ceil to integer)
                                                    * max_framerate = ""; (ceil to integer)
                                                    * step_framerate = ""; (ceil to integer)
                                                    * default_framerate = ""; (ceil to integer)
                                                    * Framerate limits for mode (fps)
                                                    *
                                                    * embedded_metadata_height = "";
                                                    * Sensor embedded metadata height in units of rows.
                                                    * If sensor does not support embedded metadata value should be 0.
                                                    */
                                                    mode0 { /* IMX219_MODE_3280x2464_21FPS */
                                                            mclk_khz = "24000";
                                                            num_lanes = "2";
                                                            tegra_sinterface = "serial_c";
                                                            phy_mode = "DPHY";
                                                            discontinuous_clk = "yes";
                                                            dpcm_enable = "false";
                                                            cil_settletime = "0";
                                                            active_w = "3280";
                                                            active_h = "2464";
                                                            mode_type = "bayer";
                                                            pixel_phase = "rggb";
                                                            csi_pixel_bit_depth = "10";
                                                            readout_orientation = "90";
                                                            line_length = "3448";
                                                            inherent_gain = "1";
                                                            mclk_multiplier = "9.33";
                                                            pix_clk_hz = "182400000";
                                                            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 = "21000000"; /* 21.0 fps */
                                                            step_framerate = "1";
                                                            default_framerate = "21000000"; /* 21.0 fps */
                                                            min_exp_time = "13"; /* us */
                                                            max_exp_time = "683709"; /* us */
                                                            step_exp_time = "1";
                                                            default_exp_time = "2495"; /* us */
                                                            embedded_metadata_height = "2";
                                                    };
                                                    mode1 { /* IMX219_MODE_3280x1848_28FPS */
                                                            mclk_khz = "24000";
                                                            num_lanes = "2";
                                                            tegra_sinterface = "serial_c";
                                                            phy_mode = "DPHY";
                                                            discontinuous_clk = "yes";
                                                            dpcm_enable = "false";
                                                            cil_settletime = "0";
                                                            active_w = "3280";
                                                            active_h = "1848";
                                                            mode_type = "bayer";
                                                            pixel_phase = "rggb";
                                                            csi_pixel_bit_depth = "10";
                                                            readout_orientation = "90";
                                                            line_length = "3448";
                                                            inherent_gain = "1";
                                                            mclk_multiplier = "9.33";
                                                            pix_clk_hz = "182400000";
                                                            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 = "28000000"; /* 28.0 fps */
                                                            step_framerate = "1";
                                                            default_framerate = "28000000"; /* 28.0 fps */
                                                            min_exp_time = "13"; /* us */
                                                            max_exp_time = "683709"; /* us */
                                                            step_exp_time = "1";
                                                            default_exp_time = "2495"; /* us */
                                                            embedded_metadata_height = "2";
                                                    };
                                                    mode2 { /* IMX219_MODE_1920x1080_30FPS */
                                                            mclk_khz = "24000";
                                                            num_lanes = "4";
                                                            tegra_sinterface = "serial_c";
                                                            phy_mode = "DPHY";
                                                            discontinuous_clk = "yes";
                                                            dpcm_enable = "false";
                                                            cil_settletime = "0";
                                                            active_w = "1920";
                                                            active_h = "1080";
                                                            mode_type = "bayer";
                                                            pixel_phase = "rggb";
                                                            csi_pixel_bit_depth = "10";
                                                            readout_orientation = "90";
                                                            line_length = "3448";
                                                            inherent_gain = "1";
                                                            mclk_multiplier = "9.33";
                                                            pix_clk_hz = "182400000";
                                                            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 = "30000000"; /* 30.0 fps */
                                                            step_framerate = "1";
                                                            default_framerate = "30000000"; /* 30.0 fps */
                                                            min_exp_time = "13"; /* us */
                                                            max_exp_time = "683709"; /* us */
                                                            step_exp_time = "1";
                                                            default_exp_time = "2495"; /* us */
                                                            embedded_metadata_height = "2";
                                                    };
                                                    mode3 { /* IMX219_MODE_1640x1232_30FPS */
                                                            mclk_khz = "24000";
                                                            num_lanes = "2";
                                                            tegra_sinterface = "serial_c";
                                                            phy_mode = "DPHY";
                                                            discontinuous_clk = "yes";
                                                            dpcm_enable = "false";
                                                            cil_settletime = "0";
                                                            active_w = "1640";
                                                            active_h = "1232";
                                                            mode_type = "bayer";
                                                            pixel_phase = "rggb";
                                                            csi_pixel_bit_depth = "10";
                                                            readout_orientation = "90";
                                                            line_length = "3448";
                                                            inherent_gain = "1";
                                                            mclk_multiplier = "9.33";
                                                            pix_clk_hz = "182400000";
                                                            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 = "30000000"; /* 60.0 fps */
                                                            step_framerate = "1";
                                                            default_framerate = "30000000"; /* 60.0 fps */
                                                            min_exp_time = "13"; /* us */
                                                            max_exp_time = "683709"; /* us */
                                                            step_exp_time = "1";
                                                            default_exp_time = "2495"; /* us */
                                                            embedded_metadata_height = "2";
                                                    };
                                                    mode4 { /* IMX219_MODE_1280x720_60FPS */
                                                            mclk_khz = "24000";
                                                            num_lanes = "2";
                                                            tegra_sinterface = "serial_c";
                                                            phy_mode = "DPHY";
                                                            discontinuous_clk = "yes";
                                                            dpcm_enable = "false";
                                                            cil_settletime = "0";
                                                            active_w = "1280";
                                                            active_h = "720";
                                                            mode_type = "bayer";
                                                            pixel_phase = "rggb";
                                                            csi_pixel_bit_depth = "10";
                                                            readout_orientation = "90";
                                                            line_length = "3448";
                                                            inherent_gain = "1";
                                                            mclk_multiplier = "9.33";
                                                            pix_clk_hz = "182400000";
                                                            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 = "2495"; /* us */
                                                            embedded_metadata_height = "2";
                                                    };
                                                    ports {
                                                            #address-cells = <1>;
                                                            #size-cells = <0>;
                                                            port@0 {
                                                                    reg = <0>;
                                                                    rbpcv2_imx219_out1: endpoint {
                                                                            port-index = <2>;
                                                                            bus-width = <2>;
                                                                            remote-endpoint = <&rbpcv2_imx219_csi_in1>;
                                                                    };
                                                            };
                                                    };
                                            };
                                    };
                            };
                            lens_imx219@RBPCV2 {
                                    min_focus_distance = "0.0";
                                    hyper_focal = "0.0";
                                    focal_length = "3.04";
                                    f_number = "2.0";
                                    aperture = "0.0";
                            };
                    };

                    tcp: tegra-camera-platform {
                            compatible = "nvidia, tegra-camera-platform";
                            /**
                            * Physical settings to calculate max ISO BW
                            *
                            * num_csi_lanes = <>;
                            * Total number of CSI lanes when all cameras are active
                            *
                            * max_lane_speed = <>;
                            * Max lane speed in Kbit/s
                            *
                            * min_bits_per_pixel = <>;
                            * Min bits per pixel
                            *
                            * vi_peak_byte_per_pixel = <>;
                            * Max byte per pixel for the VI ISO case
                            *
                            * vi_bw_margin_pct = <>;
                            * Vi bandwidth margin in percentage
                            *
                            * max_pixel_rate = <>;
                            * Max pixel rate in Kpixel/s for the ISP ISO case
                            *
                            * isp_peak_byte_per_pixel = <>;
                            * Max byte per pixel for the ISP ISO case
                            *
                            * isp_bw_margin_pct = <>;
                            * Isp bandwidth margin in percentage
                            */
                            num_csi_lanes = <4>;
                            max_lane_speed = <1500000>;
                            min_bits_per_pixel = <10>;
                            vi_peak_byte_per_pixel = <2>;
                            vi_bw_margin_pct = <25>;
                            max_pixel_rate = <240000>;
                            isp_peak_byte_per_pixel = <5>;
                            isp_bw_margin_pct = <25>;
                            /**
                             * The general guideline for naming badge_info contains 3 parts, and is as follows,
                             * The first part is the camera_board_id for the module; if the module is in a FFD
                             * platform, then use the platform name for this part.
                             * The second part contains the position of the module, ex. "rear" or "front".
                             * The third part contains the last 6 characters of a part number which is found
                             * in the module's specsheet from the vendor.
                             */
                            modules {
                                    cam_module0: module0 {
                                            badge = "jakku_front_RBP194";
                                            position = "front";
                                            orientation = "1";
                                            cam_module0_drivernode0: drivernode0 {
                                                    pcl_id = "v4l2_sensor";
                                                    sysfs-device-tree = "/sys/firmware/devicetree/base/bus@0/cam_i2cmux/i2c@0/rbpcv2_imx219_a@10";
                                            };
                                            cam_module0_drivernode1: drivernode1 {
                                                    pcl_id = "v4l2_lens";
                                                    sysfs-device-tree = "/sys/firmware/devicetree/base/bus@0/lens_imx219@RBPCV2";
                                            };
                                    };
                                    cam_module1: module1 {
                                            badge = "jakku_rear_RBP194";
                                            position = "rear";
                                            orientation = "1";
                                            cam_module1_drivernode0: drivernode0 {
                                                    pcl_id = "v4l2_sensor";
                                                    sysfs-device-tree = "/sys/firmware/devicetree/base/bus@0/cam_i2cmux/i2c@1/rbpcv2_imx219_c@10";
                                            };
                                            cam_module1_drivernode1: drivernode1 {
                                                    pcl_id = "v4l2_lens";
                                                    sysfs-device-tree = "/sys/firmware/devicetree/base/bus@0/lens_imx219@RBPCV2/";
                                            };
                                    };
                            };
                    };
            };
    };

};

hello 627263202,

just double check..
which carrier board you’re using? is it Orin Nano carrier board?
is it J20 or J21 you’re trying to enable 4-lane config?

It is Orin Nano carrier board.
J21

hello 627263202,

J21 uses CSI2_CLK, which should be able to support both x2 or x4 camera interfaces.
please double check Sensor Pixel Clock since you’ve updating the lane settings.
besides, you should update the sensor timing from initial register settings.
for instance, $public_sources/kernel_oot_modules_src/kernel/nvidia-oot/drivers/media/i2c/imx219_mode_tbls.h

After setting 4 lane in imx219_mode_tbls.h and
setting pixel clock from 18240000 to 364800000 and 4 lanes in every mode in tegra234-camera-rbpcv2-imx219.dtsi
Can preview IMX219 in 4 lanes mode in 1920x1080 now.
But can not preview with resolution higher than 1920x1080 with the follow command:
nvgstcapture-1.0 --sensor-id=1 --prev-res=5 --framerate=20

via@via-desktop:~$ nvgstcapture-1.0 --sensor-id=1 --prev-res=5 --framerate=20
Encoder null, cannot set bitrate!
Encoder Profile = High
Supported resolutions in case of ARGUS Camera
(2) : 640x480
(3) : 1280x720
(4) : 1920x1080
(5) : 2104x1560
(6) : 2592x1944
(7) : 2616x1472
(8) : 3840x2160
(9) : 3896x2192
(10): 4208x3120
(11): 5632x3168
(12): 5632x4224

Runtime ARGUS Camera Commands:

Help : ‘h’
Quit : ‘q’
Set Capture Mode:
mo:
(1): image
(2): video
Get Capture Mode:
gmo
Set sensor orientation:
so:
(0): none
(1): Rotate counter-clockwise 90 degrees
(2): Rotate 180 degrees
(3): Rotate clockwise 90 degrees
Get sensor orientation:
gso
Set sensor mode:
smo: e.g., smo:1
Get sensor mode:
gsmo
Set Whitebalance Mode:
wb:
(0): off
(1): auto
(2): incandescent
(3): fluorescent
(4): warm-fluorescent
(5): daylight
(6): cloudy-daylight
(7): twilight
(8): shade
(9): manual
Get Whitebalance Mode:
gwb
Set Saturation (0 to 2):
st: e.g., st:1.25
Get Saturation:
gst
Set Exposure Compensation (-2 to 2):
ec: e.g., ec:-2
Get Exposure Compensation:
gec
Set Auto Whitebalance Lock:
awbl: e.g., awbl:0
Get Auto Whitebalance Lock:
awbl
Set Auto Exposure Lock:
ael: e.g., ael:0
Get Auto Exposure Lock:
gael
Set TNR Mode:
tnrm: e.g., tnrm:1
(0): OFF
(1): FAST
(2): HIGH QUALITY
Get TNR Mode:
gtnrm
Set TNR Strength (-1 to 1):
tnrs: e.g., tnrs:0.5
Get TNR Strength:
gtnrs
Set EE Mode:
eem: e.g., eem:1
(0): OFF
(1): FAST
(2): HIGH QUALITY
Get EE Mode:
geem
Set EE Strength (-1 to 1):
ees: e.g., ees:0.5
Get EE Strength:
gees
Set Auto Exposure Anti-Banding (0 to 3):
aeab: e.g., aeab:2
(0): OFF
(1): MODE AUTO
(2): MODE 50HZ
(3): MODE 60HZ
Get Auto Exposure Anti-Banding:
gaeab
Set Gain Range:
gr: e.g., gr:1 16
Get Gain Range:
ggr
Set Exposure Time Range:
etr: e.g., etr:34000 35000
Get Exposure Time Range:
getr
Set ISP Digital Gain Range:
dgr: e.g., dgr:2 152
Get ISP Digital Gain Range:
gdgr
Capture: enter ‘j’ OR
followed by a timer (e.g., jx5000, capture after 5 seconds) OR
followed by multishot count (e.g., j:6, capture 6 images)
timer/multihot values are optional, capture defaults to single shot with timer=0s
Start Recording : enter ‘1’
Stop Recording : enter ‘0’
Video snapshot : enter ‘2’ (While recording video)
Get Preview Resolution:
gpcr
Get Image Capture Resolution:
gicr
Get Video Capture Resolution:
gvcr

Runtime encoder configuration options:

Set Encoding Bit-rate(in bytes):
br: e.g., br:4000000
Get Encoding Bit-rate(in bytes):
gbr
Set Encoding Profile(only for H.264):
ep: e.g., ep:1
(0): Baseline
(1): Main
(2): High
Get Encoding Profile(only for H.264):
gep
Force IDR Frame on video Encoder(only for H.264):
Enter ‘f’

bitrate = 4000000
Encoder Profile = High
Encoder control-rate = 1

Using winsys: x11
Opening in BLOCKING MODE
** Message: 10:05:31.249: main:4732 iterating capture loop …
NvMMLiteOpen : Block : BlockType = 4
===== NvVideo: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3280 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 3280 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1640 x 1232 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: Running with following settings:
Camera index = 1
Camera mode = 1
Output Stream W = 3280 H = 1848
seconds to Run = 0
Frame Rate = 28.000001
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
ERROR on bus: by /GstPipeline:capture_native_pipeline: Output window was closed
debug info:
/dvs/git/dirty/git-master_linux/tests-multimedia/nvgstapps/nvgstcapture-1.0/nvgstcapture.c(4160): nvgst_handle_xevents (): /GstPipeline:capture_native_pipeline
GST_ARGUS: Cleaning up
CONSUMER: Done Success
GST_ARGUS: Done Success
** Message: 10:05:34.291: main:4742 Capture completed
** Message: 10:05:34.330: main:4793 Camera application will now exit

// SPDX-License-Identifier: GPL-2.0-only
// SPDX-FileCopyrightText: Copyright (c) 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.

include <dt-bindings/clock/tegra234-clock.h>
include <dt-bindings/gpio/tegra234-gpio.h>

/ {
fragment-camera@0 {
target-path = “/”;
overlay {
tegra-capture-vi {
num-channels = <2>;
ports {
#address-cells = <1>;
#size-cells = <0>;
vi_port0: port@0 {
reg = <0>;
rbpcv2_imx219_vi_in0: endpoint {
port-index = <1>;
bus-width = <2>;
remote-endpoint = <&rbpcv2_imx219_csi_out0>;
};
};
vi_port1: port@1 {
reg = <1>;
rbpcv2_imx219_vi_in1: endpoint {
port-index = <2>;
bus-width = <2>;
remote-endpoint = <&rbpcv2_imx219_csi_out1>;
};
};
};
};

		bus@0 {
			host1x@13e00000 {
				nvcsi@15a00000 {
					num-channels = <2>;
					#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 = <1>;
									bus-width = <2>;
									remote-endpoint = <&rbpcv2_imx219_out0>;
								};
							};
							csi_chan0_port1: port@1 {
								reg = <1>;
								rbpcv2_imx219_csi_out0: endpoint@1 {
									remote-endpoint = <&rbpcv2_imx219_vi_in0>;
								};
							};
						};
					};
					csi_chan1: channel@1 {
						reg = <1>;
						ports {
							#address-cells = <1>;
							#size-cells = <0>;
							csi_chan1_port0: port@0 {
								reg = <0>;
								rbpcv2_imx219_csi_in1: endpoint@2 {
									port-index = <2>;
									bus-width = <2>;
									remote-endpoint = <&rbpcv2_imx219_out1>;
								};
							};
							csi_chan1_port1: port@1 {
								reg = <1>;
								rbpcv2_imx219_csi_out1: endpoint@3 {
									remote-endpoint = <&rbpcv2_imx219_vi_in1>;
								};
							};
						};
					};
				};
			};
			cam_i2cmux {
				i2c_0:i2c@0 {
					imx219_cam0: rbpcv2_imx219_a@10 {
						compatible = "sony,imx219";
						/* I2C device address */
						reg = <0x10>;
						/* V4L2 device node location */
						devnode = "video0";
						/* Physical dimensions of sensor */
						physical_w = "3.680";
						physical_h = "2.760";
						sensor_model = "imx219";
						use_sensor_mode_id = "true";
						/**
						* ==== Modes ====
						* A modeX node is required to support v4l2 driver
						* implementation with NVIDIA camera software stack
						*
						* == Signal properties ==
						*
						* phy_mode = "";
						* PHY mode used by the MIPI lanes for this device
						*
						* tegra_sinterface = "";
						* CSI Serial interface connected to tegra
						* Incase of virtual HW devices, use virtual
						* For SW emulated devices, use host
						*
						* pix_clk_hz = "";
						* Sensor pixel clock used for calculations like exposure and framerate
						*
						* readout_orientation = "0";
						* Based on camera module orientation.
						* Only change readout_orientation if you specifically
						* Program a different readout order for this mode
						*
						* == Image format Properties ==
						*
						* active_w = "";
						* Pixel active region width
						*
						* active_h = "";
						* Pixel active region height
						*
						* pixel_t = "";
						* The sensor readout pixel pattern
						*
						* line_length = "";
						* Pixel line length (width) for sensor mode.
						*
						* == Source Control Settings ==
						*
						* Gain factor used to convert fixed point integer to float
						* Gain range [min_gain/gain_factor, max_gain/gain_factor]
						* Gain step [step_gain/gain_factor is the smallest step that can be configured]
						* Default gain [Default gain to be initialized for the control.
						*     use min_gain_val as default for optimal results]
						* Framerate factor used to convert fixed point integer to float
						* Framerate range [min_framerate/framerate_factor, max_framerate/framerate_factor]
						* Framerate step [step_framerate/framerate_factor is the smallest step that can be configured]
						* Default Framerate [Default framerate to be initialized for the control.
						*     use max_framerate to get required performance]
						* Exposure factor used to convert fixed point integer to float
						* For convenience use 1 sec = 1000000us as conversion factor
						* Exposure range [min_exp_time/exposure_factor, max_exp_time/exposure_factor]
						* Exposure step [step_exp_time/exposure_factor is the smallest step that can be configured]
						* Default Exposure Time [Default exposure to be initialized for the control.
						*     Set default exposure based on the default_framerate for optimal exposure settings]
						*
						* gain_factor = ""; (integer factor used for floating to fixed point conversion)
						* min_gain_val = ""; (ceil to integer)
						* max_gain_val = ""; (ceil to integer)
						* step_gain_val = ""; (ceil to integer)
						* default_gain = ""; (ceil to integer)
						* Gain limits for mode
						*
						* exposure_factor = ""; (integer factor used for floating to fixed point conversion)
						* min_exp_time = ""; (ceil to integer)
						* max_exp_time = ""; (ceil to integer)
						* step_exp_time = ""; (ceil to integer)
						* default_exp_time = ""; (ceil to integer)
						* Exposure Time limits for mode (sec)
						*
						* framerate_factor = ""; (integer factor used for floating to fixed point conversion)
						* min_framerate = ""; (ceil to integer)
						* max_framerate = ""; (ceil to integer)
						* step_framerate = ""; (ceil to integer)
						* default_framerate = ""; (ceil to integer)
						* Framerate limits for mode (fps)
						*
						* embedded_metadata_height = "";
						* Sensor embedded metadata height in units of rows.
						* If sensor does not support embedded metadata value should be 0.
						*/
						mode0 { /* IMX219_MODE_3280x2464_21FPS */
							mclk_khz = "24000";
							num_lanes = "4";
							tegra_sinterface = "serial_a";
							lane_polarity = "6";
							phy_mode = "DPHY";
							discontinuous_clk = "yes";
							dpcm_enable = "false";
							cil_settletime = "0";
							active_w = "3280";
							active_h = "2464";
							mode_type = "bayer";
							pixel_phase = "rggb";
							csi_pixel_bit_depth = "10";
							readout_orientation = "90";
							line_length = "3448";
							inherent_gain = "1";
							mclk_multiplier = "9.33";
							pix_clk_hz = "364800000";
							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 = "21000000"; /* 21.0 fps */
							step_framerate = "1";
							default_framerate = "21000000"; /* 21.0 fps */
							min_exp_time = "13"; /* us */
							max_exp_time = "683709"; /* us */
							step_exp_time = "1";
							default_exp_time = "2495"; /* us */
							embedded_metadata_height = "2";
						};
						mode1 { /* IMX219_MODE_3280x1848_28FPS */
							mclk_khz = "24000";
							num_lanes = "4";
							tegra_sinterface = "serial_a";
							lane_polarity = "6";
							phy_mode = "DPHY";
							discontinuous_clk = "yes";
							dpcm_enable = "false";
							cil_settletime = "0";
							active_w = "3280";
							active_h = "1848";
							mode_type = "bayer";
							pixel_phase = "rggb";
							csi_pixel_bit_depth = "10";
							readout_orientation = "90";
							line_length = "3448";
							inherent_gain = "1";
							mclk_multiplier = "9.33";
							pix_clk_hz = "364800000";
							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 = "28000000"; /* 28.0 fps */
							step_framerate = "1";
							default_framerate = "28000000"; /* 28.0 fps */
							min_exp_time = "13"; /* us */
							max_exp_time = "683709"; /* us */
							step_exp_time = "1";
							default_exp_time = "2495"; /* us */
							embedded_metadata_height = "2";
						};
						mode2 { /* IMX219_MODE_1920x1080_30FPS */
							mclk_khz = "24000";
							num_lanes = "4";
							tegra_sinterface = "serial_a";
							lane_polarity = "6";
							phy_mode = "DPHY";
							discontinuous_clk = "yes";
							dpcm_enable = "false";
							cil_settletime = "0";
							active_w = "1920";
							active_h = "1080";
							mode_type = "bayer";
							pixel_phase = "rggb";
							csi_pixel_bit_depth = "10";
							readout_orientation = "90";
							line_length = "3448";
							inherent_gain = "1";
							mclk_multiplier = "9.33";
							pix_clk_hz = "364800000";
							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 = "30000000"; /* 30.0 fps */
							step_framerate = "1";
							default_framerate = "30000000"; /* 30.0 fps */
							min_exp_time = "13"; /* us */
							max_exp_time = "683709"; /* us */
							step_exp_time = "1";
							default_exp_time = "2495"; /* us */
							embedded_metadata_height = "2";
						};
						mode3 { /* IMX219_MODE_1640x1232_30FPS */
							mclk_khz = "24000";
							num_lanes = "4";
							tegra_sinterface = "serial_a";
							lane_polarity = "6";
							phy_mode = "DPHY";
							discontinuous_clk = "yes";
							dpcm_enable = "false";
							cil_settletime = "0";
							active_w = "1640";
							active_h = "1232";
							mode_type = "bayer";
							pixel_phase = "rggb";
							csi_pixel_bit_depth = "10";
							readout_orientation = "90";
							line_length = "3448";
							inherent_gain = "1";
							mclk_multiplier = "9.33";
							pix_clk_hz = "364800000";
							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 = "30000000"; /* 60.0 fps */
							step_framerate = "1";
							default_framerate = "30000000"; /* 60.0 fps */
							min_exp_time = "13"; /* us */
							max_exp_time = "683709"; /* us */
							step_exp_time = "1";
							default_exp_time = "2495"; /* us */
							embedded_metadata_height = "2";
						};
						mode4 { /* IMX219_MODE_1280x720_60FPS */
							mclk_khz = "24000";
							num_lanes = "4";
							tegra_sinterface = "serial_a";
							lane_polarity = "6";
							phy_mode = "DPHY";
							discontinuous_clk = "yes";
							dpcm_enable = "false";
							cil_settletime = "0";
							active_w = "1280";
							active_h = "720";
							mode_type = "bayer";
							pixel_phase = "rggb";
							csi_pixel_bit_depth = "10";
							readout_orientation = "90";
							line_length = "3448";
							inherent_gain = "1";
							mclk_multiplier = "9.33";
							pix_clk_hz = "364800000";
							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 = "2495"; /* us */
							embedded_metadata_height = "2";
						};
						ports {
							#address-cells = <1>;
							#size-cells = <0>;
							port@0 {
								reg = <0>;
								rbpcv2_imx219_out0: endpoint {
									port-index = <1>;
									bus-width = <2>;
									remote-endpoint = <&rbpcv2_imx219_csi_in0>;
								};
							};
						};
					};
				};
				i2c_1: i2c@1 {
					imx219_cam1: rbpcv2_imx219_c@10 {
						compatible = "sony,imx219";
						/* I2C device address */
						reg = <0x10>;
						/* V4L2 device node location */
						devnode = "video1";
						/* Physical dimensions of sensor */
						physical_w = "3.680";
						physical_h = "2.760";
						sensor_model = "imx219";
						use_sensor_mode_id = "true";
						/**
						* ==== Modes ====
						* A modeX node is required to support v4l2 driver
						* implementation with NVIDIA camera software stack
						*
						* == Signal properties ==
						*
						* phy_mode = "";
						* PHY mode used by the MIPI lanes for this device
						*
						* tegra_sinterface = "";
						* CSI Serial interface connected to tegra
						* Incase of virtual HW devices, use virtual
						* For SW emulated devices, use host
						*
						* pix_clk_hz = "";
						* Sensor pixel clock used for calculations like exposure and framerate
						*
						* readout_orientation = "0";
						* Based on camera module orientation.
						* Only change readout_orientation if you specifically
						* Program a different readout order for this mode
						*
						* == Image format Properties ==
						*
						* active_w = "";
						* Pixel active region width
						*
						* active_h = "";
						* Pixel active region height
						*
						* pixel_t = "";
						* The sensor readout pixel pattern
						*
						* line_length = "";
						* Pixel line length (width) for sensor mode.
						*
						* == Source Control Settings ==
						*
						* Gain factor used to convert fixed point integer to float
						* Gain range [min_gain/gain_factor, max_gain/gain_factor]
						* Gain step [step_gain/gain_factor is the smallest step that can be configured]
						* Default gain [Default gain to be initialized for the control.
						*     use min_gain_val as default for optimal results]
						* Framerate factor used to convert fixed point integer to float
						* Framerate range [min_framerate/framerate_factor, max_framerate/framerate_factor]
						* Framerate step [step_framerate/framerate_factor is the smallest step that can be configured]
						* Default Framerate [Default framerate to be initialized for the control.
						*     use max_framerate to get required performance]
						* Exposure factor used to convert fixed point integer to float
						* For convenience use 1 sec = 1000000us as conversion factor
						* Exposure range [min_exp_time/exposure_factor, max_exp_time/exposure_factor]
						* Exposure step [step_exp_time/exposure_factor is the smallest step that can be configured]
						* Default Exposure Time [Default exposure to be initialized for the control.
						*     Set default exposure based on the default_framerate for optimal exposure settings]
						*
						* gain_factor = ""; (integer factor used for floating to fixed point conversion)
						* min_gain_val = ""; (ceil to integer)
						* max_gain_val = ""; (ceil to integer)
						* step_gain_val = ""; (ceil to integer)
						* default_gain = ""; (ceil to integer)
						* Gain limits for mode
						*
						* exposure_factor = ""; (integer factor used for floating to fixed point conversion)
						* min_exp_time = ""; (ceil to integer)
						* max_exp_time = ""; (ceil to integer)
						* step_exp_time = ""; (ceil to integer)
						* default_exp_time = ""; (ceil to integer)
						* Exposure Time limits for mode (sec)
						*
						* framerate_factor = ""; (integer factor used for floating to fixed point conversion)
						* min_framerate = ""; (ceil to integer)
						* max_framerate = ""; (ceil to integer)
						* step_framerate = ""; (ceil to integer)
						* default_framerate = ""; (ceil to integer)
						* Framerate limits for mode (fps)
						*
						* embedded_metadata_height = "";
						* Sensor embedded metadata height in units of rows.
						* If sensor does not support embedded metadata value should be 0.
						*/
						mode0 { /* IMX219_MODE_3280x2464_21FPS */
							mclk_khz = "24000";
							num_lanes = "4";
							tegra_sinterface = "serial_c";
							phy_mode = "DPHY";
							discontinuous_clk = "yes";
							dpcm_enable = "false";
							cil_settletime = "0";
							active_w = "3280";
							active_h = "2464";
							mode_type = "bayer";
							pixel_phase = "rggb";
							csi_pixel_bit_depth = "10";
							readout_orientation = "90";
							line_length = "3448";
							inherent_gain = "1";
							mclk_multiplier = "9.33";
							pix_clk_hz = "364800000";
							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 = "21000000"; /* 21.0 fps */
							step_framerate = "1";
							default_framerate = "21000000"; /* 21.0 fps */
							min_exp_time = "13"; /* us */
							max_exp_time = "683709"; /* us */
							step_exp_time = "1";
							default_exp_time = "2495"; /* us */
							embedded_metadata_height = "2";
						};
						mode1 { /* IMX219_MODE_3280x1848_28FPS */
							mclk_khz = "24000";
							num_lanes = "4";
							tegra_sinterface = "serial_c";
							phy_mode = "DPHY";
							discontinuous_clk = "yes";
							dpcm_enable = "false";
							cil_settletime = "0";
							active_w = "3280";
							active_h = "1848";
							mode_type = "bayer";
							pixel_phase = "rggb";
							csi_pixel_bit_depth = "10";
							readout_orientation = "90";
							line_length = "3448";
							inherent_gain = "1";
							mclk_multiplier = "9.33";
							pix_clk_hz = "364800000";
							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 = "28000000"; /* 28.0 fps */
							step_framerate = "1";
							default_framerate = "28000000"; /* 28.0 fps */
							min_exp_time = "13"; /* us */
							max_exp_time = "683709"; /* us */
							step_exp_time = "1";
							default_exp_time = "2495"; /* us */
							embedded_metadata_height = "2";
						};
						mode2 { /* IMX219_MODE_1920x1080_30FPS */
							mclk_khz = "24000";
							num_lanes = "4";
							tegra_sinterface = "serial_c";
							phy_mode = "DPHY";
							discontinuous_clk = "yes";
							dpcm_enable = "false";
							cil_settletime = "0";
							active_w = "1920";
							active_h = "1080";
							mode_type = "bayer";
							pixel_phase = "rggb";
							csi_pixel_bit_depth = "10";
							readout_orientation = "90";
							line_length = "3448";
							inherent_gain = "1";
							mclk_multiplier = "9.33";
							pix_clk_hz = "364800000";
							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 = "30000000"; /* 30.0 fps */
							step_framerate = "1";
							default_framerate = "30000000"; /* 30.0 fps */
							min_exp_time = "13"; /* us */
							max_exp_time = "683709"; /* us */
							step_exp_time = "1";
							default_exp_time = "2495"; /* us */
							embedded_metadata_height = "2";
						};
						mode3 { /* IMX219_MODE_1640x1232_30FPS */
							mclk_khz = "24000";
							num_lanes = "4";
							tegra_sinterface = "serial_c";
							phy_mode = "DPHY";
							discontinuous_clk = "yes";
							dpcm_enable = "false";
							cil_settletime = "0";
							active_w = "1640";
							active_h = "1232";
							mode_type = "bayer";
							pixel_phase = "rggb";
							csi_pixel_bit_depth = "10";
							readout_orientation = "90";
							line_length = "3448";
							inherent_gain = "1";
							mclk_multiplier = "9.33";
							pix_clk_hz = "364800000";
							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 = "30000000"; /* 60.0 fps */
							step_framerate = "1";
							default_framerate = "30000000"; /* 60.0 fps */
							min_exp_time = "13"; /* us */
							max_exp_time = "683709"; /* us */
							step_exp_time = "1";
							default_exp_time = "2495"; /* us */
							embedded_metadata_height = "2";
						};
						mode4 { /* IMX219_MODE_1280x720_60FPS */
							mclk_khz = "24000";
							num_lanes = "4";
							tegra_sinterface = "serial_c";
							phy_mode = "DPHY";
							discontinuous_clk = "yes";
							dpcm_enable = "false";
							cil_settletime = "0";
							active_w = "1280";
							active_h = "720";
							mode_type = "bayer";
							pixel_phase = "rggb";
							csi_pixel_bit_depth = "10";
							readout_orientation = "90";
							line_length = "3448";
							inherent_gain = "1";
							mclk_multiplier = "9.33";
							pix_clk_hz = "364800000";
							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 = "2495"; /* us */
							embedded_metadata_height = "2";
						};
						ports {
							#address-cells = <1>;
							#size-cells = <0>;
							port@0 {
								reg = <0>;
								rbpcv2_imx219_out1: endpoint {
									port-index = <2>;
									bus-width = <2>;
									remote-endpoint = <&rbpcv2_imx219_csi_in1>;
								};
							};
						};
					};
				};
			};
			lens_imx219@RBPCV2 {
				min_focus_distance = "0.0";
				hyper_focal = "0.0";
				focal_length = "3.04";
				f_number = "2.0";
				aperture = "0.0";
			};
		};

		tcp: tegra-camera-platform {
			compatible = "nvidia, tegra-camera-platform";
			/**
			* Physical settings to calculate max ISO BW
			*
			* num_csi_lanes = <>;
			* Total number of CSI lanes when all cameras are active
			*
			* max_lane_speed = <>;
			* Max lane speed in Kbit/s
			*
			* min_bits_per_pixel = <>;
			* Min bits per pixel
			*
			* vi_peak_byte_per_pixel = <>;
			* Max byte per pixel for the VI ISO case
			*
			* vi_bw_margin_pct = <>;
			* Vi bandwidth margin in percentage
			*
			* max_pixel_rate = <>;
			* Max pixel rate in Kpixel/s for the ISP ISO case
			*
			* isp_peak_byte_per_pixel = <>;
			* Max byte per pixel for the ISP ISO case
			*
			* isp_bw_margin_pct = <>;
			* Isp bandwidth margin in percentage
			*/
			num_csi_lanes = <4>;
			max_lane_speed = <1500000>;
			min_bits_per_pixel = <10>;
			vi_peak_byte_per_pixel = <2>;
			vi_bw_margin_pct = <25>;
			max_pixel_rate = <240000>;
			isp_peak_byte_per_pixel = <5>;
			isp_bw_margin_pct = <25>;
			/**
			 * The general guideline for naming badge_info contains 3 parts, and is as follows,
			 * The first part is the camera_board_id for the module; if the module is in a FFD
			 * platform, then use the platform name for this part.
			 * The second part contains the position of the module, ex. "rear" or "front".
			 * The third part contains the last 6 characters of a part number which is found
			 * in the module's specsheet from the vendor.
			 */
			modules {
				cam_module0: module0 {
					badge = "jakku_front_RBP194";
					position = "front";
					orientation = "1";
					cam_module0_drivernode0: drivernode0 {
						pcl_id = "v4l2_sensor";
						sysfs-device-tree = "/sys/firmware/devicetree/base/bus@0/cam_i2cmux/i2c@0/rbpcv2_imx219_a@10";
					};
					cam_module0_drivernode1: drivernode1 {
						pcl_id = "v4l2_lens";
						sysfs-device-tree = "/sys/firmware/devicetree/base/bus@0/lens_imx219@RBPCV2";
					};
				};
				cam_module1: module1 {
					badge = "jakku_rear_RBP194";
					position = "rear";
					orientation = "1";
					cam_module1_drivernode0: drivernode0 {
						pcl_id = "v4l2_sensor";
						sysfs-device-tree = "/sys/firmware/devicetree/base/bus@0/cam_i2cmux/i2c@1/rbpcv2_imx219_c@10";
					};
					cam_module1_drivernode1: drivernode1 {
						pcl_id = "v4l2_lens";
						sysfs-device-tree = "/sys/firmware/devicetree/base/bus@0/lens_imx219@RBPCV2/";
					};
				};
			};
		};
	};
};

};

hello 627263202,

is it a must to use nvgstcapture?
could you please try Applications Using V4L2 IOCTL Directly, and also Applications Using GStreamer with the nvarguscamerasrc Plugin to test your stream.

v4l2 command would block forever in 4 lanes mode , It runs well in 2 lanes mode
v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --stream-mmap --stream-count=1 -d /dev/video1 --stream-to=imx219.raw

I tried Gstreamer command , but it failed:
gst-launch-1.0 v4l2src device=/dev/video1 ! ‘video/x-raw(memory:NVMM), width=1920, height=1080, format=(string)NV12, framerate=(fraction)20/1’ ! nvoverlaysink -e
WARNING: erroneous pipeline: no element “nvoverlaysink”

hello 627263202,

may I know what’s the driver format dumps, please check.. $ v4l2-ctl -d /dev/video0 --list-formats-ext
after that, please assign the sensor supported formats into the v4l pipeline for testing the stream.
i.e. $ v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=100

you should test with nvarguscamerasrc plugin for gst pipeline.
let’s give it a try to disable preview and shows frame-rate only.
for instance,
$ gst-launch-1.0 nvarguscamerasrc sensor-id=0 sensor-mode=0 ! 'video/x-raw(memory:NVMM),width=3840, height=2464, framerate=21/1, format=NV12' ! nvvidconv ! fpsdisplaysink text-overlay=0 name=sink_0 video-sink=fakesink sync=0 -v

v4l2-ctl -d /dev/video1 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture

    [0]: 'RG10' (10-bit Bayer RGRG/GBGB)
            Size: Discrete 3280x2464
                    Interval: Discrete 0.048s (21.000 fps)
            Size: Discrete 3280x1848
                    Interval: Discrete 0.036s (28.000 fps)
            Size: Discrete 1920x1080
                    Interval: Discrete 0.033s (30.000 fps)
            Size: Discrete 1640x1232
                    Interval: Discrete 0.033s (30.000 fps)
            Size: Discrete 1280x720
                    Interval: Discrete 0.017s (60.000 fps)

v4l2-ctl -d /dev/video1 --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=100
block and never return

gst-launch-1.0 nvarguscamerasrc sensor-id=1 sensor-mode=0 ! ‘video/x-raw(memory:NVMM),width=3840, height=2464, framerate=21/1, format=NV12’ ! nvvidconv ! fpsdisplaysink text-overlay=0 name=sink_0 video-sink=fakesink sync=0 -v
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0/GstFakeSink:fakesink0: sync = false
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
/GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)3840, height=(int)2464, format=(string)NV12, framerate=(fraction)21/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)3840, height=(int)2464, format=(string)NV12, framerate=(fraction)21/1
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)3840, height=(int)2464, format=(string)NV12, framerate=(fraction)21/1
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0.GstGhostPad:sink.GstProxyPad:proxypad0: caps = video/x-raw(memory:NVMM), width=(int)3840, height=(int)2464, format=(string)NV12, framerate=(fraction)21/1
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0/GstFakeSink:fakesink0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)3840, height=(int)2464, format=(string)NV12, framerate=(fraction)21/1
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0.GstGhostPad:sink: caps = video/x-raw(memory:NVMM), width=(int)3840, height=(int)2464, format=(string)NV12, framerate=(fraction)21/1
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)3840, height=(int)2464, format=(string)NV12, framerate=(fraction)21/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)3840, height=(int)2464, format=(string)NV12, framerate=(fraction)21/1
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3280 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 3280 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1640 x 1232 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: Running with following settings:
Camera index = 1
Camera mode = 0
Output Stream W = 3280 H = 2464
seconds to Run = 0
Frame Rate = 21.000000
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
Redistribute latency…
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0/GstFakeSink:fakesink0: sync = false
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0: last-message = rendered: 7, dropped: 0, current: 13.19, average: 13.19
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0: last-message = rendered: 13, dropped: 0, current: 10.52, average: 11.81
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0: last-message = rendered: 19, dropped: 0, current: 10.48, average: 11.35
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0: last-message = rendered: 25, dropped: 0, current: 10.54, average: 11.15
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0: last-message = rendered: 31, dropped: 0, current: 10.51, average: 11.02
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0: last-message = rendered: 37, dropped: 0, current: 10.55, average: 10.94
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0: last-message = rendered: 43, dropped: 0, current: 10.49, average: 10.87
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0: last-message = rendered: 49, dropped: 0, current: 10.52, average: 10.83
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0: last-message = rendered: 55, dropped: 0, current: 10.48, average: 10.79
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0: last-message = rendered: 61, dropped: 0, current: 10.47, average: 10.76
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0: last-message = rendered: 67, dropped: 0, current: 10.53, average: 10.74
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0: last-message = rendered: 73, dropped: 0, current: 10.52, average: 10.72
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0: last-message = rendered: 79, dropped: 0, current: 10.49, average: 10.70
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0: last-message = rendered: 85, dropped: 0, current: 10.51, average: 10.69
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0: last-message = rendered: 91, dropped: 0, current: 10.48, average: 10.67
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0: last-message = rendered: 97, dropped: 0, current: 10.53, average: 10.66
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0: last-message = rendered: 103, dropped: 0, current: 10.52, average: 10.66
/GstPipeline:pipeline0/GstFPSDisplaySink:sink_0: last-message = rendered: 109, dropped: 0, current: 10.50, average: 10.65

hello 627263202,

do you have two video nodes in the system?
please note that, it’s not always the sensor-id=1 mapping to video1 .
FYI, it’s position property for Argus to recognize the sensor-id. for instance, in a two-camera system: rear (sensor-id=0), and front (sensor-id=1).

anyways, according to the fpsdisplaysink.

it looks you’re able to put the sensor to stream,
even though there’s performance issue, the reported frame-rate is around 11-fps

I tested in 2 lanes mode and got 21 fps. I hope It would get 42 fps in 4 lanes mode,but it only get 11 fps.
I configured Imx219 in 4 lanes and double PCLK, Did I miss other configuration that cause the performance issue?

hello 627263202,

may I double check your 4-lane use-case?

that’s not true,
per sensor capability reports, the maximum output resolution/frame-rate is 3280x2464@21-fps.
you may check with sensor vendor for the 4K@42-fps settings.

My custom board with other 4 lanes camera is not ready yet,so I try “4 lanes” on Imx219.
If the restriction of imx219 is 3280x2464@21-fps. I would accept 3280x2464@21-fps in 4 lanes mode,but it only get 11 fps.

hello 627263202,

it’s likely you’ve wrong configurations, there’re timing settings if you changed from 2-lane to 4-lane configs.
anyways, may I know what’s the real use-case? are you going to evaluate the 4-lane DT settings, or 4K streaming capability?