This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5728: PCIe Can't Enumerate Sub-device

Part Number: AM5728

Hi All,

PCIe can't find lan7430 on my custom board. it connects PCIe0, and I enable pcie_rc0 at our device tree.

My log about PCI as fellow:

root@am57xx-evm:~# dmesg | grep pci
[ 0.655972] dra7-pcie 51000000.pcie: Linked as a consumer to phy-4a094000.pciephy.1
[ 0.656145] dra7-pcie 51000000.pcie: GPIO lookup for consumer (null)
[ 0.656152] dra7-pcie 51000000.pcie: using device tree for GPIO lookup
[ 0.656186] of_get_named_gpiod_flags: parsed 'gpios' property of node '/ocp/axi@0/pcie@51000000[0]' - status (0)
[ 0.656394] dra7-pcie 51000000.pcie: host bridge /ocp/axi@0/pcie@51000000 ranges:
[ 0.656415] dra7-pcie 51000000.pcie: Parsing ranges property...
[ 0.656446] dra7-pcie 51000000.pcie: IO 0x20003000..0x20012fff -> 0x00000000
[ 0.656474] dra7-pcie 51000000.pcie: MEM 0x20013000..0x2fffffff -> 0x20013000
[ 1.656749] dra7-pcie 51000000.pcie: Phy link never came up
[ 1.656884] dra7-pcie 51000000.pcie: PCI host bridge to bus 0000:00
[ 1.656898] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 1.656910] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 1.656921] pci_bus 0000:00: root bus resource [mem 0x20013000-0x2fffffff]
[ 1.657007] pci_bus 0000:00: scanning bus
[ 1.657039] pci 0000:00:00.0: [104c:8888] type 01 class 0x060400
[ 1.657072] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[ 1.657139] pci 0000:00:00.0: supports D1
[ 1.657146] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 1.657156] pci 0000:00:00.0: PME# disabled
[ 1.662741] pci_bus 0000:00: fixups for bus
[ 1.662770] pci 0000:00:00.0: scanning [bus 01-ff] behind bridge, pass 0
[ 1.662865] pci_bus 0000:01: scanning bus
[ 1.668053] pci_bus 0000:01: fixups for bus
[ 1.668070] pci_bus 0000:01: bus scan returning with max=01
[ 1.668083] pci 0000:00:00.0: scanning [bus 01-ff] behind bridge, pass 1
[ 1.668094] pci_bus 0000:00: bus scan returning with max=ff
[ 1.668123] pci 0000:00:00.0: BAR 0: assigned [mem 0x20100000-0x201fffff 64bit]
[ 1.668142] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 1.668271] pcieport 0000:00:00.0: assign IRQ: got 169
[ 1.668469] pcieport 0000:00:00.0: Signaling PME with IRQ 170
[ 1.668603] pcieport 0000:00:00.0: AER enabled with IRQ 170


root@am57xx-evm:~# lspci -v
00:00.0 PCI bridge: Texas Instruments Multicore DSP+ARM KeyStone II SOC (rev 01) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 170
Memory at 20100000 (64-bit, non-prefetchable) [size=1M]
Bus: primary=00, secondary=01, subordinate=ff, sec-latency=0
I/O behind bridge: None
Memory behind bridge: None
Prefetchable memory behind bridge: None
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Root Port (Slot-), MSI 00
Capabilities: [100] Advanced Error Reporting
Kernel driver in use: pcieport

I just add below on am57xx-beagle-x15.dts

&pcie1_rc {
status = "ok";
gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
};

And lan7430 driver already installs on my system.

root@am57xx-evm:~# modprobe lan743x
root@am57xx-evm:~# lsmod
Module Size Used by
lan743x 53248 0

...

 

If you have anything about my question, please let me know.

 

Thanks & Best Regards,

Xu