#include #include #include "dt-bindings/clock/tegra186-clock.h" /* camera control gpio definitions */ #define CAM0_RST_L TEGRA_MAIN_GPIO(R, 5) #define CAM0_PWDN TEGRA_MAIN_GPIO(R, 0) #define CAM1_RST_L TEGRA_MAIN_GPIO(R, 1) #define CAM1_PWDN TEGRA_MAIN_GPIO(N, 2) / { nvidia,dtsfilename = "tegra186-tx2-4G-cti-ASG006-IMX185-3CAM.dts"; gpio@2200000 { camera-control-output-low { gpio-hog; output-low; gpios = ; label = "cam0-rst", "cam0-pwdn", "cam1-rst", "cam1-pwdn"; }; }; /**********************SENSORS******************************************************************/ i2c@3180000 { //set this to correct i2c bus tca9546@70 { i2c@0{ //cam_i2c/Mux@70/I2C_A #address-cells = <1>; #size-cells = <0>; imx185_a@1a { compatible = "nvidia,imx185"; reg = <0x1a>; devnode = "video0"; /* Physical dimensions of sensor */ physical_w = "15.0"; physical_h = "12.5"; clocks = <&tegra_car TEGRA186_CLK_EXTPERIPH1>, <&tegra_car TEGRA186_CLK_PLLP_OUT0>; clock-names = "extperiph1", "pllp_grtba"; mclk = "extperiph1"; sensor_model = "imx185"; delayed_gain = "true"; reset-gpios = <&tegra_main_gpio CAM0_RST_L GPIO_ACTIVE_HIGH>; post_crop_frame_drop = "0"; use_decibel_gain = "true"; mode0 {/*mode IMX185_MODE_1920X1080_CROP_30FPS*/ mclk_khz = "37125"; num_lanes = "4"; tegra_sinterface = "serial_a"; phy_mode = "DPHY"; discontinuous_clk = "no"; dpcm_enable = "false"; cil_settletime = "0"; dynamic_pixel_bit_depth = "12"; csi_pixel_bit_depth = "12"; mode_type = "bayer"; pixel_phase = "rggb"; active_w = "1920"; active_h = "1080"; readout_orientation = "0"; line_length = "2200"; inherent_gain = "1"; mclk_multiplier = "2"; pix_clk_hz = "74250000"; gain_factor = "10"; min_gain_val = "0"; /* 0dB */ max_gain_val = "480"; /* 48dB */ step_gain_val = "3"; /* 0.3 */ default_gain = "0"; min_hdr_ratio = "1"; max_hdr_ratio = "1"; framerate_factor = "1000000"; min_framerate = "1500000"; /* 1.5 */ max_framerate = "30000000"; /* 30 */ step_framerate = "1"; default_framerate = "30000000"; exposure_factor = "1000000"; min_exp_time = "30"; /* us */ max_exp_time = "660000"; /* us */ step_exp_time = "1"; default_exp_time = "33334";/* us */ embedded_metadata_height = "1"; }; mode1 {/*mode IMX185_MODE_1920X1080_CROP_10BIT_30FPS*/ mclk_khz = "37125"; num_lanes = "4"; tegra_sinterface = "serial_a"; phy_mode = "DPHY"; discontinuous_clk = "no"; 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 = "2640"; inherent_gain = "1"; mclk_multiplier = "2.4"; pix_clk_hz = "89100000"; gain_factor = "10"; min_gain_val = "0"; /* 0dB */ max_gain_val = "480"; /* 48dB */ step_gain_val = "3"; /* 0.3 */ default_gain ="0"; min_hdr_ratio = "1"; max_hdr_ratio = "1"; framerate_factor = "1000000"; min_framerate = "1500000"; /* 1.5 */ max_framerate = "30000000"; /* 30 */ step_framerate = "1"; default_framerate = "30000000"; exposure_factor = "1000000"; min_exp_time = "30"; /* us */ max_exp_time = "660000"; /* us */ step_exp_time = "1"; default_exp_time = "33334";/* us */ embedded_metadata_height = "1"; }; mode2 {/*mode IMX185_MODE_1920X1080_CROP_60FPS*/ mclk_khz = "37125"; num_lanes = "4"; tegra_sinterface = "serial_a"; phy_mode = "DPHY"; discontinuous_clk = "no"; dpcm_enable = "false"; cil_settletime = "0"; dynamic_pixel_bit_depth = "12"; csi_pixel_bit_depth = "12"; mode_type = "bayer"; pixel_phase = "rggb"; active_w = "1920"; active_h = "1080"; readout_orientation = "0"; line_length = "2200"; inherent_gain = "1"; mclk_multiplier = "4"; pix_clk_hz = "148500000"; gain_factor = "10"; min_gain_val = "0"; /* 0dB */ max_gain_val = "480"; /* 48dB */ step_gain_val = "3"; /* 0.3 */ default_gain = "0"; min_hdr_ratio = "1"; max_hdr_ratio = "1"; framerate_factor = "1000000"; min_framerate = "1500000"; /* 1.5 */ max_framerate = "60000000"; /* 60 */ step_framerate = "1"; default_framerate = "60000000"; exposure_factor = "1000000"; min_exp_time = "30"; /* us */ max_exp_time = "660000"; /* us */ step_exp_time = "1"; default_exp_time = "16667";/* us */ embedded_metadata_height = "1"; }; mode3 {/*mode IMX185_MODE_1920X1080_CROP_10BIT_60FPS*/ mclk_khz = "37125"; num_lanes = "4"; tegra_sinterface = "serial_a"; phy_mode = "DPHY"; discontinuous_clk = "no"; 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 = "2640"; inherent_gain = "1"; mclk_multiplier = "4.8"; pix_clk_hz = "178200000"; gain_factor = "10"; min_gain_val = "0"; /* 0dB */ max_gain_val = "480"; /* 48dB */ step_gain_val = "3"; /* 0.3 */ default_gain = "0"; min_hdr_ratio = "1"; max_hdr_ratio = "1"; framerate_factor = "1000000"; min_framerate = "1500000"; /* 1.5 */ max_framerate = "60000000"; /* 60 */ step_framerate = "1"; default_framerate = "60000000"; exposure_factor = "1000000"; min_exp_time = "30"; /* us */ max_exp_time = "660000"; /* us */ step_exp_time = "1"; default_exp_time = "16667";/* us */ embedded_metadata_height = "1"; }; mode4 {/*mode IMX185_MODE_1920X1080_CROP_HDR_30FPS*/ mclk_khz = "37125"; num_lanes = "4"; tegra_sinterface = "serial_a"; phy_mode = "DPHY"; discontinuous_clk = "no"; dpcm_enable = "false"; cil_settletime = "0"; dynamic_pixel_bit_depth = "16"; csi_pixel_bit_depth = "12"; mode_type = "bayer_wdr_pwl"; pixel_phase = "rggb"; active_w = "1920"; active_h = "1080"; readout_orientation = "0"; line_length = "2200"; inherent_gain = "1"; mclk_multiplier = "2"; pix_clk_hz = "74250000"; gain_factor = "10"; min_gain_val = "0"; /* 0dB */ max_gain_val = "120"; /* 12dB */ step_gain_val = "3"; /* 0.3 */ default_gain = "0"; min_hdr_ratio = "16"; max_hdr_ratio = "16"; framerate_factor = "1000000"; min_framerate = "1500000"; /* 1.5 */ max_framerate = "30000000"; /* 30 */ step_framerate = "1"; default_framerate= "30000000"; exposure_factor = "1000000"; min_exp_time = "2433"; /* us */ max_exp_time = "660000"; /* us */ step_exp_time = "1"; default_exp_time = "33334";/* us */ embedded_metadata_height = "1"; /* WDR related settings */ num_control_point = "4"; control_point_x_0 = "0"; control_point_x_1 = "2048"; control_point_x_2 = "16384"; control_point_x_3 = "65536"; control_point_y_0 = "0"; control_point_y_1 = "2048"; control_point_y_2 = "2944"; control_point_y_3 = "3712"; }; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; imx185_out0: endpoint { port-index = <0>; bus-width = <4>; remote-endpoint = <&csi_in0>; }; }; }; }; pca9570_a@24 { compatible = "nvidia,pca9570"; reg = <0x24>; channel = "a"; drive_ic= "DRV8838"; }; }; i2c@2 { #address-cells = <1>; #size-cells = <0>; imx185_c@1a { compatible = "nvidia,imx185"; reg = <0x1a>; devnode = "video1"; /* Physical dimensions of sensor */ physical_w = "15.0"; physical_h = "12.5"; /* Define any required hw resources needed by driver */ /* ie. clocks, io pins, power sources */ clocks = <&tegra_car TEGRA186_CLK_EXTPERIPH2>, <&tegra_car TEGRA186_CLK_PLLP_OUT0>; clock-names = "extperiph2", "pllp_grtba"; mclk = "extperiph2"; reset-gpios = <&gpio_i2c_0_74 1 GPIO_ACTIVE_HIGH>; post_crop_frame_drop = "0"; use_decibel_gain = "true"; mode0 {/*mode IMX185_MODE_1920X1080_CROP_30FPS*/ mclk_khz = "37125"; num_lanes = "4"; tegra_sinterface = "serial_c"; phy_mode = "DPHY"; discontinuous_clk = "no"; dpcm_enable = "false"; cil_settletime = "0"; dynamic_pixel_bit_depth = "12"; csi_pixel_bit_depth = "12"; mode_type = "bayer"; pixel_phase = "rggb"; active_w = "1920"; active_h = "1080"; readout_orientation = "0"; line_length = "2200"; inherent_gain = "1"; mclk_multiplier = "2"; pix_clk_hz = "74250000"; gain_factor = "10"; min_gain_val = "0"; /* 0dB */ max_gain_val = "480"; /* 48dB */ step_gain_val = "3"; /* 0.3 */ default_gain = "0"; min_hdr_ratio = "1"; max_hdr_ratio = "1"; framerate_factor = "1000000"; min_framerate = "1500000"; /* 1.5 */ max_framerate = "30000000"; /* 30 */ step_framerate = "1"; default_framerate = "30000000"; exposure_factor = "1000000"; min_exp_time = "30"; /* us */ max_exp_time = "660000"; /* us */ step_exp_time = "1"; default_exp_time = "33334";/* us */ embedded_metadata_height = "1"; }; mode1 {/*mode IMX185_MODE_1920X1080_CROP_10BIT_30FPS*/ mclk_khz = "37125"; num_lanes = "4"; tegra_sinterface = "serial_c"; phy_mode = "DPHY"; discontinuous_clk = "no"; 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 = "2640"; inherent_gain = "1"; mclk_multiplier = "2.4"; pix_clk_hz = "89100000"; gain_factor = "10"; min_gain_val = "0"; /* 0dB */ max_gain_val = "480"; /* 48dB */ step_gain_val = "3"; /* 0.3 */ default_gain ="0"; min_hdr_ratio = "1"; max_hdr_ratio = "1"; framerate_factor = "1000000"; min_framerate = "1500000"; /* 1.5 */ max_framerate = "30000000"; /* 30 */ step_framerate = "1"; default_framerate = "30000000"; exposure_factor = "1000000"; min_exp_time = "30"; /* us */ max_exp_time = "660000"; /* us */ step_exp_time = "1"; default_exp_time = "33334";/* us */ embedded_metadata_height = "1"; }; mode2 {/*mode IMX185_MODE_1920X1080_CROP_60FPS*/ mclk_khz = "37125"; num_lanes = "4"; tegra_sinterface = "serial_c"; phy_mode = "DPHY"; discontinuous_clk = "no"; dpcm_enable = "false"; cil_settletime = "0"; dynamic_pixel_bit_depth = "12"; csi_pixel_bit_depth = "12"; mode_type = "bayer"; pixel_phase = "rggb"; active_w = "1920"; active_h = "1080"; readout_orientation = "0"; line_length = "2200"; inherent_gain = "1"; mclk_multiplier = "4"; pix_clk_hz = "148500000"; gain_factor = "10"; min_gain_val = "0"; /* 0dB */ max_gain_val = "480"; /* 48dB */ step_gain_val = "3"; /* 0.3 */ default_gain = "0"; min_hdr_ratio = "1"; max_hdr_ratio = "1"; framerate_factor = "1000000"; min_framerate = "1500000"; /* 1.5 */ max_framerate = "60000000"; /* 60 */ step_framerate = "1"; default_framerate = "60000000"; exposure_factor = "1000000"; min_exp_time = "30"; /* us */ max_exp_time = "660000"; /* us */ step_exp_time = "1"; default_exp_time = "16667";/* us */ embedded_metadata_height = "1"; }; mode3 {/*mode IMX185_MODE_1920X1080_CROP_10BIT_60FPS*/ mclk_khz = "37125"; num_lanes = "4"; tegra_sinterface = "serial_c"; phy_mode = "DPHY"; discontinuous_clk = "no"; 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 = "2640"; inherent_gain = "1"; mclk_multiplier = "4.8"; pix_clk_hz = "178200000"; gain_factor = "10"; min_gain_val = "0"; /* 0dB */ max_gain_val = "480"; /* 48dB */ step_gain_val = "3"; /* 0.3 */ default_gain = "0"; min_hdr_ratio = "1"; max_hdr_ratio = "1"; framerate_factor = "1000000"; min_framerate = "1500000"; /* 1.5 */ max_framerate = "60000000"; /* 60 */ step_framerate = "1"; default_framerate = "60000000"; exposure_factor = "1000000"; min_exp_time = "30"; /* us */ max_exp_time = "660000"; /* us */ step_exp_time = "1"; default_exp_time = "16667";/* us */ embedded_metadata_height = "1"; }; mode4 {/*mode IMX185_MODE_1920X1080_CROP_HDR_30FPS*/ mclk_khz = "37125"; num_lanes = "4"; tegra_sinterface = "serial_c"; phy_mode = "DPHY"; discontinuous_clk = "no"; dpcm_enable = "false"; cil_settletime = "0"; dynamic_pixel_bit_depth = "16"; csi_pixel_bit_depth = "12"; mode_type = "bayer_wdr_pwl"; pixel_phase = "rggb"; active_w = "1920"; active_h = "1080"; readout_orientation = "0"; line_length = "2200"; inherent_gain = "1"; mclk_multiplier = "2"; pix_clk_hz = "74250000"; gain_factor = "10"; min_gain_val = "0"; /* 0dB */ max_gain_val = "120"; /* 12dB */ step_gain_val = "3"; /* 0.3 */ default_gain = "0"; min_hdr_ratio = "16"; max_hdr_ratio = "16"; framerate_factor = "1000000"; min_framerate = "1500000"; /* 1.5 */ max_framerate = "30000000"; /* 30 */ step_framerate = "1"; default_framerate= "30000000"; exposure_factor = "1000000"; min_exp_time = "2433"; /* us */ max_exp_time = "660000"; /* us */ step_exp_time = "1"; default_exp_time = "33334";/* us */ embedded_metadata_height = "1"; /* WDR related settings */ num_control_point = "4"; control_point_x_0 = "0"; control_point_x_1 = "2048"; control_point_x_2 = "16384"; control_point_x_3 = "65536"; control_point_y_0 = "0"; control_point_y_1 = "2048"; control_point_y_2 = "2944"; control_point_y_3 = "3712"; }; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; imx185_out2: endpoint { port-index = <2>; bus-width = <4>; remote-endpoint = <&csi_in1>; }; }; }; }; pca9570_b@24 { compatible = "nvidia,pca9570"; reg = <0x24>; channel = "b"; drive_ic= "DRV8838"; }; }; }; }; i2c@c240000 { tca9546@71{ i2c@1 { #address-cells = <1>; #size-cells = <0>; imx185_e@1a { compatible = "nvidia,imx185"; reg = <0x1a>; devnode = "video2"; /* Physical dimensions of sensor */ physical_w = "15.0"; physical_h = "12.5"; /* Define any required hw resources needed by driver */ /* ie. clocks, io pins, power sources */ clocks = <&tegra_car TEGRA186_CLK_EXTPERIPH1>, <&tegra_car TEGRA186_CLK_PLLP_OUT0>; clock-names = "extperiph1", "pllp_grtba"; mclk = "extperiph1"; reset-gpios = <&gpio_i2c_0_74 5 GPIO_ACTIVE_HIGH>; post_crop_frame_drop = "0"; use_decibel_gain = "true"; mode0 {/*mode IMX185_MODE_1920X1080_CROP_30FPS*/ mclk_khz = "37125"; num_lanes = "4"; tegra_sinterface = "serial_e"; phy_mode = "DPHY"; discontinuous_clk = "no"; dpcm_enable = "false"; cil_settletime = "0"; dynamic_pixel_bit_depth = "12"; csi_pixel_bit_depth = "12"; mode_type = "bayer"; pixel_phase = "rggb"; active_w = "1920"; active_h = "1080"; readout_orientation = "0"; line_length = "2200"; inherent_gain = "1"; mclk_multiplier = "2"; pix_clk_hz = "74250000"; gain_factor = "10"; min_gain_val = "0"; /* 0dB */ max_gain_val = "480"; /* 48dB */ step_gain_val = "3"; /* 0.3 */ default_gain = "0"; min_hdr_ratio = "1"; max_hdr_ratio = "1"; framerate_factor = "1000000"; min_framerate = "1500000"; /* 1.5 */ max_framerate = "30000000"; /* 30 */ step_framerate = "1"; default_framerate = "30000000"; exposure_factor = "1000000"; min_exp_time = "30"; /* us */ max_exp_time = "660000"; /* us */ step_exp_time = "1"; default_exp_time = "33334";/* us */ embedded_metadata_height = "1"; }; mode1 {/*mode IMX185_MODE_1920X1080_CROP_10BIT_30FPS*/ mclk_khz = "37125"; num_lanes = "4"; tegra_sinterface = "serial_e"; phy_mode = "DPHY"; discontinuous_clk = "no"; 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 = "2640"; inherent_gain = "1"; mclk_multiplier = "2.4"; pix_clk_hz = "89100000"; gain_factor = "10"; min_gain_val = "0"; /* 0dB */ max_gain_val = "480"; /* 48dB */ step_gain_val = "3"; /* 0.3 */ default_gain ="0"; min_hdr_ratio = "1"; max_hdr_ratio = "1"; framerate_factor = "1000000"; min_framerate = "1500000"; /* 1.5 */ max_framerate = "30000000"; /* 30 */ step_framerate = "1"; default_framerate = "30000000"; exposure_factor = "1000000"; min_exp_time = "30"; /* us */ max_exp_time = "660000"; /* us */ step_exp_time = "1"; default_exp_time = "33334";/* us */ embedded_metadata_height = "1"; }; mode2 {/*mode IMX185_MODE_1920X1080_CROP_60FPS*/ mclk_khz = "37125"; num_lanes = "4"; tegra_sinterface = "serial_e"; phy_mode = "DPHY"; discontinuous_clk = "no"; dpcm_enable = "false"; cil_settletime = "0"; dynamic_pixel_bit_depth = "12"; csi_pixel_bit_depth = "12"; mode_type = "bayer"; pixel_phase = "rggb"; active_w = "1920"; active_h = "1080"; readout_orientation = "0"; line_length = "2200"; inherent_gain = "1"; mclk_multiplier = "4"; pix_clk_hz = "148500000"; gain_factor = "10"; min_gain_val = "0"; /* 0dB */ max_gain_val = "480"; /* 48dB */ step_gain_val = "3"; /* 0.3 */ default_gain = "0"; min_hdr_ratio = "1"; max_hdr_ratio = "1"; framerate_factor = "1000000"; min_framerate = "1500000"; /* 1.5 */ max_framerate = "60000000"; /* 60 */ step_framerate = "1"; default_framerate = "60000000"; exposure_factor = "1000000"; min_exp_time = "30"; /* us */ max_exp_time = "660000"; /* us */ step_exp_time = "1"; default_exp_time = "16667";/* us */ embedded_metadata_height = "1"; }; mode3 {/*mode IMX185_MODE_1920X1080_CROP_10BIT_60FPS*/ mclk_khz = "37125"; num_lanes = "4"; tegra_sinterface = "serial_e"; phy_mode = "DPHY"; discontinuous_clk = "no"; 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 = "2640"; inherent_gain = "1"; mclk_multiplier = "4.8"; pix_clk_hz = "178200000"; gain_factor = "10"; min_gain_val = "0"; /* 0dB */ max_gain_val = "480"; /* 48dB */ step_gain_val = "3"; /* 0.3 */ default_gain = "0"; min_hdr_ratio = "1"; max_hdr_ratio = "1"; framerate_factor = "1000000"; min_framerate = "1500000"; /* 1.5 */ max_framerate = "60000000"; /* 60 */ step_framerate = "1"; default_framerate = "60000000"; exposure_factor = "1000000"; min_exp_time = "30"; /* us */ max_exp_time = "660000"; /* us */ step_exp_time = "1"; default_exp_time = "16667";/* us */ embedded_metadata_height = "1"; }; mode4 {/*mode IMX185_MODE_1920X1080_CROP_HDR_30FPS*/ mclk_khz = "37125"; num_lanes = "4"; tegra_sinterface = "serial_e"; phy_mode = "DPHY"; discontinuous_clk = "no"; dpcm_enable = "false"; cil_settletime = "0"; dynamic_pixel_bit_depth = "16"; csi_pixel_bit_depth = "12"; mode_type = "bayer_wdr_pwl"; pixel_phase = "rggb"; active_w = "1920"; active_h = "1080"; readout_orientation = "0"; line_length = "2200"; inherent_gain = "1"; mclk_multiplier = "2"; pix_clk_hz = "74250000"; gain_factor = "10"; min_gain_val = "0"; /* 0dB */ max_gain_val = "120"; /* 12dB */ step_gain_val = "3"; /* 0.3 */ default_gain = "0"; min_hdr_ratio = "16"; max_hdr_ratio = "16"; framerate_factor = "1000000"; min_framerate = "1500000"; /* 1.5 */ max_framerate = "30000000"; /* 30 */ step_framerate = "1"; default_framerate= "30000000"; exposure_factor = "1000000"; min_exp_time = "2433"; /* us */ max_exp_time = "660000"; /* us */ step_exp_time = "1"; default_exp_time = "33334";/* us */ embedded_metadata_height = "1"; /* WDR related settings */ num_control_point = "4"; control_point_x_0 = "0"; control_point_x_1 = "2048"; control_point_x_2 = "16384"; control_point_x_3 = "65536"; control_point_y_0 = "0"; control_point_y_1 = "2048"; control_point_y_2 = "2944"; control_point_y_3 = "3712"; }; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; imx185_out4: endpoint { port-index = <4>; bus-width = <4>; remote-endpoint = <&csi_in2>; }; }; }; }; pca9570_c@24 { compatible = "nvidia,pca9570"; reg = <0x24>; channel = "c"; drive_ic= "DRV8838"; }; }; }; }; /**********************VI******************************************************************/ host1x { vi@15700000 { num-channels = <3>; //set number of channels status = "okay"; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; status = "okay"; vi_in0: endpoint { status = "okay"; port-index = <0>; bus-width = <4>; remote-endpoint = <&csi_out0>; }; }; port@1 { reg = <1>; status = "okay"; vi_in1: endpoint { status = "okay"; port-index = <2>; bus-width = <4>; remote-endpoint = <&csi_out1>; }; }; port@2 { reg = <2>; status = "okay"; vi_in2: endpoint { status = "okay"; port-index = <4>; bus-width = <4>; remote-endpoint = <&csi_out2>; }; }; }; }; /**********************CSI******************************************************************/ nvcsi@150c0000 { num-channels = <3>; #address-cells = <1>; #size-cells = <0>; channel@0 { reg = <0>; status = "okay"; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; status = "okay"; csi_in0: endpoint@0 { port-index = <0>; bus-width = <4>; remote-endpoint = <&imx185_out0>; //should be sensor port under i2c endpoint status = "okay"; }; }; port@1 { reg = <1>; status = "okay"; csi_out0: endpoint@1 { status = "okay"; remote-endpoint = <&vi_in0>; }; }; }; }; channel@1 { reg = <1>; status = "okay"; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; status = "okay"; csi_in1: endpoint@2 { port-index = <2>; bus-width = <4>; remote-endpoint = <&imx185_out2>; //should be sensor port under i2c endpoint status = "okay"; }; }; port@1 { reg = <1>; status = "okay"; csi_out1: endpoint@3 { status = "okay"; remote-endpoint = <&vi_in1>; }; }; }; }; channel@2 { reg = <2>; status = "okay"; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; status = "okay"; csi_in2: endpoint@4 { port-index = <4>; bus-width = <4>; remote-endpoint = <&imx185_out4>; //should be sensor port under i2c endpoint status = "okay"; }; }; port@1 { reg = <1>; status = "okay"; csi_out2: endpoint@5 { status = "okay"; remote-endpoint = <&vi_in2>; }; }; }; }; }; }; lens_imx185@A6V26 { min_focus_distance = "0.0"; hyper_focal = "0.0"; focal_length = "5.00"; f_number = "2.0"; aperture = "2.2"; }; /**********************CAMERA PLATFORM*************************************************************/ 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 * Set this to the highest pix_clk_hz out of all available modes. * * 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 = <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 = "imx185_bottom_A6V26"; position = "bottom"; orientation = "0"; status = "okay"; drivernode0 { status = "okay"; pcl_id = "v4l2_sensor"; devname = "imx185 30-001a"; proc-device-tree = "/proc/device-tree/i2c@3180000/tca9546@70/i2c@0/imx185_a@1a"; }; drivernode1 { status = "okay"; pcl_id = "v4l2_lens"; proc-device-tree = "/proc/device-tree/lens_imx185@A6V26/"; }; }; module1 { badge = "imx185_top_A6V26"; position = "top"; orientation = "0"; status = "okay"; drivernode0 { status = "okay"; pcl_id = "v4l2_sensor"; devname = "imx185 32-001a"; proc-device-tree = "/proc/device-tree/i2c@3180000/tca9546@70/i2c@2/imx185_c@1a"; }; drivernode1 { status = "okay"; pcl_id = "v4l2_lens"; proc-device-tree = "/proc/device-tree/lens_imx185@A6V26/"; }; }; module2 { badge = "imx185_center_A6V26"; position = "center"; orientation = "0"; status = "okay"; drivernode0 { status = "okay"; pcl_id = "v4l2_sensor"; devname = "imx185 35-001a"; proc-device-tree = "/proc/device-tree/i2c@c240000/tca9546@71/i2c@1/imx185_e@1a"; }; drivernode1 { status = "okay"; pcl_id = "v4l2_lens"; proc-device-tree = "/proc/device-tree/lens_imx185@A6V26/"; }; }; }; }; };