We managed to get DOL-HDR mode working on the R36.4.4 camera, and the camera works well.
But the new R36.5 release has failed.
We’ve taken all the settings that work on the R36.4.4 and compiled them for the R36.5.
We can’t get image capture.
Image capture on the R36.5 works fine with a regular camera, too.
The only problem is with the DOL-HDR mode.
Adjust the pix_clk_hz/serdes_pix_clk_hz to verify it.
Skew calibration is required if sensor or deserializer is using DPHY, and the output data rate is > 1.5Gbps.
An initiation deskew signal should be sent by sensor or deserializer to perform the skew calibration. If the deskew signals is not sent, the receiver will stall, and the capture will time out.
You can calculate the output data rate with the following equation:
Output data rate = (sensor or deserializer pixel clock in hertz) * (bits per pixel) / (number of CSI lanes)
We recalculated and increased pix_clk_hz = “480000000”;
We also set serdes_pix_clk_hz = “1200000000”;
But this didn’t produce any results.
I have a question about the nv_imx 77 driver.
The driver completely removed the 4-line modes, leaving only the 2-line mode.
What’s the reason for this?
According to our calculations, the output data transfer rate is less than 1.5 Gbps per lane for my HDR mode (3080x2160@30fps, DOL-HDR, RAW10, 4 lanes on IMX412/IMX477).
Target pixel clock frequency: ~480 MHz
(from OP_PLL registers: PRE_DIV=2, MPY=384, SYS_DIV=1, PIX_DIV=10; INCK=24 MHz).
Data transfer rate per lane = 4.8 Gbps / 4 lanes = 1.2 Gbps/lane < 1.5 Gbps
This means that skew calibration is not required.
We need 4 lanes, so we use a custom-made board. The issue remains regarding the incompatibility between versions P36.4.4 and P36.5.
We wanted to test the new P36.5 release, but it only works with the same features that worked on P36.4.4.
This means that P36.5 adds checks for those features that weren’t present in P36.4.4.
When you set the serdes_pix_clk_hz to 1200000000 that tell the NVCSI/VI driver the output data rate is 1200000000*10/4 = 3.0G that trigger the deskew calibration.
You can remove it from the dts if your driver does’t need it.
@ShaneCCC Our main concern is what happened in R36.5 to cause the issue while R35.4.4 works well? We would like to sync our system with the latest R36.5 since the release notes report the following fix done “On Jetson Orin, captured images using argus_camera with DOL HDR sensors may show a marginal increase in noise.“