<?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.mx8mq and ov8865 base address switching change error in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-mx8mq-and-ov8865-base-address-switching-change-error/m-p/1178777#M164565</link>
    <description>&lt;P&gt;On i.mx8mq, the value is 0x80030 so base address switching is always enabled. It's only the case on i.mx6s/i.mx6sl that base address switching is disabled since the per-soc value is 0 in that case.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;static const struct mx6s_csi_soc mx6s_soc = { 
        .rx_fifo_rst = true,
        .baseaddr_switch = 0,
};
static const struct mx6s_csi_soc mx6sl_soc = {
        .rx_fifo_rst = false,
        .baseaddr_switch = 0,
};
static const struct mx6s_csi_soc mx8mq_soc = {
        .rx_fifo_rst = true,
        .baseaddr_switch = 0x80030,                 
};
        
static const struct of_device_id mx6s_csi_dt_ids[] = {
        { .compatible = "fsl,imx6s-csi",    
          .data = &amp;amp;mx6s_soc,
        },
        { .compatible = "fsl,imx6sl-csi",
          .data = &amp;amp;mx6sl_soc,
        },
        { .compatible = "fsl,imx8mq-csi",
          .data = &amp;amp;mx8mq_soc,
        },
        { /* sentinel */ }
};                          
MODULE_DEVICE_TABLE(of, mx6s_csi_dt_ids);&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 05 Nov 2020 12:45:36 GMT</pubDate>
    <dc:creator>ohporter</dc:creator>
    <dc:date>2020-11-05T12:45:36Z</dc:date>
    <item>
      <title>i.mx8mq and ov8865 base address switching change error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx8mq-and-ov8865-base-address-switching-change-error/m-p/1177528#M164468</link>
      <description>&lt;P&gt;I'm enabling an ov8865 sensor on the 5.4.24 kernel on a Variscite DART-8M board.&lt;/P&gt;&lt;P&gt;I've made the following modifications:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Added support for SBGGT10 in&amp;nbsp;&lt;STRONG&gt;mx6s_capture.c&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Set the&amp;nbsp;&lt;STRONG&gt;clk &lt;/STRONG&gt;and&lt;STRONG&gt; clk_ui&lt;/STRONG&gt;&amp;nbsp;to maximum rates as recommended in other posts:&lt;STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;assigned-clock-rates = &amp;lt;266000000&amp;gt;, &amp;lt;333000000&amp;gt;, &amp;lt;66000000&amp;gt;;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Configured bridge, phy, and sensor for&amp;nbsp;&lt;STRONG&gt;4 lanes&lt;/STRONG&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'm able to capture single frames. However, I see the following issues:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Intermittently, perhaps 15-20% of single frame captures good data whereas the other captures are whereas the other captured frames have repeated data&lt;/LI&gt;&lt;LI&gt;Most importantly, when capturing multiple frames (after the first frame completes), the bridge driver reports&amp;nbsp;&lt;STRONG&gt;base address switching Change Err. &lt;/STRONG&gt;(when debug is enabled)&amp;nbsp;and fails fill the next queued buffer. This condition continues for each dma transfer complete interrupt until the capture process is manually stopped.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Following previous posts, I don't see any clear guidelines on the possible root causes of the base address switching Change Err. What are the possible causes of this error?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 21:30:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx8mq-and-ov8865-base-address-switching-change-error/m-p/1177528#M164468</guid>
      <dc:creator>ohporter</dc:creator>
      <dc:date>2020-11-03T21:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx8mq and ov8865 base address switching change error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx8mq-and-ov8865-base-address-switching-change-error/m-p/1177581#M164475</link>
      <description>&lt;P&gt;Hi ohporter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in general 'base address switching change' error can be in two cases:&lt;/P&gt;
&lt;P&gt;1: CSI DMA can't transfer data from CSI FIFO to DDR RAM in time, for this case may be suggested &lt;BR /&gt;to check that used latest BSP &amp;amp; latest DDR RPA tools.&lt;/P&gt;
&lt;P&gt;2: CSI data format is configured wrongly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error happens when frame switching occurs before DMA complete to transfer the data. This base address switch is used only when receiving interlaced data (like the signals from TV decoders). If interlaced data&lt;/P&gt;
&lt;P&gt;is not used then seems camera driver is not setting correctly the video format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 00:45:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx8mq-and-ov8865-base-address-switching-change-error/m-p/1177581#M164475</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-11-04T00:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx8mq and ov8865 base address switching change error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx8mq-and-ov8865-base-address-switching-change-error/m-p/1177666#M164486</link>
      <description>&lt;P&gt;Hi igor,&lt;/P&gt;&lt;P&gt;Thanks for the helpful response.&lt;/P&gt;&lt;P&gt;The statement that base address switch should only be used in conjunction with interlaced data concerns me because this does not seem to be the case in NXP BSP (5.4.24 or 5.4.47 are the same in this respect).&amp;nbsp;&lt;STRONG&gt;mx6s_capture.c&amp;nbsp;&lt;/STRONG&gt;enables base address switching by default on i.mx8mq when the bridge is reset.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;static const struct mx6s_csi_soc mx8mq_soc = {
        .rx_fifo_rst = true,
        .baseaddr_switch = 0x80030,
};&lt;/LI-CODE&gt;&lt;P&gt;and in&amp;nbsp;&lt;STRONG&gt;csisw_reset():&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;cr18 |= csi_dev-&amp;gt;soc-&amp;gt;baseaddr_switch;&lt;/LI-CODE&gt;&lt;P&gt;Immediately after &lt;STRONG&gt;csisw_reset()&lt;/STRONG&gt; is called, the interlaced check is performed but this base address switching default is never disabled even in non-interlaced mode:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if (pix-&amp;gt;field == V4L2_FIELD_INTERLACED)
   csi_tvdec_enable(csi_dev, true);&lt;/LI-CODE&gt;&lt;P&gt;If base address switching should not be used then it appears the supplied driver is incorrect and should actually be:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if (pix-&amp;gt;field == V4L2_FIELD_INTERLACED)
   csi_tvdec_enable(csi_dev, true);
else
   csi_tvdec_enable(csi_dev, false);&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;or&lt;/STRONG&gt; just disable base address switching in the defaults for i.mx8mq as follows:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;static const struct mx6s_csi_soc mx8mq_soc = {
        .rx_fifo_rst = true,
        .baseaddr_switch = 0,
};&lt;/LI-CODE&gt;&lt;P&gt;It seems odd that the&amp;nbsp;struct mx8mq_soc struct explicitly turns on base address switching by default (while older socs have it off by default) if it only should be used for interlaced video. If you could confirm that the &lt;STRONG&gt;mx6s_capture.c&lt;/STRONG&gt; driver incorrectly handles base address switching enable/disable that would help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 04:23:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx8mq-and-ov8865-base-address-switching-change-error/m-p/1177666#M164486</guid>
      <dc:creator>ohporter</dc:creator>
      <dc:date>2020-11-04T04:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx8mq and ov8865 base address switching change error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx8mq-and-ov8865-base-address-switching-change-error/m-p/1177739#M164500</link>
      <description>&lt;P&gt;what bsp used in the case, base address switching is enabled below:&lt;/P&gt;
&lt;PRE style="padding: 0px; margin: 0px; color: #000000; font-size: 13.3333px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;SPAN class="k" style="color: #008800; font-weight: bold;"&gt;static&lt;/SPAN&gt; &lt;SPAN class="kt" style="color: #888888; font-weight: bold;"&gt;int&lt;/SPAN&gt; &lt;SPAN class="nf" style="color: #0066bb; font-weight: bold;"&gt;mx6s_configure_csi&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="k" style="color: #008800; font-weight: bold;"&gt;struct&lt;/SPAN&gt; &lt;SPAN class="n"&gt;mx6s_csi_dev&lt;/SPAN&gt; &lt;SPAN class="o"&gt;*&lt;/SPAN&gt;&lt;SPAN class="n"&gt;csi_dev&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="p"&gt;{&lt;/SPAN&gt;
	&lt;SPAN class="k" style="color: #008800; font-weight: bold;"&gt;struct&lt;/SPAN&gt; &lt;SPAN class="n"&gt;v4l2_pix_format&lt;/SPAN&gt; &lt;SPAN class="o"&gt;*&lt;/SPAN&gt;&lt;SPAN class="n"&gt;pix&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="o"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="n"&gt;csi_dev&lt;/SPAN&gt;&lt;SPAN class="o"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="n"&gt;pix&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="n"&gt;u32&lt;/SPAN&gt; &lt;SPAN class="n"&gt;cr1&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="n"&gt;cr18&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="n"&gt;u32&lt;/SPAN&gt; &lt;SPAN class="n"&gt;width&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;

	&lt;SPAN class="k" style="color: #008800; font-weight: bold;"&gt;if&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;pix&lt;/SPAN&gt;&lt;SPAN class="o"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="n"&gt;field&lt;/SPAN&gt; &lt;SPAN class="o"&gt;==&lt;/SPAN&gt; &lt;SPAN class="n"&gt;V4L2_FIELD_INTERLACED&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="p"&gt;{&lt;/SPAN&gt;
		&lt;SPAN class="n"&gt;csi_deinterlace_enable&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;csi_dev&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="nb" style="color: #003388;"&gt;true&lt;/SPAN&gt;&lt;SPAN class="p"&gt;);&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/media/platform/mxc/capture/mx6s_capture.c?h=imx_5.4.47_2.2.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/media/platform/mxc/capture/mx6s_capture.c?h=imx_5.4.47_2.2.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 07:29:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx8mq-and-ov8865-base-address-switching-change-error/m-p/1177739#M164500</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-11-04T07:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx8mq and ov8865 base address switching change error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx8mq-and-ov8865-base-address-switching-change-error/m-p/1177978#M164513</link>
      <description>&lt;P&gt;I'm using&amp;nbsp;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/media/platform/mxc/capture/mx6s_capture.c?h=imx_5.4.24_2.1.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/media/platform/mxc/capture/mx6s_capture.c?h=imx_5.4.24_2.1.0&lt;/A&gt;&amp;nbsp;which has no functional changes in this driver versus 5.4.47_2.2.0 (just a switch to use the generic&amp;nbsp;&lt;STRONG&gt;vb2_fop_mmap&lt;/STRONG&gt; in the mx6s_csi_fops).&lt;/P&gt;&lt;P&gt;In csi_deinterlace_enable, there is no configuration of base address switching at all:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;static void csi_deinterlace_enable(struct mx6s_csi_dev *csi_dev, bool enable)
{
	unsigned long cr18 = __raw_readl(csi_dev-&amp;gt;regbase + CSI_CSICR18);

	if (enable == true)
		cr18 |= BIT_DEINTERLACE_EN;
	else
		cr18 &amp;amp;= ~BIT_DEINTERLACE_EN;

	__raw_writel(cr18, csi_dev-&amp;gt;regbase + CSI_CSICR18);
}&lt;/LI-CODE&gt;&lt;P&gt;I can confirm that my pix-&amp;gt;field is not equal to V4L2_FIELD_INTERLACED in any case so DEINTERLACE_EN is off as expected.&lt;/P&gt;&lt;P&gt;The base address switching is unconditionally enabled for i.mx8qm as part of csisw_reset() in &lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/media/platform/mxc/capture/mx6s_capture.c?h=imx_5.4.47_2.2.0#n449" target="_self"&gt;&amp;nbsp;https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/media/platform/mxc/capture/mx6s_capture.c?h=imx_5.4.47_2.2.0#n449&lt;/A&gt;&lt;/P&gt;&lt;P&gt;using the cr18 value defined in&amp;nbsp;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/media/platform/mxc/capture/mx6s_capture.c?h=imx_5.4.47_2.2.0#n2003" target="_self"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/media/platform/mxc/capture/mx6s_capture.c?h=imx_5.4.47_2.2.0#n2003&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The value, 0x80030, corresponds to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;MASK_OPTION&lt;UL&gt;&lt;LI&gt;02 - Writing to memory from second completely frame, when using this option, the CSI_ENABLE should be 1.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;BASEADDR_SWITCH_SEL&lt;UL&gt;&lt;LI&gt;1 - Switching base address at the edge of the first data of each frame&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;BASEADDR_SWITCH_EN&lt;UL&gt;&lt;LI&gt;When this bit is enabled, CSI DMA will switch the base address according to BASEADDR_SWITCH_SEL rather than atomically by DMA completed&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This seems to demonstrate that base address switching is always enabled in the current driver on i.mx8mq parts, it's not specific to interlaced mode at all.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 13:40:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx8mq-and-ov8865-base-address-switching-change-error/m-p/1177978#M164513</guid>
      <dc:creator>ohporter</dc:creator>
      <dc:date>2020-11-04T13:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx8mq and ov8865 base address switching change error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx8mq-and-ov8865-base-address-switching-change-error/m-p/1178499#M164535</link>
      <description>&lt;P&gt;&amp;gt;The base address switching is unconditionally enabled for i.mx8qm as part of csisw_reset()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sorry I can not agree.&amp;nbsp; Function csisw_reset() is called with "&lt;SPAN class="n"&gt;csi_dev&lt;/SPAN&gt;" argument and &lt;/P&gt;
&lt;P&gt;It can be false or true, depending on "&lt;SPAN class="n"&gt;csi_dev&lt;/SPAN&gt;" structure data,&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="k"&gt;static&lt;/SPAN&gt; &lt;SPAN class="kt"&gt;void&lt;/SPAN&gt; &lt;SPAN class="nf"&gt;csisw_reset&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="k"&gt;struct&lt;/SPAN&gt; &lt;SPAN class="n"&gt;mx6s_csi_dev&lt;/SPAN&gt; &lt;SPAN class="o"&gt;*&lt;/SPAN&gt;&lt;SPAN class="n"&gt;csi_dev&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="p"&gt;{&lt;/SPAN&gt;
..
		&lt;SPAN class="n"&gt;cr18&lt;/SPAN&gt; &lt;SPAN class="o"&gt;|=&lt;/SPAN&gt; &lt;SPAN class="n"&gt;csi_dev&lt;/SPAN&gt;&lt;SPAN class="o"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="n"&gt;soc&lt;/SPAN&gt;&lt;SPAN class="o"&gt;-&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="n"&gt;baseaddr_switch&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 05:32:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx8mq-and-ov8865-base-address-switching-change-error/m-p/1178499#M164535</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-11-05T05:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx8mq and ov8865 base address switching change error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx8mq-and-ov8865-base-address-switching-change-error/m-p/1178777#M164565</link>
      <description>&lt;P&gt;On i.mx8mq, the value is 0x80030 so base address switching is always enabled. It's only the case on i.mx6s/i.mx6sl that base address switching is disabled since the per-soc value is 0 in that case.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;static const struct mx6s_csi_soc mx6s_soc = { 
        .rx_fifo_rst = true,
        .baseaddr_switch = 0,
};
static const struct mx6s_csi_soc mx6sl_soc = {
        .rx_fifo_rst = false,
        .baseaddr_switch = 0,
};
static const struct mx6s_csi_soc mx8mq_soc = {
        .rx_fifo_rst = true,
        .baseaddr_switch = 0x80030,                 
};
        
static const struct of_device_id mx6s_csi_dt_ids[] = {
        { .compatible = "fsl,imx6s-csi",    
          .data = &amp;amp;mx6s_soc,
        },
        { .compatible = "fsl,imx6sl-csi",
          .data = &amp;amp;mx6sl_soc,
        },
        { .compatible = "fsl,imx8mq-csi",
          .data = &amp;amp;mx8mq_soc,
        },
        { /* sentinel */ }
};                          
MODULE_DEVICE_TABLE(of, mx6s_csi_dt_ids);&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 Nov 2020 12:45:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx8mq-and-ov8865-base-address-switching-change-error/m-p/1178777#M164565</guid>
      <dc:creator>ohporter</dc:creator>
      <dc:date>2020-11-05T12:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx8mq and ov8865 base address switching change error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx8mq-and-ov8865-base-address-switching-change-error/m-p/1212802#M167861</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/178980"&gt;@ohporter&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I have come across the issue where streaming works around 50% of the time - if it works correctly on power up, then will continue to work as I start and stop streaming. However, if it doesn't work from power up, then the base address switching error will occur each time streaming is stopped and started.&lt;/P&gt;&lt;P&gt;I have basically come to the exact same conclusion as you have with regards to the base address switching change error. I've seen various posts about the&amp;nbsp;&lt;SPAN&gt;BASEADDR_SWITCH_EN only being applicable to interlaced video sources. However, there isn't anything in the documentation which suggests this (that I can see anyway) + it's strange that the default baseaddress_switch is 0x80030 for IMX8MQ. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried the following on the consideration that BASEADDR_SWITCH_EN + related fields are only relevant for interlaced modes. Here is the patch;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;if (pix-&amp;gt;field == V4L2_FIELD_INTERLACED)
   csi_tvdec_enable(csi_dev, true);
+else
+   csi_tvdec_enable(csi_dev, false);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The outcome was that, the base address switching error no longer occurred as the interrupt was disabled. However, the 50% of the time it didn't work - the FPS drops and the resulting output has a lot of repeated data overlaid onto each other.&lt;/P&gt;&lt;P&gt;Did you ever manage to fix this issue? it would be really helpful if you could share your experience since last posting!&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2021 16:33:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx8mq-and-ov8865-base-address-switching-change-error/m-p/1212802#M167861</guid>
      <dc:creator>jgsandom</dc:creator>
      <dc:date>2021-01-17T16:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx8mq and ov8865 base address switching change error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx8mq-and-ov8865-base-address-switching-change-error/m-p/1957635#M228646</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/178980"&gt;@ohporter&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Can you please share the driver for ov8865 camera module and your using 5.4.70 kernel version.&lt;BR /&gt;&lt;BR /&gt;Thanks and regards&lt;BR /&gt;Deepak Kumar Beniya&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 10:49:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx8mq-and-ov8865-base-address-switching-change-error/m-p/1957635#M228646</guid>
      <dc:creator>deepakbeniya</dc:creator>
      <dc:date>2024-09-19T10:49:54Z</dc:date>
    </item>
  </channel>
</rss>

