forked from rrcarlosr/Jetpack
954 lines
37 KiB
Plaintext
954 lines
37 KiB
Plaintext
#include "tegra194-agx-cti-camera-base.dtsi"
|
|
|
|
|
|
/ {
|
|
host1x {
|
|
vi@15c10000 {
|
|
num-channels = <3>;
|
|
status="okay";
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
port@0 {
|
|
reg = <0>;
|
|
status="okay";
|
|
endpoint {
|
|
status="okay";
|
|
port-index = <0>;
|
|
bus-width = <4>;
|
|
remote-endpoint = <&csi_out0>;
|
|
};
|
|
};
|
|
port@1 {
|
|
reg = <1>;
|
|
status="okay";
|
|
endpoint {
|
|
status="okay";
|
|
port-index = <2>;
|
|
bus-width = <4>;
|
|
remote-endpoint = <&csi_out1>;
|
|
};
|
|
};
|
|
port@2 {
|
|
reg = <2>;
|
|
status="okay";
|
|
endpoint {
|
|
status="okay";
|
|
port-index = <4>;
|
|
bus-width = <4>;
|
|
remote-endpoint = <&csi_out2>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
nvcsi@15a00000 {
|
|
num-channels = <3>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
status="okay";
|
|
channel@0 {
|
|
status="okay";
|
|
reg = <0>;
|
|
ports {
|
|
status="okay";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
port@0 {
|
|
reg = <0>;
|
|
status="okay";
|
|
endpoint@0 {
|
|
status="okay";
|
|
port-index = <0>;
|
|
bus-width = <4>;
|
|
remote-endpoint = <&imx274_out0>;
|
|
};
|
|
};
|
|
port@1 {
|
|
status="okay";
|
|
reg = <1>;
|
|
endpoint@1 {
|
|
status="okay";
|
|
remote-endpoint = <&vi_in0>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
channel@1 {
|
|
status="okay";
|
|
reg = <1>;
|
|
ports {
|
|
status="okay";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
port@0 {
|
|
reg = <0>;
|
|
status="okay";
|
|
endpoint@2 {
|
|
status="okay";
|
|
port-index = <2>;
|
|
bus-width = <4>;
|
|
remote-endpoint = <&imx274_out1>;
|
|
};
|
|
};
|
|
port@1 {
|
|
status="okay";
|
|
reg = <1>;
|
|
endpoint@3 {
|
|
status="okay";
|
|
remote-endpoint = <&vi_in1>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
channel@2 {
|
|
status="okay";
|
|
reg = <2>;
|
|
ports {
|
|
status="okay";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
port@0 {
|
|
reg = <0>;
|
|
status="okay";
|
|
endpoint@4 {
|
|
status="okay";
|
|
port-index = <4>;
|
|
bus-width = <4>;
|
|
remote-endpoint = <&imx274_out2>;
|
|
};
|
|
};
|
|
port@1 {
|
|
status="okay";
|
|
reg = <1>;
|
|
endpoint@5 {
|
|
status="okay";
|
|
remote-endpoint = <&vi_in2>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
i2c@3180000 {
|
|
tca9546@70 {
|
|
compatible = "nxp,pca9546";
|
|
reg = <0x70>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
skip_mux_detect = "yes";
|
|
vcc-supply = <&p2822_vdd_1v8_cvb>;
|
|
vcc_lp = "vcc";
|
|
force_bus_start = <0x1E>;
|
|
status = "okay";
|
|
|
|
i2c@0 {
|
|
reg = <0>;
|
|
i2c-mux,deselect-on-exit;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
pca9570_a@24 {
|
|
compatible = "nvidia,pca9570";
|
|
reg = <0x24>;
|
|
channel = "a";
|
|
drive_ic = "DRV8838";
|
|
};
|
|
|
|
imx274_a@1a {
|
|
/* Define any required hw resources needed by driver */
|
|
/* ie. clocks, io pins, power sources */
|
|
clocks = <&bpmp_clks TEGRA194_CLK_EXTPERIPH1>,
|
|
<&bpmp_clks TEGRA194_CLK_EXTPERIPH1>;
|
|
clock-names = "extperiph1", "pllp_grtba";
|
|
mclk = "extperiph1";
|
|
reset-gpios = <&tegra_main_gpio CAM0_RST_L GPIO_ACTIVE_HIGH>;
|
|
vana-supply = <&p2822_avdd_cam_2v8>;
|
|
vif-supply = <&p2822_vdd_1v8_cvb>;
|
|
|
|
status = "okay";
|
|
compatible = "nvidia,imx274";
|
|
/* I2C device address */
|
|
reg = <0x1a>;
|
|
|
|
/* V4L2 device node location */
|
|
devnode = "video0";
|
|
|
|
/* Physical dimensions of sensor */
|
|
physical_w = "3.674";
|
|
physical_h = "2.738";
|
|
|
|
sensor_model = "imx274";
|
|
|
|
/* Define any required hw resources needed by driver */
|
|
/* ie. clocks, io pins, power sources */
|
|
avdd-reg = "vana";
|
|
iovdd-reg = "vif";
|
|
|
|
/* Defines number of frames to be dropped by driver internally after applying */
|
|
/* sensor crop settings. Some sensors send corrupt frames after applying */
|
|
/* crop co-ordinates */
|
|
/*post_crop_frame_drop = "0";*/
|
|
|
|
/* if true, delay gain setting by one frame to be in sync with exposure */
|
|
delayed_gain = "true";
|
|
mode0 { // IMX274_MODE_3840X2160
|
|
mclk_khz = "24000";
|
|
num_lanes = "4";
|
|
tegra_sinterface = "serial_a";
|
|
phy_mode = "DPHY";
|
|
discontinuous_clk = "yes";
|
|
dpcm_enable = "false";
|
|
cil_settletime = "0";
|
|
|
|
active_w = "3840";
|
|
active_h = "2160";
|
|
mode_type = "bayer";
|
|
pixel_phase = "rggb";
|
|
csi_pixel_bit_depth = "10";
|
|
readout_orientation = "0";
|
|
line_length = "4208";
|
|
inherent_gain = "1";
|
|
mclk_multiplier = "24";
|
|
pix_clk_hz = "576000000";
|
|
|
|
gain_factor = "1000000";
|
|
min_gain_val = "1000000";
|
|
max_gain_val = "44400000";
|
|
step_gain_val = "1";
|
|
default_gain = "1000000";
|
|
min_hdr_ratio = "1";
|
|
max_hdr_ratio = "1";
|
|
framerate_factor = "1000000";
|
|
min_framerate = "1500000";
|
|
max_framerate = "60000000";
|
|
step_framerate = "1";
|
|
default_framerate= "60000000";
|
|
exposure_factor = "1000000";
|
|
min_exp_time = "44";
|
|
max_exp_time = "478696";
|
|
step_exp_time = "1";
|
|
default_exp_time = "16667";/* us */
|
|
embedded_metadata_height = "1";
|
|
};
|
|
mode1 { // IMX274_MODE_1920X1080
|
|
mclk_khz = "24000";
|
|
num_lanes = "4";
|
|
tegra_sinterface = "serial_a";
|
|
phy_mode = "DPHY";
|
|
discontinuous_clk = "yes";
|
|
dpcm_enable = "false";
|
|
cil_settletime = "0";
|
|
dynamic_pixel_bit_depth = "10";
|
|
csi_pixel_bit_depth = "10";
|
|
mode_type = "bayer";
|
|
pixel_phase = "rggb";
|
|
|
|
active_w = "1920";
|
|
active_h = "1080";
|
|
readout_orientation = "0";
|
|
line_length = "4160";
|
|
inherent_gain = "1";
|
|
mclk_multiplier = "24";
|
|
pix_clk_hz = "576000000";
|
|
|
|
gain_factor = "1000000";
|
|
min_gain_val = "1000000";
|
|
max_gain_val = "177000000";
|
|
step_gain_val = "1";
|
|
default_gain = "1000000";
|
|
min_hdr_ratio = "1";
|
|
max_hdr_ratio = "1";
|
|
framerate_factor = "1000000";
|
|
min_framerate = "1500000";
|
|
max_framerate = "60000000";
|
|
step_framerate = "1";
|
|
default_framerate= "60000000";
|
|
exposure_factor = "1000000";
|
|
min_exp_time = "58";
|
|
max_exp_time = "184611";
|
|
step_exp_time = "1";
|
|
default_exp_time = "16667";/* us */
|
|
embedded_metadata_height = "1";
|
|
};
|
|
mode2 { // IMX274_MODE_3840X2160_DOL_30FPS
|
|
mclk_khz = "24000";
|
|
num_lanes = "4";
|
|
tegra_sinterface = "serial_a";
|
|
phy_mode = "DPHY";
|
|
discontinuous_clk = "yes";
|
|
dpcm_enable = "false";
|
|
cil_settletime = "0";
|
|
dynamic_pixel_bit_depth = "10";
|
|
csi_pixel_bit_depth = "10";
|
|
mode_type = "bayer_wdr_dol";
|
|
pixel_phase = "rggb";
|
|
|
|
active_w = "3856";
|
|
active_h = "4448";
|
|
readout_orientation = "0";
|
|
line_length = "4208";
|
|
inherent_gain = "1";
|
|
mclk_multiplier = "24";
|
|
pix_clk_hz = "576000000";
|
|
|
|
gain_factor = "1000000";
|
|
min_gain_val = "1000000";
|
|
max_gain_val = "30000000";
|
|
step_gain_val = "1";
|
|
default_gain = "1000000";
|
|
min_hdr_ratio = "32";
|
|
max_hdr_ratio = "32";
|
|
framerate_factor = "1000000";
|
|
min_framerate = "1500000";
|
|
max_framerate = "30000000";
|
|
step_framerate = "1";
|
|
default_framerate= "30000000";
|
|
exposure_factor = "1000000";
|
|
min_exp_time = "864";
|
|
max_exp_time = "20480";
|
|
step_exp_time = "1";
|
|
default_exp_time = "20480";/* us */
|
|
embedded_metadata_height = "1";
|
|
|
|
num_of_exposure = "2";
|
|
num_of_ignored_lines = "14";
|
|
num_of_lines_offset_0 = "50";
|
|
num_of_ignored_pixels = "4";
|
|
num_of_left_margin_pixels = "12";
|
|
num_of_right_margin_pixels = "0";
|
|
};
|
|
mode3 { // IMX274_MODE_1920X1080_DOL_60FPS
|
|
mclk_khz = "24000";
|
|
num_lanes = "4";
|
|
tegra_sinterface = "serial_a";
|
|
phy_mode = "DPHY";
|
|
discontinuous_clk = "yes";
|
|
dpcm_enable = "false";
|
|
cil_settletime = "0";
|
|
dynamic_pixel_bit_depth = "10";
|
|
csi_pixel_bit_depth = "10";
|
|
mode_type = "bayer_wdr_dol";
|
|
pixel_phase = "rggb";
|
|
|
|
active_w = "1936";
|
|
active_h = "2264";
|
|
readout_orientation = "0";
|
|
line_length = "4160";
|
|
inherent_gain = "1";
|
|
mclk_multiplier = "24";
|
|
pix_clk_hz = "576000000";
|
|
|
|
gain_factor = "1000000";
|
|
min_gain_val = "1000000";
|
|
max_gain_val = "177000000";
|
|
step_gain_val = "1";
|
|
default_gain = "1000000";
|
|
min_hdr_ratio = "32";
|
|
max_hdr_ratio = "32";
|
|
framerate_factor = "1000000";
|
|
min_framerate = "1500000";
|
|
max_framerate = "60000000";
|
|
step_framerate = "1";
|
|
default_framerate= "60000000";
|
|
exposure_factor = "1000000";
|
|
min_exp_time = "859";
|
|
max_exp_time = "15649";
|
|
step_exp_time = "1";
|
|
default_exp_time = "15649";/* us */
|
|
embedded_metadata_height = "1";
|
|
|
|
/* WDR related settings */
|
|
num_of_exposure = "2";
|
|
num_of_ignored_lines = "14";
|
|
num_of_lines_offset_0 = "38";
|
|
num_of_ignored_pixels = "4";
|
|
num_of_left_margin_pixels = "6";
|
|
num_of_right_margin_pixels = "6";
|
|
};
|
|
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
port@0 {
|
|
reg = <0>;
|
|
imx274_out0: endpoint {
|
|
port-index = <0>;
|
|
bus-width = <4>;
|
|
remote-endpoint = <&csi_in0>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
i2c@1 {
|
|
reg = <1>;
|
|
i2c-mux,deselect-on-exit;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
pca9570_c@24 {
|
|
compatible = "nvidia,pca9570";
|
|
reg = <0x24>;
|
|
channel = "c";
|
|
drive_ic = "DRV8838";
|
|
};
|
|
|
|
imx274_c@1a {
|
|
/* Define any required hw resources needed by driver */
|
|
/* ie. clocks, io pins, power sources */
|
|
clocks = <&bpmp_clks TEGRA194_CLK_EXTPERIPH1>,
|
|
<&bpmp_clks TEGRA194_CLK_EXTPERIPH1>;
|
|
clock-names = "extperiph1", "pllp_grtba";
|
|
mclk = "extperiph1";
|
|
reset-gpios = <&tegra_main_gpio CAM0_PWDN GPIO_ACTIVE_HIGH>;
|
|
vana-supply = <&p2822_avdd_cam_2v8>;
|
|
vif-supply = <&p2822_vdd_1v8_cvb>;
|
|
|
|
status = "okay";
|
|
compatible = "nvidia,imx274";
|
|
/* I2C device address */
|
|
reg = <0x1a>;
|
|
|
|
/* V4L2 device node location */
|
|
devnode = "video1";
|
|
|
|
/* Physical dimensions of sensor */
|
|
physical_w = "3.674";
|
|
physical_h = "2.738";
|
|
|
|
sensor_model = "imx274";
|
|
|
|
/* Define any required hw resources needed by driver */
|
|
/* ie. clocks, io pins, power sources */
|
|
avdd-reg = "vana";
|
|
iovdd-reg = "vif";
|
|
|
|
/* Defines number of frames to be dropped by driver internally after applying */
|
|
/* sensor crop settings. Some sensors send corrupt frames after applying */
|
|
/* crop co-ordinates */
|
|
/*post_crop_frame_drop = "0";*/
|
|
|
|
/* if true, delay gain setting by one frame to be in sync with exposure */
|
|
delayed_gain = "true";
|
|
|
|
|
|
mode0 { // IMX274_MODE_3840X2160
|
|
mclk_khz = "24000";
|
|
num_lanes = "4";
|
|
tegra_sinterface = "serial_c";
|
|
phy_mode = "DPHY";
|
|
discontinuous_clk = "yes";
|
|
dpcm_enable = "false";
|
|
cil_settletime = "0";
|
|
|
|
active_w = "3840";
|
|
active_h = "2160";
|
|
mode_type = "bayer";
|
|
pixel_phase = "rggb";
|
|
csi_pixel_bit_depth = "10";
|
|
readout_orientation = "0";
|
|
line_length = "4208";
|
|
inherent_gain = "1";
|
|
mclk_multiplier = "24";
|
|
pix_clk_hz = "576000000";
|
|
|
|
gain_factor = "1000000";
|
|
min_gain_val = "1000000";
|
|
max_gain_val = "44400000";
|
|
step_gain_val = "1";
|
|
default_gain = "1000000";
|
|
min_hdr_ratio = "1";
|
|
max_hdr_ratio = "1";
|
|
framerate_factor = "1000000";
|
|
min_framerate = "1500000";
|
|
max_framerate = "60000000";
|
|
step_framerate = "1";
|
|
default_framerate= "60000000";
|
|
exposure_factor = "1000000";
|
|
min_exp_time = "44";
|
|
max_exp_time = "478696";
|
|
step_exp_time = "1";
|
|
default_exp_time = "16667";/* us */
|
|
embedded_metadata_height = "1";
|
|
};
|
|
mode1 { // IMX274_MODE_1920X1080
|
|
mclk_khz = "24000";
|
|
num_lanes = "4";
|
|
tegra_sinterface = "serial_c";
|
|
phy_mode = "DPHY";
|
|
discontinuous_clk = "yes";
|
|
dpcm_enable = "false";
|
|
cil_settletime = "0";
|
|
dynamic_pixel_bit_depth = "10";
|
|
csi_pixel_bit_depth = "10";
|
|
mode_type = "bayer";
|
|
pixel_phase = "rggb";
|
|
|
|
active_w = "1920";
|
|
active_h = "1080";
|
|
readout_orientation = "0";
|
|
line_length = "4160";
|
|
inherent_gain = "1";
|
|
mclk_multiplier = "24";
|
|
pix_clk_hz = "576000000";
|
|
|
|
gain_factor = "1000000";
|
|
min_gain_val = "1000000";
|
|
max_gain_val = "177000000";
|
|
step_gain_val = "1";
|
|
default_gain = "1000000";
|
|
min_hdr_ratio = "1";
|
|
max_hdr_ratio = "1";
|
|
framerate_factor = "1000000";
|
|
min_framerate = "1500000";
|
|
max_framerate = "60000000";
|
|
step_framerate = "1";
|
|
default_framerate= "60000000";
|
|
exposure_factor = "1000000";
|
|
min_exp_time = "58";
|
|
max_exp_time = "184611";
|
|
step_exp_time = "1";
|
|
default_exp_time = "16667";/* us */
|
|
embedded_metadata_height = "1";
|
|
};
|
|
mode2 { // IMX274_MODE_3840X2160_DOL_30FPS
|
|
mclk_khz = "24000";
|
|
num_lanes = "4";
|
|
tegra_sinterface = "serial_c";
|
|
phy_mode = "DPHY";
|
|
discontinuous_clk = "yes";
|
|
dpcm_enable = "false";
|
|
cil_settletime = "0";
|
|
dynamic_pixel_bit_depth = "10";
|
|
csi_pixel_bit_depth = "10";
|
|
mode_type = "bayer_wdr_dol";
|
|
pixel_phase = "rggb";
|
|
|
|
active_w = "3856";
|
|
active_h = "4448";
|
|
readout_orientation = "0";
|
|
line_length = "4208";
|
|
inherent_gain = "1";
|
|
mclk_multiplier = "24";
|
|
pix_clk_hz = "576000000";
|
|
|
|
gain_factor = "1000000";
|
|
min_gain_val = "1000000";
|
|
max_gain_val = "30000000";
|
|
step_gain_val = "1";
|
|
default_gain = "1000000";
|
|
min_hdr_ratio = "32";
|
|
max_hdr_ratio = "32";
|
|
framerate_factor = "1000000";
|
|
min_framerate = "1500000";
|
|
max_framerate = "30000000";
|
|
step_framerate = "1";
|
|
default_framerate= "30000000";
|
|
exposure_factor = "1000000";
|
|
min_exp_time = "864";
|
|
max_exp_time = "20480";
|
|
step_exp_time = "1";
|
|
default_exp_time = "20480";/* us */
|
|
embedded_metadata_height = "1";
|
|
|
|
num_of_exposure = "2";
|
|
num_of_ignored_lines = "14";
|
|
num_of_lines_offset_0 = "50";
|
|
num_of_ignored_pixels = "4";
|
|
num_of_left_margin_pixels = "12";
|
|
num_of_right_margin_pixels = "0";
|
|
};
|
|
mode3 { // IMX274_MODE_1920X1080_DOL_60FPS
|
|
mclk_khz = "24000";
|
|
num_lanes = "4";
|
|
tegra_sinterface = "serial_c";
|
|
phy_mode = "DPHY";
|
|
discontinuous_clk = "yes";
|
|
dpcm_enable = "false";
|
|
cil_settletime = "0";
|
|
dynamic_pixel_bit_depth = "10";
|
|
csi_pixel_bit_depth = "10";
|
|
mode_type = "bayer_wdr_dol";
|
|
pixel_phase = "rggb";
|
|
|
|
active_w = "1936";
|
|
active_h = "2264";
|
|
readout_orientation = "0";
|
|
line_length = "4160";
|
|
inherent_gain = "1";
|
|
mclk_multiplier = "24";
|
|
pix_clk_hz = "576000000";
|
|
|
|
gain_factor = "1000000";
|
|
min_gain_val = "1000000";
|
|
max_gain_val = "177000000";
|
|
step_gain_val = "1";
|
|
default_gain = "1000000";
|
|
min_hdr_ratio = "32";
|
|
max_hdr_ratio = "32";
|
|
framerate_factor = "1000000";
|
|
min_framerate = "1500000";
|
|
max_framerate = "60000000";
|
|
step_framerate = "1";
|
|
default_framerate= "60000000";
|
|
exposure_factor = "1000000";
|
|
min_exp_time = "859";
|
|
max_exp_time = "15649";
|
|
step_exp_time = "1";
|
|
default_exp_time = "15649";/* us */
|
|
embedded_metadata_height = "1";
|
|
|
|
/* WDR related settings */
|
|
num_of_exposure = "2";
|
|
num_of_ignored_lines = "14";
|
|
num_of_lines_offset_0 = "38";
|
|
num_of_ignored_pixels = "4";
|
|
num_of_left_margin_pixels = "6";
|
|
num_of_right_margin_pixels = "6";
|
|
};
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
port@0 {
|
|
reg = <0>;
|
|
imx274_out1: endpoint {
|
|
port-index = <2>;
|
|
bus-width = <4>;
|
|
remote-endpoint = <&csi_in1>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
i2c@2 {
|
|
reg = <2>;
|
|
i2c-mux,deselect-on-exit;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
pca9570_e@24 {
|
|
compatible = "nvidia,pca9570";
|
|
reg = <0x24>;
|
|
channel = "e";
|
|
drive_ic = "DRV8838";
|
|
};
|
|
|
|
imx274_e@1a {
|
|
/* Define any required hw resources needed by driver */
|
|
/* ie. clocks, io pins, power sources */
|
|
clocks = <&bpmp_clks TEGRA194_CLK_EXTPERIPH1>,
|
|
<&bpmp_clks TEGRA194_CLK_EXTPERIPH1>;
|
|
clock-names = "extperiph1", "pllp_grtba";
|
|
mclk = "extperiph1";
|
|
reset-gpios = <&tegra_main_gpio CAM1_RST_L GPIO_ACTIVE_HIGH>;
|
|
vana-supply = <&p2822_avdd_cam_2v8>;
|
|
vif-supply = <&p2822_vdd_1v8_cvb>;
|
|
|
|
status = "okay";
|
|
compatible = "nvidia,imx274";
|
|
/* I2C device address */
|
|
reg = <0x1a>;
|
|
|
|
/* V4L2 device node location */
|
|
devnode = "video2";
|
|
|
|
/* Physical dimensions of sensor */
|
|
physical_w = "3.674";
|
|
physical_h = "2.738";
|
|
|
|
sensor_model = "imx274";
|
|
|
|
/* Define any required hw resources needed by driver */
|
|
/* ie. clocks, io pins, power sources */
|
|
avdd-reg = "vana";
|
|
iovdd-reg = "vif";
|
|
|
|
/* Defines number of frames to be dropped by driver internally after applying */
|
|
/* sensor crop settings. Some sensors send corrupt frames after applying */
|
|
/* crop co-ordinates */
|
|
/*post_crop_frame_drop = "0";*/
|
|
|
|
/* if true, delay gain setting by one frame to be in sync with exposure */
|
|
delayed_gain = "true";
|
|
|
|
|
|
mode0 { // IMX274_MODE_3840X2160
|
|
mclk_khz = "24000";
|
|
num_lanes = "4";
|
|
tegra_sinterface = "serial_e";
|
|
phy_mode = "DPHY";
|
|
discontinuous_clk = "yes";
|
|
dpcm_enable = "false";
|
|
cil_settletime = "0";
|
|
|
|
active_w = "3840";
|
|
active_h = "2160";
|
|
mode_type = "bayer";
|
|
pixel_phase = "rggb";
|
|
csi_pixel_bit_depth = "10";
|
|
readout_orientation = "0";
|
|
line_length = "4208";
|
|
inherent_gain = "1";
|
|
mclk_multiplier = "24";
|
|
pix_clk_hz = "576000000";
|
|
|
|
gain_factor = "1000000";
|
|
min_gain_val = "1000000";
|
|
max_gain_val = "44400000";
|
|
step_gain_val = "1";
|
|
default_gain = "1000000";
|
|
min_hdr_ratio = "1";
|
|
max_hdr_ratio = "1";
|
|
framerate_factor = "1000000";
|
|
min_framerate = "1500000";
|
|
max_framerate = "60000000";
|
|
step_framerate = "1";
|
|
default_framerate= "60000000";
|
|
exposure_factor = "1000000";
|
|
min_exp_time = "44";
|
|
max_exp_time = "478696";
|
|
step_exp_time = "1";
|
|
default_exp_time = "16667";/* us */
|
|
embedded_metadata_height = "1";
|
|
};
|
|
mode1 { // IMX274_MODE_1920X1080
|
|
mclk_khz = "24000";
|
|
num_lanes = "4";
|
|
tegra_sinterface = "serial_e";
|
|
phy_mode = "DPHY";
|
|
discontinuous_clk = "yes";
|
|
dpcm_enable = "false";
|
|
cil_settletime = "0";
|
|
dynamic_pixel_bit_depth = "10";
|
|
csi_pixel_bit_depth = "10";
|
|
mode_type = "bayer";
|
|
pixel_phase = "rggb";
|
|
|
|
active_w = "1920";
|
|
active_h = "1080";
|
|
readout_orientation = "0";
|
|
line_length = "4160";
|
|
inherent_gain = "1";
|
|
mclk_multiplier = "24";
|
|
pix_clk_hz = "576000000";
|
|
|
|
gain_factor = "1000000";
|
|
min_gain_val = "1000000";
|
|
max_gain_val = "177000000";
|
|
step_gain_val = "1";
|
|
default_gain = "1000000";
|
|
min_hdr_ratio = "1";
|
|
max_hdr_ratio = "1";
|
|
framerate_factor = "1000000";
|
|
min_framerate = "1500000";
|
|
max_framerate = "60000000";
|
|
step_framerate = "1";
|
|
default_framerate= "60000000";
|
|
exposure_factor = "1000000";
|
|
min_exp_time = "58";
|
|
max_exp_time = "184611";
|
|
step_exp_time = "1";
|
|
default_exp_time = "16667";/* us */
|
|
embedded_metadata_height = "1";
|
|
};
|
|
mode2 { // IMX274_MODE_3840X2160_DOL_30FPS
|
|
mclk_khz = "24000";
|
|
num_lanes = "4";
|
|
tegra_sinterface = "serial_e";
|
|
phy_mode = "DPHY";
|
|
discontinuous_clk = "yes";
|
|
dpcm_enable = "false";
|
|
cil_settletime = "0";
|
|
dynamic_pixel_bit_depth = "10";
|
|
csi_pixel_bit_depth = "10";
|
|
mode_type = "bayer_wdr_dol";
|
|
pixel_phase = "rggb";
|
|
|
|
active_w = "3856";
|
|
active_h = "4448";
|
|
readout_orientation = "0";
|
|
line_length = "4208";
|
|
inherent_gain = "1";
|
|
mclk_multiplier = "24";
|
|
pix_clk_hz = "576000000";
|
|
|
|
gain_factor = "1000000";
|
|
min_gain_val = "1000000";
|
|
max_gain_val = "30000000";
|
|
step_gain_val = "1";
|
|
default_gain = "1000000";
|
|
min_hdr_ratio = "32";
|
|
max_hdr_ratio = "32";
|
|
framerate_factor = "1000000";
|
|
min_framerate = "1500000";
|
|
max_framerate = "30000000";
|
|
step_framerate = "1";
|
|
default_framerate= "30000000";
|
|
exposure_factor = "1000000";
|
|
min_exp_time = "864";
|
|
max_exp_time = "20480";
|
|
step_exp_time = "1";
|
|
default_exp_time = "20480";/* us */
|
|
embedded_metadata_height = "1";
|
|
|
|
num_of_exposure = "2";
|
|
num_of_ignored_lines = "14";
|
|
num_of_lines_offset_0 = "50";
|
|
num_of_ignored_pixels = "4";
|
|
num_of_left_margin_pixels = "12";
|
|
num_of_right_margin_pixels = "0";
|
|
};
|
|
mode3 { // IMX274_MODE_1920X1080_DOL_60FPS
|
|
mclk_khz = "24000";
|
|
num_lanes = "4";
|
|
tegra_sinterface = "serial_e";
|
|
phy_mode = "DPHY";
|
|
discontinuous_clk = "yes";
|
|
dpcm_enable = "false";
|
|
cil_settletime = "0";
|
|
dynamic_pixel_bit_depth = "10";
|
|
csi_pixel_bit_depth = "10";
|
|
mode_type = "bayer_wdr_dol";
|
|
pixel_phase = "rggb";
|
|
|
|
active_w = "1936";
|
|
active_h = "2264";
|
|
readout_orientation = "0";
|
|
line_length = "4160";
|
|
inherent_gain = "1";
|
|
mclk_multiplier = "24";
|
|
pix_clk_hz = "576000000";
|
|
|
|
gain_factor = "1000000";
|
|
min_gain_val = "1000000";
|
|
max_gain_val = "177000000";
|
|
step_gain_val = "1";
|
|
default_gain = "1000000";
|
|
min_hdr_ratio = "32";
|
|
max_hdr_ratio = "32";
|
|
framerate_factor = "1000000";
|
|
min_framerate = "1500000";
|
|
max_framerate = "60000000";
|
|
step_framerate = "1";
|
|
default_framerate= "60000000";
|
|
exposure_factor = "1000000";
|
|
min_exp_time = "859";
|
|
max_exp_time = "15649";
|
|
step_exp_time = "1";
|
|
default_exp_time = "15649";/* us */
|
|
embedded_metadata_height = "1";
|
|
|
|
/* WDR related settings */
|
|
num_of_exposure = "2";
|
|
num_of_ignored_lines = "14";
|
|
num_of_lines_offset_0 = "38";
|
|
num_of_ignored_pixels = "4";
|
|
num_of_left_margin_pixels = "6";
|
|
num_of_right_margin_pixels = "6";
|
|
};
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
port@0 {
|
|
reg = <0>;
|
|
imx274_out2: endpoint {
|
|
port-index = <4>;
|
|
bus-width = <4>;
|
|
remote-endpoint = <&csi_in2>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
lens_imx274@A6V26 {
|
|
min_focus_distance = "0.0";
|
|
hyper_focal = "0.0";
|
|
focal_length = "5.00";
|
|
f_number = "2.0";
|
|
aperture = "2.2";
|
|
};
|
|
};
|
|
|
|
|
|
|
|
/ {
|
|
|
|
tegra-camera-platform {
|
|
compatible = "nvidia, tegra-camera-platform";
|
|
num_csi_lanes = <12>;
|
|
max_lane_speed = <1500000>;
|
|
min_bits_per_pixel = <10>;
|
|
vi_peak_byte_per_pixel = <2>;
|
|
vi_bw_margin_pct = <25>;
|
|
max_pixel_rate = <750000>;
|
|
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 vender.
|
|
*/
|
|
modules {
|
|
module0 {
|
|
badge = "imx274_centerleft_A6V26";
|
|
position = "centerleft";
|
|
orientation = "[31 00]";
|
|
status = "okay";
|
|
drivernode0 {
|
|
status = "okay";
|
|
/* Declare PCL support driver (classically known as guid) */
|
|
pcl_id = "v4l2_sensor";
|
|
/* Driver v4l2 device name */
|
|
devname = "imx274 30-001a";
|
|
/* Declare the device-tree hierarchy to driver instance */
|
|
proc-device-tree = "/proc/device-tree/i2c@3180000/tca9546@70/i2c@0/imx274_a@1a";
|
|
};
|
|
};
|
|
|
|
module1 {
|
|
badge = "imx274_topleft_A6V26";
|
|
position = "topleft";
|
|
orientation = "[31 00]";
|
|
status = "okay";
|
|
drivernode0 {
|
|
/* Declare PCL support driver (classically known as guid) */
|
|
pcl_id = "v4l2_sensor";
|
|
status = "okay";
|
|
/* Driver v4l2 device name */
|
|
devname = "imx274 31-001a";
|
|
/* Declare the device-tree hierarchy to driver instance */
|
|
proc-device-tree = "/proc/device-tree/i2c@3180000/tca9546@70/i2c@1/imx274_c@1a";
|
|
};
|
|
};
|
|
module2 {
|
|
badge = "imx274_bottomleft_A6V26";
|
|
position = "bottomleft";
|
|
orientation = "[31 00]";
|
|
status = "okay";
|
|
drivernode0 {
|
|
/* Declare PCL support driver (classically known as guid) */
|
|
status = "okay";
|
|
pcl_id = "v4l2_sensor";
|
|
/* Driver v4l2 device name */
|
|
devname = "imx274 32-001a";
|
|
/* Declare the device-tree hierarchy to driver instance */
|
|
proc-device-tree = "/proc/device-tree/i2c@3180000/tca9546@70/i2c@2/imx274_e@1a";
|
|
};
|
|
drivernode1 {
|
|
/* Declare PCL support driver (classically known as guid) */
|
|
status = "okay";
|
|
pcl_id = "v4l2_lens";
|
|
proc-device-tree = "/proc/device-tree/lens_imx274@A6V26/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|