/*
* Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
#include
/ {
tegra-capture-vi {
num-channels = <4>;
ports {
#address-cells = <1>;
#size-cells = <0>;
vi_port0: port@0 {
reg = <0>;
rbpcv3_sc432ai_vi_in0: endpoint {
port-index = <0>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_sc432ai_csi_out0>;
status = "okay";
};
};
vi_port1: port@1 {
reg = <1>;
rbpcv3_sc432ai_vi_in1: endpoint {
port-index = <1>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_sc432ai_csi_out1>;
status = "okay";
};
};
vi_port2: port@2 {
reg = <2>;
rbpcv3_sc432ai_vi_in2: endpoint {
port-index = <2>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_sc432ai_csi_out2>;
status = "okay";
};
};
vi_port3: port@3 {
reg = <3>;
rbpcv3_sc432ai_vi_in3: endpoint {
port-index = <3>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_sc432ai_csi_out3>;
status = "okay";
};
};
};
};
host1x@13e00000 {
nvcsi@15a00000 {
num-channels = <4>;
#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>;
rbpcv3_sc432ai_csi_in0: endpoint@0 {
port-index = <0>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_sc432ai_out0>;
};
};
csi_chan0_port1: port@1 {
reg = <1>;
rbpcv3_sc432ai_csi_out0: endpoint@1 {
remote-endpoint = <&rbpcv3_sc432ai_vi_in0>;
};
};
};
};
csi_chan1: channel@1 {
reg = <1>;
ports {
#address-cells = <1>;
#size-cells = <0>;
csi_chan1_port0: port@0 {
reg = <0>;
rbpcv3_sc432ai_csi_in1: endpoint@2 {
port-index = <1>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_sc432ai_out1>;
};
};
csi_chan1_port1: port@1 {
reg = <1>;
rbpcv3_sc432ai_csi_out1: endpoint@3 {
remote-endpoint = <&rbpcv3_sc432ai_vi_in1>;
};
};
};
};
csi_chan2: channel@2 {
reg = <2>;
ports {
#address-cells = <1>;
#size-cells = <0>;
csi_chan2_port0: port@0 {
reg = <0>;
rbpcv3_sc432ai_csi_in2: endpoint@4 {
port-index = <2>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_sc432ai_out2>;
};
};
csi_chan2_port1: port@1 {
reg = <1>;
rbpcv3_sc432ai_csi_out2: endpoint@5 {
remote-endpoint = <&rbpcv3_sc432ai_vi_in2>;
};
};
};
};
csi_chan3: channel@3 {
reg = <3>;
ports {
#address-cells = <1>;
#size-cells = <0>;
csi_chan3_port0: port@0 {
reg = <0>;
rbpcv3_sc432ai_csi_in3: endpoint@6 {
port-index = <3>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_sc432ai_out3>;
};
};
csi_chan3_port1: port@1 {
reg = <1>;
rbpcv3_sc432ai_csi_out3: endpoint@7 {
remote-endpoint = <&rbpcv3_sc432ai_vi_in3>;
};
};
};
};
};
};
i2c@3180000 {
tca9548@70 {
i2c_0:i2c@5 {
sc432ai_cam0: rbpcv3_sc432ai_a@36 {
compatible = "ikingtec,sc432ai";
/* I2C device address */
reg = <0x36>;
/* V4L2 device node location */
devnode = "video3";
/* Physical dimensions of sensor */
physical_w = "4.104";
physical_h = "4.104";
sensor_model = "sc432ai";
use_sensor_mode_id = "true";
mode0 { /* SC432AI_MODE_960X960 */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_a";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
lane_polarity = "6";
active_w = "960";
active_h = "960";
mode_type = "bayer";
pixel_phase = "bggr";
csi_pixel_bit_depth = "10";
readout_orientation = "0";
line_length = "1280";
inherent_gain = "1";
mclk_multiplier = "6.41";
pix_clk_hz = "153600000";
gain_factor = "1000";
min_gain_val = "1000"; /* 1.00x */
max_gain_val = "87471"; /* 15.5x */
step_gain_val = "16";
default_gain = "1000"; /* 1.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
/* Frame_Rate = 1/Line_length / VTS / Clk_Priod(s) = Clk_Freq(Hz) / ( Line_length * VTS )*/
framerate_factor = "1000000";
min_framerate = "5000000"; /* 5.0 fps */
max_framerate = "120000000"; /* 120.0 fps */
step_framerate = "1";
default_framerate = "30000000"; /* 30.0 fps */
/*
* T_Expo = V * T_Line = V * (Line_Length) * Clk_Period = V * (Line_Length) * 10^6 / Clk_Freq(Hz)
* V = T_Expo * Clk_Freq(Hz) /Line_Length/10^6, so exposure_factor equals 10^6
*/
exposure_factor = "1000000";
min_exp_time = "16"; /* us */
max_exp_time = "8333"; /* us */
step_exp_time = "16";
default_exp_time = "1000"; /* us */
embedded_metadata_height = "0";
};
mode1 { /* SC432AI_MODE_800X800 */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_a";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
lane_polarity = "6";
active_w = "800";
active_h = "800";
mode_type = "bayer";
pixel_phase = "bggr";
csi_pixel_bit_depth = "10";
readout_orientation = "0";
line_length = "1472";
inherent_gain = "1";
pix_clk_hz = "115200000";
gain_factor = "1000";
min_gain_val = "1000"; /* 1.00x */
max_gain_val = "87471"; /* 15.5x */
step_gain_val = "16";
default_gain = "1000"; /* 1.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
/* Frame_Rate = 1/Line_length / VTS / Clk_Priod(s) = Clk_Freq(Hz) / ( Line_length * VTS )*/
framerate_factor = "1000000";
min_framerate = "5000000"; /* 30.0 fps */
max_framerate = "30000000"; /* 30.0 fps */
step_framerate = "1";
default_framerate = "30000000"; /* 30.0 fps */
/*
* T_Expo = V * T_Line = V * (Line_Length) * Clk_Period = V * (Line_Length) * 10^6 / Clk_Freq(Hz)
* V = T_Expo * Clk_Freq(Hz) /Line_Length/10^6, so exposure_factor equals 10^6
*/
exposure_factor = "1000000";
min_exp_time = "26"; /* us */
max_exp_time = "33324"; /* us */
step_exp_time = "13";
default_exp_time = "1000"; /* us */
embedded_metadata_height = "0";
};
mode2 { /* SC432AI_MODE_1728X1728 */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_a";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
lane_polarity = "6";
active_w = "1728";
active_h = "1728";
mode_type = "bayer";
pixel_phase = "bggr";
csi_pixel_bit_depth = "10";
readout_orientation = "0";
line_length = "2944";
inherent_gain = "1";
pix_clk_hz = "230400000";
gain_factor = "1000";
min_gain_val = "1000"; /* 1.00x */
max_gain_val = "87471"; /* 15.5x */
step_gain_val = "16";
default_gain = "1000"; /* 1.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
/* Frame_Rate = 1/Line_length / VTS / Clk_Priod(s) = Clk_Freq(Hz) / ( Line_length * VTS )*/
framerate_factor = "1000000";
min_framerate = "5000000"; /* 36.0 fps */
max_framerate = "36000000"; /* 36.0 fps */
step_framerate = "1";
default_framerate = "36000000"; /* 36.0 fps */
/*
* T_Expo = V * T_Line = V * (Line_Length) * Clk_Period = V * (Line_Length) * 10^6 / Clk_Freq(Hz)
* V = T_Expo * Clk_Freq(Hz) /Line_Length/10^6, so exposure_factor equals 10^6
*/
exposure_factor = "1000000";
min_exp_time = "26"; /* us */
max_exp_time = "27779"; /* us */
step_exp_time = "13";
default_exp_time = "1000"; /* us */
embedded_metadata_height = "0";
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
rbpcv3_sc432ai_out0: endpoint {
status = "okay";
port-index = <0>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_sc432ai_csi_in0>;
};
};
};
};
};
i2c_1:i2c@1 {
sc432ai_cam1: rbpcv3_sc432ai_b@36 {
compatible = "ikingtec,sc432ai";
/* I2C device address */
reg = <0x36>;
/* V4L2 device node location */
devnode = "video0";
/* Physical dimensions of sensor */
physical_w = "4.104";
physical_h = "4.104";
sensor_model = "sc432ai";
use_sensor_mode_id = "true";
mode0 { /* SC432AI_MODE_960X960 */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_b";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
lane_polarity = "6";
active_w = "960";
active_h = "960";
mode_type = "bayer";
pixel_phase = "bggr";
csi_pixel_bit_depth = "10";
readout_orientation = "0";
line_length = "1280";
inherent_gain = "1";
mclk_multiplier = "6.41";
pix_clk_hz = "153600000";
gain_factor = "1000";
min_gain_val = "1000"; /* 1.00x */
max_gain_val = "87471"; /* 15.5x */
step_gain_val = "16";
default_gain = "1000"; /* 1.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
/* Frame_Rate = 1/Line_length / VTS / Clk_Priod(s) = Clk_Freq(Hz) / ( Line_length * VTS )*/
framerate_factor = "1000000";
min_framerate = "5000000"; /* 5.0 fps */
max_framerate = "120000000"; /* 120.0 fps */
step_framerate = "1";
default_framerate = "30000000"; /* 30.0 fps */
/*
* T_Expo = V * T_Line = V * (Line_Length) * Clk_Period = V * (Line_Length) * 10^6 / Clk_Freq(Hz)
* V = T_Expo * Clk_Freq(Hz) /Line_Length/10^6, so exposure_factor equals 10^6
*/
exposure_factor = "1000000";
min_exp_time = "16"; /* us */
max_exp_time = "8333"; /* us */
step_exp_time = "16";
default_exp_time = "1000"; /* us */
embedded_metadata_height = "0";
};
mode1 { /* SC432AI_MODE_800X800 */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_b";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
lane_polarity = "6";
active_w = "800";
active_h = "800";
mode_type = "bayer";
pixel_phase = "bggr";
csi_pixel_bit_depth = "10";
readout_orientation = "0";
line_length = "1472";
inherent_gain = "1";
pix_clk_hz = "115200000";
gain_factor = "1000";
min_gain_val = "1000"; /* 1.00x */
max_gain_val = "87471"; /* 15.5x */
step_gain_val = "16";
default_gain = "1000"; /* 1.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
/* Frame_Rate = 1/Line_length / VTS / Clk_Priod(s) = Clk_Freq(Hz) / ( Line_length * VTS )*/
framerate_factor = "1000000";
min_framerate = "5000000"; /* 30.0 fps */
max_framerate = "30000000"; /* 30.0 fps */
step_framerate = "1";
default_framerate = "30000000"; /* 30.0 fps */
/*
* T_Expo = V * T_Line = V * (Line_Length) * Clk_Period = V * (Line_Length) * 10^6 / Clk_Freq(Hz)
* V = T_Expo * Clk_Freq(Hz) /Line_Length/10^6, so exposure_factor equals 10^6
*/
exposure_factor = "1000000";
min_exp_time = "26"; /* us */
max_exp_time = "33324"; /* us */
step_exp_time = "13";
default_exp_time = "1000"; /* us */
embedded_metadata_height = "0";
};
mode2 { /* SC432AI_MODE_1728X1728 */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_b";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
lane_polarity = "6";
active_w = "1728";
active_h = "1728";
mode_type = "bayer";
pixel_phase = "bggr";
csi_pixel_bit_depth = "10";
readout_orientation = "0";
line_length = "2944";
inherent_gain = "1";
pix_clk_hz = "230400000";
gain_factor = "1000";
min_gain_val = "1000"; /* 1.00x */
max_gain_val = "87471"; /* 15.5x */
step_gain_val = "16";
default_gain = "1000"; /* 1.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
/* Frame_Rate = 1/Line_length / VTS / Clk_Priod(s) = Clk_Freq(Hz) / ( Line_length * VTS )*/
framerate_factor = "1000000";
min_framerate = "5000000"; /* 36.0 fps */
max_framerate = "36000000"; /* 36.0 fps */
step_framerate = "1";
default_framerate = "36000000"; /* 36.0 fps */
/*
* T_Expo = V * T_Line = V * (Line_Length) * Clk_Period = V * (Line_Length) * 10^6 / Clk_Freq(Hz)
* V = T_Expo * Clk_Freq(Hz) /Line_Length/10^6, so exposure_factor equals 10^6
*/
exposure_factor = "1000000";
min_exp_time = "26"; /* us */
max_exp_time = "27779"; /* us */
step_exp_time = "13";
default_exp_time = "1000"; /* us */
embedded_metadata_height = "0";
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
rbpcv3_sc432ai_out1: endpoint {
status = "okay";
port-index = <1>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_sc432ai_csi_in1>;
};
};
};
};
};
i2c_2:i2c@2 {
sc432ai_cam2: rbpcv3_sc432ai_c@36 {
compatible = "ikingtec,sc432ai";
/* I2C device address */
reg = <0x36>;
/* V4L2 device node location */
devnode = "video1";
/* Physical dimensions of sensor */
physical_w = "4.104";
physical_h = "4.104";
sensor_model = "sc432ai";
use_sensor_mode_id = "true";
mode0 { /* SC432AI_MODE_960X960 */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_c";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
active_w = "960";
active_h = "960";
mode_type = "bayer";
pixel_phase = "bggr";
csi_pixel_bit_depth = "10";
readout_orientation = "0";
line_length = "1280";
inherent_gain = "1";
mclk_multiplier = "6.41";
pix_clk_hz = "153600000";
gain_factor = "1000";
min_gain_val = "1000"; /* 1.00x */
max_gain_val = "87471"; /* 15.5x */
step_gain_val = "16";
default_gain = "1000"; /* 1.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
/* Frame_Rate = 1/Line_length / VTS / Clk_Priod(s) = Clk_Freq(Hz) / ( Line_length * VTS )*/
framerate_factor = "1000000";
min_framerate = "5000000"; /* 5.0 fps */
max_framerate = "120000000"; /* 120.0 fps */
step_framerate = "1";
default_framerate = "30000000"; /* 30.0 fps */
/*
* T_Expo = V * T_Line = V * (Line_Length) * Clk_Period = V * (Line_Length) * 10^6 / Clk_Freq(Hz)
* V = T_Expo * Clk_Freq(Hz) /Line_Length/10^6, so exposure_factor equals 10^6
*/
exposure_factor = "1000000";
min_exp_time = "16"; /* us */
max_exp_time = "8333"; /* us */
step_exp_time = "16";
default_exp_time = "1000"; /* us */
embedded_metadata_height = "0";
};
mode1 { /* SC432AI_MODE_800X800 */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_c";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
active_w = "800";
active_h = "800";
mode_type = "bayer";
pixel_phase = "bggr";
csi_pixel_bit_depth = "10";
readout_orientation = "0";
line_length = "1472";
inherent_gain = "1";
pix_clk_hz = "115200000";
gain_factor = "1000";
min_gain_val = "1000"; /* 1.00x */
max_gain_val = "87471"; /* 15.5x */
step_gain_val = "16";
default_gain = "1000"; /* 1.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
/* Frame_Rate = 1/Line_length / VTS / Clk_Priod(s) = Clk_Freq(Hz) / ( Line_length * VTS )*/
framerate_factor = "1000000";
min_framerate = "5000000"; /* 30.0 fps */
max_framerate = "30000000"; /* 30.0 fps */
step_framerate = "1";
default_framerate = "30000000"; /* 30.0 fps */
/*
* T_Expo = V * T_Line = V * (Line_Length) * Clk_Period = V * (Line_Length) * 10^6 / Clk_Freq(Hz)
* V = T_Expo * Clk_Freq(Hz) /Line_Length/10^6, so exposure_factor equals 10^6
*/
exposure_factor = "1000000";
min_exp_time = "26"; /* us */
max_exp_time = "33324"; /* us */
step_exp_time = "13";
default_exp_time = "1000"; /* us */
embedded_metadata_height = "0";
};
mode2 { /* SC432AI_MODE_1728X1728 */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_c";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
active_w = "1728";
active_h = "1728";
mode_type = "bayer";
pixel_phase = "bggr";
csi_pixel_bit_depth = "10";
readout_orientation = "0";
line_length = "2944";
inherent_gain = "1";
pix_clk_hz = "230400000";
gain_factor = "1000";
min_gain_val = "1000"; /* 1.00x */
max_gain_val = "87471"; /* 15.5x */
step_gain_val = "16";
default_gain = "1000"; /* 1.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
/* Frame_Rate = 1/Line_length / VTS / Clk_Priod(s) = Clk_Freq(Hz) / ( Line_length * VTS )*/
framerate_factor = "1000000";
min_framerate = "5000000"; /* 36.0 fps */
max_framerate = "36000000"; /* 36.0 fps */
step_framerate = "1";
default_framerate = "36000000"; /* 36.0 fps */
/*
* T_Expo = V * T_Line = V * (Line_Length) * Clk_Period = V * (Line_Length) * 10^6 / Clk_Freq(Hz)
* V = T_Expo * Clk_Freq(Hz) /Line_Length/10^6, so exposure_factor equals 10^6
*/
exposure_factor = "1000000";
min_exp_time = "26"; /* us */
max_exp_time = "27779"; /* us */
step_exp_time = "13";
default_exp_time = "1000"; /* us */
embedded_metadata_height = "0";
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
rbpcv3_sc432ai_out2: endpoint {
status = "okay";
port-index = <2>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_sc432ai_csi_in2>;
};
};
};
};
};
i2c_3:i2c@3 {
sc432ai_cam3: rbpcv3_sc432ai_d@36 {
compatible = "ikingtec,sc432ai";
/* I2C device address */
reg = <0x36>;
/* V4L2 device node location */
devnode = "video2";
/* Physical dimensions of sensor */
physical_w = "4.104";
physical_h = "4.104";
sensor_model = "sc432ai";
use_sensor_mode_id = "true";
mode0 { /* SC432AI_MODE_960X960 */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_d";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
active_w = "960";
active_h = "960";
mode_type = "bayer";
pixel_phase = "bggr";
csi_pixel_bit_depth = "10";
readout_orientation = "0";
line_length = "1280";
inherent_gain = "1";
mclk_multiplier = "6.41";
pix_clk_hz = "153600000";
gain_factor = "1000";
min_gain_val = "1000"; /* 1.00x */
max_gain_val = "87471"; /* 15.5x */
step_gain_val = "16";
default_gain = "1000"; /* 1.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
/* Frame_Rate = 1/Line_length / VTS / Clk_Priod(s) = Clk_Freq(Hz) / ( Line_length * VTS )*/
framerate_factor = "1000000";
min_framerate = "5000000"; /* 5.0 fps */
max_framerate = "120000000"; /* 120.0 fps */
step_framerate = "1";
default_framerate = "30000000"; /* 30.0 fps */
/*
* T_Expo = V * T_Line = V * (Line_Length) * Clk_Period = V * (Line_Length) * 10^6 / Clk_Freq(Hz)
* V = T_Expo * Clk_Freq(Hz) /Line_Length/10^6, so exposure_factor equals 10^6
*/
exposure_factor = "1000000";
min_exp_time = "16"; /* us */
max_exp_time = "8333"; /* us */
step_exp_time = "16";
default_exp_time = "1000"; /* us */
embedded_metadata_height = "0";
};
mode1 { /* SC432AI_MODE_800X800 */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_d";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
active_w = "800";
active_h = "800";
mode_type = "bayer";
pixel_phase = "bggr";
csi_pixel_bit_depth = "10";
readout_orientation = "0";
line_length = "1472";
inherent_gain = "1";
pix_clk_hz = "115200000";
gain_factor = "1000";
min_gain_val = "1000"; /* 1.00x */
max_gain_val = "87471"; /* 15.5x */
step_gain_val = "16";
default_gain = "1000"; /* 1.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
/* Frame_Rate = 1/Line_length / VTS / Clk_Priod(s) = Clk_Freq(Hz) / ( Line_length * VTS )*/
framerate_factor = "1000000";
min_framerate = "5000000"; /* 30.0 fps */
max_framerate = "30000000"; /* 30.0 fps */
step_framerate = "1";
default_framerate = "30000000"; /* 30.0 fps */
/*
* T_Expo = V * T_Line = V * (Line_Length) * Clk_Period = V * (Line_Length) * 10^6 / Clk_Freq(Hz)
* V = T_Expo * Clk_Freq(Hz) /Line_Length/10^6, so exposure_factor equals 10^6
*/
exposure_factor = "1000000";
min_exp_time = "26"; /* us */
max_exp_time = "33324"; /* us */
step_exp_time = "13";
default_exp_time = "1000"; /* us */
embedded_metadata_height = "0";
};
mode2 { /* SC432AI_MODE_1728X1728 */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_d";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
active_w = "1728";
active_h = "1728";
mode_type = "bayer";
pixel_phase = "bggr";
csi_pixel_bit_depth = "10";
readout_orientation = "0";
line_length = "2944";
inherent_gain = "1";
pix_clk_hz = "230400000";
gain_factor = "1000";
min_gain_val = "1000"; /* 1.00x */
max_gain_val = "87471"; /* 15.5x */
step_gain_val = "16";
default_gain = "1000"; /* 1.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
/* Frame_Rate = 1/Line_length / VTS / Clk_Priod(s) = Clk_Freq(Hz) / ( Line_length * VTS )*/
framerate_factor = "1000000";
min_framerate = "5000000"; /* 36.0 fps */
max_framerate = "36000000"; /* 36.0 fps */
step_framerate = "1";
default_framerate = "36000000"; /* 36.0 fps */
/*
* T_Expo = V * T_Line = V * (Line_Length) * Clk_Period = V * (Line_Length) * 10^6 / Clk_Freq(Hz)
* V = T_Expo * Clk_Freq(Hz) /Line_Length/10^6, so exposure_factor equals 10^6
*/
exposure_factor = "1000000";
min_exp_time = "26"; /* us */
max_exp_time = "27779"; /* us */
step_exp_time = "13";
default_exp_time = "1000"; /* us */
embedded_metadata_height = "0";
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
rbpcv3_sc432ai_out3: endpoint {
status = "okay";
port-index = <3>;
bus-width = <2>;
remote-endpoint = <&rbpcv3_sc432ai_csi_in3>;
};
};
};
};
};
};
};
lens_sc432ai@RBPCV2 {
min_focus_distance = "0.0";
hyper_focal = "0.0";
focal_length = "2.88";
f_number = "2.2";
aperture = "2.2";
};
};
/ {
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 = <8>;
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_bottomleft_RBP194";
position = "bottomleft";
orientation = "1";
cam_module0_drivernode0: drivernode0 {
status = "okay";
pcl_id = "v4l2_sensor";
devname = "sc432ai 30-0036";
proc-device-tree = "/proc/device-tree/i2c@3180000/tca9548@70/i2c@5/rbpcv3_sc432ai_a@36";
};
cam_module0_drivernode1: drivernode1 {
pcl_id = "v4l2_lens";
proc-device-tree = "/proc/device-tree/lens_sc432ai@RBPCV2/";
};
};
cam_module1: module1 {
badge = "jakku_centerleft_RBP194";
position = "centerleft";
orientation = "1";
cam_module1_drivernode0: drivernode0 {
status = "okay";
pcl_id = "v4l2_sensor";
devname = "sc432ai 31-0036";
proc-device-tree = "/proc/device-tree/i2c@3180000/tca9548@70/i2c@1/rbpcv3_sc432ai_b@36";
};
cam_module1_drivernode1: drivernode1 {
pcl_id = "v4l2_lens";
proc-device-tree = "/proc/device-tree/lens_sc432ai@RBPCV2/";
};
};
cam_module2: module2 {
badge = "jakku_centerright_RBP194";
position = "centerright";
orientation = "1";
cam_module2_drivernode0: drivernode0 {
status = "okay";
pcl_id = "v4l2_sensor";
devname = "sc432ai 32-0036";
proc-device-tree = "/proc/device-tree/i2c@3180000/tca9548@70/i2c@2/rbpcv3_sc432ai_c@36";
};
cam_module2_drivernode1: drivernode1 {
pcl_id = "v4l2_lens";
proc-device-tree = "/proc/device-tree/lens_sc432ai@RBPCV2/";
};
};
cam_module3: module3 {
badge = "jakku_topleft_RBP194";
position = "topleft";
orientation = "1";
cam_module3_drivernode0: drivernode0 {
status = "okay";
pcl_id = "v4l2_sensor";
devname = "sc432ai 33-0036";
proc-device-tree = "/proc/device-tree/i2c@3180000/tca9548@70/i2c@3/rbpcv3_sc432ai_d@36";
};
cam_module3_drivernode1: drivernode1 {
pcl_id = "v4l2_lens";
proc-device-tree = "/proc/device-tree/lens_sc432ai@RBPCV2/";
};
};
};
};
};