<?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: [iMX8MPlus] How to dump MIPI-CSI2 registers ? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MPlus-How-to-dump-MIPI-CSI2-registers/m-p/1521611#M195104</link>
    <description>&lt;P&gt;&amp;nbsp;I found the solution here : &lt;A href="https://community.nxp.com/t5/i-MX-Processors/isp-vvcam-Crash-at-lt-sensor-gt-ioc-qcap/m-p/1312271" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/isp-vvcam-Crash-at-lt-sensor-gt-ioc-qcap/m-p/1312271&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Sep 2022 03:56:19 GMT</pubDate>
    <dc:creator>khang_letruong</dc:creator>
    <dc:date>2022-09-14T03:56:19Z</dc:date>
    <item>
      <title>[iMX8MPlus] How to dump MIPI-CSI2 registers ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MPlus-How-to-dump-MIPI-CSI2-registers/m-p/1521034#M195057</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;In &lt;EM&gt;drivers/staging/media/imx/imx8-mipi-csi2-sam.c&lt;/EM&gt;, I would like to have below function to show MIPI-CSI2 related registers during streaming :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;static void dump_csis_regs(struct csi_state *state, const char *label)
{
        struct {
                u32 offset;
                const char * const name;
        } registers[] = {
                { 0x00, "CSIS_VERSION" },
                { 0x04, "CSIS_CMN_CTRL" },
                { 0x08, "CSIS_CLK_CTRL" },
                { 0x10, "CSIS_INTMSK" },
                { 0x14, "CSIS_INTSRC" },
                { 0x20, "CSIS_DPHYSTATUS" },
                { 0x24, "CSIS_DPHYCTRL" },
                { 0x30, "CSIS_DPHYBCTRL_L" },
                { 0x34, "CSIS_DPHYBCTRL_H" },
                { 0x38, "CSIS_DPHYSCTRL_L" },
                { 0x3C, "CSIS_DPHYSCTRL_H" },
                { 0x40, "CSIS_ISPCONFIG_CH0" },
                { 0x50, "CSIS_ISPCONFIG_CH1" },
                { 0x60, "CSIS_ISPCONFIG_CH2" },
                { 0x70, "CSIS_ISPCONFIG_CH3" },
                { 0x44, "CSIS_ISPRESOL_CH0" },
                { 0x54, "CSIS_ISPRESOL_CH1" },
                { 0x64, "CSIS_ISPRESOL_CH2" },
                { 0x74, "CSIS_ISPRESOL_CH3" },
                { 0x48, "CSIS_ISPSYNC_CH0" },
                { 0x58, "CSIS_ISPSYNC_CH1" },
                { 0x68, "CSIS_ISPSYNC_CH2" },
                { 0x78, "CSIS_ISPSYNC_CH3" },
        };
        u32 i;

        v4l2_dbg(2, debug, &amp;amp;state-&amp;gt;sd, "--- %s ---\n", label);

        for (i = 0; i &amp;lt; ARRAY_SIZE(registers); i++) {
                u32 cfg = mipi_csis_read(state, registers[i].offset);
                v4l2_dbg(2, debug, &amp;amp;state-&amp;gt;sd, "%20s[%x]: 0x%.8x\n", registers[i].name, registers[i].offset, cfg);
        }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For that purpose, I add&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;mxc-mipi-csi2-sam.debug=2&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp; to following u-Boot's environment variable :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;u-boot=&amp;gt; setenv mmcargs "setenv bootargs ${jh_clk} console=${console} root=${mmcroot} mxc-mipi-csi2-sam.debug=2"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which becomes :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mmcargs=setenv bootargs console=ttymxc1,115200 root=/dev/mmcblk1p2 rootwait rw mxc-mipi-csi2-sam.debug=2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Then I &lt;EM&gt;&lt;STRONG&gt;saveenv&lt;/STRONG&gt;&lt;/EM&gt; and &lt;EM&gt;&lt;STRONG&gt;boot&lt;/STRONG&gt;&lt;/EM&gt; but nothing shows when streaming.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you point out what is missing, please ?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 08:04:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MPlus-How-to-dump-MIPI-CSI2-registers/m-p/1521034#M195057</guid>
      <dc:creator>khang_letruong</dc:creator>
      <dc:date>2022-09-13T08:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: [iMX8MPlus] How to dump MIPI-CSI2 registers ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MPlus-How-to-dump-MIPI-CSI2-registers/m-p/1521611#M195104</link>
      <description>&lt;P&gt;&amp;nbsp;I found the solution here : &lt;A href="https://community.nxp.com/t5/i-MX-Processors/isp-vvcam-Crash-at-lt-sensor-gt-ioc-qcap/m-p/1312271" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/isp-vvcam-Crash-at-lt-sensor-gt-ioc-qcap/m-p/1312271&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 03:56:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MPlus-How-to-dump-MIPI-CSI2-registers/m-p/1521611#M195104</guid>
      <dc:creator>khang_letruong</dc:creator>
      <dc:date>2022-09-14T03:56:19Z</dc:date>
    </item>
  </channel>
</rss>

