<?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: Support for imx8mp PCIe as EP</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Support-for-imx8mp-PCIe-as-EP/m-p/2059227#M234907</link>
    <description />
    <pubDate>Tue, 11 Mar 2025 06:17:31 GMT</pubDate>
    <dc:creator>deepakraj</dc:creator>
    <dc:date>2025-03-11T06:17:31Z</dc:date>
    <item>
      <title>Support for imx8mp PCIe as EP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Support-for-imx8mp-PCIe-as-EP/m-p/2059224#M234906</link>
      <description>&lt;DIV&gt;Hi&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;We would like to get a PCIE-EP device to detect the PCIE-RC device, please refer below observation.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1 Device tree changes&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In our module imx8mp scarthgap BSP, we tried the below device tree changes to enable PCIe-EP.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;amp;pcie_phy {&lt;/DIV&gt;&lt;DIV&gt;fsl,refclk-pad-mode = &amp;lt;IMX8_PCIE_REFCLK_PAD_INPUT&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;clocks = &amp;lt;&amp;amp;pcie0_refclk&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;clock-names = "ref";&lt;/DIV&gt;&lt;DIV&gt;ext_osc = &amp;lt;1&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;status = "okay";&lt;/DIV&gt;&lt;DIV&gt;};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;amp;pcie_ep {&lt;/DIV&gt;&lt;DIV&gt;ext_osc = &amp;lt;1&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;status = "okay";&lt;/DIV&gt;&lt;DIV&gt;pinctrl-names = "default";&lt;/DIV&gt;&lt;DIV&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_pcie0&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;amp;pcie {&lt;/DIV&gt;&lt;DIV&gt;pinctrl-names = "default";&lt;/DIV&gt;&lt;DIV&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_pcie0&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;reset-gpio = &amp;lt;&amp;amp;gpio4 20 GPIO_ACTIVE_LOW&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;host-wake-gpio = &amp;lt;&amp;amp;gpio5 21 GPIO_ACTIVE_LOW&amp;gt;;&lt;/DIV&gt;&lt;DIV&gt;status = "disabled";&lt;/DIV&gt;&lt;DIV&gt;};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;2 Our setup configuration:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;The PCIE EP refer clock comes from host module., Refer attached image.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;3 Enabling PCIe as Endpoint&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Boot up the board with the PCIe working in RC mode (As PCIE EP refer clock comes from the host)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Boot up the board with the PCIe working in EP mode&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Stop at u-boot and update the kernel command line :&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;console=ttymxc2,115200 root=/dev/mmcblk1p2 rootwait rw pcie_cz_enabled=yes&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Boot kernel and check PCIe in dmesg&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;root@lec-imx8mp:~# dmesg | grep pci&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[&amp;nbsp; &amp;nbsp; 0.000000] Kernel command line: console=ttymxc2,115200 root=/dev/mmcblk1p2 rootwait rw pcie_cz_enabled=yes&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[&amp;nbsp; &amp;nbsp; 0.000000] Unknown kernel command line parameters "pcie_cz_enabled=yes", will be passed to user space.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[&amp;nbsp; &amp;nbsp; 2.515586] imx6q-pcie 33800000.pcie-ep: iATU: unroll T, 4 ob, 4 ib, align 64K, limit 16G&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[&amp;nbsp; &amp;nbsp; 2.524691] imx6q-pcie 33800000.pcie-ep: eDMA: unroll T, 2 wr, 2 rd&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[&amp;nbsp; &amp;nbsp; 3.198659]&amp;nbsp; &amp;nbsp; &amp;nbsp;pcie_cz_enabled=yes&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Run the below command to enable the PCIe&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; Refer to Enable-pcie-ep.txt&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;we can get output as [&amp;nbsp; 218.973209] imx6q-pcie 33800000.pcie-ep: PCIe Gen.1 x1 link up&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;4 On the RC mode PCIe module, we ran the below command , but could not get any output&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;lspci -vxxx -d 0x1957:0x81c0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;please share your inputs to detect PCIe-up on the other end.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Mar 2025 06:14:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Support-for-imx8mp-PCIe-as-EP/m-p/2059224#M234906</guid>
      <dc:creator>deepakraj</dc:creator>
      <dc:date>2025-03-11T06:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Support for imx8mp PCIe as EP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Support-for-imx8mp-PCIe-as-EP/m-p/2059227#M234907</link>
      <description />
      <pubDate>Tue, 11 Mar 2025 06:17:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Support-for-imx8mp-PCIe-as-EP/m-p/2059227#M234907</guid>
      <dc:creator>deepakraj</dc:creator>
      <dc:date>2025-03-11T06:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Support for imx8mp PCIe as EP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Support-for-imx8mp-PCIe-as-EP/m-p/2060085#M234970</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;1. Hardware connection is correct&lt;/P&gt;
&lt;P&gt;2.For the&amp;nbsp;&lt;SPAN&gt;ext_osc&amp;nbsp;property, i don't see there is any code to handle it in L6.6.y pcie or pcie phy driver. This property has been removed. In our test(two EVKs), we just need to use&amp;nbsp;imx8mp-evk-pcie-ep.dts on ep side.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;3. No need to set&amp;nbsp;&lt;SPAN&gt;pcie_cz_enabled=yes&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;4.&amp;nbsp; You can try to boot EP and setup EP with those functions entry, boot the RC, then the RC could scan the EP successfully.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 06:00:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Support-for-imx8mp-PCIe-as-EP/m-p/2060085#M234970</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2025-03-12T06:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Support for imx8mp PCIe as EP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Support-for-imx8mp-PCIe-as-EP/m-p/2061771#M235081</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;We tried to boot the PCIe-ep module first and the kernel struck with an error, after powering on the host RC module, the PCIe-ep module still struck at kernel only.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="deepakraj_0-1741926919698.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/328077iB232A31553DE3C35/image-size/medium?v=v2&amp;amp;px=400" role="button" title="deepakraj_0-1741926919698.png" alt="deepakraj_0-1741926919698.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;deepakraj_0-1741926919698.png&lt;/span&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Please refer to the attached dts and defconfig file.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please share your input&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 04:41:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Support-for-imx8mp-PCIe-as-EP/m-p/2061771#M235081</guid>
      <dc:creator>deepakraj</dc:creator>
      <dc:date>2025-03-14T04:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Support for imx8mp PCIe as EP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Support-for-imx8mp-PCIe-as-EP/m-p/2064209#M235233</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Are you using external reference clock or internal reference clock?&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 01:56:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Support-for-imx8mp-PCIe-as-EP/m-p/2064209#M235233</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2025-03-19T01:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Support for imx8mp PCIe as EP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Support-for-imx8mp-PCIe-as-EP/m-p/2064347#M235245</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The PCIe reference clock of PCIE EP comes from the host RC module.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 05:16:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Support-for-imx8mp-PCIe-as-EP/m-p/2064347#M235245</guid>
      <dc:creator>deepakraj</dc:creator>
      <dc:date>2025-03-19T05:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Support for imx8mp PCIe as EP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Support-for-imx8mp-PCIe-as-EP/m-p/2068218#M235488</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;In your hardware design, the RC provide the REF clock. So your first try is correct, but the current drivers can't support rescan which means that the RC can't scan the EP. You can try below two patches to enable it.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;There is one solutions to remove devices and rescan.

root@imx8mpevk:~# echo 1 &amp;gt; /sys/bus/pci/devices/0000\:00\:00.0/remove
root@imx8mpevk:~# echo 1 &amp;gt; /sys/devices/platform/33800000.pcie/pcie_dis
root@imx8mpevk:~# echo 0 &amp;gt; /sys/devices/platform/33800000.pcie/pcie_dis
root@imx8mpevk:~# echo 1 &amp;gt; /sys/bus/pci/rescan&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Zhiming&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 02:21:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Support-for-imx8mp-PCIe-as-EP/m-p/2068218#M235488</guid>
      <dc:creator>Zhiming_Liu</dc:creator>
      <dc:date>2025-03-26T02:21:17Z</dc:date>
    </item>
  </channel>
</rss>

