/* * Copyright (c) 2018-2019, 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 #include / { host1x { vi { num-channels = <1>; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; rbpcv2_imx219_vi_in0: endpoint { port-index = <0>; bus-width = <2>; remote-endpoint = <&rbpcv2_imx219_csi_out0>; }; }; }; }; nvcsi { num-channels = <1>; #address-cells = <1>; #size-cells = <0>; channel@0 { reg = <0>; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; rbpcv2_imx219_csi_in0: endpoint@0 { port-index = <0>; bus-width = <2>; remote-endpoint = <&rbpcv2_imx219_out0>; }; }; port@1 { reg = <1>; rbpcv2_imx219_csi_out0: endpoint@1 { remote-endpoint = <&rbpcv2_imx219_vi_in0>; }; }; }; }; }; i2c@7000c000 { //changed —> new rbpcv2_imx219_c@10 { //changed form rbpcv2_imx219_a to rbpcv2_imx219_c compatible = "nvidia,imx219"; reg = <0x10>; devnode = "video1"; physical_w = "3.680"; physical_h = "2.760"; sensor_model = "imx219"; use_sensor_mode_id = "true"; mode0 { mclk_khz = "24000"; num_lanes = "2"; tegra_sinterface = "serial_c"; //changed for serial_a to serial_c phy_mode = "DPHY"; discontinuous_clk = "yes"; dpcm_enable = "false"; cil_settletime = "0"; active_w = "3280"; active_h = "2464"; pixel_t = "bayer_rggb"; readout_orientation = "90"; line_length = "3448"; inherent_gain = "1"; mclk_multiplier = "9.33"; pix_clk_hz = "182400000"; gain_factor = "16"; framerate_factor = "1000000"; exposure_factor = "1000000"; min_gain_val = "16"; max_gain_val = "170"; step_gain_val = "1"; default_gain = "16"; min_hdr_ratio = "1"; max_hdr_ratio = "1"; min_framerate = "2000000"; max_framerate = "21000000"; step_framerate = "1"; default_framerate = "21000000"; min_exp_time = "13"; max_exp_time = "683709"; step_exp_time = "1"; default_exp_time = "2495"; embedded_metadata_height = "2"; }; mode1 { mclk_khz = "24000"; num_lanes = "2"; tegra_sinterface = "serial_c"; //changed for serial_a to serial_c phy_mode = "DPHY"; discontinuous_clk = "yes"; dpcm_enable = "false"; cil_settletime = "0"; active_w = "3280"; active_h = "1848"; pixel_t = "bayer_rggb"; readout_orientation = "90"; line_length = "3448"; inherent_gain = "1"; mclk_multiplier = "9.33"; pix_clk_hz = "182400000"; gain_factor = "16"; framerate_factor = "1000000"; exposure_factor = "1000000"; min_gain_val = "16"; max_gain_val = "170"; step_gain_val = "1"; default_gain = "16"; min_hdr_ratio = "1"; max_hdr_ratio = "1"; min_framerate = "2000000"; max_framerate = "28000000"; step_framerate = "1"; default_framerate = "28000000"; min_exp_time = "13"; max_exp_time = "683709"; step_exp_time = "1"; default_exp_time = "2495"; embedded_metadata_height = "2"; }; mode2 { mclk_khz = "24000"; num_lanes = "2"; tegra_sinterface = "serial_c"; //changed for serial_a to serial_c phy_mode = "DPHY"; discontinuous_clk = "yes"; dpcm_enable = "false"; cil_settletime = "0"; active_w = "1920"; active_h = "1080"; pixel_t = "bayer_rggb"; readout_orientation = "90"; line_length = "3448"; inherent_gain = "1"; mclk_multiplier = "9.33"; pix_clk_hz = "182400000"; gain_factor = "16"; framerate_factor = "1000000"; exposure_factor = "1000000"; min_gain_val = "16"; max_gain_val = "170"; step_gain_val = "1"; default_gain = "16"; min_hdr_ratio = "1"; max_hdr_ratio = "1"; min_framerate = "2000000"; max_framerate = "30000000"; step_framerate = "1"; default_framerate = "30000000"; min_exp_time = "13"; max_exp_time = "683709"; step_exp_time = "1"; default_exp_time = "2495"; embedded_metadata_height = "2"; }; mode3 { mclk_khz = "24000"; num_lanes = "2"; tegra_sinterface = "serial_c"; //changed for serial_a to serial_c phy_mode = "DPHY"; discontinuous_clk = "yes"; dpcm_enable = "false"; cil_settletime = "0"; active_w = "1280"; active_h = "720"; pixel_t = "bayer_rggb"; readout_orientation = "90"; line_length = "3448"; inherent_gain = "1"; mclk_multiplier = "9.33"; pix_clk_hz = "182400000"; gain_factor = "16"; framerate_factor = "1000000"; exposure_factor = "1000000"; min_gain_val = "16"; max_gain_val = "170"; step_gain_val = "1"; default_gain = "16"; min_hdr_ratio = "1"; max_hdr_ratio = "1"; min_framerate = "2000000"; max_framerate = "60000000"; step_framerate = "1"; default_framerate = "60000000"; min_exp_time = "13"; max_exp_time = "683709"; step_exp_time = "1"; default_exp_time = "2495"; embedded_metadata_height = "2"; }; mode4 { mclk_khz = "24000"; num_lanes = "2"; tegra_sinterface = "serial_c"; //changed for serial_a to serial_c phy_mode = "DPHY"; discontinuous_clk = "yes"; dpcm_enable = "false"; cil_settletime = "0"; active_w = "1280"; active_h = "720"; pixel_t = "bayer_rggb"; readout_orientation = "90"; line_length = "3448"; inherent_gain = "1"; mclk_multiplier = "9.33"; pix_clk_hz = "169600000"; gain_factor = "16"; framerate_factor = "1000000"; exposure_factor = "1000000"; min_gain_val = "16"; max_gain_val = "170"; step_gain_val = "1"; default_gain = "16"; min_hdr_ratio = "1"; max_hdr_ratio = "1"; min_framerate = "2000000"; max_framerate = "120000000"; step_framerate = "1"; default_framerate = "120000000"; min_exp_time = "13"; max_exp_time = "683709"; step_exp_time = "1"; default_exp_time = "2495"; embedded_metadata_height = "2"; }; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; rbpcv2_imx219_out0: endpoint { port-index = <0>; bus-width = <2>; remote-endpoint = <&rbpcv2_imx219_csi_in0>; }; }; }; }; }; }; lens_imx219@RBPCV2 { min_focus_distance = "0.0"; hyper_focal = "0.0"; focal_length = "3.04"; f_number = "2.0"; aperture = "0.0"; }; }; / { tegra-camera-platform { compatible = "nvidia, tegra-camera-platform"; num_csi_lanes = <4>; //changed from 2 to 4 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>; modules { /*module0 { //changed —> removed badge = "porg_front_RBPCV2"; position = "rear"; orientation = "1"; drivernode0 { pcl_id = "v4l2_sensor"; devname = "imx219 6-0010"; proc-device-tree = "/proc/device-tree/host1x/i2c@546c0000/rbpcv2_imx219_a@10"; }; drivernode1 { pcl_id = "v4l2_lens"; proc-device-tree = "/proc/device-tree/lens_imx219@RBPCV2/"; }; };*/ module0 { //changed —> new badge = "porg_front_RBPCV2_2"; position = "rear"; orientation = "1"; drivernode0 { pcl_id = "v4l2_sensor"; devname = "imx219 0-0010"; proc-device-tree = "/proc/device-tree/host1x/i2c@7000c000/rbpcv2_imx219_c@10"; }; drivernode1 { pcl_id = "v4l2_lens"; proc-device-tree = "/proc/device-tree/lens_imx219@RBPCV2/"; }; }; }; }; };