Trying to get our camera working with orinnano with v4l2-ctl. The following is the debug trace I get when I try to stream. Is there somekind of patch that I need to do for obtaining a RAW10 output from the camera ??
v4l2-ctl-3596 [002] ....... 324.722314: tegra_channel_open: vi-output, sp5508 9-003c
v4l2-ctl-3596 [002] ....... 324.771649: tegra_channel_set_power: sp5508 9-003c : 0x1
v4l2-ctl-3596 [002] ....... 324.771741: camera_common_s_power: status : 0x1
v4l2-ctl-3596 [002] ....... 324.771749: tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-3596 [002] ....... 324.771752: csi_s_power: enable : 0x1
v4l2-ctl-3596 [002] ....... 324.773164: tegra_channel_capture_setup: vnc_id 0 W 2624 H 1992 fmt c4
vi-output, sp55-3597 [000] ....... 324.783068: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:3597 tid:3597
vi-output, sp55-3597 [000] ....... 324.783079: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:3597 tid:3597
vi-output, sp55-3597 [000] ....... 324.783080: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:3597 tid:3597
vi-output, sp55-3597 [000] ....... 324.783081: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:3597 tid:3597
v4l2-ctl-3596 [002] ....... 324.783617: tegra_channel_set_stream: enable : 0x1
v4l2-ctl-3596 [002] ....... 324.786794: tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-3596 [002] ....... 324.786798: csi_s_stream: enable : 0x1
v4l2-ctl-3596 [002] ....... 324.787214: tegra_channel_set_stream: sp5508 9-003c : 0x1
vi-output, sp55-3598 [001] ....... 327.393800: tegra_channel_capture_setup: vnc_id 0 W 2624 H 1992 fmt c4
vi-output, sp55-3597 [000] ....... 327.394250: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:3597 tid:3597
vi-output, sp55-3597 [000] ....... 327.394265: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:3597 tid:3597
vi-output, sp55-3597 [000] ....... 327.394267: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:3597 tid:3597
vi-output, sp55-3597 [000] ....... 327.394268: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:3597 tid:3597
v4l2-ctl-3596 [002] ....... 328.307185: tegra_channel_close: vi-output, sp5508 9-003c
vi-output, sp55-3598 [003] ....... 329.921893: tegra_channel_capture_setup: vnc_id 0 W 2624 H 1992 fmt c4
v4l2-ctl-3596 [002] ....... 329.922076: tegra_channel_set_stream: enable : 0x0
v4l2-ctl-3596 [002] ....... 329.922078: tegra_channel_set_stream: sp5508 9-003c : 0x0
v4l2-ctl-3596 [002] ....... 329.922128: tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x0
v4l2-ctl-3596 [002] ....... 329.922131: csi_s_stream: enable : 0x0
v4l2-ctl-3596 [001] ....... 329.927607: tegra_channel_set_power: sp5508 9-003c : 0x0
v4l2-ctl-3596 [001] ....... 329.927628: camera_common_s_power: status : 0x0
v4l2-ctl-3596 [001] ....... 329.927635: tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x0
v4l2-ctl-3596 [001] ....... 329.927638: csi_s_power: enable : 0x0
DTSI
compatible = "spectricity,sp5508";
/* I2C device address */
reg = <0x3c>;
/* V4L2 device node location */
devnode = "video1";
/* Physical dimensions of sensor */
physical_w = "3.790";
physical_h = "3.233";
sensor_model = "sp5508";
use_sensor_mode_id = "false";
Additional info:
The camera is connected to the CAM1 slot of Orin Nano dev kit…
Mode selection:
mode0 { /* SP5508_MODE_2624_1992__10BIT_DUAL_30FPS */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_c";
lane_polarity = "0";
phy_mode = "DPHY";
discontinuous_clk = "no";
dpcm_enable = "false";
cil_settletime = "0";
active_w = "2624";
active_h = "1992";
mode_type = "bayer";
pixel_phase = "bggr";
csi_pixel_bit_depth = "10";
readout_orientation = "0";
line_length = "3000";
inherent_gain = "1";
mclk_multiplier = "39.0";
pix_clk_hz = "800000000";
gain_factor = "16";
framerate_factor = "1000000";
exposure_factor = "1000000";
min_gain_val = "16"; /* 1x */
max_gain_val = "496"; /* 31x */
step_gain_val = "1";
default_gain = "32"; /* 2x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
min_framerate = "500000"; /* 0.5 fps */
max_framerate = "30000000"; /* 30 fps */
step_framerate = "1";
default_framerate = "30000000"; /* 30 fps */
min_exp_time = "10"; /* us */
max_exp_time = "2000000"; /* us = 2secs */
step_exp_time = "1";
default_exp_time = "10000"; /* us = 10ms */
embedded_metadata_height = "0";
};
What’s the version?
The trace log looks like didn’t get any validate data from sensor.
Hi
I am using jetpack 6.0. I am able to i2c to the sensors and the probing does work…
Regards
Athreya
The mode settings are similar to what I have on Xavier-nx where the driver solution already works… So I am wondering if there is some unexpected settings.
Regards
Athreya
Enable the trace log by below for JP6.
sudo su
modprobe rtcpu_debug
echo 1 > /sys/kernel/debug/tracing/tracing_on
echo 30720 > /sys/kernel/debug/tracing/buffer_size_kb
echo 1 > /sys/kernel/debug/tracing/events/tegra_rtcpu/enable
echo 1 > /sys/kernel/debug/tracing/events/freertos/enable
echo 3 > /sys/kernel/debug/camrtc/log-level
echo 1 > /sys/kernel/debug/tracing/events/camera_common/enable
echo > /sys/kernel/debug/tracing/trace
cat /sys/kernel/debug/tracing/trace
Hi
Please find the trace logs below.
Regards
Athreya
v4l2-ctl-4149 [003] ....... 794.112159: tegra_channel_open: vi-output, sp5508 9-003c
v4l2-ctl-4149 [003] ....... 794.143272: tegra_channel_set_power: sp5508 9-003c : 0x1
v4l2-ctl-4149 [003] ....... 794.143350: camera_common_s_power: status : 0x1
v4l2-ctl-4149 [003] ....... 794.143358: tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-4149 [003] ....... 794.143361: csi_s_power: enable : 0x1
v4l2-ctl-4149 [003] ....... 794.144237: tegra_channel_capture_setup: vnc_id 0 W 2624 H 1992 fmt c4
vi-output, sp55-4150 [004] ....... 794.152980: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:4150 tid:4150
vi-output, sp55-4150 [004] ....... 794.152997: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:4150 tid:4150
vi-output, sp55-4150 [004] ....... 794.153000: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:4150 tid:4150
v4l2-ctl-4149 [001] ....... 794.153001: tegra_channel_set_stream: enable : 0x1
vi-output, sp55-4150 [004] ....... 794.153003: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:4150 tid:4150
v4l2-ctl-4149 [001] ....... 794.156483: tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x1
v4l2-ctl-4149 [001] ....... 794.156487: csi_s_stream: enable : 0x1
v4l2-ctl-4149 [001] ....... 794.157437: tegra_channel_set_stream: sp5508 9-003c : 0x1
kworker/1:2-170 [001] ....... 794.178103: rtcpu_string: tstamp:25654717964 id:0x04010000 str:"VM0 activating."
kworker/1:2-170 [001] ....... 794.178110: rtcpu_vinotify_event: tstamp:25655312463 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:820957025120 data:0x799e300010000000
kworker/1:2-170 [001] ....... 794.178110: rtcpu_vinotify_event: tstamp:25655312725 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:820957035520 data:0x0000000031000001
kworker/1:2-170 [001] ....... 794.178110: rtcpu_vinotify_event: tstamp:25655313013 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:820957040032 data:0x0000000007020001
kworker/1:2-170 [001] ....... 794.178111: rtcpu_vinotify_event: tstamp:25655313262 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:820957140768 data:0x799e2d0010000000
kworker/1:2-170 [001] ....... 794.178111: rtcpu_vinotify_event: tstamp:25655313555 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:820957150592 data:0x0000000031000002
vi-output, sp55-4151 [000] ....... 796.891170: tegra_channel_capture_setup: vnc_id 0 W 2624 H 1992 fmt c4
vi-output, sp55-4150 [005] ....... 796.891685: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:4150 tid:4150
vi-output, sp55-4150 [005] ....... 796.891704: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:4150 tid:4150
vi-output, sp55-4150 [005] ....... 796.891706: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:4150 tid:4150
vi-output, sp55-4150 [005] ....... 796.891708: vi_task_submit: class_id:48 ch:0 syncpt_id:26 syncpt_thresh:0 pid:4150 tid:4150
kworker/1:2-170 [001] ....... 796.922066: rtcpu_vinotify_event: tstamp:25740540535 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:823695867488 data:0x799e300010000000
kworker/1:2-170 [001] ....... 796.922069: rtcpu_vinotify_event: tstamp:25740540827 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:823695914080 data:0x0000000031000001
kworker/1:2-170 [001] ....... 796.922069: rtcpu_vinotify_event: tstamp:25740541082 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:823695928928 data:0x799e2d0010000000
kworker/1:2-170 [001] ....... 796.922070: rtcpu_vinotify_event: tstamp:25740541370 cch:0 vi:1 tag:VIFALC_ACTIONLST channel:0x23 frame:0 vi_tstamp:823695945536 data:0x0000000007020001
kworker/1:2-170 [001] ....... 796.922070: rtcpu_vinotify_event: tstamp:25740541623 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:823695980224 data:0x0000000031000002
v4l2-ctl-4149 [003] ....... 798.215156: tegra_channel_close: vi-output, sp5508 9-003c
vi-output, sp55-4151 [001] ....... 799.419609: tegra_channel_capture_setup: vnc_id 0 W 2624 H 1992 fmt c4
v4l2-ctl-4149 [003] ....... 799.420353: tegra_channel_set_stream: enable : 0x0
v4l2-ctl-4149 [003] ....... 799.420355: tegra_channel_set_stream: sp5508 9-003c : 0x0
v4l2-ctl-4149 [003] ....... 799.420363: tegra_channel_set_stream: 13e00000.host1x:nvcsi@15a00000- : 0x0
v4l2-ctl-4149 [003] ....... 799.420366: csi_s_stream: enable : 0x0
v4l2-ctl-4149 [001] ....... 799.425034: tegra_channel_set_power: sp5508 9-003c : 0x0
v4l2-ctl-4149 [001] ....... 799.425113: camera_common_s_power: status : 0x0
v4l2-ctl-4149 [001] ....... 799.425121: tegra_channel_set_power: 13e00000.host1x:nvcsi@15a00000- : 0x0
v4l2-ctl-4149 [001] ....... 799.425124: csi_s_power: enable : 0x0
kworker/1:2-170 [001] ....... 799.442043: rtcpu_nvcsi_intr: tstamp:25819589187 class:GLOBAL type:PHY_INTR0 phy:1 cil:0 st:0 vc:0 status:0x00000110
It’s the same didn’t see NVCSI/VI receive any data from the sensor.
I would suspect the sensor driver and HW problem.
Hmm This is really strange.
The orin I have does work with imx219 (raspberry pi cam) and the hardware I have works with Jetson xavier (with RAW10 for the sensor that we use), the connections are similar to the imx219 (which also works with xavier). I am not sure what I am missing here…
// SPDX-License-Identifier: GPL-2.0-only
// SPDX-FileCopyrightText: Copyright (c) 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#include <dt-bindings/clock/tegra234-clock.h>
#include <dt-bindings/gpio/tegra234-gpio.h>
/ {
fragment-camera@0 {
target-path = "/";
__overlay__ {
tegra-capture-vi {
num-channels = <2>;
ports {
#address-cells = <1>;
#size-cells = <0>;
vi_port0: port@0 {
reg = <0>;
sp5508_vi_in0: endpoint {
port-index = <1>;
bus-width = <2>;
remote-endpoint = <&sp5508_csi_out0>;
};
};
vi_port1: port@1 {
reg = <1>;
sp5508_vi_in1: endpoint {
port-index = <2>;
bus-width = <2>;
remote-endpoint = <&sp5508_csi_out1>;
};
};
};
};
bus@0 {
host1x@13e00000 {
nvcsi@15a00000 {
num-channels = <2>;
#address-cells = <1>;
#size-cells = <0>;
csi_chan0: channel@0 {
reg = <0>;
ports {
#address-cells = <1>;
#size-cells = <0>;
csi_chan0_port0: port@0 {
reg = <0>;
sp5508_csi_in0: endpoint@0 {
port-index = <1>;
bus-width = <2>;
remote-endpoint = <&sp5508_out0>;
};
};
csi_chan0_port1: port@1 {
reg = <1>;
sp5508_csi_out0: endpoint@1 {
remote-endpoint = <&sp5508_vi_in0>;
};
};
};
};
csi_chan1: channel@1 {
reg = <1>;
ports {
#address-cells = <1>;
#size-cells = <0>;
csi_chan1_port0: port@0 {
reg = <0>;
sp5508_csi_in1: endpoint@2 {
port-index = <2>;
bus-width = <2>;
remote-endpoint = <&sp5508_out1>;
};
};
csi_chan1_port1: port@1 {
reg = <1>;
sp5508_csi_out1: endpoint@3 {
remote-endpoint = <&sp5508_vi_in1>;
};
};
};
};
};
};
cam_i2cmux {
i2c_0:i2c@0 {
sp5508_cam0: sp5508_a@3c {
compatible = "spectricity,sp5508";
/* I2C device address */
reg = <0x3c>;
/* V4L2 device node location */
devnode = "video0";
/* Physical dimensions of sensor */
physical_w = "3.790";
physical_h = "3.233";
sensor_model = "sp5508";
use_sensor_mode_id = "true";
/**
* ==== Modes ====
* A modeX node is required to support v4l2 driver
* implementation with NVIDIA camera software stack
*
* == Signal properties ==
*
* phy_mode = "";
* PHY mode used by the MIPI lanes for this device
*
* tegra_sinterface = "";
* CSI Serial interface connected to tegra
* Incase of virtual HW devices, use virtual
* For SW emulated devices, use host
*
* pix_clk_hz = "";
* Sensor pixel clock used for calculations like exposure and framerate
*
* readout_orientation = "0";
* Based on camera module orientation.
* Only change readout_orientation if you specifically
* Program a different readout order for this mode
*
* == Image format Properties ==
*
* active_w = "";
* Pixel active region width
*
* active_h = "";
* Pixel active region height
*
* pixel_t = "";
* The sensor readout pixel pattern
*
* line_length = "";
* Pixel line length (width) for sensor mode.
*
* == Source Control Settings ==
*
* Gain factor used to convert fixed point integer to float
* Gain range [min_gain/gain_factor, max_gain/gain_factor]
* Gain step [step_gain/gain_factor is the smallest step that can be configured]
* Default gain [Default gain to be initialized for the control.
* use min_gain_val as default for optimal results]
* Framerate factor used to convert fixed point integer to float
* Framerate range [min_framerate/framerate_factor, max_framerate/framerate_factor]
* Framerate step [step_framerate/framerate_factor is the smallest step that can be configured]
* Default Framerate [Default framerate to be initialized for the control.
* use max_framerate to get required performance]
* Exposure factor used to convert fixed point integer to float
* For convenience use 1 sec = 1000000us as conversion factor
* Exposure range [min_exp_time/exposure_factor, max_exp_time/exposure_factor]
* Exposure step [step_exp_time/exposure_factor is the smallest step that can be configured]
* Default Exposure Time [Default exposure to be initialized for the control.
* Set default exposure based on the default_framerate for optimal exposure settings]
*
* gain_factor = ""; (integer factor used for floating to fixed point conversion)
* min_gain_val = ""; (ceil to integer)
* max_gain_val = ""; (ceil to integer)
* step_gain_val = ""; (ceil to integer)
* default_gain = ""; (ceil to integer)
* Gain limits for mode
*
* exposure_factor = ""; (integer factor used for floating to fixed point conversion)
* min_exp_time = ""; (ceil to integer)
* max_exp_time = ""; (ceil to integer)
* step_exp_time = ""; (ceil to integer)
* default_exp_time = ""; (ceil to integer)
* Exposure Time limits for mode (sec)
*
* framerate_factor = ""; (integer factor used for floating to fixed point conversion)
* min_framerate = ""; (ceil to integer)
* max_framerate = ""; (ceil to integer)
* step_framerate = ""; (ceil to integer)
* default_framerate = ""; (ceil to integer)
* Framerate limits for mode (fps)
*
* embedded_metadata_height = "";
* Sensor embedded metadata height in units of rows.
* If sensor does not support embedded metadata value should be 0.
*/
mode0 { /* SP5508_MODE_2624_1992__10BIT_DUAL_30FPS */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_b";
lane_polarity = "6";
phy_mode = "DPHY";
discontinuous_clk = "yes";
dpcm_enable = "false";
cil_settletime = "0";
active_w = "2624";
active_h = "1992";
mode_type = "bayer";
pixel_phase = "rggb";
csi_pixel_bit_depth = "10";
readout_orientation = "90";
line_length = "3448";
inherent_gain = "1";
mclk_multiplier = "39";
pix_clk_hz = "936000000";
gain_factor = "16";
framerate_factor = "1000000";
exposure_factor = "1000000";
min_gain_val = "16"; /* 1.00x */
max_gain_val = "496"; /* 31.00x */
step_gain_val = "1";
default_gain = "32"; /* 2.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
min_framerate = "500000"; /* 0.5 fps */
max_framerate = "30000000"; /* 30.0 fps */
step_framerate = "1";
default_framerate = "30000000"; /* 30.0 fps */
min_exp_time = "10"; /* us */
max_exp_time = "2000000"; /* us = 2sec */
step_exp_time = "1";
default_exp_time = "10000"; /* us = 10ms */
embedded_metadata_height = "0";
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
sp5508_out0: endpoint {
port-index = <1>;
bus-width = <2>;
remote-endpoint = <&sp5508_csi_in0>;
};
};
};
};
};
i2c_1: i2c@1 {
sp5508_cam1: sp5508_c@3c {
compatible = "spectricity,sp5508";
/* I2C device address */
reg = <0x3c>;
/* V4L2 device node location */
devnode = "video1";
/* Physical dimensions of sensor */
physical_w = "3.790";
physical_h = "3.233";
sensor_model = "sp5508";
use_sensor_mode_id = "true";
/**
* ==== Modes ====
* A modeX node is required to support v4l2 driver
* implementation with NVIDIA camera software stack
*
* == Signal properties ==
*
* phy_mode = "";
* PHY mode used by the MIPI lanes for this device
*
* tegra_sinterface = "";
* CSI Serial interface connected to tegra
* Incase of virtual HW devices, use virtual
* For SW emulated devices, use host
*
* pix_clk_hz = "";
* Sensor pixel clock used for calculations like exposure and framerate
*
* readout_orientation = "0";
* Based on camera module orientation.
* Only change readout_orientation if you specifically
* Program a different readout order for this mode
*
* == Image format Properties ==
*
* active_w = "";
* Pixel active region width
*
* active_h = "";
* Pixel active region height
*
* pixel_t = "";
* The sensor readout pixel pattern
*
* line_length = "";
* Pixel line length (width) for sensor mode.
*
* == Source Control Settings ==
*
* Gain factor used to convert fixed point integer to float
* Gain range [min_gain/gain_factor, max_gain/gain_factor]
* Gain step [step_gain/gain_factor is the smallest step that can be configured]
* Default gain [Default gain to be initialized for the control.
* use min_gain_val as default for optimal results]
* Framerate factor used to convert fixed point integer to float
* Framerate range [min_framerate/framerate_factor, max_framerate/framerate_factor]
* Framerate step [step_framerate/framerate_factor is the smallest step that can be configured]
* Default Framerate [Default framerate to be initialized for the control.
* use max_framerate to get required performance]
* Exposure factor used to convert fixed point integer to float
* For convenience use 1 sec = 1000000us as conversion factor
* Exposure range [min_exp_time/exposure_factor, max_exp_time/exposure_factor]
* Exposure step [step_exp_time/exposure_factor is the smallest step that can be configured]
* Default Exposure Time [Default exposure to be initialized for the control.
* Set default exposure based on the default_framerate for optimal exposure settings]
*
* gain_factor = ""; (integer factor used for floating to fixed point conversion)
* min_gain_val = ""; (ceil to integer)
* max_gain_val = ""; (ceil to integer)
* step_gain_val = ""; (ceil to integer)
* default_gain = ""; (ceil to integer)
* Gain limits for mode
*
* exposure_factor = ""; (integer factor used for floating to fixed point conversion)
* min_exp_time = ""; (ceil to integer)
* max_exp_time = ""; (ceil to integer)
* step_exp_time = ""; (ceil to integer)
* default_exp_time = ""; (ceil to integer)
* Exposure Time limits for mode (sec)
*
* framerate_factor = ""; (integer factor used for floating to fixed point conversion)
* min_framerate = ""; (ceil to integer)
* max_framerate = ""; (ceil to integer)
* step_framerate = ""; (ceil to integer)
* default_framerate = ""; (ceil to integer)
* Framerate limits for mode (fps)
*
* embedded_metadata_height = "";
* Sensor embedded metadata height in units of rows.
* If sensor does not support embedded metadata value should be 0.
*/
mode0 { /* SP5508_MODE_2624_1992__10BIT_DUAL_30FPS */
mclk_khz = "24000";
num_lanes = "2";
tegra_sinterface = "serial_c";
phy_mode = "DPHY";
discontinuous_clk = "yes";
dpcm_enable = "false";
cil_settletime = "0";
active_w = "2624";
active_h = "1992";
mode_type = "bayer";
pixel_phase = "rggb";
csi_pixel_bit_depth = "10";
readout_orientation = "90";
line_length = "3448";
inherent_gain = "1";
mclk_multiplier = "39.0";
pix_clk_hz = "936000000";
gain_factor = "16";
framerate_factor = "1000000";
exposure_factor = "1000000";
min_gain_val = "16"; /* 1.00x */
max_gain_val = "496"; /* 31.00x */
step_gain_val = "1";
default_gain = "32"; /* 2.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
min_framerate = "500000"; /* 0.5 fps */
max_framerate = "30000000"; /* 30.0 fps */
step_framerate = "1";
default_framerate = "30000000"; /* 30.0 fps */
min_exp_time = "10"; /* us */
max_exp_time = "2000000"; /* us = 2secs */
step_exp_time = "1";
default_exp_time = "10000"; /* us = 10ms */
embedded_metadata_height = "0";
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
sp5508_out1: endpoint {
port-index = <2>;
bus-width = <2>;
remote-endpoint = <&sp5508_csi_in1>;
};
};
};
};
};
};
};
tcp: 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 = <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>;
/**
* 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 vendor.
*/
modules {
cam_module0: module0 {
badge = "tesp_sp5508_cam0";
position = "front";
orientation = "1";
cam_module0_drivernode0: drivernode0 {
pcl_id = "v4l2_sensor";
sysfs-device-tree = "/sys/firmware/devicetree/base/bus@0/cam_i2cmux/i2c@0/sp5508_a@3c";
};
};
cam_module1: module1 {
badge = "tesp_sp5508_cam1";
position = "rear";
orientation = "1";
cam_module1_drivernode0: drivernode0 {
pcl_id = "v4l2_sensor";
sysfs-device-tree = "/sys/firmware/devicetree/base/bus@0/cam_i2cmux/i2c@1/sp5508_c@3c";
};
};
};
};
};
};
};
the v4l2-command that I use
sudo v4l2-ctl -d /dev/video0 --set-fmt-video=width=2624,height=1992,pixelformat=RG10 --stream-count=4 --verbose --stream-mmap
Don’t know what else is missing here :(
I seem to get streaming right now, needed to change pix_clk_hz to a decent value. I was playing around this value to see what works…