<?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: imx6q pcie phy writel error in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6q-pcie-phy-writel-error/m-p/480893#M76634</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;&amp;nbsp;&amp;nbsp; Basically, there are several options for generating clock for i.MX6 PCIe module,&lt;/P&gt;&lt;P&gt;please look at PCIE_AXI_CLK_ROOT Figure 18-2 "Clock Tree" i.MX6DQ&lt;/P&gt;&lt;P&gt;Reference Manual. Note, i.MX6 PCIe module requires 125MHz clock&amp;nbsp; for normal&lt;/P&gt;&lt;P&gt;operation - all other clocks it produces internally - please refer to&amp;nbsp; section 18.5.1.3.6&lt;/P&gt;&lt;P&gt;"Ethernet PLL", it describes&amp;nbsp;&amp;nbsp; Ref_PCIe =125 MHz.&amp;nbsp; Again, 100 MHz PCIe reference&lt;/P&gt;&lt;P&gt;clock is generated from this clock internally. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The PCIe clock signal pair is not part of the PCIe PHY IP (assuming the CLK1N/P are used).&lt;/P&gt;&lt;P&gt;They are configured via&amp;nbsp; PMU_MISC1n register.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Also, please refer to the i.MX6 Datasheet&amp;nbsp; regarding CLK1 hardware specs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 16 Mar 2016 09:00:28 GMT</pubDate>
    <dc:creator>Yuri</dc:creator>
    <dc:date>2016-03-16T09:00:28Z</dc:date>
    <item>
      <title>imx6q pcie phy writel error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6q-pcie-phy-writel-error/m-p/480892#M76633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P align="left"&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: 'Times New Roman','serif'; color: black;"&gt;Our solution to using an external reference 100M for PCIe has three parts:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: 'Times New Roman','serif'; color: black;"&gt;1. Configure the CLK pins to accept a clock as input.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: 'Times New Roman','serif'; color: black;"&gt;2. Bypass the ENET PLL, using the CLK pins as the alternate source.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: 'Times New Roman','serif'; color: black;"&gt;3. Configure the PCIe PHY to accept a clock other than 125 MHz.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: 'Times New Roman','serif'; color: black;"&gt;So i should set&amp;nbsp; PCIe PHY MPLL config: multiplier = 25, clkdiv2 = 0&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 11.5pt; font-family: 'Times New Roman','serif'; color: black;"&gt;but when i run at&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; writel(temp_wr_data, dbi_base + PHY_CTRL_R);&amp;nbsp;&amp;nbsp; zhe system is die&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;static int pcie_phy_cr_cap_addr(int addr)&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; u32 temp_wr_data;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printk("jll&amp;nbsp;&amp;nbsp; %s,%d\n",__func__,__LINE__);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* write addr */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp_wr_data = addr &amp;lt;&amp;lt; PCIE_CR_CTL_DATA_LOC ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printk("jll&amp;nbsp; %s,%d\n",__func__,__LINE__);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; writel(temp_wr_data, dbi_base + PHY_CTRL_R);&lt;/P&gt;&lt;P&gt;~&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ........&lt;/P&gt;&lt;P&gt;}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336815"&gt;pcie.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 05:55:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6q-pcie-phy-writel-error/m-p/480892#M76633</guid>
      <dc:creator>liangjiang</dc:creator>
      <dc:date>2016-03-16T05:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: imx6q pcie phy writel error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6q-pcie-phy-writel-error/m-p/480893#M76634</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;&amp;nbsp;&amp;nbsp; Basically, there are several options for generating clock for i.MX6 PCIe module,&lt;/P&gt;&lt;P&gt;please look at PCIE_AXI_CLK_ROOT Figure 18-2 "Clock Tree" i.MX6DQ&lt;/P&gt;&lt;P&gt;Reference Manual. Note, i.MX6 PCIe module requires 125MHz clock&amp;nbsp; for normal&lt;/P&gt;&lt;P&gt;operation - all other clocks it produces internally - please refer to&amp;nbsp; section 18.5.1.3.6&lt;/P&gt;&lt;P&gt;"Ethernet PLL", it describes&amp;nbsp;&amp;nbsp; Ref_PCIe =125 MHz.&amp;nbsp; Again, 100 MHz PCIe reference&lt;/P&gt;&lt;P&gt;clock is generated from this clock internally. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The PCIe clock signal pair is not part of the PCIe PHY IP (assuming the CLK1N/P are used).&lt;/P&gt;&lt;P&gt;They are configured via&amp;nbsp; PMU_MISC1n register.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Also, please refer to the i.MX6 Datasheet&amp;nbsp; regarding CLK1 hardware specs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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, 16 Mar 2016 09:00:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6q-pcie-phy-writel-error/m-p/480893#M76634</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2016-03-16T09:00:28Z</dc:date>
    </item>
  </channel>
</rss>

