<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX Processors中的主题 Re: TP2850 de-interlace driver for iMX8MP boards</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1538480#M196434</link>
    <description>&lt;P&gt;From "CSIS_INTSRC[14]: 0x00000010", there is no MIPI&amp;nbsp;FRAME_START and&amp;nbsp;FRAME_END bits appear, that means no valid MIPI packages received.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For different camera sensor, the "csis-hs-settle" value in device tree should be adjusted basded on MIPI CSI2 data rate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And before debug the de-interlace mode, you need make sure the normal camera capture works first. If there are no FE(Frame End) and FS(Frame Start) between the two fields, then software can capture it as a normal 720*480@30fps camera. Two fields will be captured in to one buffer.&lt;/P&gt;
&lt;P&gt;If there are FE and FS between the two fields, then&amp;nbsp;software can capture it as a normal 720*240@60fps camera.&lt;/P&gt;
&lt;P&gt;When no de-interlace mode works, then you can debug the de-interlace mode.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2022 10:03:57 GMT</pubDate>
    <dc:creator>qiang_li-mpu_se</dc:creator>
    <dc:date>2022-10-17T10:03:57Z</dc:date>
    <item>
      <title>TP2850 de-interlace driver for iMX8MP boards</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1531491#M195892</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/4760" target="_blank" rel="noopener"&gt;@qiang_li-mpu_se&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;After referring to the website you provided, there will be a problem that &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;mx8_v4l2_cap_drm_64 cannot be recorded&lt;/STRONG&gt;&lt;/FONT&gt;, please help analyze this issue, thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my environment:&lt;/P&gt;&lt;P&gt;HW platform: IMX8MP&lt;/P&gt;&lt;P&gt;Video-In: TP2850&lt;/P&gt;&lt;P&gt;Linux Version:&amp;nbsp;5.10.52&lt;/P&gt;&lt;P&gt;Android Version: 11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refer to your previous article on de-interlace:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/ISL79987-and-adv7180-de-interlace-driver-for-iMX8QXP-boards/ta-p/1124075" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/ISL79987-and-adv7180-de-interlace-driver-for-iMX8QXP-boards/ta-p/1124075&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Refer to the Patch provided by your article (L5.4.0_2.3.0_ISL7998x_Patch.7z)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredTsai_1-1664780450642.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/195562iB47A3FC32719B3ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredTsai_1-1664780450642.png" alt="FredTsai_1-1664780450642.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;After unzip, I refer to 0001-ISI-Add-de-interlace-support.patch to Patch to my BSP&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredTsai_2-1664780665860.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/195563iADFA4B3130BB1B5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredTsai_2-1664780665860.png" alt="FredTsai_2-1664780665860.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;DTS isi_0 settings are as follows (NTSC weave mode):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredTsai_0-1664851936446.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/195643iD6F4DBF64FA59149/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredTsai_0-1664851936446.png" alt="FredTsai_0-1664851936446.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4.&amp;nbsp;After applying PATCH, use mx8_v4l2_cap_drm_64 to verify, the result cannot be recorded, it will always stop at &lt;FONT color="#FF0000"&gt;(v4l2_device_streamon:1478): channel[0] v4l_dev=0x4 start capturing&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;(command: mx8_v4l2_cap_drm_64 -cam 1 -d "/dev/video1" -fmt YUYV -ow 1280 -oh 720 –of)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5.&amp;nbsp;The attached file is the LOG of the video recorded by mx8_v4l2_cap_drm_64, and the ISI0 register has been dumped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help to analyze this issue, thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 09:45:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1531491#M195892</guid>
      <dc:creator>FredTsai</dc:creator>
      <dc:date>2022-10-04T09:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: TP2850 de-interlace driver for iMX8MP boards</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1535913#M196244</link>
      <description>&lt;P&gt;What's the camera's input resolution? If it is 1280*720, it should a progressive signal, no de-interlace is needed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is not&amp;nbsp;1280*720, then in ISI, you must set the same resolution as the camera original resolution, de-interlace can't work with scaling or CSC.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 01:53:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1535913#M196244</guid>
      <dc:creator>qiang_li-mpu_se</dc:creator>
      <dc:date>2022-10-12T01:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: TP2850 de-interlace driver for iMX8MP boards</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1535945#M196245</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/4760"&gt;@qiang_li-mpu_se&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Input resolution: CVBS (NTSC de-interlace)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attached file is the LOG of the video recorded by mx8_v4l2_cap_drm_64, and the ISI0 CSI register has been dumped,&amp;nbsp;&lt;SPAN&gt;resolution set to 720*480.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it will always stop at&amp;nbsp;&lt;FONT color="#FF0000"&gt;(v4l2_device_streamon:1478): channel[0] v4l_dev=0x4 start capturing&lt;/FONT&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help to analyze this issue, thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 03:15:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1535945#M196245</guid>
      <dc:creator>FredTsai</dc:creator>
      <dc:date>2022-10-12T03:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: TP2850 de-interlace driver for iMX8MP boards</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1538480#M196434</link>
      <description>&lt;P&gt;From "CSIS_INTSRC[14]: 0x00000010", there is no MIPI&amp;nbsp;FRAME_START and&amp;nbsp;FRAME_END bits appear, that means no valid MIPI packages received.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For different camera sensor, the "csis-hs-settle" value in device tree should be adjusted basded on MIPI CSI2 data rate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And before debug the de-interlace mode, you need make sure the normal camera capture works first. If there are no FE(Frame End) and FS(Frame Start) between the two fields, then software can capture it as a normal 720*480@30fps camera. Two fields will be captured in to one buffer.&lt;/P&gt;
&lt;P&gt;If there are FE and FS between the two fields, then&amp;nbsp;software can capture it as a normal 720*240@60fps camera.&lt;/P&gt;
&lt;P&gt;When no de-interlace mode works, then you can debug the de-interlace mode.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 10:03:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1538480#M196434</guid>
      <dc:creator>qiang_li-mpu_se</dc:creator>
      <dc:date>2022-10-17T10:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: TP2850 de-interlace driver for iMX8MP boards</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1538960#M196471</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/4760" target="_blank"&gt;@qiang_li-mpu_se&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Through oscilloscope measurement, TP2850 has MIPI signal output, as shown in the figure below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MIPI Clock&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredTsai_1-1666070400249.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/197006i2603B3F6ECE0C967/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredTsai_1-1666070400249.png" alt="FredTsai_1-1666070400249.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;MIPI Data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredTsai_0-1666070383905.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/197005iE6CC5F54C2B088F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredTsai_0-1666070383905.png" alt="FredTsai_0-1666070383905.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;Below is the tp2850 mipi csi DTS setting.&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; When the TP2850 is set to progressive and remove de-interlaced patch,&amp;nbsp;&lt;SPAN&gt;capture works&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredTsai_3-1666070828995.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/197009i0503257B63FD2A67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredTsai_3-1666070828995.png" alt="FredTsai_3-1666070828995.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. M&lt;SPAN&gt;ake sure the normal camera capture works first.&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; (Use mx8_v4l2_cap_drm_64 to verify the OV5640 camera)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredTsai_2-1666070568062.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/197007i196ABC8C887BDDD8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredTsai_2-1666070568062.png" alt="FredTsai_2-1666070568062.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any suggestions for DEBUG?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 05:57:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1538960#M196471</guid>
      <dc:creator>FredTsai</dc:creator>
      <dc:date>2022-10-18T05:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: TP2850 de-interlace driver for iMX8MP boards</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1539004#M196474</link>
      <description>&lt;P&gt;For iMX8MP de-interlace,&amp;nbsp;imx8-mipi-csi2-sam.c should be updated for de-interlace, this is different to iMX8QXP.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;diff --git a/drivers/staging/media/imx/imx8-mipi-csi2-sam.c b/drivers/staging/media/imx/imx8-mipi-csi2-sam.c&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;index 1d12365520a6..ddfe30fb2a0a 100644&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;--- a/drivers/staging/media/imx/imx8-mipi-csi2-sam.c&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;+++ b/drivers/staging/media/imx/imx8-mipi-csi2-sam.c&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;@@ -228,6 +228,9 @@&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;/* display_mix_clk_en_csr */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;#define DISP_MIX_GASKET_0_CTRL 0x00&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;+#define GASKET_0_CTRL_INTERLACE_MODE(x) (((x) &amp;amp; (0x3)) &amp;lt;&amp;lt; 6)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;+#define GASKET_0_CTRL_INTERLACE_MODE_MASK ((0x3UL) &amp;lt;&amp;lt; (6))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;+&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;#define GASKET_0_CTRL_DATA_TYPE(x) (((x) &amp;amp; (0x3F)) &amp;lt;&amp;lt; &lt;LI-EMOJI id="lia_smiling-face-with-sunglasses" title=":smiling_face_with_sunglasses:"&gt;&lt;/LI-EMOJI&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;#define GASKET_0_CTRL_DATA_TYPE_MASK ((0x3FUL) &amp;lt;&amp;lt; (8))&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;@@ -988,6 +991,13 @@ static void disp_mix_gasket_config(struct csi_state *state)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;if (fmt_val == GASKET_0_CTRL_DATA_TYPE_YUV422_8)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;val |= GASKET_0_CTRL_DUAL_COMP_ENABLE;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;val |= GASKET_0_CTRL_DATA_TYPE(fmt_val);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;+&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;+ val &amp;amp;= ~GASKET_0_CTRL_INTERLACE_MODE_MASK;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;+&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;+ printk("%s, field interlaced=%d\n", __func__, (state-&amp;gt;format.field == V4L2_FIELD_INTERLACED? 1 : 0));&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;+ if (state-&amp;gt;format.field == V4L2_FIELD_INTERLACED)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;+ val |= GASKET_0_CTRL_INTERLACE_MODE(0x2);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;+&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;regmap_write(gasket, DISP_MIX_GASKET_0_CTRL, val);&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;if (WARN_ON(!mf-&amp;gt;width || !mf-&amp;gt;height))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;--&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 06:47:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1539004#M196474</guid>
      <dc:creator>qiang_li-mpu_se</dc:creator>
      <dc:date>2022-10-18T06:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: TP2850 de-interlace driver for iMX8MP boards</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1539126#M196478</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/4760" target="_blank" rel="noopener"&gt;@qiang_li-mpu_se&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;After adding the patch to the BSP, the situation is the same, the attachment is Failed LOG, I have added LOG for DEBUG.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Fred&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 08:51:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1539126#M196478</guid>
      <dc:creator>FredTsai</dc:creator>
      <dc:date>2022-10-18T08:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: TP2850 de-interlace driver for iMX8MP boards</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1539374#M196496</link>
      <description>&lt;P&gt;The verified working patch is attached, we used the ov5640 camera for test, and handle its frame (1280*720) as field, then after de-interlace, the capture frame is 1280*1440.&lt;/P&gt;
&lt;P&gt;You can reference to it and identify is there any difference. By the way, to debug the driver, I think you'd better use the unit test application "mx8_v4l2_cap_drm.out" first.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 13:57:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1539374#M196496</guid>
      <dc:creator>qiang_li-mpu_se</dc:creator>
      <dc:date>2022-10-18T13:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: TP2850 de-interlace driver for iMX8MP boards</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1541743#M196670</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/4760" target="_blank" rel="noopener"&gt;@qiang_li-mpu_se&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The attached file is the LOG and recorded video of OV5640 and TP2850.&lt;/P&gt;&lt;P&gt;Removed L5.4.0_2.3.0_ISL7998x_Patch.7z, use&lt;BR /&gt;0001-Add-ISI-weaving-deinterlace-support-for-i.MX8MP.patch,&lt;BR /&gt;The result can be recorded to video through mx8_v4l2_cap_drm,&lt;BR /&gt;It should be correct to output a blue picture, but currently only see a blue line.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredTsai_0-1666337168089.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/197635iBE0133956296BC71/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredTsai_0-1666337168089.png" alt="FredTsai_0-1666337168089.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DTS:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredTsai_1-1666337202461.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/197637iDD655EE73D52639C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredTsai_1-1666337202461.png" alt="FredTsai_1-1666337202461.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredTsai_2-1666337220308.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/197638i7464204CBB7EDB71/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredTsai_2-1666337220308.png" alt="FredTsai_2-1666337220308.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please analyze or provide suggestions, thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Fred&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 07:28:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1541743#M196670</guid>
      <dc:creator>FredTsai</dc:creator>
      <dc:date>2022-10-21T07:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: TP2850 de-interlace driver for iMX8MP boards</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1541764#M196672</link>
      <description>&lt;P&gt;Can you capture the stream to file and attach here?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 07:42:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1541764#M196672</guid>
      <dc:creator>qiang_li-mpu_se</dc:creator>
      <dc:date>2022-10-21T07:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: TP2850 de-interlace driver for iMX8MP boards</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1541809#M196674</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/4760" target="_blank" rel="noopener"&gt;@qiang_li-mpu_se&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The attached file is the captured stream.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Fred&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 08:25:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1541809#M196674</guid>
      <dc:creator>FredTsai</dc:creator>
      <dc:date>2022-10-21T08:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: TP2850 de-interlace driver for iMX8MP boards</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1541866#M196682</link>
      <description>&lt;P&gt;I think you can check is there any other interrupt happens in ISI_CHNL_STS register.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And in isi_capture driver code, is there any code skip some frames. This is BSP version related.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 08:57:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1541866#M196682</guid>
      <dc:creator>qiang_li-mpu_se</dc:creator>
      <dc:date>2022-10-21T08:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: TP2850 de-interlace driver for iMX8MP boards</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1542437#M196747</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/4760" target="_blank" rel="noopener"&gt;@qiang_li-mpu_se&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As attached file LOG.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CHNL_STS is 0x100.&lt;BR /&gt;[ 64.904867][ T1793] mxc-isi 32e00000.isi: CHNL_STS[0x14]: &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;100&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;imx8-isi-cap.c: only skip frame once&lt;BR /&gt;[ 89.369850][ C0] isi-capture 32e00000.isi:cap_device: Skip frame when buffer number is not match ISI trigger buffer&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredTsai_0-1666588831878.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/197806i6D6BB4DAC92FEAA7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredTsai_0-1666588831878.png" alt="FredTsai_0-1666588831878.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you have any suggestions for DEBUG?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;BR /&gt;Fred&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 05:20:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1542437#M196747</guid>
      <dc:creator>FredTsai</dc:creator>
      <dc:date>2022-10-24T05:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: TP2850 de-interlace driver for iMX8MP boards</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1542524#M196756</link>
      <description>&lt;P&gt;These codes should be removed, for de-interlace mode, each buffer will generate two interrupts, so it will not align with buffer buffer number.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qiang_limpu_se_0-1666598570470.png" style="width: 604px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/197824iEF35C473AB77B42A/image-dimensions/604x159?v=v2" width="604" height="159" role="button" title="qiang_limpu_se_0-1666598570470.png" alt="qiang_limpu_se_0-1666598570470.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 08:03:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1542524#M196756</guid>
      <dc:creator>qiang_li-mpu_se</dc:creator>
      <dc:date>2022-10-24T08:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: TP2850 de-interlace driver for iMX8MP boards</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1544746#M196909</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/4760" target="_blank" rel="noopener"&gt;@qiang_li-mpu_se&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have removed these codes, but the output still does not improve.&lt;/P&gt;&lt;P&gt;Remove code: (imx8-isi-cap.c -&amp;gt; mxc_isi_cap_frame_write_done)&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredTsai_1-1666851603219.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/198310i3CDF70E85C533C2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredTsai_1-1666851603219.png" alt="FredTsai_1-1666851603219.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;output:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredTsai_0-1666851509654.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/198309i2694BF77B986638E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredTsai_0-1666851509654.png" alt="FredTsai_0-1666851509654.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Fred&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 06:24:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1544746#M196909</guid>
      <dc:creator>FredTsai</dc:creator>
      <dc:date>2022-10-27T06:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: TP2850 de-interlace driver for iMX8MP boards</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1544854#M196922</link>
      <description>&lt;P&gt;Please print out the&amp;nbsp;CHNL_STS register value for each interrupt in function mxc_isi_irq_handler():&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt; status = mxc_isi_get_irq_status(mxc_isi);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;+ printk("STS = 0x%x.\n", status);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And in&amp;nbsp;mxc_isi_enable_irq() function, you can just enable&amp;nbsp;RCVD interrupt to try:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;void mxc_isi_enable_irq(struct mxc_isi_dev *mxc_isi)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; u32 val;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; val = CHNL_IER_FRM_RCVD_EN_MASK;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp; &amp;nbsp; writel(val, mxc_isi-&amp;gt;regs + CHNL_IER);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;}&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 08:16:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1544854#M196922</guid>
      <dc:creator>qiang_li-mpu_se</dc:creator>
      <dc:date>2022-10-27T08:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: TP2850 de-interlace driver for iMX8MP boards</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1544874#M196923</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/4760" target="_blank" rel="noopener"&gt;@qiang_li-mpu_se&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The code has been modified as you suggested,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;imx8-isi-hw.c&lt;BR /&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredTsai_0-1666859778472.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/198329i8ED1BDC1FE8F9448/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredTsai_0-1666859778472.png" alt="FredTsai_0-1666859778472.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;imx8-isi-core.c&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredTsai_1-1666859804914.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/198330i84143C010A8EBC5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredTsai_1-1666859804914.png" alt="FredTsai_1-1666859804914.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;BR /&gt;Fred&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 08:38:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1544874#M196923</guid>
      <dc:creator>FredTsai</dc:creator>
      <dc:date>2022-10-27T08:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: TP2850 de-interlace driver for iMX8MP boards</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1544902#M196926</link>
      <description>&lt;P&gt;Bit 17&amp;nbsp;EARLY_VSYNC_ERR appears in each interrupt, that means before ISI received 720 lines of video, VSYNC appears. So the TP2850 output field data is not 1280*720, you need identify the correct resolution for TP2850, and set it into ISI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, if the TP2850's output is 720*240 field size, and you set 1280*720 in ISI, then you will get current issue,&amp;nbsp;EARLY_VSYNC_ERR appears, and in capture buffer, there is only video data at the start of the buffers.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 09:01:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1544902#M196926</guid>
      <dc:creator>qiang_li-mpu_se</dc:creator>
      <dc:date>2022-10-27T09:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: TP2850 de-interlace driver for iMX8MP boards</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1545396#M196955</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/4760" target="_blank" rel="noopener"&gt;@qiang_li-mpu_se&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The output of TP2850 is NTSC signal with a resolution of 720x480.&lt;BR /&gt;I modified camera_metadata(720X480), but the result is still the same, is there anything else that needs to be confirmed??&lt;/P&gt;&lt;P&gt;The attached file is the camera metadata and the test LOG after modifying the camera metadata.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Fred&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 03:11:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1545396#M196955</guid>
      <dc:creator>FredTsai</dc:creator>
      <dc:date>2022-10-28T03:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: TP2850 de-interlace driver for iMX8MP boards</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1545536#M196965</link>
      <description>&lt;P&gt;From register "CHNL_IMG_CFG[0x0c]: 2d00500", it is still 1280*720.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 07:18:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/TP2850-de-interlace-driver-for-iMX8MP-boards/m-p/1545536#M196965</guid>
      <dc:creator>qiang_li-mpu_se</dc:creator>
      <dc:date>2022-10-28T07:18:53Z</dc:date>
    </item>
  </channel>
</rss>

