MIPI D-PHY 4lane capture failed on our Jetson AGX Xavier Custom Board

Hi. We had made mipi capture board with Jetson AGX Xavier.

Using custom kernel based on L4T 32.5.2
Using V4l2 framework to capture camera raw binary data.disable Jetson ISP
Using MIPI D-PHY generator(up to 2.5Gbps/lane,1/2/4lane,various data type, and so on)

Also already checked capturing 2lane MIPI CSI2 RAW10 data at CSI port0 and port1.
After that,we try to capture 4lane.
4lane CSI2 RAW10 data.same image width and height, same datarate.
Input CSI CLKP/N to CSI port 0 and Input CSI DataP/N 0_3 to CSI port0 and port1.
Changed DeviceTree setting about lane/bus count from 2 to 4 with DeviceTree overlay.

Following list we change

node property name
tegra-camera-platform num_csi_lanes
vi@15c10000/ports/port/endpoint bus-width
nvcsi@15a00000/ports/port/endpoint bus-width
i2c@3180000/devname/ports/port/endpoint bus-width
i2c@3180000/devname/mode num_lanes

*devname means devicename such as imx219,ov5693

Then, using func_hd command,check these propery values exactly “4”
i.e.:func_hd /proc/device-tree/tegra-camera-platform/num_csi_lanes.

But capture failed with this error.
error code output at random.
i.e.:
[ 134.587187] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 32, err_data 160
[ 134.589399] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 134.682352] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 96, err_data 4194400
[ 134.729911] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 512
[ 134.777441] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 32, err_data 160
[ 134.920462] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 32, err_data 160
[ 134.921764] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072
[ 135.015681] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 32, err_data 160
[ 135.016995] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 131072

Is there any other parameter to change?
Do you have idea to solve this?

No any others modification needed.
Did you also configure sensor REG to output data for 4 lanes configure?

Thanks for your reply.

OK.

Yes. already checked 4lane output by oscilloscope.

Have a check the trace log if any clue for it.

https://elinux.org/Jetson/l4t/Camera_BringUp

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.