From bd01d2d08c0a01669489f3e7a489a4bc308653ce Mon Sep 17 00:00:00 2001 From: dchvs Date: Fri, 19 Mar 2021 18:22:08 -0600 Subject: [PATCH] Add mode1 with resolution 1280x960 to DTB --- .../tegra186-tx2-spiri-camera.dtsi | 81 ++++++++++++++++++- 1 file changed, 80 insertions(+), 1 deletion(-) diff --git a/hardware/nvidia-spiri/platform/t18x/common/kernel-dts/t18x-common-platforms/tegra186-tx2-spiri-camera.dtsi b/hardware/nvidia-spiri/platform/t18x/common/kernel-dts/t18x-common-platforms/tegra186-tx2-spiri-camera.dtsi index 1734d40..2ccbe00 100644 --- a/hardware/nvidia-spiri/platform/t18x/common/kernel-dts/t18x-common-platforms/tegra186-tx2-spiri-camera.dtsi +++ b/hardware/nvidia-spiri/platform/t18x/common/kernel-dts/t18x-common-platforms/tegra186-tx2-spiri-camera.dtsi @@ -109,7 +109,7 @@ i2c8 = "/i2c@31e0000"; max_hdr_ratio = "1"; min_framerate = "2000000"; - max_framerate = "60000000"; + max_framerate = "60000000"; step_framerate = "1"; default_framerate = "60000000"; // 60.0 fps @@ -118,6 +118,46 @@ i2c8 = "/i2c@31e0000"; step_exp_time = "1"; default_exp_time = "50000"; // us }; + mode1 { + mclk_khz = "24000"; + num_lanes = "1"; + tegra_sinterface = "serial_b"; + discontinuous_clk = "no"; + dpcm_enable = "false"; + cil_settletime = "26"; + + active_w = "1280"; + active_h = "960"; + dynamic_pixel_bit_depth = "12"; + csi_pixel_bit_depth = "12"; + mode_type = "bayer"; + pixel_phase = "rggb"; + readout_orientation = "0"; + line_length = "1650"; + inherent_gain = "1"; + pix_clk_hz = "74250000"; + + gain_factor = "3"; + framerate_factor = "1000000"; + exposure_factor = "1000000"; + min_gain_val = "102"; + max_gain_val = "160" ; + step_gain_val = "1"; + default_gain = "102"; + min_hdr_ratio = "1"; + max_hdr_ratio = "1"; + + min_framerate = "2000000"; + max_framerate = "45000000"; + step_framerate = "1"; + default_framerate = "45000000"; // 45.0 fps + + min_exp_time = "24000"; // us + max_exp_time = "74000"; // us + step_exp_time = "1"; + default_exp_time = "50000"; // us + }; + ports { #address-cells = <0x1>; #size-cells = <0x0>; @@ -205,6 +245,45 @@ i2c8 = "/i2c@31e0000"; step_exp_time = "1"; default_exp_time = "50000"; // us }; + mode1 { + mclk_khz = "24000"; + num_lanes = "1"; + tegra_sinterface = "serial_a"; + discontinuous_clk = "no"; + dpcm_enable = "false"; + cil_settletime = "26"; + + active_w = "1280"; + active_h = "960"; + dynamic_pixel_bit_depth = "12"; + csi_pixel_bit_depth = "12"; + mode_type = "bayer"; + pixel_phase = "rggb"; + readout_orientation = "0"; + line_length = "1650"; + inherent_gain = "1"; + pix_clk_hz = "74250000"; + + gain_factor = "3"; + framerate_factor = "1000000"; + exposure_factor = "1000000"; + min_gain_val = "102"; + max_gain_val = "160" ; + step_gain_val = "1"; + default_gain = "102"; + min_hdr_ratio = "1"; + max_hdr_ratio = "1"; + + min_framerate = "2000000"; + max_framerate = "45000000"; + step_framerate = "1"; + default_framerate = "45000000"; // 45.0 fps + + min_exp_time = "24000"; // us + max_exp_time = "74000"; // us + step_exp_time = "1"; + default_exp_time = "50000"; // us + }; ports { #address-cells = <0x1>; #size-cells = <0x0>;