<?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: imx6q-capture driver: mainline kernel + CMOS sensor</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6q-capture-driver-mainline-kernel-CMOS-sensor/m-p/2067105#M235423</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;First of all, thank you for your time and effort.&lt;BR /&gt;&lt;BR /&gt;I’ve outlined below the steps I followed to make the mainline kernel compatible with the CMOS sensor. I tried looking for the ov5642 driver, but I wasn’t able to find it in the link you shared or in the mainline kernel source.&lt;BR /&gt;&lt;BR /&gt;Would you happen to have a reference to that driver—particularly one that demonstrates endpoint mapping or media link creation within the driver code? That would be really helpful as I work on creating this driver.&lt;BR /&gt;&lt;BR /&gt;Thanks again!</description>
    <pubDate>Mon, 24 Mar 2025 09:06:22 GMT</pubDate>
    <dc:creator>Jay_ganatra</dc:creator>
    <dc:date>2025-03-24T09:06:22Z</dc:date>
    <item>
      <title>imx6q-capture driver: mainline kernel + CMOS sensor</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6q-capture-driver-mainline-kernel-CMOS-sensor/m-p/2066299#M235386</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Title:&lt;BR /&gt;Issue with Custom CMOS Sensor on IPU1 CSI0 - No /dev/media0 Node, VIDIOC_STREAMON Fails&lt;/P&gt;&lt;P&gt;Post:&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;I’m working on a custom i.MX6Q-based board and trying to bring up a custom CMOS parallel camera sensor connected via `ipu1_csi0`. I’m using a mainline kernel with the staging `imx-media` driver.&lt;/P&gt;&lt;P&gt;Below is the relevant snippet from my device tree (`.dtsi`):&lt;/P&gt;&lt;P&gt;dts&lt;BR /&gt;test_cam: camera {&lt;BR /&gt;compatible = "test,test_camera";&lt;BR /&gt;clocks = &amp;lt;&amp;amp;clks IMX6QDL_CLK_CKO&amp;gt;;&lt;BR /&gt;clock-names = "xvclk";&lt;BR /&gt;powerdown-gpios = &amp;lt;&amp;amp;gpio7 11 GPIO_ACTIVE_HIGH&amp;gt;;&lt;BR /&gt;reset-gpios = &amp;lt;&amp;amp;gpio1 7 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt;status = "okay";&lt;/P&gt;&lt;P&gt;port {&lt;BR /&gt;test_cam_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;link-frequencies = /bits/ 64 &amp;lt;70000000&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_from_ipu1_csi0_mux {&lt;BR /&gt;bus-width = &amp;lt;8&amp;gt;;&lt;BR /&gt;data-shift = &amp;lt;12&amp;gt;; // Lines 19:12 used&lt;BR /&gt;hsync-active = &amp;lt;1&amp;gt;;&lt;BR /&gt;vsync-active = &amp;lt;1&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;test_cam_to_ipu1_csi0_mux&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;ipu1_csi0 {&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ipu1_csi0&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The issue I’m facing is:&lt;/P&gt;&lt;P&gt;- `/dev/media0` is not being created.&lt;BR /&gt;- When I attempt to start streaming, I see the following errors in the kernel log:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ipu1_csi0: pipeline start failed with -32&lt;BR /&gt;VIDIOC_STREAMON returned -1 (Broken pipe)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And these are some of the log messages leading up to it:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;imx-media capture-subsystem: walk: skipping disabled link 'ipu1_csi0':2 -&amp;gt; 'ipu1_csi0 capture':0&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It appears links in the media graph are not getting enabled, which might be why the pipeline fails.&lt;/P&gt;&lt;P&gt;My questions:&lt;/P&gt;&lt;P&gt;1. Is there anything missing in the device tree for the media links to be properly enabled?&lt;BR /&gt;2. Do I need to explicitly define any subdev links in the DTS or user space?&lt;BR /&gt;3. How can I debug why `/dev/media0` is not being created?&lt;/P&gt;&lt;P&gt;Any guidance or pointers to working examples for a similar setup (CMOS parallel sensor + IPU1 CSI0) would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 11:23:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6q-capture-driver-mainline-kernel-CMOS-sensor/m-p/2066299#M235386</guid>
      <dc:creator>Jay_ganatra</dc:creator>
      <dc:date>2025-03-21T11:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: imx6q-capture driver: mainline kernel + CMOS sensor</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6q-capture-driver-mainline-kernel-CMOS-sensor/m-p/2067064#M235418</link>
      <description>&lt;P&gt;I didn't find any syntax error in your dts settings, but this is based on your own camera driver and your own HW, and your information is too limited, you can refer to the nxp source code as reference, which use ov5642 as parallel camera with IPU1 CSI0&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;pls refer to the document as below&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.kernel.org/admin-guide/media/imx.htm" target="_blank"&gt;https://docs.kernel.org/admin-guide/media/imx.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;you can compare your code with nxp code, to check&amp;nbsp; if you miss any kernel configure or any driver issue&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 08:32:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6q-capture-driver-mainline-kernel-CMOS-sensor/m-p/2067064#M235418</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2025-03-24T08:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: imx6q-capture driver: mainline kernel + CMOS sensor</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6q-capture-driver-mainline-kernel-CMOS-sensor/m-p/2067105#M235423</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;First of all, thank you for your time and effort.&lt;BR /&gt;&lt;BR /&gt;I’ve outlined below the steps I followed to make the mainline kernel compatible with the CMOS sensor. I tried looking for the ov5642 driver, but I wasn’t able to find it in the link you shared or in the mainline kernel source.&lt;BR /&gt;&lt;BR /&gt;Would you happen to have a reference to that driver—particularly one that demonstrates endpoint mapping or media link creation within the driver code? That would be really helpful as I work on creating this driver.&lt;BR /&gt;&lt;BR /&gt;Thanks again!</description>
      <pubDate>Mon, 24 Mar 2025 09:06:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6q-capture-driver-mainline-kernel-CMOS-sensor/m-p/2067105#M235423</guid>
      <dc:creator>Jay_ganatra</dc:creator>
      <dc:date>2025-03-24T09:06:22Z</dc:date>
    </item>
  </channel>
</rss>

