<?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のトピックUsing an OV5640 sensor with a external, fixed XVCLK</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Using-an-OV5640-sensor-with-a-external-fixed-XVCLK/m-p/875393#M132878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using a Omnivision OV5640 sensor with a i.MX6 SOM running Debian Stretch. The camera module we would like to use provides its own XVCLK at 12 MHz, and does not&amp;nbsp;use the 24 MHz provided by&amp;nbsp;IMX6QDL_CLK_CKO2 /&amp;nbsp;csi_mclk. We are using the ov5640_mipi.c camera driver &amp;amp; mxc_v4l2_capture.c driver for V4L / gstreamer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What changes do we need to make to the sensor driver, device tree, or other parts of the kernel in order to use the 12 MHz clock?&amp;nbsp;Which modules need to be aware of this change?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sensor: OV5640&lt;/P&gt;&lt;P&gt;Processor: i.MX6Q&lt;/P&gt;&lt;P&gt;OS: Debian Stretch&lt;/P&gt;&lt;P&gt;Kernel: 4.9.88+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Device tree excerpt:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;i2c1&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;clock-frequency = &amp;lt;100000&amp;gt;;&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_i2c1_2&amp;gt;;&lt;BR /&gt; status = "okay";&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ov564x_mipi: &lt;A href="mailto:ov564x_mipi@3c"&gt;ov564x_mipi@3c &lt;/A&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;{&lt;BR /&gt; compatible = "ovti,ov564x_mipi";&lt;BR /&gt; reg = &amp;lt;0x3c&amp;gt;;&lt;BR /&gt; clocks = &amp;lt;&amp;amp;clks 200&amp;gt;;&lt;BR /&gt; clock-names = "csi_mclk"; // THIS IS THE 24 MHz ref clock on&amp;nbsp;&lt;SPAN&gt;IMX6QDL_CLK_CKO2&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;pwn-gpios = &amp;lt;&amp;amp;gpio3 13 1&amp;gt;;&lt;BR /&gt; rst-gpios = &amp;lt;&amp;amp;gpio4 10 0&amp;gt;;&lt;BR /&gt; csi_id = &amp;lt;1&amp;gt;;&lt;BR /&gt; mclk = &amp;lt;24000000&amp;gt;;&lt;BR /&gt; mclk_source = &amp;lt;0&amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From ov5640 driver:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; ov5640_data.sensor_clk = devm_clk_get(dev, "csi_mclk");&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;retval = of_property_read_u32(dev-&amp;gt;of_node, "mclk", &amp;amp;(ov5640_data.mclk));&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;clk_prepare_enable(ov5640_data.sensor_clk);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Apr 2019 23:03:33 GMT</pubDate>
    <dc:creator>cwatkin</dc:creator>
    <dc:date>2019-04-02T23:03:33Z</dc:date>
    <item>
      <title>Using an OV5640 sensor with a external, fixed XVCLK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Using-an-OV5640-sensor-with-a-external-fixed-XVCLK/m-p/875393#M132878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using a Omnivision OV5640 sensor with a i.MX6 SOM running Debian Stretch. The camera module we would like to use provides its own XVCLK at 12 MHz, and does not&amp;nbsp;use the 24 MHz provided by&amp;nbsp;IMX6QDL_CLK_CKO2 /&amp;nbsp;csi_mclk. We are using the ov5640_mipi.c camera driver &amp;amp; mxc_v4l2_capture.c driver for V4L / gstreamer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What changes do we need to make to the sensor driver, device tree, or other parts of the kernel in order to use the 12 MHz clock?&amp;nbsp;Which modules need to be aware of this change?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sensor: OV5640&lt;/P&gt;&lt;P&gt;Processor: i.MX6Q&lt;/P&gt;&lt;P&gt;OS: Debian Stretch&lt;/P&gt;&lt;P&gt;Kernel: 4.9.88+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Device tree excerpt:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;i2c1&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;clock-frequency = &amp;lt;100000&amp;gt;;&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_i2c1_2&amp;gt;;&lt;BR /&gt; status = "okay";&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ov564x_mipi: &lt;A href="mailto:ov564x_mipi@3c"&gt;ov564x_mipi@3c &lt;/A&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;{&lt;BR /&gt; compatible = "ovti,ov564x_mipi";&lt;BR /&gt; reg = &amp;lt;0x3c&amp;gt;;&lt;BR /&gt; clocks = &amp;lt;&amp;amp;clks 200&amp;gt;;&lt;BR /&gt; clock-names = "csi_mclk"; // THIS IS THE 24 MHz ref clock on&amp;nbsp;&lt;SPAN&gt;IMX6QDL_CLK_CKO2&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;pwn-gpios = &amp;lt;&amp;amp;gpio3 13 1&amp;gt;;&lt;BR /&gt; rst-gpios = &amp;lt;&amp;amp;gpio4 10 0&amp;gt;;&lt;BR /&gt; csi_id = &amp;lt;1&amp;gt;;&lt;BR /&gt; mclk = &amp;lt;24000000&amp;gt;;&lt;BR /&gt; mclk_source = &amp;lt;0&amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From ov5640 driver:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; ov5640_data.sensor_clk = devm_clk_get(dev, "csi_mclk");&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;retval = of_property_read_u32(dev-&amp;gt;of_node, "mclk", &amp;amp;(ov5640_data.mclk));&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;clk_prepare_enable(ov5640_data.sensor_clk);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2019 23:03:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Using-an-OV5640-sensor-with-a-external-fixed-XVCLK/m-p/875393#M132878</guid>
      <dc:creator>cwatkin</dc:creator>
      <dc:date>2019-04-02T23:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using an OV5640 sensor with a external, fixed XVCLK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Using-an-OV5640-sensor-with-a-external-fixed-XVCLK/m-p/875394#M132879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems only changing clock value may be sufficient&lt;/P&gt;&lt;P&gt;mclk = &amp;lt;12000000&amp;gt;;&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>Wed, 03 Apr 2019 07:21:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Using-an-OV5640-sensor-with-a-external-fixed-XVCLK/m-p/875394#M132879</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-04-03T07:21:22Z</dc:date>
    </item>
  </channel>
</rss>

