V4l2 Sensor driver -- modes

Hi All,

As per Sensor programming guide, the modes are defined as:

mode1 { //MODE_1920X1080
mclk_khz = “24000”;
num_lanes = “8”;
tegra_sinterface = “serial_b”;
discontinuous_clk = “no”;
dpcm_enable = “false”;
cil_settletime = “0”;

  active_w = "1920";
  active_h = "1080";
  pixel_t = "bayer_bggr";
  //pixel_t = "bayer_rggb";
  readout_orientation = "90";
  line_length = "1752";
  inherent_gain = "1";
  mclk_multiplier = "6.67";
  pix_clk_hz = "160000000";

  min_gain_val = "1.0";
  max_gain_val = "16";
  min_hdr_ratio = "1";
  max_hdr_ratio = "64";
  min_framerate = "2.787078";
  max_framerate = "30";
  min_exp_time = "22";
  max_exp_time = "358733";
  embedded_metadata_height = "1";

};

The above values are in device tree node values. Which driver uses these values?
Sensor driver or CSI driver or Camera driver frameworks?

Our device is like HDMI to CSI converter. For this, in sensor driver, whether we need to configure the
above mode values or not.

Please provide the inputs.

-Thanks.

It’s for nvcmaerasrc only. For your case you should use the v4l2src that means you don’t need report these.