CV SOC with PCIe v2022.11, lspci shows nothing

Hi everyone,

I downloaded the CV SOC QPDS22.1STD_REL_GSRD_PR and recompiled the hw design with ENABLE_PCIE flag. In ghrd_top.v I see that PCIe is added to the design.

I ran the CV BSP Generator to process the handoff files. Checked out the kirkstone Yocto branch and followed the steps in Setting_Up_Yocto_Build_System/Customize Yocto Build/Build Yocto and created the SD card with the new image.

When I log into Linux, lspci shows no devices, nor I can find the root port driver.

Can someone point me how to build the Linux Yocto for the GHRD 2022.11 with PCIe? Is there anything I need to modify or configure prior to building Yocto image?

Thank you.

In case there’s anyone as lost as I was in the beginning, here’s an update.
I needed to manually add the PCIe to the device tree.

Currently I have this:

pcie_0: pcie@d00000000 {
compatible = “altr,pcie-root-port-1.0”;
reg = <0xd0000000 0x10000000>,
<0xff210000 0x00004000>;
reg-names = “Txs”, “Cra”;
interrupt-parent = <&intc>;
interrupts = <0 43 4>;
#interrupt-cells = <1>;
bus-range = <0x0 0xFF>;
device_type = “pci”;
msi-parent = <&msi0>;
#address-cells = <3>;
#size-cells = <2>;
interrupt-map-mask = <0 0 0 7>;
interrupt-map = <0 0 0 1 &pcie_0 1>,
<0 0 0 2 &pcie_0 2>,
<0 0 0 3 &pcie_0 3>,
<0 0 0 4 &pcie_0 4>;
ranges = <0x82000000 0x00000000 0x00000000 0xd0000000 0x00000000 0x10000000>;

I’m not sure what the pcie@d00000000 address should be? I used 0xd0000000 which is the address of my Txs slave. Is this correct? I used the same address for the bridge_address_offset cell in the ranges field.

I have one device connected to the PCIe slot of the CV SOC Devkit, and lspci shows this address "Region 0: Memory at d0000000 (64-bit, non-prefetchable) [virtual] [size=16K]