Hello, everyone.
Initial data:
Linux build R36.4.3
camera: IMX 1 lane with 1188Mbps data rate
Driver GitHub - InES-HPMM/FPD-LinkIII_ds90ub95x: FDP Link III driver for ds90ub954/ds90ub953
DTS for ds90ub954:
ds90ub954_a@30 {
.
.
reg = <0x30>;
status = "okay";
csi-lane-count = <4>;
csi-lane-speed = <800>;
serializers {
.
.
serializer@0 {
status = "okay";
rx-channel=<0>;
i2c-address=<0x18>;
csi-lane-count = <1>;
virtual-channel-map = <0x0>;
.
.
.
};
serializer@1 {
status = "okay";
rx-channel=<1>;
i2c-address=<0x19>;
csi-lane-count = <1>;
virtual-channel-map = <0x1>;
.
.
.
};
};
};
DTS for camera sensor IMX:
__overlay__ {
tegra-capture-vi {
num-channels = <2>;
ports {
vc_vi_port0: port@0 {
reg = <0>;
vc_vi_in0: endpoint {
vc-id = <0>;
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&vc_csi_out0>;
};
};
vc_vi_port1: port@1 {
reg = <1>;
vc_vi_in1: endpoint {
vc-id = <1>;
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&vc_csi_out1>;
};
};
}; // ports
};
tegra-camera-platform {
compatible = "nvidia, tegra-camera-platform";
num_csi_lanes = <4>;
max_lane_speed = <1600000>;
min_bits_per_pixel = <10>;
vi_peak_byte_per_pixel = <2>;
vi_bw_margin_pct = <25>;
max_pixel_rate = <7500000>;
isp_peak_byte_per_pixel = <5>;
isp_bw_margin_pct = <25>;
};
bus@0 {
host1x@13e00000 {
nvcsi@15a00000 {
num-channels = <2>;
channel@0 {
ports {
port@0 {
vc_csi_in0: endpoint@0 {
port-index = <0>;
bus-width = <4>;
};
};
.
.
.
};
};
channel@1 {
reg = <1>;
ports {
port@0 {
reg = <0>;
vc_csi_in1: endpoint@2 {
port-index = <0>;
bus-width = <4>;
};
};
.
.
.
};
};
};
};
i2c@3180000 {
liimx_a@1a {
reg = <0x1a>;
mode0 {
num_lanes = "4";
tegra_sinterface = "serial_a";
vc_id = "0";
csi_pixel_bit_depth = "10";
default_framerate = "60000"; /* 60.0 fps */
phy_mode = "DPHY";
discontinuous_clk = "no";
mclk_khz = "74250";
pix_clk_hz = "118800000";
serdes_pix_clk_hz = "320000000";
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
endpoint {
vc-id = <0>;
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&vc_csi_in0>;
};
};
};
};
liimx_b@1b {
reg = <0x1b>;
mode0 {
num_lanes = "4";
tegra_sinterface = "serial_a";
vc_id = "1";
csi_pixel_bit_depth = "10";
default_framerate = "60000"; /* 60.0 fps */
discontinuous_clk = "no";
mclk_khz = "74250";
pix_clk_hz = "118800000";
serdes_pix_clk_hz = "320000000";
cil_settletime = "0";
};
ports {
port@0 {
reg = <0>;
endpoint {
vc-id = <1>;
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&vc_csi_in1>;
};
};
};
};
};
};
};
Dmesg output:
[ 4328.650535] imx 2-001a: start streaming camera
[ 4331.111124] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 4331.111146] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 4331.112593] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 4333.671234] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 4333.671253] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 4333.672803] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 4336.231171] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 4336.231189] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 4336.232830] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
rtcpu_debug:
v4l2-ctl-2541 tegra_channel_open: vi-output, imx 2-001a
v4l2-ctl-2541 tegra_channel_set_power: imx 2-001a : 0x1
v4l2-ctl-2541 camera_common_s_power: status : 0x1
v4l2-ctl-2541 tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-2541 csi_s_power: enable : 0x1
v4l2-ctl-2541 tegra_channel_capture_setup: vnc_id 0 W 1440 H 1088 fmt c4
vi-output, imx2-2542 vi_task_submit: class_id:48 ch:0 syncpt_id:6 syncpt_thresh:0 pid:2542 tid:2542
vi-output, imx2-2542 vi_task_submit: class_id:48 ch:0 syncpt_id:6 syncpt_thresh:0 pid:2542 tid:2542
vi-output, imx2-2542 vi_task_submit: class_id:48 ch:0 syncpt_id:6 syncpt_thresh:0 pid:2542 tid:2542
vi-output, imx2-2542 vi_task_submit: class_id:48 ch:0 syncpt_id:6 syncpt_thresh:0 pid:2542 tid:2542
v4l2-ctl-2541 tegra_channel_set_stream: enable : 0x1
v4l2-ctl-2541 tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-2541 csi_s_stream: enable : 0x1
v4l2-ctl-2541 tegra_channel_set_stream: imx 2-001a : 0x1
kworker/0:3-143 rtcpu_string: tstamp:141123817164 id:0x04010000 str:"VM0 activating."
kworker/0:3-143 rtcpu_vinotify_event: tstamp:141124326878 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:4515968379616 data:0x799d580010000000
kworker/0:3-143 rtcpu_vinotify_event: tstamp:141124327109 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:4515968389312 data:0x0000000031000001
kworker/0:3-143 rtcpu_vinotify_event: tstamp:141124327359 cch:0 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:4515968393856 data:0x0000000007020001
kworker/0:3-143 rtcpu_vinotify_event: tstamp:141124327574 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:4515968487872 data:0x799d550010000000
kworker/0:3-143 rtcpu_vinotify_event: tstamp:141124327814 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:4515968497664 data:0x0000000031000002
vi-output, imx2-2543 tegra_channel_capture_setup: vnc_id 0 W 1440 H 1088 fmt c4
vi-output, imx2-2542 vi_task_submit: class_id:48 ch:0 syncpt_id:6 syncpt_thresh:0 pid:2542 tid:2542
vi-output, imx2-2542 vi_task_submit: class_id:48 ch:0 syncpt_id:6 syncpt_thresh:0 pid:2542 tid:2542
vi-output, imx2-2542 vi_task_submit: class_id:48 ch:0 syncpt_id:6 syncpt_thresh:0 pid:2542 tid:2542
vi-output, imx2-2542 vi_task_submit: class_id:48 ch:0 syncpt_id:6 syncpt_thresh:0 pid:2542 tid:2542
kworker/0:3-143 rtcpu_vinotify_event: tstamp:141206086599 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:4518586171776 data:0x799d580010000000
kworker/0:3-143 rtcpu_vinotify_event: tstamp:141206086851 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:4518586181440 data:0x0000000031000001
kworker/0:3-143 rtcpu_vinotify_event: tstamp:141206087072 cch:0 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:4518586186016 data:0x0000000007020001
kworker/0:3-143 rtcpu_vinotify_event: tstamp:141206087312 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:4518586272032 data:0x799d550010000000
kworker/0:3-143 rtcpu_vinotify_event: tstamp:141206087535 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:4518586281824 data:0x0000000031000002
vi-output, imx2-2543 tegra_channel_capture_setup: vnc_id 0 W 1440 H 1088 fmt c4
vi-output, imx2-2542 vi_task_submit: class_id:48 ch:0 syncpt_id:6 syncpt_thresh:0 pid:2542 tid:2542
vi-output, imx2-2542 vi_task_submit: class_id:48 ch:0 syncpt_id:6 syncpt_thresh:0 pid:2542 tid:2542
vi-output, imx2-2542 vi_task_submit: class_id:48 ch:0 syncpt_id:6 syncpt_thresh:0 pid:2542 tid:2542
vi-output, imx2-2542 vi_task_submit: class_id:48 ch:0 syncpt_id:6 syncpt_thresh:0 pid:2542 tid:2542
kworker/0:3-143 rtcpu_vinotify_event: tstamp:141286142677 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:4521146420256 data:0x799d580010000000
kworker/0:3-143 rtcpu_vinotify_event: tstamp:141286142906 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:4521146429952 data:0x0000000031000001
kworker/0:3-143 rtcpu_vinotify_event: tstamp:141286143150 cch:0 vi:0 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:4521146434464 data:0x0000000007020001
kworker/0:3-143 rtcpu_vinotify_event: tstamp:141286143364 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:4521146535904 data:0x799d550010000000
kworker/0:3-143 rtcpu_vinotify_event: tstamp:141286143614 cch:0 vi:0 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:4521146545696 data:0x0000000031000002
There is no issue when I want to stream from just one camera it works correctly (albeit with a slight adjustment to the lane number DTS files). but if two cameras are connected, I cannot stream both of them.
Please help me.
