Hi ,
Now my sensor outputs data via MIPI CPHY. How can I configure the Xavier device tree to receive data from CPHY? I want to use this trios.
Check the programing guide to implement the sensor driver and configure the phy_mode = “CPHY” for it.
Hi,
I have changed the phy_mode to CPHY,but I can still reveive mipi DPHY data from sensor . It looks like the changes didn’t take effect . Should I change other configuration like “tegra_sinterface”?
Do you typo?
Only need modify the phy_mode.
You can check the picture.I do not find the error in typo . I can still reveive mipi DPHY data from sensor . It looks like the changes didn’t take effect .
Can you give me some advice? How to debug this problem?
Get the trace log to check the PHY mode.
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
Run the camera capturing and run “sudo cat /sys/kernel/debug/tracing/trace” again.
Hi ShaneCCC,
Below is the log.Please help analyze the log.
How do I know if I’m working in cphy mode or dphy mode
log.txt (18.6 KB)
Looks like the trace log didn’t show the message.
Could you print the configure in csi5_fops.c
Thanks
Hi,
I should print this variable right? It’s not convenient for me to update the firmware now.
Now can we use the terminal command to check the register value to determine whether mipi works in CHY mode?
And now I change the phy_mode in sensor mode.I think it is use to configure sensor .We want to configure the xavier mipi interface as CPHY. Do we need to modify something else?
No, this is use to configurate NVCSI instead of sensor.
You should able see the change in csi5_fops.c when phy_mode change in your dts.
Confirm the return from the read_phy_mode_from_dt() in csi5_fops.c
static int csi5_stream_set_config(struct tegra_csi_channel *chan, u32 stream_id,
u32 csi_port, int csi_lanes)
{
struct tegra_csi_device *csi = chan->csi;
struct tegra_channel *tegra_chan =
v4l2_get_subdev_hostdata(&chan->subdev);
struct camera_common_data *s_data = chan->s_data;
const struct sensor_mode_properties *mode = NULL;
unsigned int cil_settletime = 0;
unsigned int lane_polarity = 0;
unsigned int index = 0;
int vi_port = 0;
struct CAPTURE_CONTROL_MSG msg;
struct nvcsi_brick_config brick_config;
struct nvcsi_cil_config cil_config;
u32 phy_mode = read_phy_mode_from_dt(chan);
bool is_cphy = (phy_mode == CSI_PHY_MODE_CPHY);
dev_dbg(csi->dev, "%s: stream_id=%u, csi_port=%u\n",
__func__, stream_id, csi_port);
Thanks
Hi ShaneCCC,
Now I can not change the image .Do you have another way to debug this problem?
I check the dts ,I do change phy_mode to cphy and I check the /proc/device-tree.But mipi still work in dphy mode.
That’s weird!!
Have below debug RCE firmware to check the PHY mode in RTCPU side.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.