Hi
I use xavier CSI2 to connect ar0233 camera module, this module has its isp, and format is uyvy.
and I changed the dts like below:
/ {
host1x {
vi@15c10000 {
num-channels = <1>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ar0233_vi_in0: endpoint {
port-index = <2>;////CSI2
bus-width = <4>;//Number of CSI lanes connected to sensor; determines the bus width.
remote-endpoint = <&ar0233_csi_out0>;//Label for binding two ports. The binding expects one port to be for the sink and the other one for the source.
};
};
};
};
nvcsi@15a00000 {
num-channels = <1>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ar0233_csi_in0: endpoint@2{
port-index = <2>;//
bus-width = <4>;
remote-endpoint = <&ar0233_ar0233_out0>;
};
};
port@1 {
reg = <1>;
ar0233_csi_out0: endpoint@3 {
remote-endpoint = <&ar0233_vi_in0>;
};
};
};
};
};
};
i2c@3180000 {
ar0233_a@1b {
compatible = "nvidia,ar0233";
reg = <0x1b>;
/* Physical dimensions of sensor */
physical_w = "15.0";
physical_h = "12.5";
sensor_model ="ar0233";
post_crop_frame_drop = "0";
use_sensor_mode_id = "true";
mode0 {/*mode AR0233_MODE_1920X1080_CROP_30FPS. mclk_khz*/
mclk_khz = "24000";
num_lanes = "4";
tegra_sinterface = "serial_c";
vc_id = "0";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
dynamic_pixel_bit_depth = "16";//这块存疑,jefby
csi_pixel_bit_depth = "16";//这块存疑,jefby
mode_type = "yuv";
pixel_phase = "uyvy";
active_w = "1920";
active_h = "1080";
readout_orientation = "0";
line_length = "2200";
inherent_gain = "1";
pix_clk_hz = "742500000";
serdes_pix_clk_hz = "1485000000";
gain_factor = "10";
min_gain_val = "0"; /* dB */
max_gain_val = "300"; /* dB */
step_gain_val = "3"; /* 0.3 */
default_gain = "0";
min_hdr_ratio = "1";
max_hdr_ratio = "1";
framerate_factor = "1000000";
min_framerate = "30000000";
max_framerate = "30000000";
step_framerate = "1";
default_framerate = "30000000";
exposure_factor = "1000000";
min_exp_time = "59"; /*us, 2 lines*/
max_exp_time = "33333";
step_exp_time = "1";
default_exp_time = "33333";/* us */
embedded_metadata_height = "0";
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ar0233_ar0233_out0: endpoint {
port-index = <2>;//CSI2
bus-width = <4>;
remote-endpoint = <&ar0233_csi_in0>;
};
};
};
};
};
};
/ {
tegra-camera-platform {
compatible = "nvidia, tegra-camera-platform";
num_csi_lanes = <4>;
max_lane_speed = <4000000>;
min_bits_per_pixel = <16>;
vi_peak_byte_per_pixel = <2>;
vi_bw_margin_pct = <25>;
/*
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 = "ar0233_rear";
position = "rear";
orientation = "1";
drivernode0 {
/* Declare PCL support driver (classically known as guid) */
pcl_id = "v4l2_sensor";
/* Driver v4l2 device name */
devname = "ar0233 30-001b";
/* Declare the device-tree hierarchy to driver instance */
proc-device-tree = "/proc/device-tree/i2c@3180000/ar0233_a@1b";
};
};
};
};
};
but now it will failed when use command to grab an image. error information:
trace (20.0 MB)