From e05aeb04a30778698b05dcef838ddabe3c4b86c8 Mon Sep 17 00:00:00 2001 From: dchvs Date: Wed, 3 Mar 2021 19:57:53 -0600 Subject: [PATCH] Fix gain & exposure range on DTB --- .../tegra186-tx2-spiri-camera.dtsi | 33 +++++++++---------- 1 file changed, 16 insertions(+), 17 deletions(-) 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 0f5b0f2..8543957 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 @@ -98,26 +98,25 @@ i2c8 = "/i2c@31e0000"; inherent_gain = "1"; pix_clk_hz = "74250000"; - gain_factor = "1"; + gain_factor = "3125"; framerate_factor = "1000000"; exposure_factor = "1000000"; - min_gain_val = "4"; - max_gain_val = "6476"; + min_gain_val = "100000"; + max_gain_val = "797000"; step_gain_val = "1"; - default_gain = "100"; + default_gain = "100000"; min_hdr_ratio = "1"; max_hdr_ratio = "1"; min_framerate = "2000000"; max_framerate = "60000000"; step_framerate = "1"; - default_framerate = "6000000"; // 60.0 fps + default_framerate = "60000000"; // 60.0 fps - min_exp_time = "23"; // us - max_exp_time = "14933"; // us + min_exp_time = "500"; // us + max_exp_time = "16000"; // us step_exp_time = "1"; - default_exp_time = "10000"; // us - + default_exp_time = "8000"; // us }; ports { #address-cells = <0x1>; @@ -186,25 +185,25 @@ i2c8 = "/i2c@31e0000"; inherent_gain = "1"; pix_clk_hz = "74250000"; - gain_factor = "1"; + gain_factor = "3125"; framerate_factor = "1000000"; exposure_factor = "1000000"; - min_gain_val = "4"; - max_gain_val = "6476"; + min_gain_val = "100000"; + max_gain_val = "797000"; step_gain_val = "1"; - default_gain = "100"; + default_gain = "100000"; min_hdr_ratio = "1"; max_hdr_ratio = "1"; min_framerate = "2000000"; max_framerate = "60000000"; step_framerate = "1"; - default_framerate = "6000000"; // 60.0 fps + default_framerate = "60000000"; // 60.0 fps - min_exp_time = "23"; // us - max_exp_time = "14933"; // us + min_exp_time = "500"; // us + max_exp_time = "16000"; // us step_exp_time = "1"; - default_exp_time = "10000"; // us + default_exp_time = "8000"; // us }; ports { #address-cells = <0x1>;