Hi @qiang_li-mpu_se ,
And you need check with TP2850 side, is there Frame End and Frame Start bwtween two interlaces fields?
According to TP2850 SPEC, it has Frame End and Frame Start, which is being confirmed with TP2850 vendor.
1.
From the observation of OV5640 driver, the PAL NTSC resolution defined by OV5640 Driver is correct, why the PATCH you provided is 1280*1440 instead of 1280*720 (720i), and the recorded video is not 1280*720, but 1280 *1440.
Record video with the following command:
mx8_v4l2_cap_drm_64 -cam 1 -d "/dev/video1" -fmt YUYV -ow 1280 -oh 1440 -of
The recorded video link is as follows:
https://drive.google.com/file/d/10ChIU77RoYyuqr3qfp_edWnqlQCI15Rv/view?usp=sharing
2.
Observing the PATCH provided by you, the register of the OV5640 is not changed, so can the OV5640 be set as an interlace output?
If this is ok, can I use 720*480 to verify de-interlace?
command:
mx8_v4l2_cap_drm_64 -cam 1 -d "/dev/video1" -fmt YUYV -ow 720 -oh 480 -of
3.
TP2850 Setting:
3-1 TP2850 Pixel PCLK calculation method: 2360 x 525/ 2 x 60 = 37.170 MHz (H-Total Pixel= 2360, line = 525/2, frame rate = 60Hz (not deinterlace yet))
3-2 Active needs to be changed to 1980 x 480, H-active becomes 1980 because it needs to correspond to H-total, normal H-total changes from 858 to 2360, multiplied by 2.75 times, so Active = 720x2.75 = 1980
3-3 Compare OV5640 PATCH, add TEST_MODE_1980_960 related code
3-4 The MIPI signal output by TP2850 is 60 pictures per second, and the SoC needs to do deinterlace to change it to 30 pictures
3-5 Not connected to NTSC input, directly output blue screen, blue screen (MIPI OUTPUT) is also output for the above settings
4.
Test Command: mx8_v4l2_cap_drm_64 -cam 1 -d "/dev/video0" -fmt YUYV -ow 1980 -oh 960 -of
CHNL_IMG_CFG[0x0c]: 1e007bc
STS( Channel Status Register (CHNL_STS) ) = 0x60020100
Please help to analyze why EARLY_VSYNC_ERR?
Thanks
Fred