<?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 Re: CLKO2 output problem in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/CLKO2-output-problem/m-p/272996#M29737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,Avex,&lt;/P&gt;&lt;P&gt;Would you like to try like the following steps ?&lt;/P&gt;&lt;P&gt;(1)IOMUX ( what you did is correct)&lt;/P&gt;&lt;P&gt;(2)Make 24M clock output via GPIO_3 PIN&lt;/P&gt;&lt;P&gt;clk_set_parent(&amp;amp;clko2_clk,&amp;amp;osc_clk);&lt;/P&gt;&lt;P&gt;clk_set_rate(&amp;amp;clko2_clk,24000000);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2013 03:52:03 GMT</pubDate>
    <dc:creator>weidong_sun</dc:creator>
    <dc:date>2013-02-27T03:52:03Z</dc:date>
    <item>
      <title>CLKO2 output problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CLKO2-output-problem/m-p/272994#M29735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using i.MX6Q. I want to use CLKO2 as the MCLK source of my camera. The steps I did are as followed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp; Setup Pad , set gpio3 as clko2 output pin&lt;/P&gt;&lt;P&gt;MX6Q_PAD_GPIO_3__CCM_CLKO2,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // setup gpio3 as output pin of clko2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp; get/set osc_clk as parent clock of clko2, set rate, and enable clko2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clko2 = clk_get(NULL, "clko2_clk");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (IS_ERR(clko2))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printk("can't get CLKO2 clock.\n");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new_parent = clk_get(NULL, "osc"); // in sabresd bsp source code, "osc_clk" is a wrong name, tested already&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!IS_ERR(new_parent)) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clk_set_parent(clko2, new_parent);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clk_put(new_parent);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rate = clk_round_rate(clko2, 24000000);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clk_set_rate(clko2, rate);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clk_enable(clko2);&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;However, there is nothing on gpio_3 pin, no clock on CLKO2 output pin. It seems the I miss some steps.&lt;/P&gt;&lt;P&gt;I print out the register CCOSR,&amp;nbsp; MXC_CCM_CCOSR=0x010E000F (1 00001110 00000000 00001111)&lt;/P&gt;&lt;P&gt;It seems the value is correctly be set, but it did not function as it should be. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same way I used is okay to enable/disable CLKO, any idea? I use SABRESD android bsp as my source code base.&lt;/P&gt;&lt;P&gt;thanks anyway&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 02:41:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CLKO2-output-problem/m-p/272994#M29735</guid>
      <dc:creator>avexwu</dc:creator>
      <dc:date>2013-02-26T02:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: CLKO2 output problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CLKO2-output-problem/m-p/272995#M29736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Anyone can help?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; color: #800000;"&gt;Is it a bug of i.MX6Q CPU?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 01:36:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CLKO2-output-problem/m-p/272995#M29736</guid>
      <dc:creator>avexwu</dc:creator>
      <dc:date>2013-02-27T01:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: CLKO2 output problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CLKO2-output-problem/m-p/272996#M29737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,Avex,&lt;/P&gt;&lt;P&gt;Would you like to try like the following steps ?&lt;/P&gt;&lt;P&gt;(1)IOMUX ( what you did is correct)&lt;/P&gt;&lt;P&gt;(2)Make 24M clock output via GPIO_3 PIN&lt;/P&gt;&lt;P&gt;clk_set_parent(&amp;amp;clko2_clk,&amp;amp;osc_clk);&lt;/P&gt;&lt;P&gt;clk_set_rate(&amp;amp;clko2_clk,24000000);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 03:52:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CLKO2-output-problem/m-p/272996#M29737</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2013-02-27T03:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: CLKO2 output problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CLKO2-output-problem/m-p/272997#M29738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Weidong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply,&lt;/P&gt;&lt;P&gt;1. There are two clock out of i.MX6Q, clko and clko2. clko works fine, and its IOMUX is MX6Q_PAD_GPIO_0__CCM_CLKO&lt;/P&gt;&lt;P&gt;I am working on clko2 , IOMUX is as step 1 of my post listed above. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. As step 2 of my post above, I use osc_clk at 24MHZ already.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 04:18:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CLKO2-output-problem/m-p/272997#M29738</guid>
      <dc:creator>avexwu</dc:creator>
      <dc:date>2013-02-27T04:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: CLKO2 output problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CLKO2-output-problem/m-p/272998#M29739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, good job !&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Weidong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 04:20:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CLKO2-output-problem/m-p/272998#M29739</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2013-02-27T04:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: CLKO2 output problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CLKO2-output-problem/m-p/272999#M29740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just see this my old post.&lt;/P&gt;&lt;P&gt;Answer to myself , YES, it's a bug but not hardware.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 12:03:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CLKO2-output-problem/m-p/272999#M29740</guid>
      <dc:creator>avexwu</dc:creator>
      <dc:date>2013-03-06T12:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: CLKO2 output problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CLKO2-output-problem/m-p/273000#M29741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear avex&amp;amp; weidong,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I encounter the same situation as you. But i didn't understand your solution? how did you fix the bug? &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/avexwu"&gt;avexwu&lt;/A&gt; &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/weidong.sun"&gt;weidong.sun&lt;/A&gt;&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;P&gt;Fangming&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 03:14:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CLKO2-output-problem/m-p/273000#M29741</guid>
      <dc:creator>fangmingan</dc:creator>
      <dc:date>2013-11-07T03:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: CLKO2 output problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CLKO2-output-problem/m-p/273001#M29742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having the same problem. What was the bug you found?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Emil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 10:11:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CLKO2-output-problem/m-p/273001#M29742</guid>
      <dc:creator>emilmyhrman</dc:creator>
      <dc:date>2014-01-28T10:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: CLKO2 output problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CLKO2-output-problem/m-p/273002#M29743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Figured it out. Register IOMUXC_SW_PAD_CTL_PAD_GPIO03 is set wrong when using the macro &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MX6Q_PAD_GPIO_0__CCM_CLKO.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Change it to "IOMUX_PAD(0x05F8, 0x0228, 4, 0x0000, 0, MX6DL_CCM_CLK0_PAD_CTRL)" and it should work.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 11:24:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CLKO2-output-problem/m-p/273002#M29743</guid>
      <dc:creator>emilmyhrman</dc:creator>
      <dc:date>2014-01-28T11:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: CLKO2 output problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CLKO2-output-problem/m-p/273003#M29744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I do this? I have been looking around but can't find the exact file to set this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please provide detailed instructions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 13:31:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CLKO2-output-problem/m-p/273003#M29744</guid>
      <dc:creator>rohanbhargava</dc:creator>
      <dc:date>2014-06-26T13:31:16Z</dc:date>
    </item>
  </channel>
</rss>

