<?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: MIPI CSI2 Base address switching change error on IMX8mQ</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-Base-address-switching-change-error-on-IMX8mQ/m-p/1429030#M188267</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I got the following information from mx6s_capture driver (drivers/media/platform/mxc/capture/mx6s_capture.c)&lt;/P&gt;&lt;P&gt;static const struct mx6s_csi_soc mx8mq_soc = {&lt;BR /&gt;.rx_fifo_rst = true,&lt;BR /&gt;.baseaddr_switch = 0x80030,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;And can you let me know&amp;nbsp; how to check &lt;SPAN&gt;the value of BASEADDR_SWITCH_EN and BASEADDR_SWITCH_SEL on IMX8mQ platform?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Mar 2022 06:52:45 GMT</pubDate>
    <dc:creator>Deepak3</dc:creator>
    <dc:date>2022-03-16T06:52:45Z</dc:date>
    <item>
      <title>MIPI CSI2 Base address switching change error on IMX8mQ</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-Base-address-switching-change-error-on-IMX8mQ/m-p/1428603#M188236</link>
      <description>&lt;P&gt;Hello NXP team,&lt;/P&gt;&lt;P&gt;I am working on imx8mq platform to integrate ON Semi camera sensor using AP1302 ISP (&lt;A href="https://www.shiratech-solutions.com/products/cam1/" target="_blank"&gt;CAM1 – Shiratech Solutions (shiratech-solutions.com)&lt;/A&gt;). I am working on following On Semi camera sensor where i am getting Base address switching change err during streaming time and when this error comes, at that time streaming is not coming.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ARX3A0 -&amp;nbsp; &amp;nbsp;I have configured AP1302 to stream on 4 data lanes and I am setting &lt;A href="mailto:560x560@120fps" target="_blank"&gt;560x560@120fps &lt;/A&gt;and with this resolution, streaming is not working.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I am using NXP latest Yocto hardknot release and 5.10 linux kernel. And I am using following DTS configuration for MIPI CSI:&lt;/P&gt;&lt;P&gt;Can someone please check my configuration and suggest solution for it.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# AP1302 configuration:
&amp;amp;i2c3 {
        ap1302_mipi: ap1302@3d {
                compatible = "onnn,ap1302";
                reg = &amp;lt;0x3d&amp;gt;;

                pinctrl-0 = &amp;lt;&amp;amp;pinctrl_csi&amp;gt;;
                clocks = &amp;lt;&amp;amp;clk IMX8MQ_CLK_CLKO2&amp;gt;;
                clock-names = "xclk";
                assigned-clocks = &amp;lt;&amp;amp;clk IMX8MQ_CLK_CLKO2&amp;gt;,
                                  &amp;lt;&amp;amp;clk IMX8MQ_CLK_CLKO2&amp;gt;;
                assigned-clock-parents = &amp;lt;&amp;amp;clk IMX8MQ_SYS2_PLL_200M&amp;gt;;
                assigned-clock-rates = &amp;lt;0&amp;gt;, &amp;lt;20000000&amp;gt;;

                reset-gpios = &amp;lt;&amp;amp;gpio3 24 GPIO_ACTIVE_LOW&amp;gt;;
                standby-gpios = &amp;lt;&amp;amp;gpio2 7 GPIO_ACTIVE_HIGH&amp;gt;;
                i2csel-gpios = &amp;lt;&amp;amp;gpio2 8 GPIO_ACTIVE_HIGH&amp;gt;;
                isptrig-gpios = &amp;lt;&amp;amp;gpio3 12 GPIO_ACTIVE_HIGH&amp;gt;;
                status = "okay";

                port {
                        ap1302_ep: endpoint {
                                remote-endpoint = &amp;lt;&amp;amp;mipi1_sensor_ep&amp;gt;;
                                data-lanes = &amp;lt;1 2 3 4&amp;gt;;
                        };
                };

                sensors {
                        #address-cells = &amp;lt;1&amp;gt;;
                        #size-cells = &amp;lt;0&amp;gt;;
                        onnn,model = "onnn,arx3a0";
                        sensor@0 {
                                reg = &amp;lt;0&amp;gt;;
                        };
                };
        };
};

&amp;amp;mipi1_sensor_ep {
        remote-endpoint = &amp;lt;&amp;amp;ap1302_ep&amp;gt;;
        data-lanes = &amp;lt;1 2 3 4&amp;gt;;
        csis-wclk;
};
# MIPI CSI Host configuration:
                        mipi_csi_1: mipi_csi1@30a70000 {
                                compatible = "fsl,mxc-mipi-csi2_yav";
                                reg = &amp;lt;0x30a70000 0x1000&amp;gt;;
                                interrupts = &amp;lt;GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH&amp;gt;;
                                clocks = &amp;lt;&amp;amp;clk IMX8MQ_CLK_CSI1_CORE&amp;gt;,
                                                &amp;lt;&amp;amp;clk IMX8MQ_CLK_CSI1_ESC&amp;gt;,
                                                &amp;lt;&amp;amp;clk IMX8MQ_CLK_CSI1_PHY_REF&amp;gt;;
                                clock-names = "clk_core", "clk_esc", "clk_pxl";
                                assigned-clocks = &amp;lt;&amp;amp;clk IMX8MQ_CLK_CSI1_CORE&amp;gt;,
                                                  &amp;lt;&amp;amp;clk IMX8MQ_CLK_CSI1_PHY_REF&amp;gt;,
                                                  &amp;lt;&amp;amp;clk IMX8MQ_CLK_CSI1_ESC&amp;gt;;
                                assigned-clock-rates = &amp;lt;266000000&amp;gt;, &amp;lt;333000000&amp;gt;, &amp;lt;66000000&amp;gt;;
                                power-domains = &amp;lt;&amp;amp;pgc_mipi_csi1&amp;gt;;
                                csis-phy-reset = &amp;lt;&amp;amp;src 0x4c 7&amp;gt;;
                                phy-gpr = &amp;lt;&amp;amp;iomuxc_gpr 0x88&amp;gt;;
                                status = "disabled";
                        };

                        csi1_bridge: csi1_bridge@30a90000 {
                                compatible = "fsl,imx8mq-csi", "fsl,imx6s-csi";
                                reg = &amp;lt;0x30a90000 0x10000&amp;gt;;
                                interrupts = &amp;lt;GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH&amp;gt;;
                                clocks = &amp;lt;&amp;amp;clk IMX8MQ_CLK_DUMMY&amp;gt;,
                                        &amp;lt;&amp;amp;clk IMX8MQ_CLK_CSI1_ROOT&amp;gt;,
                                        &amp;lt;&amp;amp;clk IMX8MQ_CLK_DUMMY&amp;gt;;
                                clock-names = "disp-axi", "csi_mclk", "disp_dcic";
                                status = "disabled";
                        };
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 14:51:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-Base-address-switching-change-error-on-IMX8mQ/m-p/1428603#M188236</guid>
      <dc:creator>Deepak3</dc:creator>
      <dc:date>2022-03-15T14:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: MIPI CSI2 Base address switching change error on IMX8mQ</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-Base-address-switching-change-error-on-IMX8mQ/m-p/1428964#M188259</link>
      <description>&lt;P&gt;could you check the value of BASEADDR_SWITCH_EN and BASEADDR_SWITCH_SEL?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 05:06:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-Base-address-switching-change-error-on-IMX8mQ/m-p/1428964#M188259</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2022-03-16T05:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: MIPI CSI2 Base address switching change error on IMX8mQ</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-Base-address-switching-change-error-on-IMX8mQ/m-p/1429030#M188267</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I got the following information from mx6s_capture driver (drivers/media/platform/mxc/capture/mx6s_capture.c)&lt;/P&gt;&lt;P&gt;static const struct mx6s_csi_soc mx8mq_soc = {&lt;BR /&gt;.rx_fifo_rst = true,&lt;BR /&gt;.baseaddr_switch = 0x80030,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;And can you let me know&amp;nbsp; how to check &lt;SPAN&gt;the value of BASEADDR_SWITCH_EN and BASEADDR_SWITCH_SEL on IMX8mQ platform?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 06:52:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-Base-address-switching-change-error-on-IMX8mQ/m-p/1429030#M188267</guid>
      <dc:creator>Deepak3</dc:creator>
      <dc:date>2022-03-16T06:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: MIPI CSI2 Base address switching change error on IMX8mQ</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-Base-address-switching-change-error-on-IMX8mQ/m-p/1429130#M188272</link>
      <description>&lt;P&gt;baseaddr_switch = 0x80030 set correct for BASEADDR_SWITCH_EN and BASEADDR_SWITCH_SEL&lt;/P&gt;
&lt;P&gt;Base Address change error is generated when the base address changed while the last, refer to the BASEADDR_CHHANGE_ERROR in the CSI_CSISR&lt;/P&gt;
&lt;P style="color: #000000; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;When using base address switching enable,&amp;nbsp;BASEADDR_CHHANGE_ERROR bit of CSIx_CSISR will be 1 when switching occur before DMA complete.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="color: #000000; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;This bit will be clear by writing 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When this interrupt happens, follow the steps listed below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Unassert the CSI enable, CSIx_CSICR18 bit31,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Reflash the DMA, assert the CSIX_CSICR3 bit 14,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Assert the CSI enable, CSIx_CSICR18 bit31&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 08:55:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-Base-address-switching-change-error-on-IMX8mQ/m-p/1429130#M188272</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2022-03-16T08:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: MIPI CSI2 Base address switching change error on IMX8mQ</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-Base-address-switching-change-error-on-IMX8mQ/m-p/1429177#M188275</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;All the steps are already followed in the mx6s_capture.c driver to clear base address switch change interrupt. When this interrupt occurs, at that time I am not able to see streaming. Can you help me to solve streaming issue when this base address switching change interrupt occurs. I have also attached mx6s_capture.c driver file for your reference.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 09:45:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-Base-address-switching-change-error-on-IMX8mQ/m-p/1429177#M188275</guid>
      <dc:creator>Deepak3</dc:creator>
      <dc:date>2022-03-16T09:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: MIPI CSI2 Base address switching change error on IMX8mQ</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-Base-address-switching-change-error-on-IMX8mQ/m-p/1430637#M188363</link>
      <description>&lt;P&gt;what did you change in the imx6s_capture.c? and could you dump csi status register?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 09:50:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-Base-address-switching-change-error-on-IMX8mQ/m-p/1430637#M188363</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2022-03-18T09:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: MIPI CSI2 Base address switching change error on IMX8mQ</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-Base-address-switching-change-error-on-IMX8mQ/m-p/1430985#M188403</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Could you please help me with steps of dumping CSI status register?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 02:05:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-Base-address-switching-change-error-on-IMX8mQ/m-p/1430985#M188403</guid>
      <dc:creator>Deepak3</dc:creator>
      <dc:date>2022-03-21T02:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: MIPI CSI2 Base address switching change error on IMX8mQ</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-Base-address-switching-change-error-on-IMX8mQ/m-p/1431218#M188421</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I have added single change in&amp;nbsp;&lt;SPAN&gt;imx6s_capture.c file as following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-#define MAX_VIDEO_MEM 64&lt;BR /&gt;+#define MAX_VIDEO_MEM 128&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And i have dumped CSI status register value when base address switching change error occurs. Please see the attached file.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 09:49:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-Base-address-switching-change-error-on-IMX8mQ/m-p/1431218#M188421</guid>
      <dc:creator>Deepak3</dc:creator>
      <dc:date>2022-03-21T09:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: MIPI CSI2 Base address switching change error on IMX8mQ</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-Base-address-switching-change-error-on-IMX8mQ/m-p/1435548#M188738</link>
      <description>&lt;P&gt;you can use mem tool under unit test&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 12:36:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-Base-address-switching-change-error-on-IMX8mQ/m-p/1435548#M188738</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2022-03-29T12:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: MIPI CSI2 Base address switching change error on IMX8mQ</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-Base-address-switching-change-error-on-IMX8mQ/m-p/1435560#M188740</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt; , I have added single change in imx6s_capture.c file as following: -#define MAX_VIDEO_MEM 64 +#define MAX_VIDEO_MEM 128 And i have dumped CSI status register value when base address switching change error occurs. Please see the attached file.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 12:49:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI2-Base-address-switching-change-error-on-IMX8mQ/m-p/1435560#M188740</guid>
      <dc:creator>Deepak3</dc:creator>
      <dc:date>2022-03-29T12:49:44Z</dc:date>
    </item>
  </channel>
</rss>

