<?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 Fast camera switching on a single CSI interface for i.MX8MP in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Fast-camera-switching-on-a-single-CSI-interface-for-i-MX8MP/m-p/2103849#M237554</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am trying to connect two cameras of the same type to the&amp;nbsp;&lt;STRONG&gt;same CSI&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;interface&lt;/STRONG&gt; using an &lt;STRONG&gt;external I2C&lt;/STRONG&gt; and &lt;STRONG&gt;MIPI multiplexer&lt;/STRONG&gt;. The cameras are configured to be in trigger mode and only one camera will be active at the same time.&lt;BR /&gt;As I have control over the trigger of the cameras, my goal is to &lt;STRONG&gt;have a constant frame rate&lt;/STRONG&gt; and be able to &lt;STRONG&gt;switch between the cameras on the fly&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Please note that in the end, I want to have this setup twice in order to support four cameras in total, but only 2 running at the same time.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="camera-mux.png" style="width: 521px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/339540i626B8033C02219BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="camera-mux.png" alt="camera-mux.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Similar questions to this topic have already been asked:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Is-it-possible-to-add-and-bring-both-the-Camera-UP-if-they-are/m-p/1649178#M205746" target="_self"&gt;Is it possible to add and bring both the Camera UP if they are connected with single CSI Lane imx8mp&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/bring-up-dual-Camera-under-single-mipi-csi/ta-p/1728321" target="_self"&gt;bring up dual Camera under single mipi csi&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/%C4%B0-MX8-Dual-Camera-Under-Single-MIPI-CSI/td-p/1976023" target="_self"&gt;İ.MX8 Dual Camera Under Single MIPI CSI&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Integrating-dual-MIPI-CSI-interface-in-iMX8MP-Processor/td-p/1522637" target="_self"&gt;Integrating dual MIPI CSI interface in iMX8MP Processor&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Two-different-camera-on-MIPI-CSI-using-mux/td-p/1959867" target="_self"&gt;Two different camera on MIPI-CSI using mux&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thread 1 and 2 belong together and discuss a solution where&amp;nbsp;&lt;STRONG&gt;imx8-media-dev&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;mipi-csi2-sam&lt;/STRONG&gt; are modified, so that depending on the loaded kernel module, a different camera is registered as input.&lt;BR /&gt;If I understand this correctly, two cameras of the same type are not supported and a camera switch would be very slow, as kernel modules must be reloaded each time.&lt;/P&gt;&lt;P&gt;Thread 3 is an improvement to 1 and 2, but from the shared information, I'm not sure if the solution could be used to exactly time the switch between the two cameras (I don't want to switch while a frame is captured or transmitted).&lt;/P&gt;&lt;P&gt;Thread 4 and 5 are more related to my topic, but unfortunately, a final solution has not been found.&lt;/P&gt;&lt;P&gt;A quick search has shown, that the&amp;nbsp;&lt;STRONG&gt;video-mux&lt;/STRONG&gt; driver is probably the best fit for my needs. While it is used by &lt;A href="https://github.com/nxp-imx/linux-imx/blob/37d02f4dcbbe6677dc9f5fc17f386c05d6a7bd7a/arch/arm/boot/dts/nxp/imx/imx6dl.dtsi#L272" target="_self"&gt;i.MX6&lt;/A&gt; and &lt;A href="https://github.com/nxp-imx/linux-imx/blob/37d02f4dcbbe6677dc9f5fc17f386c05d6a7bd7a/arch/arm/boot/dts/nxp/imx/imx7s.dtsi#L502" target="_self"&gt;i.MX7&lt;/A&gt; based-boards, it is currently not supported for the i.MX8 (imx8-media-dev.c &lt;A href="https://github.com/nxp-imx/linux-imx/blob/37d02f4dcbbe6677dc9f5fc17f386c05d6a7bd7a/drivers/staging/media/imx/imx8-media-dev.c#L1028" target="_self"&gt;expects an I2C&lt;/A&gt; device as input).&lt;/P&gt;&lt;P&gt;Before I start digging deeply into this topic, I would like to ask if there is any advice what's the best approach for my use-case is.&lt;/P&gt;&lt;P&gt;Best regards and thanks for your support.&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;</description>
    <pubDate>Sat, 24 May 2025 13:33:08 GMT</pubDate>
    <dc:creator>mkeey</dc:creator>
    <dc:date>2025-05-24T13:33:08Z</dc:date>
    <item>
      <title>Fast camera switching on a single CSI interface for i.MX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Fast-camera-switching-on-a-single-CSI-interface-for-i-MX8MP/m-p/2103849#M237554</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am trying to connect two cameras of the same type to the&amp;nbsp;&lt;STRONG&gt;same CSI&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;interface&lt;/STRONG&gt; using an &lt;STRONG&gt;external I2C&lt;/STRONG&gt; and &lt;STRONG&gt;MIPI multiplexer&lt;/STRONG&gt;. The cameras are configured to be in trigger mode and only one camera will be active at the same time.&lt;BR /&gt;As I have control over the trigger of the cameras, my goal is to &lt;STRONG&gt;have a constant frame rate&lt;/STRONG&gt; and be able to &lt;STRONG&gt;switch between the cameras on the fly&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Please note that in the end, I want to have this setup twice in order to support four cameras in total, but only 2 running at the same time.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="camera-mux.png" style="width: 521px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/339540i626B8033C02219BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="camera-mux.png" alt="camera-mux.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Similar questions to this topic have already been asked:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Is-it-possible-to-add-and-bring-both-the-Camera-UP-if-they-are/m-p/1649178#M205746" target="_self"&gt;Is it possible to add and bring both the Camera UP if they are connected with single CSI Lane imx8mp&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/bring-up-dual-Camera-under-single-mipi-csi/ta-p/1728321" target="_self"&gt;bring up dual Camera under single mipi csi&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/%C4%B0-MX8-Dual-Camera-Under-Single-MIPI-CSI/td-p/1976023" target="_self"&gt;İ.MX8 Dual Camera Under Single MIPI CSI&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Integrating-dual-MIPI-CSI-interface-in-iMX8MP-Processor/td-p/1522637" target="_self"&gt;Integrating dual MIPI CSI interface in iMX8MP Processor&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Two-different-camera-on-MIPI-CSI-using-mux/td-p/1959867" target="_self"&gt;Two different camera on MIPI-CSI using mux&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thread 1 and 2 belong together and discuss a solution where&amp;nbsp;&lt;STRONG&gt;imx8-media-dev&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;mipi-csi2-sam&lt;/STRONG&gt; are modified, so that depending on the loaded kernel module, a different camera is registered as input.&lt;BR /&gt;If I understand this correctly, two cameras of the same type are not supported and a camera switch would be very slow, as kernel modules must be reloaded each time.&lt;/P&gt;&lt;P&gt;Thread 3 is an improvement to 1 and 2, but from the shared information, I'm not sure if the solution could be used to exactly time the switch between the two cameras (I don't want to switch while a frame is captured or transmitted).&lt;/P&gt;&lt;P&gt;Thread 4 and 5 are more related to my topic, but unfortunately, a final solution has not been found.&lt;/P&gt;&lt;P&gt;A quick search has shown, that the&amp;nbsp;&lt;STRONG&gt;video-mux&lt;/STRONG&gt; driver is probably the best fit for my needs. While it is used by &lt;A href="https://github.com/nxp-imx/linux-imx/blob/37d02f4dcbbe6677dc9f5fc17f386c05d6a7bd7a/arch/arm/boot/dts/nxp/imx/imx6dl.dtsi#L272" target="_self"&gt;i.MX6&lt;/A&gt; and &lt;A href="https://github.com/nxp-imx/linux-imx/blob/37d02f4dcbbe6677dc9f5fc17f386c05d6a7bd7a/arch/arm/boot/dts/nxp/imx/imx7s.dtsi#L502" target="_self"&gt;i.MX7&lt;/A&gt; based-boards, it is currently not supported for the i.MX8 (imx8-media-dev.c &lt;A href="https://github.com/nxp-imx/linux-imx/blob/37d02f4dcbbe6677dc9f5fc17f386c05d6a7bd7a/drivers/staging/media/imx/imx8-media-dev.c#L1028" target="_self"&gt;expects an I2C&lt;/A&gt; device as input).&lt;/P&gt;&lt;P&gt;Before I start digging deeply into this topic, I would like to ask if there is any advice what's the best approach for my use-case is.&lt;/P&gt;&lt;P&gt;Best regards and thanks for your support.&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;</description>
      <pubDate>Sat, 24 May 2025 13:33:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Fast-camera-switching-on-a-single-CSI-interface-for-i-MX8MP/m-p/2103849#M237554</guid>
      <dc:creator>mkeey</dc:creator>
      <dc:date>2025-05-24T13:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Fast camera switching on a single CSI interface for i.MX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Fast-camera-switching-on-a-single-CSI-interface-for-i-MX8MP/m-p/2104510#M237609</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;From which board do you planned to do This? one need several MX8 doesn't have virtual channel to handle, if you need dual camera, maybe you can use MIPI CSI+ usb camera, we well you have to modify the DTB for this cause.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 14:31:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Fast-camera-switching-on-a-single-CSI-interface-for-i-MX8MP/m-p/2104510#M237609</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2025-05-26T14:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Fast camera switching on a single CSI interface for i.MX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Fast-camera-switching-on-a-single-CSI-interface-for-i-MX8MP/m-p/2104524#M237613</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We use a custom-designed board that includes an external MIPI and I2C multiplexer.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Although the i.MX8 lacks virtual channels (only&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;i.MX8QM or&amp;nbsp;i.MX8QXP support this), but we don't plan to use that feature.&lt;BR /&gt;For each pair of cameras, it is sufficient to only have one camera active at the same time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 15:04:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Fast-camera-switching-on-a-single-CSI-interface-for-i-MX8MP/m-p/2104524#M237613</guid>
      <dc:creator>mkeey</dc:creator>
      <dc:date>2025-05-26T15:04:54Z</dc:date>
    </item>
  </channel>
</rss>

