[PATCH 0/2] PCI: endpoint: Add a generic PCI Endpoint Controller driver

From: Manivannan Sadhasivam via B4 Relay

Date: Fri Dec 04 2026 - 09:01:38 EST


Hi,

This series adds a generic PCI Endpoint Controller driver for the
firmware-initialised and emulated PCI Endpoint controllers. For a firmware
initialised controller, all the resources such as Clocks, Regulators, PHY are
configured by the firmware. So the controller driver just need to program the
MMIO interface to configure the controller.

So this driver fetches 'ctrl' and 'outbound' MMIO regions from DT and configures
them based on the Function driver.

Testing
=======

This generic EP controller driver was tested with the below QEMU patchset:
https://lore.kernel.org/qemu-devel/20261204-pcie-ep-emulation-v2-0-ce3b3a393e7f@xxxxxxxxxx/

Instructions to test this driver with QEMU is provided in the cover letter of
the above mentioned QEMU patchset.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxxxxxxxx>
---
Manivannan Sadhasivam (2):
dt-bindings: PCI: Add generic PCI Endpoint Controller
PCI: endpoint: Add generic PCI Endpoint Controller driver

.../devicetree/bindings/pci/pci-ep-generic.yaml | 48 +++
drivers/pci/controller/Kconfig | 12 +
drivers/pci/controller/Makefile | 1 +
drivers/pci/controller/pci-ep-generic.c | 387 +++++++++++++++++++++
4 files changed, 448 insertions(+)
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261203-pci-ep-generic-3c4f4979f8a8

Best regards,
--
மணிவண்ணன் சதாசிவம்