<?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のトピックiMX8MM CSI2 ADV7282M Cannot capture</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CSI2-ADV7282M-Cannot-capture/m-p/1401807#M186017</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use the ADV7282M Video decoder with a iMX8MM Board and the Mainline ADV7180 Driver. I've added CONFIG_VIDEO_ADV7180=m to my Kernel config.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My device tree looks like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;amp;i2c2 {
    clock-frequency = &amp;lt;100000&amp;gt;;
    pinctrl-names = "default", "gpio";
    pinctrl-0 = &amp;lt;&amp;amp;pinctrl_i2c2&amp;gt;;
    pinctrl-1 = &amp;lt;&amp;amp;pinctrl_i2c2_gpio&amp;gt;;
    scl-gpios = &amp;lt;&amp;amp;gpio5 16 GPIO_ACTIVE_HIGH&amp;gt;;
    sda-gpios = &amp;lt;&amp;amp;gpio5 17 GPIO_ACTIVE_HIGH&amp;gt;;
    status = "okay";

    adv728x_mipi1: adv728x_mipi1@21 {
        status = "okay";
        compatible = "adi,adv7282-m";
        reg = &amp;lt;0x21&amp;gt;;
        pinctrl-names = "default";
        pinctrl-0 = &amp;lt;&amp;amp;pinctrl_csi1&amp;gt;;
        clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_CLKO1&amp;gt;;
        clock-names = "csi_mclk";
        csi_id = &amp;lt;0&amp;gt;;
        pwn-gpios = &amp;lt;&amp;amp;gpio5 12 GPIO_ACTIVE_HIGH&amp;gt;;
        rst-gpios = &amp;lt;&amp;amp;gpio1 13 GPIO_ACTIVE_HIGH&amp;gt;;
        mclk = &amp;lt;24000000&amp;gt;;
        mclk_source = &amp;lt;0&amp;gt;;
        port {
            adv728x_mipi1_ep: endpoint {
                remote-endpoint = &amp;lt;&amp;amp;mipi1_sensor_ep&amp;gt;;
            };
        };
    };
[...]
&amp;amp;mipi_csi_1 {
    #address-cells = &amp;lt;1&amp;gt;;
    #size-cells = &amp;lt;0&amp;gt;;
    status = "okay";
    port {
        mipi1_sensor_ep: endpoint@1 {
            remote-endpoint = &amp;lt;&amp;amp;adv728x_mipi1_ep&amp;gt;;
            data-lanes = &amp;lt;1&amp;gt;;
            csis-hs-settle = &amp;lt;13&amp;gt;;
            csis-clk-settle = &amp;lt;2&amp;gt;;
            csis-wclk;
        };

        csi1_mipi_ep: endpoint@2 {
            remote-endpoint = &amp;lt;&amp;amp;csi1_ep&amp;gt;;
        };
    };
};
[...]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also added the following to &lt;SPAN class=""&gt;mipi_csis_formats&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
		.code = MEDIA_BUS_FMT_UYVY8_2X8,
		.fmt_reg = MIPI_CSIS_ISPCFG_DOUBLE_CMPNT | MIPI_CSIS_ISPCFG_FMT_YCBCR422_8BIT,
		.data_alignment = 16,
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Video decoder seems to get initialized correctly according to dmesg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# dmesg | grep adv
[ 15.738849] adv7180 1-0021: chip found @ 0x21 (30a30000.i2c)
[ 15.769008] mxc_mipi-csi 32e30000.mipi_csi: Registered sensor subdevice: adv7180 1-0021&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when trying to capture, I get the following Error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# gst-launch-1.0 v4l2src device=/dev/video0 norm=PAL ! video/x-raw,format=UYVY,width=720,height=480,framerate=30/1 ! jpegenc ! avimux ! filesink location=mjpeg.avi
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

(gst-launch-1.0:634): GStreamer-CRITICAL **: 14:53:19.617: range start is not smaller than end for `GstIntRange'
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video0' cannot capture at 720x480
Additional debug info:
gstv4l2object.c(3888): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Tried to capture at 720x480, but device returned size 720x240
Execution ended after 0:00:00.041957693
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jan 2022 14:55:35 GMT</pubDate>
    <dc:creator>kbch</dc:creator>
    <dc:date>2022-01-19T14:55:35Z</dc:date>
    <item>
      <title>iMX8MM CSI2 ADV7282M Cannot capture</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CSI2-ADV7282M-Cannot-capture/m-p/1401807#M186017</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use the ADV7282M Video decoder with a iMX8MM Board and the Mainline ADV7180 Driver. I've added CONFIG_VIDEO_ADV7180=m to my Kernel config.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My device tree looks like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;amp;i2c2 {
    clock-frequency = &amp;lt;100000&amp;gt;;
    pinctrl-names = "default", "gpio";
    pinctrl-0 = &amp;lt;&amp;amp;pinctrl_i2c2&amp;gt;;
    pinctrl-1 = &amp;lt;&amp;amp;pinctrl_i2c2_gpio&amp;gt;;
    scl-gpios = &amp;lt;&amp;amp;gpio5 16 GPIO_ACTIVE_HIGH&amp;gt;;
    sda-gpios = &amp;lt;&amp;amp;gpio5 17 GPIO_ACTIVE_HIGH&amp;gt;;
    status = "okay";

    adv728x_mipi1: adv728x_mipi1@21 {
        status = "okay";
        compatible = "adi,adv7282-m";
        reg = &amp;lt;0x21&amp;gt;;
        pinctrl-names = "default";
        pinctrl-0 = &amp;lt;&amp;amp;pinctrl_csi1&amp;gt;;
        clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_CLKO1&amp;gt;;
        clock-names = "csi_mclk";
        csi_id = &amp;lt;0&amp;gt;;
        pwn-gpios = &amp;lt;&amp;amp;gpio5 12 GPIO_ACTIVE_HIGH&amp;gt;;
        rst-gpios = &amp;lt;&amp;amp;gpio1 13 GPIO_ACTIVE_HIGH&amp;gt;;
        mclk = &amp;lt;24000000&amp;gt;;
        mclk_source = &amp;lt;0&amp;gt;;
        port {
            adv728x_mipi1_ep: endpoint {
                remote-endpoint = &amp;lt;&amp;amp;mipi1_sensor_ep&amp;gt;;
            };
        };
    };
[...]
&amp;amp;mipi_csi_1 {
    #address-cells = &amp;lt;1&amp;gt;;
    #size-cells = &amp;lt;0&amp;gt;;
    status = "okay";
    port {
        mipi1_sensor_ep: endpoint@1 {
            remote-endpoint = &amp;lt;&amp;amp;adv728x_mipi1_ep&amp;gt;;
            data-lanes = &amp;lt;1&amp;gt;;
            csis-hs-settle = &amp;lt;13&amp;gt;;
            csis-clk-settle = &amp;lt;2&amp;gt;;
            csis-wclk;
        };

        csi1_mipi_ep: endpoint@2 {
            remote-endpoint = &amp;lt;&amp;amp;csi1_ep&amp;gt;;
        };
    };
};
[...]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also added the following to &lt;SPAN class=""&gt;mipi_csis_formats&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
		.code = MEDIA_BUS_FMT_UYVY8_2X8,
		.fmt_reg = MIPI_CSIS_ISPCFG_DOUBLE_CMPNT | MIPI_CSIS_ISPCFG_FMT_YCBCR422_8BIT,
		.data_alignment = 16,
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Video decoder seems to get initialized correctly according to dmesg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# dmesg | grep adv
[ 15.738849] adv7180 1-0021: chip found @ 0x21 (30a30000.i2c)
[ 15.769008] mxc_mipi-csi 32e30000.mipi_csi: Registered sensor subdevice: adv7180 1-0021&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when trying to capture, I get the following Error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# gst-launch-1.0 v4l2src device=/dev/video0 norm=PAL ! video/x-raw,format=UYVY,width=720,height=480,framerate=30/1 ! jpegenc ! avimux ! filesink location=mjpeg.avi
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

(gst-launch-1.0:634): GStreamer-CRITICAL **: 14:53:19.617: range start is not smaller than end for `GstIntRange'
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video0' cannot capture at 720x480
Additional debug info:
gstv4l2object.c(3888): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Tried to capture at 720x480, but device returned size 720x240
Execution ended after 0:00:00.041957693
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 14:55:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CSI2-ADV7282M-Cannot-capture/m-p/1401807#M186017</guid>
      <dc:creator>kbch</dc:creator>
      <dc:date>2022-01-19T14:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM CSI2 ADV7282M Cannot capture</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CSI2-ADV7282M-Cannot-capture/m-p/1408713#M186608</link>
      <description>&lt;P&gt;Hello kbch,&lt;/P&gt;
&lt;DIV class="cooked"&gt;
&lt;P&gt;&lt;BR /&gt;It looks like you have another format in stream, the module is ok: please get support formats:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="hljs lua"&gt;$ v4l2-ctl -d /dev/video0 &lt;SPAN class="hljs-comment"&gt;--list-formats-ext&lt;/SPAN&gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and specify it in the pipeline:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="hljs javascript"&gt;$ gst-launch-&lt;SPAN class="hljs-number"&gt;1.0&lt;/SPAN&gt; v4l2src device=&lt;SPAN class="hljs-regexp"&gt;/dev/&lt;/SPAN&gt;video0 ! &lt;SPAN class="xml"&gt;&lt;SPAN class="hljs-tag"&gt;&amp;lt;&lt;SPAN class="hljs-name"&gt;b&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt;video/x-raw,format=YUY2,width=720, height=480,framerate=30/1&lt;SPAN class="hljs-tag"&gt;&amp;lt;/&lt;SPAN class="hljs-name"&gt;b&lt;/SPAN&gt;&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;! &lt;SPAN class="hljs-string"&gt;'video/x-raw(memory:NVMM),format=NV12'&lt;/SPAN&gt; ! overlaysink
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Feb 2022 17:25:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CSI2-ADV7282M-Cannot-capture/m-p/1408713#M186608</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2022-02-03T17:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8MM CSI2 ADV7282M Cannot capture</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CSI2-ADV7282M-Cannot-capture/m-p/1903248#M226004</link>
      <description>Hi, do you have fix for this?</description>
      <pubDate>Tue, 09 Jul 2024 02:28:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-CSI2-ADV7282M-Cannot-capture/m-p/1903248#M226004</guid>
      <dc:creator>disennn</dc:creator>
      <dc:date>2024-07-09T02:28:33Z</dc:date>
    </item>
  </channel>
</rss>

