<?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: How fix the clock setting for MIPI camera ?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-fix-the-clock-setting-for-MIPI-camera/m-p/410991#M61559</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;I have read this thread : &lt;A href="https://community.nxp.com/message/471462"&gt;Re: imx6q sabre AI board MIPI camera.&lt;/A&gt; &lt;/P&gt;&lt;P&gt;But i don't understand , how i can increase the ccm_pixel_clk ? in the thread two clock are named : a&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;xi_clk_root&lt;/SPAN&gt; and emi_clock. But i don't found thess clock.&lt;/P&gt;&lt;P&gt;Is there anyone know where can i get detail information about these or about to set ccm_pixel_clk ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jun 2015 13:19:36 GMT</pubDate>
    <dc:creator>ludovicleau-mer</dc:creator>
    <dc:date>2015-06-01T13:19:36Z</dc:date>
    <item>
      <title>How fix the clock setting for MIPI camera ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-fix-the-clock-setting-for-MIPI-camera/m-p/410990#M61558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a custom camera (999MHz, 4 lane, VC0). I get correct phy_state 3F0 when camera is started.&lt;/P&gt;&lt;P&gt;I check an image (a pattern test image send by my camera) with gstreamer with mfw_v4lsrc module.&lt;/P&gt;&lt;P&gt;But i receive a bad image. In the doc &lt;A _jive_internal="true" href="https://community.nxp.com/servlet/JiveServlet/download/328301-262515/Debug steps for customer MIPI sensor.docx" title="https://community.freescale.com/servlet/JiveServlet/download/328301-262515/Debug%20steps%20for%20customer%20MIPI%20sensor.docx"&gt;https://community.freescale.com/servlet/JiveServlet/download/328301-262515/Debug%20steps%20for%20customer%20MIPI%20senso…&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I am in the state C "check the clock setting"&lt;/P&gt;&lt;P&gt;How i can set the HSP_CLK and CCM_PIXEL_CLK clocks ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 11:37:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-fix-the-clock-setting-for-MIPI-camera/m-p/410990#M61558</guid>
      <dc:creator>ludovicleau-mer</dc:creator>
      <dc:date>2015-05-29T11:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: How fix the clock setting for MIPI camera ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-fix-the-clock-setting-for-MIPI-camera/m-p/410991#M61559</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;I have read this thread : &lt;A href="https://community.nxp.com/message/471462"&gt;Re: imx6q sabre AI board MIPI camera.&lt;/A&gt; &lt;/P&gt;&lt;P&gt;But i don't understand , how i can increase the ccm_pixel_clk ? in the thread two clock are named : a&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;xi_clk_root&lt;/SPAN&gt; and emi_clock. But i don't found thess clock.&lt;/P&gt;&lt;P&gt;Is there anyone know where can i get detail information about these or about to set ccm_pixel_clk ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 13:19:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-fix-the-clock-setting-for-MIPI-camera/m-p/410991#M61559</guid>
      <dc:creator>ludovicleau-mer</dc:creator>
      <dc:date>2015-06-01T13:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: How fix the clock setting for MIPI camera ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-fix-the-clock-setting-for-MIPI-camera/m-p/410992#M61560</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;Which Linux BSP are you using? The axi and emi clocks might be the root clocks that can be used to generate pixel clock.&lt;/P&gt;&lt;P&gt;I believe that this &lt;A href="https://community.nxp.com/message/369215"&gt;Re: Several questions related to the MIPI CSI2 camera port&lt;/A&gt;&amp;nbsp; can be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 22:27:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-fix-the-clock-setting-for-MIPI-camera/m-p/410992#M61560</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2015-06-08T22:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: How fix the clock setting for MIPI camera ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-fix-the-clock-setting-for-MIPI-camera/m-p/410993#M61561</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;I use the IMX6 sabrelite board. I can't acces the link you gave : &lt;A _jive_internal="true" data-containerid="1007" data-containertype="700" data-content-finding="Community" data-objectid="369215" data-objecttype="2" href="https://community.nxp.com/message/369215#369215"&gt;Re: Several questions related to the MIPI CSI2 camera port &lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is there a specific access for it ?&lt;/P&gt;&lt;P&gt;I have tested several configurations of pixel clock with the emi and axi root clock. I receive a bad image : lines seem to shifted. I think there is a bad clock value&amp;nbsp; for the ipu but i am not certain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit :&lt;/P&gt;&lt;P&gt;I use the boudary linux : ubuntu 3.10.17&lt;/P&gt;&lt;P&gt;the camera send a pattern of 8 color column : white to black.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For configuration pixel_clock 264MHz and ipu_hsp to 396MHz (modification of register in clk-imx6q.c)&lt;/P&gt;&lt;P&gt;if the camera uses mipi lane of 416MHz (=&amp;gt; byte rate 104) the capture work partialy. We have too many 2 columns (white and yellow in the right)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="mipi_416MHz.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/36033i4CFF440311874929/image-size/large?v=v2&amp;amp;px=999" role="button" title="mipi_416MHz.png" alt="mipi_416MHz.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;if the camera uses mipi lane of 625MHz (=&amp;gt; byte rate 156) the capture does'nt work&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="mipi_416MHz px352 hsp396.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/36034iABFF4172C8302944/image-size/large?v=v2&amp;amp;px=999" role="button" title="mipi_416MHz px352 hsp396.png" alt="mipi_416MHz px352 hsp396.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 13:47:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-fix-the-clock-setting-for-MIPI-camera/m-p/410993#M61561</guid>
      <dc:creator>ludovicleau-mer</dc:creator>
      <dc:date>2015-06-11T13:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: How fix the clock setting for MIPI camera ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-fix-the-clock-setting-for-MIPI-camera/m-p/410994#M61562</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;Sorry for the delay. In summary the questions in the link I provided are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Question 1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the "Debug steps for customer MIPI sensor.pdf" document a register "CSI2_PHY_TST_CTRL1" is mentioned that I could not&lt;/P&gt;&lt;P&gt;find in the reference manual. I urgently need documentation about this register and the correct address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Question 2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In the reference manual I found 3 mentions of a "&lt;SPAN lang="DE" style="font-family: 'Arial','sans-serif';"&gt;ccm_pixel_clk". What is this clock and what effect has it - where&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DE" style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt;can it be adjusted?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DE" style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Arial','sans-serif'; text-decoration: underline;"&gt;Question 3:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DE" style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DE" style="font-family: 'Arial','sans-serif'; font-size: 10pt;"&gt;Besides the two registers/clocks mentioned before - are there any other settings a customer needs to adjust when changing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;the MIPI bus clock?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Arial','sans-serif'; text-decoration: underline;"&gt;Question 4:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;in the i.MX6DQ reference manual it is mentioned that the customer should use the non-gated clock when using the MIPI interface.&lt;/P&gt;&lt;P&gt;Whenever they turn this on in the &lt;SPAN style="font-size: 10.0pt;"&gt; IPU1_CSI0_SENS_CONF and CSI2IPU_SW_RST registers they do not get an EOF indication&lt;BR /&gt;&lt;/SPAN&gt;anymore. They can fix this by inverting the sync and clock in the &lt;SPAN style="font-size: 10.0pt;"&gt;IPU1_CSI0_SENS_CONF, but they still get a distorted picture.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Are there still other values to look at in such a case? How can they verify that the given formula:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;(hsp_clk &amp;gt; ccm_pixel_clk/0.9 &amp;gt; (mipi_clk_lane frequency /(8bits*2))*Data_lane_number)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;is not validated? What is the ccm_pixel_clk and where is it set? See question 2.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Question 5:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other place where the customer can adjust the interpretation of the data stream as being 32Bit or 24Bit besides the&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; IPU1_CSI0_SENS_CONF register?&amp;nbsp; Their picture looks like this conversion might have been done twice?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Q1, MIPI_CSI_PHY_TST_CTRL1 address is 0x021D_C034, you can just reference to the "Debug steps for customer MIPI sensor.pdf" for how to config the mipi clock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Q2, ccm_pixel_clock is the camera pixel clock from CSI2IPU to CSI, for iMX6DQ, it is from aclk_eim_clk, in Freescale BSP, we had set it to 198MHz (clk_set_rate(&amp;amp;emi_clk, 198000000);). For iMX6S/DL, the ccm_pixel_clock is from ipu_hsp_clock, it is 270MHz in Freescale BSP..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Q3, mipi bus clock should be set based on "Debug steps for customer MIPI sensor.pdf" with register CSI2_PHY_TST_CTRL1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Q4, Freescale BSP used gated clock mode for ov5640 mipi camera. Note: hsp_clk &amp;gt; ccm_pixel_clk/0.9, this limitation is only for iMX6DQ, when ccm_pixel_clk is from ipu_hsp_clk on iMX6SDL, they are same frequency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Q5, you should also check the IDMAC setting, it should use generic mode to receive RAW data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 13:54:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-fix-the-clock-setting-for-MIPI-camera/m-p/410994#M61562</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2015-06-22T13:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: How fix the clock setting for MIPI camera ?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-fix-the-clock-setting-for-MIPI-camera/m-p/410995#M61563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ludovic, did you ever resolve this issue? How?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 20:15:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-fix-the-clock-setting-for-MIPI-camera/m-p/410995#M61563</guid>
      <dc:creator>schatragadda</dc:creator>
      <dc:date>2018-10-10T20:15:51Z</dc:date>
    </item>
  </channel>
</rss>

