<?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 mxc_v4l_dqueue timeout error for adv7180 in i.MX6s processor in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/mxc-v4l-dqueue-timeout-error-for-adv7180-in-i-MX6s-processor/m-p/1697149#M210086</link>
    <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hello team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are working in analog camera adv7180 device prototype based on i.Mx6s module.&lt;/P&gt;&lt;P&gt;We are using&amp;nbsp; kernel 6.1.1.We are now trying to bring camera up.&lt;/P&gt;&lt;P&gt;Camera used is MCC-5463 analog camera based on adv7180 sensor(parallel CSI). Resolution is 720x625&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following changes have been done in dts file&lt;/P&gt;&lt;P&gt;adv7180: camera@21 {&lt;BR /&gt;compatible = "adi,adv7180";&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_adv7180&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x21&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;pwn-gpios = &amp;lt;&amp;amp;gpio1 18 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt;reset-gpios = &amp;lt;&amp;amp;gpio5 24 GPIO_ACTIVE_HIGH&amp;gt;;&lt;/P&gt;&lt;P&gt;interrupt-parent = &amp;lt;&amp;amp;gpio1&amp;gt;;&lt;BR /&gt;interrupts = &amp;lt;9 IRQ_TYPE_LEVEL_LOW&amp;gt;;&lt;/P&gt;&lt;P&gt;gpr = &amp;lt;&amp;amp;gpr&amp;gt;;&lt;BR /&gt;clocks = &amp;lt;&amp;amp;clks 201&amp;gt;;&lt;BR /&gt;clock-names = "csi_mclk";&lt;BR /&gt;DOVDD-supply = &amp;lt;&amp;amp;reg_3p3v&amp;gt;; /* 3.3v, enabled via 2.8 VGEN6 */&lt;BR /&gt;AVDD-supply = &amp;lt;&amp;amp;reg_3p3v&amp;gt;; /* 1.8v */&lt;BR /&gt;DVDD-supply = &amp;lt;&amp;amp;reg_3p3v&amp;gt;; /* 1.8v */&lt;BR /&gt;PVDD-supply = &amp;lt;&amp;amp;reg_3p3v&amp;gt;; /* 1.8v */&lt;BR /&gt;csi_id = &amp;lt;0&amp;gt;;&lt;BR /&gt;mclk = &amp;lt;24000000&amp;gt;;&lt;BR /&gt;mclk_source = &amp;lt;0&amp;gt;;&lt;BR /&gt;cvbs = &amp;lt;1&amp;gt;;&lt;BR /&gt;max_sensor = &amp;lt;4&amp;gt;;&lt;BR /&gt;lanes = &amp;lt;2&amp;gt;;&lt;/P&gt;&lt;P&gt;port {&lt;BR /&gt;adv7180_to_ipu1_csi0_mux: endpoint {&lt;BR /&gt;remote-endpoint = &amp;lt;&amp;amp;ipu1_csi0_mux_from_parallel_sensor&amp;gt;;&lt;BR /&gt;bus-width = &amp;lt;8&amp;gt;;&lt;BR /&gt;hsync-active = &amp;lt;1&amp;gt;;&lt;BR /&gt;vsync-active = &amp;lt;1&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;ipu1_csi0_mux_to_ipu1_csi0 {&lt;BR /&gt;lanes = &amp;lt;2&amp;gt;;&lt;BR /&gt;bus-width = &amp;lt;8&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;ipu1_csi0_mux_from_parallel_sensor {&lt;BR /&gt;remote-endpoint = &amp;lt;&amp;amp;adv7180_to_ipu1_csi0_mux&amp;gt;;&lt;BR /&gt;bus-width = &amp;lt;8&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;ipu1_csi0 {&lt;BR /&gt;status = "okay";&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_decoder&amp;gt;;&lt;BR /&gt;lanes = &amp;lt;2&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;pinctrl_decoder: decodergrp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX6QDL_PAD_CSI0_DAT12__IPU1_CSI0_DATA12 0x1b0b1&lt;BR /&gt;MX6QDL_PAD_CSI0_DAT13__IPU1_CSI0_DATA13 0x1b0b1&lt;BR /&gt;MX6QDL_PAD_CSI0_DAT14__IPU1_CSI0_DATA14 0x1b0b1&lt;BR /&gt;MX6QDL_PAD_CSI0_DAT15__IPU1_CSI0_DATA15 0x1b0b1&lt;BR /&gt;MX6QDL_PAD_CSI0_DAT16__IPU1_CSI0_DATA16 0x1b0b1&lt;BR /&gt;MX6QDL_PAD_CSI0_DAT17__IPU1_CSI0_DATA17 0x1b0b1&lt;BR /&gt;MX6QDL_PAD_CSI0_DAT18__IPU1_CSI0_DATA18 0x1b0b1&lt;BR /&gt;MX6QDL_PAD_CSI0_DAT19__IPU1_CSI0_DATA19 0x1b0b1&lt;BR /&gt;MX6QDL_PAD_CSI0_MCLK__IPU1_CSI0_HSYNC 0x1b0b1&lt;BR /&gt;MX6QDL_PAD_CSI0_VSYNC__IPU1_CSI0_VSYNC 0x1b0b1&lt;BR /&gt;MX6QDL_PAD_CSI0_PIXCLK__IPU1_CSI0_PIXCLK 0x1b0b1&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;These changes and all done and adv7180_tvin.c driver has been enabled in make menuconfig&lt;/P&gt;&lt;P&gt;With these changes. We have run the mxc_v4l2_capture application and this is the ouput&lt;/P&gt;&lt;P&gt;root@imx6s-ssl:~# ./mx6s_v4l2_capture_uyvy.out -m 0 -t 50 -d /dev/video0&lt;BR /&gt;[ 1915.106443] Returning size of 720x625&lt;BR /&gt;Found v4l2 capture device /dev/vi[ 1915.526337] type is V4L2_BUF_TYPE_VIDEO_CAPTURE&lt;BR /&gt;deo0.&lt;BR /&gt;[ 1915.533938] Returning size of 720x625&lt;BR /&gt;VIDIOC ENUM FMT failed&lt;BR /&gt;root@imx6s-ssl:~#&lt;BR /&gt;root@imx6s-ssl:~#&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;Can you get what is the reason for this error. I am completely struck up with this.&lt;/P&gt;&lt;P&gt;Hardware wise probed all possible lines. voltage supply, HSYNC,VSYNC, Data lines, pixelclock and all seems fine. So till CPU it seems fine.&lt;/P&gt;&lt;P&gt;But not sure why V4L2 app fails to capture. Even mxc v4l2 Overlay application also fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to capture the input video using gstream launcher but I am facing mxc_v4l_dqueue timeout error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;root@imx6s-ssl:~# gst-launch-1.0 imxv4l2src num-buffers=1 ! jpegenc ! filesink location=cap1.jpeg&lt;BR /&gt;[ 1993.270738] Returning size of 720x625&lt;BR /&gt;====== IMXV4L2SRC: 4.7.3 build on Feb 3 2023 05:14:46. ======&lt;BR /&gt;Setting pipeline to PAUSED ...[ 1993.711265] Returning size of 720x625&lt;/P&gt;&lt;P&gt;Pipeline is live and does not need PREROLL ...&lt;BR /&gt;Pipeline is PREROLLED ...&lt;BR /&gt;Setting pipeline to PLAYING ...&lt;BR /&gt;New clock: GstSystemClock&lt;BR /&gt;[ 1994.149314] type is V4L2_BUF_TYPE_VIDEO_CAPTURE&lt;BR /&gt;[ 1994.155034] Returning size of 720x625&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[ 2004.325923] ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0&lt;BR /&gt;[ 2014.565902] ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0&lt;BR /&gt;[ 2024.805906] ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help with this.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Sarjoon&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 02 Aug 2023 03:46:29 GMT</pubDate>
    <dc:creator>SheikAjith</dc:creator>
    <dc:date>2023-08-02T03:46:29Z</dc:date>
    <item>
      <title>mxc_v4l_dqueue timeout error for adv7180 in i.MX6s processor</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mxc-v4l-dqueue-timeout-error-for-adv7180-in-i-MX6s-processor/m-p/1697149#M210086</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hello team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are working in analog camera adv7180 device prototype based on i.Mx6s module.&lt;/P&gt;&lt;P&gt;We are using&amp;nbsp; kernel 6.1.1.We are now trying to bring camera up.&lt;/P&gt;&lt;P&gt;Camera used is MCC-5463 analog camera based on adv7180 sensor(parallel CSI). Resolution is 720x625&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following changes have been done in dts file&lt;/P&gt;&lt;P&gt;adv7180: camera@21 {&lt;BR /&gt;compatible = "adi,adv7180";&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_adv7180&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x21&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;pwn-gpios = &amp;lt;&amp;amp;gpio1 18 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt;reset-gpios = &amp;lt;&amp;amp;gpio5 24 GPIO_ACTIVE_HIGH&amp;gt;;&lt;/P&gt;&lt;P&gt;interrupt-parent = &amp;lt;&amp;amp;gpio1&amp;gt;;&lt;BR /&gt;interrupts = &amp;lt;9 IRQ_TYPE_LEVEL_LOW&amp;gt;;&lt;/P&gt;&lt;P&gt;gpr = &amp;lt;&amp;amp;gpr&amp;gt;;&lt;BR /&gt;clocks = &amp;lt;&amp;amp;clks 201&amp;gt;;&lt;BR /&gt;clock-names = "csi_mclk";&lt;BR /&gt;DOVDD-supply = &amp;lt;&amp;amp;reg_3p3v&amp;gt;; /* 3.3v, enabled via 2.8 VGEN6 */&lt;BR /&gt;AVDD-supply = &amp;lt;&amp;amp;reg_3p3v&amp;gt;; /* 1.8v */&lt;BR /&gt;DVDD-supply = &amp;lt;&amp;amp;reg_3p3v&amp;gt;; /* 1.8v */&lt;BR /&gt;PVDD-supply = &amp;lt;&amp;amp;reg_3p3v&amp;gt;; /* 1.8v */&lt;BR /&gt;csi_id = &amp;lt;0&amp;gt;;&lt;BR /&gt;mclk = &amp;lt;24000000&amp;gt;;&lt;BR /&gt;mclk_source = &amp;lt;0&amp;gt;;&lt;BR /&gt;cvbs = &amp;lt;1&amp;gt;;&lt;BR /&gt;max_sensor = &amp;lt;4&amp;gt;;&lt;BR /&gt;lanes = &amp;lt;2&amp;gt;;&lt;/P&gt;&lt;P&gt;port {&lt;BR /&gt;adv7180_to_ipu1_csi0_mux: endpoint {&lt;BR /&gt;remote-endpoint = &amp;lt;&amp;amp;ipu1_csi0_mux_from_parallel_sensor&amp;gt;;&lt;BR /&gt;bus-width = &amp;lt;8&amp;gt;;&lt;BR /&gt;hsync-active = &amp;lt;1&amp;gt;;&lt;BR /&gt;vsync-active = &amp;lt;1&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;ipu1_csi0_mux_to_ipu1_csi0 {&lt;BR /&gt;lanes = &amp;lt;2&amp;gt;;&lt;BR /&gt;bus-width = &amp;lt;8&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;ipu1_csi0_mux_from_parallel_sensor {&lt;BR /&gt;remote-endpoint = &amp;lt;&amp;amp;adv7180_to_ipu1_csi0_mux&amp;gt;;&lt;BR /&gt;bus-width = &amp;lt;8&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;ipu1_csi0 {&lt;BR /&gt;status = "okay";&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_decoder&amp;gt;;&lt;BR /&gt;lanes = &amp;lt;2&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;pinctrl_decoder: decodergrp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX6QDL_PAD_CSI0_DAT12__IPU1_CSI0_DATA12 0x1b0b1&lt;BR /&gt;MX6QDL_PAD_CSI0_DAT13__IPU1_CSI0_DATA13 0x1b0b1&lt;BR /&gt;MX6QDL_PAD_CSI0_DAT14__IPU1_CSI0_DATA14 0x1b0b1&lt;BR /&gt;MX6QDL_PAD_CSI0_DAT15__IPU1_CSI0_DATA15 0x1b0b1&lt;BR /&gt;MX6QDL_PAD_CSI0_DAT16__IPU1_CSI0_DATA16 0x1b0b1&lt;BR /&gt;MX6QDL_PAD_CSI0_DAT17__IPU1_CSI0_DATA17 0x1b0b1&lt;BR /&gt;MX6QDL_PAD_CSI0_DAT18__IPU1_CSI0_DATA18 0x1b0b1&lt;BR /&gt;MX6QDL_PAD_CSI0_DAT19__IPU1_CSI0_DATA19 0x1b0b1&lt;BR /&gt;MX6QDL_PAD_CSI0_MCLK__IPU1_CSI0_HSYNC 0x1b0b1&lt;BR /&gt;MX6QDL_PAD_CSI0_VSYNC__IPU1_CSI0_VSYNC 0x1b0b1&lt;BR /&gt;MX6QDL_PAD_CSI0_PIXCLK__IPU1_CSI0_PIXCLK 0x1b0b1&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;These changes and all done and adv7180_tvin.c driver has been enabled in make menuconfig&lt;/P&gt;&lt;P&gt;With these changes. We have run the mxc_v4l2_capture application and this is the ouput&lt;/P&gt;&lt;P&gt;root@imx6s-ssl:~# ./mx6s_v4l2_capture_uyvy.out -m 0 -t 50 -d /dev/video0&lt;BR /&gt;[ 1915.106443] Returning size of 720x625&lt;BR /&gt;Found v4l2 capture device /dev/vi[ 1915.526337] type is V4L2_BUF_TYPE_VIDEO_CAPTURE&lt;BR /&gt;deo0.&lt;BR /&gt;[ 1915.533938] Returning size of 720x625&lt;BR /&gt;VIDIOC ENUM FMT failed&lt;BR /&gt;root@imx6s-ssl:~#&lt;BR /&gt;root@imx6s-ssl:~#&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;Can you get what is the reason for this error. I am completely struck up with this.&lt;/P&gt;&lt;P&gt;Hardware wise probed all possible lines. voltage supply, HSYNC,VSYNC, Data lines, pixelclock and all seems fine. So till CPU it seems fine.&lt;/P&gt;&lt;P&gt;But not sure why V4L2 app fails to capture. Even mxc v4l2 Overlay application also fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to capture the input video using gstream launcher but I am facing mxc_v4l_dqueue timeout error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;root@imx6s-ssl:~# gst-launch-1.0 imxv4l2src num-buffers=1 ! jpegenc ! filesink location=cap1.jpeg&lt;BR /&gt;[ 1993.270738] Returning size of 720x625&lt;BR /&gt;====== IMXV4L2SRC: 4.7.3 build on Feb 3 2023 05:14:46. ======&lt;BR /&gt;Setting pipeline to PAUSED ...[ 1993.711265] Returning size of 720x625&lt;/P&gt;&lt;P&gt;Pipeline is live and does not need PREROLL ...&lt;BR /&gt;Pipeline is PREROLLED ...&lt;BR /&gt;Setting pipeline to PLAYING ...&lt;BR /&gt;New clock: GstSystemClock&lt;BR /&gt;[ 1994.149314] type is V4L2_BUF_TYPE_VIDEO_CAPTURE&lt;BR /&gt;[ 1994.155034] Returning size of 720x625&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[ 2004.325923] ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0&lt;BR /&gt;[ 2014.565902] ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0&lt;BR /&gt;[ 2024.805906] ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help with this.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Sarjoon&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Aug 2023 03:46:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mxc-v4l-dqueue-timeout-error-for-adv7180-in-i-MX6s-processor/m-p/1697149#M210086</guid>
      <dc:creator>SheikAjith</dc:creator>
      <dc:date>2023-08-02T03:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: mxc_v4l_dqueue timeout error for adv7180 in i.MX6s processor</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mxc-v4l-dqueue-timeout-error-for-adv7180-in-i-MX6s-processor/m-p/1697684#M210142</link>
      <description>&lt;P&gt;maybe you can refer to the topic as below:&lt;/P&gt;
&lt;P&gt;"&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Add-the-adv7180-on-imx6dl/m-p/471196&amp;quot;" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/Add-the-adv7180-on-imx6dl/m-p/471196"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;"&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Safe-video-switch-using-ADV7180-and-i-MX6Q-Automotive-Board/ta-p/1119892" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Safe-video-switch-using-ADV7180-and-i-MX6Q-Automotive-Board/ta-p/1119892&lt;/A&gt;"&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 14:11:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mxc-v4l-dqueue-timeout-error-for-adv7180-in-i-MX6s-processor/m-p/1697684#M210142</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2023-08-02T14:11:29Z</dc:date>
    </item>
  </channel>
</rss>

