(1)Sorry for the previous mistake.
Let me send you the entire device tree file.
/*
- Copyright (c) 2018-2022, 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 http://www.gnu.org/licenses/.
*/
#include “camera_sensor/sensor_config.dtsi”
#include “camera_sensor/max96722b.h”
#define AR0234B_PIXEL_PHASE “uyvy” //uyvy vyuy yvyu
/ {
tegra-capture-vi {
num-channels = <8>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ar0234_vi_in0: endpoint {
vc-id = <1>;
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&ar0234_csi_out0>;
};
};
port@1 {
reg = <1>;
ar0234_vi_in1: endpoint {
vc-id = <0>;
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&ar0234_csi_out1>;
};
};
port@2 {
reg = <2>;
ar0234_vi_in2: endpoint {
vc-id = <2>;
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&ar0234_csi_out2>;
};
};
port@3 {
reg = <3>;
ar0234_vi_in3: endpoint {
vc-id = <3>;
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&ar0234_csi_out3>;
};
};
port@4 {
reg = <4>;
ar0234b_vi_in0: endpoint {
vc-id = <1>;
port-index = <2>;
bus-width = <4>;
remote-endpoint = <&ar0234b_csi_out0>;
};
};
port@5 {
reg = <5>;
ar0234b_vi_in1: endpoint {
vc-id = <0>;
port-index = <2>;
bus-width = <4>;
remote-endpoint = <&ar0234b_csi_out1>;
};
};
port@6 {
reg = <6>;
ar0234b_vi_in2: endpoint {
vc-id = <2>;
port-index = <2>;
bus-width = <4>;
remote-endpoint = <&ar0234b_csi_out2>;
};
};
port@7 {
reg = <7>;
ar0234b_vi_in3: endpoint {
vc-id = <3>;
port-index = <2>;
bus-width = <4>;
remote-endpoint = <&ar0234b_csi_out3>;
};
};
};
};
host1x@13e00000 {
nvcsi@15a00000 {
num-channels = <8>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ar0234_csi_in0: endpoint@0 {
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&ar0234_ar0234_out0>;
};
};
port@1 {
reg = <1>;
ar0234_csi_out0: endpoint@1 {
remote-endpoint = <&ar0234_vi_in0>;
};
};
};
};
channel@1 {
reg = <1>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ar0234_csi_in1: endpoint@2 {
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&ar0234_ar0234_out1>;
};
};
port@1 {
reg = <1>;
ar0234_csi_out1: endpoint@3 {
remote-endpoint = <&ar0234_vi_in1>;
};
};
};
};
channel@2 {
reg = <2>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ar0234_csi_in2: endpoint@4 {
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&ar0234_ar0234_out2>;
};
};
port@1 {
reg = <1>;
ar0234_csi_out2: endpoint@5 {
remote-endpoint = <&ar0234_vi_in2>;
};
};
};
};
channel@3 {
reg = <3>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ar0234_csi_in3: endpoint@6 {
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&ar0234_ar0234_out3>;
};
};
port@1 {
reg = <1>;
ar0234_csi_out3: endpoint@7 {
remote-endpoint = <&ar0234_vi_in3>;
};
};
};
};
channel@4 {
reg = <4>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ar0234b_csi_in0: endpoint@8 {
port-index = <2>;
bus-width = <4>;
remote-endpoint = <&ar0234b_ar0234_out0>;
};
};
port@1 {
reg = <1>;
ar0234b_csi_out0: endpoint@9 {
remote-endpoint = <&ar0234b_vi_in0>;
};
};
};
};
channel@5 {
reg = <5>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ar0234b_csi_in1: endpoint@10 {
port-index = <2>;
bus-width = <4>;
remote-endpoint = <&ar0234b_ar0234_out1>;
};
};
port@1 {
reg = <1>;
ar0234b_csi_out1: endpoint@11 {
remote-endpoint = <&ar0234b_vi_in1>;
};
};
};
};
channel@6 {
reg = <6>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ar0234b_csi_in2: endpoint@12 {
port-index = <2>;
bus-width = <4>;
remote-endpoint = <&ar0234b_ar0234_out2>;
};
};
port@1 {
reg = <1>;
ar0234b_csi_out2: endpoint@13 {
remote-endpoint = <&ar0234b_vi_in2>;
};
};
};
};
channel@7 {
reg = <7>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
ar0234b_csi_in3: endpoint@14 {
port-index = <2>;
bus-width = <4>;
remote-endpoint = <&ar0234b_ar0234_out3>;
};
};
port@1 {
reg = <1>;
ar0234b_csi_out3: endpoint@15 {
remote-endpoint = <&ar0234b_vi_in3>;
};
};
};
};
};
};
i2c@c250000 {
ar0234_a@11 {
compatible = "onsemi,ar0234";
reg = <0x11>;
status = "okay";
/* Physical dimensions of sensor */
physical_w = "15.0";
physical_h = "12.5";
sensor_model ="ar0234";
/* 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";
/* Convert Gain to unit of dB (decibel) befor passing to kernel driver */
use_decibel_gain = "true";
/* enable CID_SENSOR_MODE_ID for sensor modes selection */
use_sensor_mode_id = "true";
mode0 {/*mode IMX424_MODE_3840X1080_CROP_30FPS*/
vc_id = "1";
mclk_khz = "24000";
num_lanes = "4";
tegra_sinterface = TEGRA_SINTERFACE;
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
dynamic_pixel_bit_depth = "8";
csi_pixel_bit_depth = "8";
mode_type = "yuv";
pixel_phase = "yuyv";
active_w = "1280";
active_h = "960";
readout_orientation = "0";
line_length = "2560";
inherent_gain = "1";
pix_clk_hz = "74250000";
serdes_pix_clk_hz = "200000000";
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>;
ar0234_ar0234_out0: endpoint {
vc-id = <1>;
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&ar0234_csi_in0>;
};
};
};
gmsl-link {
src-csi-port = "b";
dst-csi-port = "a";
serdes-csi-link = "a";
csi-mode = "1x4";
st-vc = <0>;
vc-id = <1>;
num-lanes = <4>;
streams = "ued-u1", "raw12";
};
};
ar0234_b@12 {
compatible = "onsemi,ar0234";
reg = <0x12>;
status = "okay";
/* Physical dimensions of sensor */
physical_w = "15.0";
physical_h = "12.5";
sensor_model ="ar0234";
/* 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";
/* Convert Gain to unit of dB (decibel) befor passing to kernel driver */
use_decibel_gain = "true";
/* enable CID_SENSOR_MODE_ID for sensor modes selection */
use_sensor_mode_id = "true";
mode0 {/*mode IMX424_MODE_3840X1080_CROP_30FPS*/
vc_id = "0";
mclk_khz = "24000";
num_lanes = "4";
tegra_sinterface = TEGRA_SINTERFACE;
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
dynamic_pixel_bit_depth = "8";
csi_pixel_bit_depth = "8";
mode_type = "yuv";
pixel_phase = "yuyv";
active_w = "1280";
active_h = "960";
readout_orientation = "0";
line_length = "2560";
inherent_gain = "1";
pix_clk_hz = "74250000";
serdes_pix_clk_hz = "200000000";
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>;
ar0234_ar0234_out1: endpoint {
vc-id = <0>;
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&ar0234_csi_in1>;
};
};
};
gmsl-link {
src-csi-port = "b";
dst-csi-port = "a";
serdes-csi-link = "b";
csi-mode = "1x4";
st-vc = <0>;
vc-id = <0>;
num-lanes = <4>;
streams = "ued-u1", "raw12";
};
};
ar0234_c@13 {
compatible = "onsemi,ar0234";
reg = <0x13>;
status = "okay";
/* Physical dimensions of sensor */
physical_w = "15.0";
physical_h = "12.5";
sensor_model ="ar0234";
/* 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";
/* Convert Gain to unit of dB (decibel) befor passing to kernel driver */
use_decibel_gain = "true";
/* enable CID_SENSOR_MODE_ID for sensor modes selection */
use_sensor_mode_id = "true";
mode0 {/*mode IMX424_MODE_3840X1080_CROP_30FPS*/
vc_id = "2";
mclk_khz = "24000";
num_lanes = "4";
tegra_sinterface = TEGRA_SINTERFACE;
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
dynamic_pixel_bit_depth = "8";
csi_pixel_bit_depth = "8";
mode_type = "yuv";
pixel_phase = "yuyv";
active_w = "1280";
active_h = "960";
readout_orientation = "0";
line_length = "2560";
inherent_gain = "1";
pix_clk_hz = "74250000";
serdes_pix_clk_hz = "200000000";
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>;
ar0234_ar0234_out2: endpoint {
vc-id = <2>;
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&ar0234_csi_in2>;
};
};
};
gmsl-link {
src-csi-port = "b";
dst-csi-port = "a";
serdes-csi-link = "c";
csi-mode = "1x4";
vc-id = <2>;
st-vc = <0>;
num-lanes = <4>;
streams = "ued-u1", "raw12";
};
};
ar0234_d@14 {
compatible = "onsemi,ar0234";
reg = <0x14>;
status = "okay";
/* Physical dimensions of sensor */
physical_w = "15.0";
physical_h = "12.5";
sensor_model ="ar0234";
/* 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";
/* Convert Gain to unit of dB (decibel) befor passing to kernel driver */
use_decibel_gain = "true";
/* enable CID_SENSOR_MODE_ID for sensor modes selection */
use_sensor_mode_id = "true";
mode0 {/*mode IMX424_MODE_3840X1080_CROP_30FPS*/
vc_id = "3";
mclk_khz = "24000";
num_lanes = "4";
tegra_sinterface = TEGRA_SINTERFACE;
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
dynamic_pixel_bit_depth = "8";
csi_pixel_bit_depth = "8";
mode_type = "yuv";
pixel_phase = "yuyv";
active_w = "1280";
active_h = "960";
readout_orientation = "0";
line_length = "2560";
inherent_gain = "1";
pix_clk_hz = "74250000";
serdes_pix_clk_hz = "200000000";
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>;
ar0234_ar0234_out3: endpoint {
vc-id = <3>;
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&ar0234_csi_in3>;
};
};
};
gmsl-link {
src-csi-port = "b";
dst-csi-port = "a";
serdes-csi-link = "d";
csi-mode = "1x4";
vc-id = <3>;
st-vc = <0>;
num-lanes = <4>;
streams = "ued-u1", "raw12";
};
};
};
i2c@3180000 {
ar0234b_a@11 {
compatible = "onsemi,ar0234b";
reg = <0x11>;
status = "okay";
/* Physical dimensions of sensor */
physical_w = "15.0";
physical_h = "12.5";
sensor_model ="ar0234";
/* 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";
/* Convert Gain to unit of dB (decibel) befor passing to kernel driver */
use_decibel_gain = "true";
/* enable CID_SENSOR_MODE_ID for sensor modes selection */
use_sensor_mode_id = "true";
mode0 {/*mode AR0234_MODE_1280X720_CROP_30FPS*/
vc_id = "1";
mclk_khz = "24000";
num_lanes = "4";
tegra_sinterface = TEGRA_SINTERFACE;
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
dynamic_pixel_bit_depth = "16";
csi_pixel_bit_depth = "16";
mode_type = "yuv";
pixel_phase = "uyvy"; //yuyv uyvy
active_w = "1920";
active_h = "1080";
readout_orientation = "0";
line_length = "2200";
inherent_gain = "1";
pix_clk_hz = "74250000";
serdes_pix_clk_hz = "297000000";
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>;
ar0234b_ar0234_out0: endpoint {
vc-id = <1>;
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&ar0234b_csi_in0>;
};
};
};
gmsl-link {
src-csi-port = "b";
dst-csi-port = "c";
serdes-csi-link = "a";
csi-mode = "1x4";
st-vc = <0>;
vc-id = <1>;
num-lanes = <4>;
streams = "ued-u1", "raw12";
};
};
ar0234b_b@12 {
compatible = "onsemi,ar0234b";
reg = <0x12>;
status = "okay";
/* Physical dimensions of sensor */
physical_w = "15.0";
physical_h = "12.5";
sensor_model ="ar0234";
/* 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";
/* Convert Gain to unit of dB (decibel) befor passing to kernel driver */
use_decibel_gain = "true";
/* enable CID_SENSOR_MODE_ID for sensor modes selection */
use_sensor_mode_id = "true";
mode0 {/*mode AR0234_MODE_1280X720_CROP_30FPS*/
vc_id = "0";
mclk_khz = "24000";
num_lanes = "4";
tegra_sinterface = TEGRA_SINTERFACE;
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
dynamic_pixel_bit_depth = "16";
csi_pixel_bit_depth = "16";
mode_type = "yuv";
pixel_phase = "uyvy"; //yuyv uyvy
active_w = "1920";
active_h = "1080";
readout_orientation = "0";
line_length = "2200";
inherent_gain = "1";
pix_clk_hz = "74250000";
serdes_pix_clk_hz = "297000000";
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>;
ar0234b_ar0234_out1: endpoint {
vc-id = <0>;
port-index = <2>;
bus-width = <4>;
remote-endpoint = <&ar0234b_csi_in1>;
};
};
};
gmsl-link {
src-csi-port = "b";
dst-csi-port = "c";
serdes-csi-link = "b";
csi-mode = "1x4";
st-vc = <0>;
vc-id = <0>;
num-lanes = <4>;
streams = "ued-u1", "raw12";
};
};
ar0234b_c@13 {
compatible = "onsemi,ar0234b";
reg = <0x13>;
status = "okay";
/* Physical dimensions of sensor */
physical_w = "15.0";
physical_h = "12.5";
sensor_model ="ar0234";
/* 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";
/* Convert Gain to unit of dB (decibel) befor passing to kernel driver */
use_decibel_gain = "true";
/* enable CID_SENSOR_MODE_ID for sensor modes selection */
use_sensor_mode_id = "true";
mode0 {/*mode AR0234_MODE_1280X720_CROP_30FPS*/
vc_id = "2";
mclk_khz = "24000";
num_lanes = "4";
tegra_sinterface = TEGRA_SINTERFACE;
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
dynamic_pixel_bit_depth = "16";
csi_pixel_bit_depth = "16";
mode_type = "yuv";
pixel_phase = "uyvy"; //yuyv uyvy
active_w = "1920";
active_h = "1080";
readout_orientation = "0";
line_length = "2200";
inherent_gain = "1";
pix_clk_hz = "74250000";
serdes_pix_clk_hz = "297000000";
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>;
ar0234b_ar0234_out2: endpoint {
vc-id = <2>;
port-index = <2>;
bus-width = <4>;
remote-endpoint = <&ar0234b_csi_in2>;
};
};
};
gmsl-link {
src-csi-port = "b";
dst-csi-port = "c";
serdes-csi-link = "c";
csi-mode = "1x4";
vc-id = <2>;
st-vc = <0>;
num-lanes = <4>;
streams = "ued-u1", "raw12";
};
};
ar0234b_d@14 {
compatible = "onsemi,ar0234b";
reg = <0x14>;
status = "okay";
/* Physical dimensions of sensor */
physical_w = "15.0";
physical_h = "12.5";
sensor_model ="ar0234";
/* 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";
/* Convert Gain to unit of dB (decibel) befor passing to kernel driver */
use_decibel_gain = "true";
/* enable CID_SENSOR_MODE_ID for sensor modes selection */
use_sensor_mode_id = "true";
mode0 {/*mode AR0234_MODE_1280X720_CROP_30FPS*/
vc_id = "3";
mclk_khz = "24000";
num_lanes = "4";
tegra_sinterface = TEGRA_SINTERFACE;
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
dynamic_pixel_bit_depth = "16";
csi_pixel_bit_depth = "16";
mode_type = "yuv";
pixel_phase = "uyvy"; //yuyv uyvy
active_w = "1920";
active_h = "1080";
readout_orientation = "0";
line_length = "2200";
inherent_gain = "1";
pix_clk_hz = "74250000";
serdes_pix_clk_hz = "297000000";
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>;
ar0234b_ar0234_out3: endpoint {
vc-id = <3>;
port-index = <2>;
bus-width = <4>;
remote-endpoint = <&ar0234b_csi_in3>;
};
};
};
gmsl-link {
src-csi-port = "b";
dst-csi-port = "c";
serdes-csi-link = "d";
csi-mode = "1x4";
vc-id = <3>;
st-vc = <0>;
num-lanes = <4>;
streams = "ued-u1", "raw12";
};
};
};
};
/ {
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
*
* 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 = <8>;
max_lane_speed = <15000000>;
min_bits_per_pixel = <10>;
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 = "ar0234_bottomleft";
position = "bottomleft";
orientation = "1";
drivernode0 {
/* Declare PCL support driver (classically known as guid) */
pcl_id = "v4l2_sensor";
/* Driver v4l2 device name */
devname = "ar0234 30-0018";
/* Declare the device-tree hierarchy to driver instance */
proc-device-tree = "/proc/device-tree/i2c@c250000/ar0234_a@11";
};
};
module1 {
badge = "ar0234_bottomright";
position = "bottomright";
orientation = "1";
drivernode0 {
/* Declare PCL support driver (classically known as guid) */
pcl_id = "v4l2_sensor";
/* Driver v4l2 device name */
devname = "ar0234 30-0010";
/* Declare the device-tree hierarchy to driver instance */
proc-device-tree = "/proc/device-tree/i2c@c250000/ar0234_b@12";
};
};
module2 {
badge = "ar0234_centerleft";
position = "centerleft";
orientation = "1";
drivernode0 {
/* Declare PCL support driver (classically known as guid) */
pcl_id = "v4l2_sensor";
/* Driver v4l2 device name */
devname = "ar0234 31-0018";
proc-device-tree = "/proc/device-tree/i2c@c250000/ar0234_c@13";
};
};
module3 {
badge = "ar0234_centerright";
position = "centerright";
orientation = "1";
drivernode0 {
/* Declare PCL support driver (classically known as guid) */
pcl_id = "v4l2_sensor";
/* Driver v4l2 device name */
devname = "ar0234 31-0010";
/* Declare the device-tree hierarchy to driver instance */
proc-device-tree = "/proc/device-tree/i2c@c250000/ar0234_d@14";
};
};
module4 {
badge = "ar0234b_bottomleft";
position = "bottomleft";
orientation = "1";
drivernode0 {
/* Declare PCL support driver (classically known as guid) */
pcl_id = "v4l2_sensor";
/* Driver v4l2 device name */
devname = "ar0234b 30-0018";
/* Declare the device-tree hierarchy to driver instance */
proc-device-tree = "/proc/device-tree/i2c@3180000/ar0234b_a@11";
};
};
module5 {
badge = "ar0234b_bottomright";
position = "bottomright";
orientation = "1";
drivernode0 {
/* Declare PCL support driver (classically known as guid) */
pcl_id = "v4l2_sensor";
/* Driver v4l2 device name */
devname = "ar0234b 30-0010";
/* Declare the device-tree hierarchy to driver instance */
proc-device-tree = "/proc/device-tree/i2c@3180000/ar0234b_b@12";
};
};
module6 {
badge = "ar0234b_centerleft";
position = "centerleft";
orientation = "1";
drivernode0 {
/* Declare PCL support driver (classically known as guid) */
pcl_id = "v4l2_sensor";
/* Driver v4l2 device name */
devname = "ar0234b 31-0018";
proc-device-tree = "/proc/device-tree/i2c@3180000/ar0234b_c@13";
};
};
module7 {
badge = "ar0234b_centerright";
position = "centerright";
orientation = "1";
drivernode0 {
/* Declare PCL support driver (classically known as guid) */
pcl_id = "v4l2_sensor";
/* Driver v4l2 device name */
devname = "ar0234b 31-0010";
/* Declare the device-tree hierarchy to driver instance */
proc-device-tree = "/proc/device-tree/i2c@3180000/ar0234b_d@14";
};
};
};
};
};
(2)Yes, we have two max96712, each connected to 4 lanes, totaling 8 lanes
(3)Yes, there are 8 nodes; When displaying images, they are displayed according to the VC id attribute, which I think should be the correct configuration
(4)I have tried resetting the csi2 output of the max96712 deserializer, and there has been some improvement, but it has not been resolved