<?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 CSI-2 IMX6 Driver for Raw Data</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI-2-IMX6-Driver-for-Raw-Data/m-p/812739#M125318</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunately there is no support for mipi-csi2 raw data format in nxp linux releases,&lt;/P&gt;&lt;P&gt;as starting point one can look at below links:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/320618"&gt;i.MX6Q MIPI CSI2: Capturing RAW12 generic data&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/310786"&gt;i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Dec 2018 03:07:57 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-12-01T03:07:57Z</dc:date>
    <item>
      <title>MIPI CSI-2 IMX6 Driver for Raw Data</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI-2-IMX6-Driver-for-Raw-Data/m-p/812738#M125317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of, I am quite new with MIPI CSI-2.&amp;nbsp;&lt;BR /&gt;My goal is to read Raw data coming from a FPGA through DPHY to a IMX6 and capturing the data with V4L.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm kind of working backward right now as I have to assume what will come from the FPGA will be arbitrary raw data and I will be able to collect that data in a defined format. The format selected for now would be RGB565 , Width: 640, Height:480. Also, I would simply use one lane and only 1 IPU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I'd like to edit the IMX6 Driver to allow this to happen. I know that by default the iMX6 is working with OV5640 and I'm wondering what is the best course of actions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My questions are the following:&lt;BR /&gt;1-What are the modification required for the driver to enable MIPI CSI-2 on imx6 without the OV5640?&lt;BR /&gt;2-How to know that I will be able to receive data&amp;nbsp;with&amp;nbsp;DPHY and if so how can I set the proper format for it.&lt;BR /&gt;3-Is the idea feasible toward V4L to capture the data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, what I figured is within "imx6qdl-var-dart.dtsi", I edited the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Freescale MIPI CSI2 Controller for i.MX6DQ/i.MX6SDL&lt;BR /&gt;Required properties for mipi csi2 on specified board:&lt;BR /&gt;- ipu_id: ipu id which mipi csi2 connected to.&lt;BR /&gt; should be 0 or 1 for i.MX6DQ; should be 0 for i.MX6SDL&lt;BR /&gt;- csi_id: csi id which mipi csi2 connected to.&lt;BR /&gt; should be 0 or 1 for i.MX6DQ/i.MX6SDL&lt;BR /&gt;- v_channel: virtual channel which send to MIPI CSI2 controller&lt;BR /&gt; should keep consistent with the input MIPI signal.&lt;BR /&gt;- lanes: data lanes of input MIPI signal. The maximum data lanes is 4.&lt;BR /&gt; should keep consistent with the input MIPI signal.&lt;BR /&gt;- status: should be set to "okay".&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;&amp;amp;mipi_csi {&lt;BR /&gt; status = "okay";&lt;BR /&gt; ipu_id = &amp;lt;0&amp;gt;;&lt;BR /&gt; csi_id = &amp;lt;0&amp;gt;;&lt;BR /&gt; v_channel = &amp;lt;0&amp;gt;;&lt;BR /&gt; lanes = &amp;lt;1&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;Also, I edited this part in "imx6qdl.dtsi":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;/*&lt;BR /&gt; Required properties for mipi csi2 controller:&lt;BR /&gt; - compatible: should be "fsl,imx6q-mipi-csi2"&lt;BR /&gt; - reg: &amp;lt;base addr, range&amp;gt; contains mipi csi2 register base address and range&lt;BR /&gt; - interrupts: &amp;lt;type num flag&amp;gt; where type is a interrupt type, num is the&lt;BR /&gt; interrupt number and flag is a field that level/trigger information for&lt;BR /&gt; the interrupt.&lt;BR /&gt; - clocks: the clock sources that mipi csi2 depends on.&lt;BR /&gt; - clock-names: the name is related to the clock source one by one.&lt;BR /&gt; - status: should be set to "disable".*/&lt;BR /&gt; mipi_csi: mipi_csi@021dc000 { /* MIPI-CSI &lt;BR /&gt; */&lt;BR /&gt; compatible = "fsl,imx6q-mipi-csi2";&lt;BR /&gt; reg = &amp;lt;0x021dc000 0x4000&amp;gt;;&lt;BR /&gt; interrupts = &amp;lt;0 100 0x04&amp;gt;, &amp;lt;0 101 0x04&amp;gt;;&lt;BR /&gt; clocks = &amp;lt;&amp;amp;clks IMX6QDL_CLK_HSI_TX&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clks IMX6QDL_CLK_EMI_SEL&amp;gt;,&lt;BR /&gt; &amp;lt;&amp;amp;clks IMX6QDL_CLK_VIDEO_27M&amp;gt;;&lt;BR /&gt; /* Note: clks 138 is hsi_tx, however, the dphy_c&lt;BR /&gt; * hsi_tx and pll_refclk use the same clk gate.&lt;BR /&gt; * In current clk driver, open/close clk gate do&lt;BR /&gt; * use hsi_tx for a temporary debug purpose.&lt;BR /&gt; */&lt;BR /&gt; clock-names = "dphy_clk", "pixel_clk", "cfg_clk";&lt;BR /&gt; status = "disabled";&lt;BR /&gt; };&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Again, I'm quite new to all of this so please bare with me! I'm very open to the subject and I took a lot of time reading datasheets, but I'm basically starting from scratch.&lt;BR /&gt;&lt;BR /&gt;Thank you for your time!&lt;BR /&gt;CBT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2018 22:23:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI-2-IMX6-Driver-for-Raw-Data/m-p/812738#M125317</guid>
      <dc:creator>c_bturmel</dc:creator>
      <dc:date>2018-11-28T22:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: MIPI CSI-2 IMX6 Driver for Raw Data</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI-2-IMX6-Driver-for-Raw-Data/m-p/812739#M125318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunately there is no support for mipi-csi2 raw data format in nxp linux releases,&lt;/P&gt;&lt;P&gt;as starting point one can look at below links:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/320618"&gt;i.MX6Q MIPI CSI2: Capturing RAW12 generic data&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/310786"&gt;i.MX6 OV5647 Bayer sensor driver (ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Dec 2018 03:07:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MIPI-CSI-2-IMX6-Driver-for-Raw-Data/m-p/812739#M125318</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-12-01T03:07:57Z</dc:date>
    </item>
  </channel>
</rss>

