<?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>topic Re: i.MX 8MP capture video by tc358743,using Dual ISI for single CSI solution not work in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-8MP-capture-video-by-tc358743-using-Dual-ISI-for-single-CSI/m-p/1499867#M193349</link>
    <description>&lt;P&gt;&lt;SPAN&gt;The reference driver code is given here.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2022 01:16:04 GMT</pubDate>
    <dc:creator>feiyu</dc:creator>
    <dc:date>2022-08-03T01:16:04Z</dc:date>
    <item>
      <title>i.MX 8MP capture video by tc358743,using Dual ISI for single CSI solution not work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-8MP-capture-video-by-tc358743-using-Dual-ISI-for-single-CSI/m-p/1499865#M193347</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Application Note:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;AN13430 "&lt;/SPAN&gt;&lt;SPAN class=""&gt;i.MX 8MP Dual ISI channels for single CSI" explains how to use two ISI channels connected on single CSI port.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I want to do something similar to the application description, but replace the camera sensor with tc358743 like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dual isi.png" style="width: 699px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/188887i8FB379F891382679/image-size/large?v=v2&amp;amp;px=999" role="button" title="dual isi.png" alt="dual isi.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In order to realize the above requirements, I verified it in two steps.&lt;/P&gt;&lt;P&gt;First of all, on the development board(base kernel5.4.10) that can connect ar052x camera, according to the description of AN13430, the device tree and driver are modified, and it has achieved success, which can independent capture videos on isi0 and isi1 at the same time(Both ISI channels are 1920*1080@30Hz).&lt;/P&gt;&lt;P&gt;Then, on the development board(base kernel5.10.9) that can connect to tc358743, the same modification is made according to AN13430. Although two nodes, video0 and Video1, are also generated, which can capture video respectively,but there is a problem when capture video at the same time: first turn on video0 to collect video stream, and then turn on video1 to collect video. After video1 is turned on, the capture will be normal, but the video stream of video0 will be closed(Both ISI channels are 1920*1080@60Hz).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SOC on the two development boards is exactly the same, but there is a difference in the kernel version, which leads to some differences in CSI and ISI drivers, but I don't know whether this difference leads to the problem. The reference driver code is given below.&lt;/P&gt;&lt;P&gt;I wonder if anyone has encountered the problem described above and solved it?&lt;/P&gt;&lt;P&gt;Any hints are welcome. Thx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 01:40:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX-8MP-capture-video-by-tc358743-using-Dual-ISI-for-single-CSI/m-p/1499865#M193347</guid>
      <dc:creator>feiyu</dc:creator>
      <dc:date>2022-08-03T01:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX 8MP capture video by tc358743,using Dual ISI for single CSI solution not work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-8MP-capture-video-by-tc358743-using-Dual-ISI-for-single-CSI/m-p/1499866#M193348</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The reference driver code is given here.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 01:13:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX-8MP-capture-video-by-tc358743-using-Dual-ISI-for-single-CSI/m-p/1499866#M193348</guid>
      <dc:creator>feiyu</dc:creator>
      <dc:date>2022-08-03T01:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX 8MP capture video by tc358743,using Dual ISI for single CSI solution not work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-8MP-capture-video-by-tc358743-using-Dual-ISI-for-single-CSI/m-p/1499867#M193349</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The reference driver code is given here.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 01:16:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX-8MP-capture-video-by-tc358743-using-Dual-ISI-for-single-CSI/m-p/1499867#M193349</guid>
      <dc:creator>feiyu</dc:creator>
      <dc:date>2022-08-03T01:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX 8MP capture video by tc358743,using Dual ISI for single CSI solution not work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-8MP-capture-video-by-tc358743-using-Dual-ISI-for-single-CSI/m-p/1506011#M193840</link>
      <description>&lt;P&gt;how about try this patch?&lt;/P&gt;
&lt;PRE&gt;--- a/drivers/staging/media/imx/imx8-isi-core.c
+++ b/drivers/staging/media/imx/imx8-isi-core.c
@@ -443,7 +443,7 @@ static int mxc_isi_imx8mp_parse_resets(struct mxc_isi_dev *mxc_isi)
 	struct device *dev = &amp;amp;mxc_isi-&amp;gt;pdev-&amp;gt;dev;
 	struct reset_control *reset;
 
-	reset = devm_reset_control_get(dev, "isi_rst_proc");
+	reset = devm_reset_control_get_optional_shared(dev, "isi_rst_proc");
 	if (IS_ERR(reset)) {
 		if (PTR_ERR(reset) != -EPROBE_DEFER)
 			dev_err(dev, "Failed to get isi proc reset control\n");
@@ -451,7 +451,7 @@ static int mxc_isi_imx8mp_parse_resets(struct mxc_isi_dev *mxc_isi)
 	}
 	mxc_isi-&amp;gt;isi_rst_proc = reset;
 
-	reset = devm_reset_control_get(dev, "isi_rst_apb");
+	reset = devm_reset_control_get_optional_shared(dev, "isi_rst_apb");
 	if (IS_ERR(reset)) {
 		if (PTR_ERR(reset) != -EPROBE_DEFER)
 			dev_err(dev, "Failed to get isi apb reset control\n");&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Aug 2022 06:34:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX-8MP-capture-video-by-tc358743-using-Dual-ISI-for-single-CSI/m-p/1506011#M193840</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2022-08-15T06:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX 8MP capture video by tc358743,using Dual ISI for single CSI solution not work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX-8MP-capture-video-by-tc358743-using-Dual-ISI-for-single-CSI/m-p/1509320#M194094</link>
      <description>&lt;P&gt;Hi,&lt;SPAN class=""&gt;joanxie&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your reply&lt;/P&gt;&lt;P&gt;I tried the patch you provided, but it didn't work.&lt;/P&gt;&lt;P&gt;However, I have solved the problem by modifying the&amp;nbsp;&amp;lt;mxc_isi_capture_release&amp;gt; function in the/driver/staging/media/imx/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Before:
if (isi_cap-&amp;gt;is_streaming[isi_cap-&amp;gt;id])
    mxc_isi_cap_streamoff(file, NULL, q-&amp;gt;type);

After:
isi_cap-&amp;gt;refcnt--;
if (isi_cap-&amp;gt;refcnt == 0) {
    if (isi_cap-&amp;gt;is_streaming[isi_cap-&amp;gt;id]) {
        mutex_unlock(&amp;amp;isi_cap-&amp;gt;lock);
        mxc_isi_cap_streamoff(file, NULL, q-&amp;gt;type);
        mutex_lock(&amp;amp;isi_cap-&amp;gt;lock);
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;imx8-isi-cap.c file. The modification method is shown below.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 08:09:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX-8MP-capture-video-by-tc358743-using-Dual-ISI-for-single-CSI/m-p/1509320#M194094</guid>
      <dc:creator>feiyu</dc:creator>
      <dc:date>2022-08-22T08:09:57Z</dc:date>
    </item>
  </channel>
</rss>

