AnsweredAssumed Answered

Unable to setup PCIe on imx6Q SabreSD board

Question asked by Christophe Bonniot on Aug 31, 2015
Latest reply on Nov 30, 2016 by shiva kumar

Hello,

 

I have a SabreSD and I am trying to use a Wireless PCIe card.

 

My issue, for now, is that I am unable to setup correctly the PCIe bus.

 

I have encountered several issue until now, one of them being one of the PINs used by the PCI (power-on) was claimed by "SD2" and I had to change the DTS file to disable this "SD2".

 

lspci is not failing but not outputing anything either.

 

Here is what I have when I grep dmesg with pci (note: the logs are the same whether I connect the card or not, here it is not connected):

 

<7>fixed up name for pcie@0x01000000 -> pcie

<7>fixed up name for minipcie_ctrl -> minipcie_ctrl

<7>   create child: /soc/pcie@0x01000000

<7>of_platform_bus_create() - skipping /minipcie_ctrl, no compatible prop

<7>comparing lvds_gate with pcie_ref_125m

<7>comparing lvds_gate with pcie_axi

<7>comparing pcie_ref_125m with pcie_ref_125m

<7>comparing pcie_axi with pcie_ref_125m

<7>comparing pcie_axi with sata_ref_100m

<7>comparing pcie_axi with pcie_axi

<7>comparing sata_ref_100m with pcie_ref_125m

<3>imx6q-pcie 1ffc000.pcie: phy link never came up

<3>imx6q-pcie 1ffc000.pcie: failed to initialize host

<7>PCI: CLS 0 bytes, default 64

<6>ehci-pci: EHCI PCI platform driver

 

Here is my kernel configuration regarding PCI:

CONFIG_MIGHT_HAVE_PCI=y

CONFIG_PCI_QUIRKS=y

CONFIG_PCI=y

CONFIG_PCI_DOMAINS=y

CONFIG_PCI_SYSCALL=y

CONFIG_PCI_DEBUG=y

# PCI host controller drivers

CONFIG_PCIE_DW=y

CONFIG_PCI_IMX6=y

CONFIG_PCIEPORTBUS=y

CONFIG_PCIEAER=y

CONFIG_PCIEASPM=y

CONFIG_PCIEASPM_DEFAULT=y

CONFIG_PCIE_PME=y

CONFIG_OF_PCI=y

CONFIG_OF_PCI_IRQ=y

CONFIG_SND_PCI=y

CONFIG_USB_EHCI_PCI=y

CONFIG_GENERIC_PCI_IOMAP=y

 

According to this log "phy link never came up", and from what I can understand in the code, it seems that the PCI controller is not answering (drivers/pci/host/pci-imx6.c).

 

So if I understand what is happening, I am not even at the connection of the Wireless Card.

I think I need to be able to see the PCI bridge before being able to plug in the card. Can anyone confirm that ?

 

I am fairly new to kernel world, configuration... And I basically know nothing about PCI...

 

I am using kernel 3.10.53 and Android 5.0.2.

This is the setup given by Freescale User Guides.

 

I completely exhausted my knowledge to fix this and I went through all the posts I could find.

None of them helping me, either because the issues don't look the same, or because I don't understand the answers...

 

I am aware that some information is missing in this post, so please do not hesitate to ask me for additional data.

 

Thank you in advance for you help !

 

Regards,

Outcomes