In I.MX8QM board, EPC(5f000000.pcie_ep) is not showing in /sys/kernel/config/pci_ep/controllers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

In I.MX8QM board, EPC(5f000000.pcie_ep) is not showing in /sys/kernel/config/pci_ep/controllers

431 Views
mallibeerala
Contributor III

Hi,

I am configuring my I.MX8QM board as Endpoint by using below settings and I am able to linkup with other root complex board but Endpoint controller(5f000000.pcie_ep) folder is not available in /sys/kernel/config/pci_ep/controllers folder.

Linux kernel version: 4.14.98
PCI Endpoint Support
     [*] PCI Endpoint Configfs Support
     <*> PCI Endpoint Test driver

 [*] PCI Express EP mode in the IMX6 RC/EP interconnection system

I am using following dts files, Is anything I have to change in dts files for please let me know.

Please help us to resolve this Issue.

Thanks & Regards,
Mallikarjuna.

0 Kudos
3 Replies

408 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @mallibeerala,

I hope you are doing well.

PCIe EP support for i.MX8QM board is not added in 4.14.98 BSP.

One needs to use imx8qm-mek-pcie-ep.dts device tree to use PCie as an endpoint in imx8qm.

PCIe EP support for i.MX8QM board is made available using the below commit.

 
Thanks & Regards,
Dhruvit Vasavada
0 Kudos

390 Views
mallibeerala
Contributor III

Hi Dhruvit,

In 4.14.98 BSP, imx8qm-ss-hsio.dtsi  file is not available and "compatible = "fsl,imx8qm-pcie-ep", is not applicable in 4.14.98 BSP because in kernel source imx8qm-pcie-ep, is not checking  for compatibility anywhere.

Thanks,
Mallikarjuna

0 Kudos

370 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @mallibeerala,

I hope you are doing well.

PCIe endpoint support for i.MX8QM is not available in older kernel versions. it is added to the later kernel version with the below commit.

MLK-24012-05 arm64: dts: add imx8qm pciea ep support.

Please upgrade the kernel version to lf-5.10.x or above.

Thanks & Regards,
Dhruvit Vasavada

0 Kudos