Hi JerryChang,
Thanks for the update. I am working with “niranjan.kumar1”.
trace_500Mbps_1Lane_MIPI_CSI.log (38.0 MB)
Our setup involves an FPGA-based MIPI CSI-2 Hard D-PHY transmitter, which is self-driven and does not require an I²C interface for configuration.
So in the driver, the I²C part is ignored. Here we are using single lane MIPI to test the device which is configure on dts file.
In the sensor driver source code, the FPS (frames per second) is set, which can be retrieved using the command v4l2-ctl -d /dev/video0 --list-formats-ext.
static const int fpga_dev_60fps = {
60,
};
static const struct camera_common_frmfmt fpga_dev_frmfmt = {
{{1920, 1080}, fpga_dev_60fps, 1, 0, 1 },
};
/* this gets plugged into struct camera_common_data when you do
camera_common_initialize() inside your probe. */
static struct camera_common_sensor_ops dummy_common_ops = {
.numfrmfmts = ARRAY_SIZE(fpga_dev_frmfmt),
We are enable the trace in following way to debug the driver and media pipeline
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
v4l2-ctl --stream-mmap -c bypass_mode=0
cat /sys/kernel/debug/tracing/trace
Result 0f cat /sys/kernel/debug/tracing/trace - (Details log is attached).
Kindly check the log and Could you please suggest further steps to debug?
Thanks!