<?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 to use PCIE internal PLL on imx8mplus platform .</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-PCIE-internal-PLL-on-imx8mplus-platform/m-p/1395341#M185464</link>
    <description>&lt;P&gt;Hi igor ,&lt;/P&gt;&lt;P&gt;srg_imx8mplus platform:&lt;BR /&gt;It connects to another board with PCIE device through the connector.&lt;BR /&gt;I can't use general PCIE card on the srgimx8mplus platform.&lt;/P&gt;&lt;P&gt;This is the new PCIE board we designed.&lt;BR /&gt;I can't confirm that the PCIE board hardware is ok.&lt;/P&gt;&lt;P&gt;I modify device tree: osc = &amp;lt;0&amp;gt;;&lt;BR /&gt;When it boot , I measured&lt;BR /&gt;the PCIE_CLKN pin ,and it appear oscillating waveform . The oscillating waveform disappear within 2 seconds.&lt;BR /&gt;log:&lt;BR /&gt;imx6_pcie_host_init&lt;BR /&gt;imx6q-pcie 33800000.pcie: invalid resource&lt;BR /&gt;imx6q-pcie 33800000.pcie: Phy link never came up&lt;/P&gt;&lt;P&gt;ret = dw_pcie_wait_for_link(pci);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;imx6q-pcie 33800000.pcie: ret=0xffffff92&lt;BR /&gt;imx6q-pcie 33800000.pcie: failed to initialize host&lt;BR /&gt;&lt;BR /&gt;I have a question: When software set the internal PLL to output PCIE clock, the PCIE device is not connected.&lt;BR /&gt;It link fail ,and it will disable PLL clock.&lt;BR /&gt;Is my idea right?&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jan 2022 06:04:35 GMT</pubDate>
    <dc:creator>t2865k5</dc:creator>
    <dc:date>2022-01-06T06:04:35Z</dc:date>
    <item>
      <title>How to use PCIE internal PLL on imx8mplus platform .</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-PCIE-internal-PLL-on-imx8mplus-platform/m-p/1391773#M184987</link>
      <description>&lt;P&gt;Dear NXP ,&lt;/P&gt;&lt;P&gt;HW : srg_imx8mplus&lt;/P&gt;&lt;P&gt;SW : kernel version : 5.10.9&lt;/P&gt;&lt;P&gt;Because srg_imx8mplus PCIE is not connected to an oscillator, I modified the content of imx8mp-evk.dts as follows:&lt;/P&gt;&lt;P&gt;ext_osc = &amp;lt;0&amp;gt;;&lt;/P&gt;&lt;P&gt;I connected the PCIE device to the srg_imx8mplus platform ,and ran the lspci command. I did not see any message.&lt;/P&gt;&lt;P&gt;I check the&amp;nbsp;imx8mp_pcie0.log . The message is as follows:&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;PLL REF_CLK is used!.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;I don’t see the PCIE Link up message .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you tell me&amp;nbsp;how to use PCIE internal PLL on imx8mplus platform ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="t2865k5_0-1640336146450.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/166200iB8FDB7DACCD9A949/image-size/medium?v=v2&amp;amp;px=400" role="button" title="t2865k5_0-1640336146450.png" alt="t2865k5_0-1640336146450.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;t2865k5_0-1640336146450.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Dec 2021 08:59:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-PCIE-internal-PLL-on-imx8mplus-platform/m-p/1391773#M184987</guid>
      <dc:creator>t2865k5</dc:creator>
      <dc:date>2021-12-24T08:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PCIE internal PLL on imx8mplus platform .</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-PCIE-internal-PLL-on-imx8mplus-platform/m-p/1391788#M184989</link>
      <description>&lt;P&gt;Hi Albert&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in general for internal clock only ext_osc = &amp;lt;0&amp;gt;; change is needed.&lt;/P&gt;
&lt;P&gt;May be recommended to check clock with oscilloscope and try with several pcie cards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Fri, 24 Dec 2021 09:28:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-PCIE-internal-PLL-on-imx8mplus-platform/m-p/1391788#M184989</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-12-24T09:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PCIE internal PLL on imx8mplus platform .</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-PCIE-internal-PLL-on-imx8mplus-platform/m-p/1393651#M185281</link>
      <description>&lt;P&gt;Dear&amp;nbsp;Igorpadykov ,&lt;/P&gt;&lt;P&gt;I hope to simplify the problem.&amp;nbsp;I measured the signal on the PCIE_CLKP pin, and there is no oscillation waveform.&lt;/P&gt;&lt;P&gt;How to solve this problem ?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 02:48:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-PCIE-internal-PLL-on-imx8mplus-platform/m-p/1393651#M185281</guid>
      <dc:creator>t2865k5</dc:creator>
      <dc:date>2022-01-03T02:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PCIE internal PLL on imx8mplus platform .</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-PCIE-internal-PLL-on-imx8mplus-platform/m-p/1393662#M185284</link>
      <description>&lt;P&gt;to narrow down issue if it is caused by hardware or software, please try to reproduce&lt;/P&gt;
&lt;P&gt;issue on i.MX8M Plus EVK board.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jan 2022 05:50:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-PCIE-internal-PLL-on-imx8mplus-platform/m-p/1393662#M185284</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2022-01-03T05:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PCIE internal PLL on imx8mplus platform .</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-PCIE-internal-PLL-on-imx8mplus-platform/m-p/1394042#M185339</link>
      <description>&lt;P&gt;Hi Igor ,&lt;/P&gt;&lt;P&gt;(1) imx8mplus platform: imx8mp-evk.dts ext_osc = &amp;lt;0&amp;gt;;&lt;BR /&gt;It can measure the PCIE_CLKN waveform&lt;BR /&gt;(2) srg_imx8mplus platform: imx8mp-evk.dts ext_osc = &amp;lt;0&amp;gt;;&lt;BR /&gt;The PCIE_CLKN waveform can be measured when starting up, and the oscillating waveform will disappear after 5 seconds.&lt;BR /&gt;(3) I have a question, in pci-imx6.c:&lt;BR /&gt;imx6_pcie_init_phy() {&lt;BR /&gt;..&lt;BR /&gt;case IMX8MP:&lt;BR /&gt;case IMX8MP_EP:&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;IMX8MM: According to the value of imx6_pcie-&amp;gt;ext_osc to set&lt;BR /&gt;External clock and internal PLL settings. But case IMX8MP : The imx6_pcie-&amp;gt;ext_osc variable is not set ,so no matter the value of imx6_pcie-&amp;gt;ext_osc is 0 or 1, it will be the output of the external clock. Is my idea correct?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 07:30:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-PCIE-internal-PLL-on-imx8mplus-platform/m-p/1394042#M185339</guid>
      <dc:creator>t2865k5</dc:creator>
      <dc:date>2022-01-04T07:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PCIE internal PLL on imx8mplus platform .</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-PCIE-internal-PLL-on-imx8mplus-platform/m-p/1394056#M185341</link>
      <description>&lt;P&gt;&amp;gt; But case IMX8MP : The imx6_pcie-&amp;gt;ext_osc variable is not set ,so no matter the value of &amp;gt;imx6_pcie-&amp;gt;ext_osc is 0 or 1, it will be the output of the external clock. Is my idea correct?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please look at (imx6_pcie-&amp;gt;ext_osc is 0 or 1 is correctly handled):&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/pci/controller/dwc/pci-imx6.c?h=lf-5.10.y" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/pci/controller/dwc/pci-imx6.c?h=lf-5.10.y&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 07:55:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-PCIE-internal-PLL-on-imx8mplus-platform/m-p/1394056#M185341</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2022-01-04T07:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PCIE internal PLL on imx8mplus platform .</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-PCIE-internal-PLL-on-imx8mplus-platform/m-p/1395341#M185464</link>
      <description>&lt;P&gt;Hi igor ,&lt;/P&gt;&lt;P&gt;srg_imx8mplus platform:&lt;BR /&gt;It connects to another board with PCIE device through the connector.&lt;BR /&gt;I can't use general PCIE card on the srgimx8mplus platform.&lt;/P&gt;&lt;P&gt;This is the new PCIE board we designed.&lt;BR /&gt;I can't confirm that the PCIE board hardware is ok.&lt;/P&gt;&lt;P&gt;I modify device tree: osc = &amp;lt;0&amp;gt;;&lt;BR /&gt;When it boot , I measured&lt;BR /&gt;the PCIE_CLKN pin ,and it appear oscillating waveform . The oscillating waveform disappear within 2 seconds.&lt;BR /&gt;log:&lt;BR /&gt;imx6_pcie_host_init&lt;BR /&gt;imx6q-pcie 33800000.pcie: invalid resource&lt;BR /&gt;imx6q-pcie 33800000.pcie: Phy link never came up&lt;/P&gt;&lt;P&gt;ret = dw_pcie_wait_for_link(pci);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;imx6q-pcie 33800000.pcie: ret=0xffffff92&lt;BR /&gt;imx6q-pcie 33800000.pcie: failed to initialize host&lt;BR /&gt;&lt;BR /&gt;I have a question: When software set the internal PLL to output PCIE clock, the PCIE device is not connected.&lt;BR /&gt;It link fail ,and it will disable PLL clock.&lt;BR /&gt;Is my idea right?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 06:04:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-PCIE-internal-PLL-on-imx8mplus-platform/m-p/1395341#M185464</guid>
      <dc:creator>t2865k5</dc:creator>
      <dc:date>2022-01-06T06:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PCIE internal PLL on imx8mplus platform .</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-PCIE-internal-PLL-on-imx8mplus-platform/m-p/1395546#M185478</link>
      <description>&lt;P&gt;yes right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 10:03:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-PCIE-internal-PLL-on-imx8mplus-platform/m-p/1395546#M185478</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2022-01-06T10:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use PCIE internal PLL on imx8mplus platform .</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-PCIE-internal-PLL-on-imx8mplus-platform/m-p/1784433#M218380</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have exactly the same behavior with imx8mm, try to use internal clk for PCIe. kernel 5.10.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[ &amp;nbsp;&amp;nbsp;&amp;nbsp;1.652640] imx6q-pcie 33800000.pcie: supply epdev_on not found, using dummy regulator&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[ &amp;nbsp;&amp;nbsp;&amp;nbsp;1.667816] imx6q-pcie 33800000.pcie: PLL REF_CLK is used!.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[ &amp;nbsp;&amp;nbsp;&amp;nbsp;1.674263] imx6q-pcie 33800000.pcie: PCIe PLL locked after 20 us.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[ &amp;nbsp;&amp;nbsp;&amp;nbsp;1.683330] imx6q-pcie 33800000.pcie: host bridge /soc@0/pcie@33800000 ranges:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[ &amp;nbsp;&amp;nbsp;&amp;nbsp;1.690581] imx6q-pcie 33800000.pcie: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IO 0x001ff80000..0x001ff8ffff -&amp;gt; 0x0000000000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[ &amp;nbsp;&amp;nbsp;&amp;nbsp;1.707443] imx6q-pcie 33800000.pcie: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MEM 0x0018000000..0x001fefffff -&amp;gt; 0x0018000000&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[ &amp;nbsp;&amp;nbsp;&amp;nbsp;1.715803] imx6q-pcie 33800000.pcie: invalid resource&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[ &amp;nbsp;&amp;nbsp;&amp;nbsp;2.730995] imx6q-pcie 33800000.pcie: Phy link never came up&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[ &amp;nbsp;&amp;nbsp;&amp;nbsp;2.736699] imx6q-pcie 33800000.pcie: failed to initialize host&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[ &amp;nbsp;&amp;nbsp;&amp;nbsp;2.742628] imx6q-pcie 33800000.pcie: unable to add pcie port.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;what I have in devtree:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;    pcie0_refclk: pcie0-refclk {
        compatible = "fixed-clock";
        #clock-cells = &amp;lt;0&amp;gt;;
        clock-frequency = &amp;lt;100000000&amp;gt;;
    };


.............
        pinctrl_pcie0: pcie0grp {
            fsl,pins = &amp;lt;
                MX8MM_IOMUXC_I2C4_SCL_PCIE1_CLKREQ_B    0x61 
                MX8MM_IOMUXC_SPDIF_TX_GPIO5_IO3         0x41    /* AF9 WAKE */
                MX8MM_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5    0x41    /* AGF8 PERST  */
            &amp;gt;;
        };

............

&amp;amp;pcie0{
    pinctrl-names = "default";
    pinctrl-0 = &amp;lt;&amp;amp;pinctrl_pcie0&amp;gt;;
    reset-gpio = &amp;lt;&amp;amp;gpio5 5 GPIO_ACTIVE_LOW&amp;gt;;
    clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_PCIE1_ROOT&amp;gt;,
        &amp;lt;&amp;amp;clk IMX8MM_CLK_PCIE1_AUX&amp;gt;,
        &amp;lt;&amp;amp;clk IMX8MM_CLK_PCIE1_PHY&amp;gt;,
        &amp;lt;&amp;amp;pcie0_refclk&amp;gt;;
    clock-names = "pcie", "pcie_aux", "pcie_phy", "pcie_bus";
    assigned-clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_PCIE1_AUX&amp;gt;,
                &amp;lt;&amp;amp;clk IMX8MM_CLK_PCIE1_PHY&amp;gt;,
                &amp;lt;&amp;amp;clk IMX8MM_CLK_PCIE1_CTRL&amp;gt;;
    assigned-clock-rates = &amp;lt;10000000&amp;gt;, &amp;lt;100000000&amp;gt;, &amp;lt;250000000&amp;gt;;
    assigned-clock-parents = &amp;lt;&amp;amp;clk IMX8MM_SYS_PLL2_50M&amp;gt;,
                &amp;lt;&amp;amp;clk IMX8MM_SYS_PLL2_100M&amp;gt;,
                &amp;lt;&amp;amp;clk IMX8MM_SYS_PLL2_250M&amp;gt;;
    ext_osc = &amp;lt;0&amp;gt;;
    status = "okay";
};

&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same with the measuring. I can see the clock for about 2 seconds and then it stops.&lt;/P&gt;&lt;P&gt;Is there any new hints for that?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 12:18:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-PCIE-internal-PLL-on-imx8mplus-platform/m-p/1784433#M218380</guid>
      <dc:creator>emptyfridge</dc:creator>
      <dc:date>2024-01-08T12:18:13Z</dc:date>
    </item>
  </channel>
</rss>

