forked from rrcarlosr/Jetpack
252 lines
7.5 KiB
Plaintext
252 lines
7.5 KiB
Plaintext
#include <tegra186-tx2i-cti-ASG008.dts>
|
|
|
|
|
|
|
|
#include <t18x-common-platforms/tegra186-tx2-cti-camera-base.dtsi>
|
|
#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)
|
|
|
|
/ {
|
|
|
|
nvidia,dtsfilename = "tegra186-tx2i-cti-ASG008-IMX274.dts";
|
|
|
|
|
|
gpio@2200000 {
|
|
camera-control-output-low {
|
|
gpio-hog;
|
|
output-low;
|
|
gpios = <CAM0_RST_L 0 CAM0_PWDN 0>;
|
|
label = "cam0-rst", "cam0-pwdn";
|
|
};
|
|
};
|
|
|
|
|
|
/**********************SENSORS******************************************************************/
|
|
|
|
i2c@3180000 { //set this to correct i2c bus
|
|
|
|
imx274_a@1a {
|
|
compatible = "nvidia,imx274";
|
|
reg = <0x1a>;
|
|
devnode = "video0";
|
|
|
|
/* Physical dimensions of sensor */
|
|
physical_w = "3.674";
|
|
physical_h = "2.738";
|
|
clocks = <&tegra_car TEGRA186_CLK_EXTPERIPH1>,
|
|
<&tegra_car TEGRA186_CLK_PLLP_OUT0>;
|
|
clock-names = "extperiph1", "pllp_grtba";
|
|
mclk = "extperiph1";
|
|
sensor_model = "imx274";
|
|
delayed_gain = "true";
|
|
reset-gpios = <&tegra_main_gpio CAM0_RST_L GPIO_ACTIVE_HIGH>;
|
|
vana-supply = <&battery_reg>;
|
|
vif-supply = <&battery_reg>;
|
|
vdig-supply = <&battery_reg>;
|
|
avdd-reg = "vana";
|
|
iovdd-reg = "vif";
|
|
dvdd-reg = "vdig";
|
|
|
|
mode0 {
|
|
mclk_khz = "24000";
|
|
num_lanes = "4";
|
|
tegra_sinterface = "serial_a";
|
|
discontinuous_clk = "yes";
|
|
dpcm_enable = "false";
|
|
cil_settletime = "0";
|
|
phy_mode = "DPHY";
|
|
|
|
active_w = "3840";
|
|
active_h = "2160";
|
|
mode_type = "bayer";
|
|
pixel_phase = "rggb";
|
|
csi_pixel_bit_depth = "10";
|
|
readout_orientation = "90";
|
|
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";
|
|
};
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@0 {
|
|
reg = <0>;
|
|
imx274_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";
|
|
};
|
|
|
|
};
|
|
|
|
/**********************VI******************************************************************/
|
|
|
|
host1x {
|
|
vi@15700000 {
|
|
num-channels = <1>; //set number of channels
|
|
status = "okay";
|
|
ports {
|
|
port@0 {
|
|
reg = <0>;
|
|
status = "okay";
|
|
vi_in0: endpoint {
|
|
status = "okay";
|
|
port-index = <0>;
|
|
bus-width = <4>;
|
|
remote-endpoint = <&csi_out0>;
|
|
};
|
|
};
|
|
|
|
};
|
|
};
|
|
|
|
/**********************CSI******************************************************************/
|
|
nvcsi@150c0000 {
|
|
num-channels = <1>;
|
|
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 = <&imx274_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>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
};
|
|
};
|
|
lens_imx274@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 = <4>;
|
|
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_bottom_A6V26";
|
|
position = "bottom";
|
|
orientation = "0";
|
|
status = "okay";
|
|
drivernode0 {
|
|
status = "okay";
|
|
pcl_id = "v4l2_sensor";
|
|
devname = "imx274 2-001a";
|
|
proc-device-tree = "/proc/device-tree/i2c@3180000/imx274_a@1a";
|
|
};
|
|
drivernode1 {
|
|
status = "okay";
|
|
pcl_id = "v4l2_lens";
|
|
proc-device-tree = "/proc/device-tree/lens_imx274@A6V26/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|