Hello experts,
Currently I am enabling HDR for imx662 in imx8mp.
Sensor IMX662 : This sensor support clear HDR mode, in which two frames(high gain and low gain) will be interleaved without any compression as shown below.
I have updated all the necessary register to support clear HDR in sensor side, I have enabled virtual channel mode in clearHDR so that vc-0 will be containing high gain frame, and vc-1 will be containing low gain frame.
Platform IMX8MP:
1. I have updated vvcam structure to match with sensor output as below
.hdr_mode = SENSOR_MODE_HDR_STITCH,
.stitching_mode = SENSOR_STITCHING_DUAL_DCG_NOWAIT,
2. As per the AN1020420-AN13326 ISP HDR Modes and Sensor Types(2.0).pdf, I have updated drivers/staging/media/imx/imx8-mipi-csi2-sam.c file.
Issue: After above mentioned changes, I have started stream, I could not see any output without any error logs.
Observations:
1. There is no error reported in mxc-mipi-csi2.0 below is the screenshot of status registers.
2. There is no frame entered in vsiisp, below is the screenshot of /proc/vsisisp0 file.
3. I have enabled debug prints in isp-imx source, During HDR stream the below mentioned poll is always getting timeout. There is no POLLIN is happening.
(units/fpgs/fpga/source/altera_fpga.c)
4. below are the dumped registers for isp_imsc, isp_ris, isp_mis, isp_icr, isp_isr from vvcam/isp/mrv_all_regs.h
5. I have attached dmesg logs.
Kindly let me, is there anything else i should take care?
Thanks in advance.
I could see similar kind of issue already discussed in below post.
https://community.nxp.com/t5/i-MX-Processors/i-MX8MP-ISP-adding-a-new-Sony-1080p-sensor-with-ClearHD...
Kindly provide your thoughts @joanxie @artsiomstaliaro
we haven't tested this mode, but as I known, imx8mp ISP can support it, could you confirm your output data from camera is “2x12-bit dual DCG without waiting" mode? and did you test other mode? I had another customer who can work line mode and dual HDR mode on imx662, did you try other mode? only this mode doesn't work?
1. Yes, data out from sensor is “2x12-bit dual DCG without waiting" mode
2. I am not getting any stream for all stitiching mode (sensor_stitching_mode_e).
3. I have tried DOL as well (changed sensor and driver configuration to DOL). but I could not get any stream.
4. As a conclusion, I am not getting any stream when I select hdr_mode=HDR_STITCH.
I have already mentioned that, I tried with all the modes in sensor_stitching_mode_e, including below, But I could not get any stream.
.hdr_mode = SENSOR_MODE_HDR_STITCH,
.stitching_mode = SENSOR_STITCHING_L_AND_S,
I send the mail to the jeyaprakash.ck@e-consystems.com, I couldn't send other mail address, if you need receive mail via other mail address, pls use that mail address to submit ticket here