[PATCH v2 0/5] Add STM32MP25 PCIe drivers

Christian Bruel
2024-11-26T16:00:04Z

This patch series adds PCIe drivers STM32MP25 SoC from STMicrolectronics
and respective yaml schema for the root complex and device modes.

Changes in v2:
- Fix st,stm32-pcie-common.yaml dt_binding_check

Changes in v1:
Address comments from Rob Herring and Bjorn Helgaas:
- Drop st,limit-mrrs and st,max-payload-size from this patchset
- Remove single reset and clocks binding names and misc yaml cleanups
- Split RC/EP common bindings to a separate schema file
- Use correct PCIE_T_PERST_CLK_US and PCIE_T_RRS_READY_MS defines
- Use .remove instead of .remove_new
- Fix bar reset sequence in EP driver
- Use cleanup blocks for error handling
- Cosmetic fixes

Christian Bruel (5):
dt-bindings: PCI: Add STM32MP25 PCIe root complex bindings
PCI: stm32: Add PCIe host support for STM32MP25
dt-bindings: PCI: Add STM32MP25 PCIe endpoint bindings
PCI: stm32: Add PCIe endpoint support for STM32MP25
MAINTAINERS: add entry for ST STM32MP25 PCIe drivers

.../bindings/pci/st,stm32-pcie-common.yaml | 45 ++
.../bindings/pci/st,stm32-pcie-ep.yaml | 61 +++
.../bindings/pci/st,stm32-pcie-host.yaml | 99 ++++
MAINTAINERS | 7 +
drivers/pci/controller/dwc/Kconfig | 24 +
drivers/pci/controller/dwc/Makefile | 2 +
drivers/pci/controller/dwc/pcie-stm32-ep.c | 445 ++++++++++++++++++
drivers/pci/controller/dwc/pcie-stm32.c | 402 ++++++++++++++++
drivers/pci/controller/dwc/pcie-stm32.h | 17 +
9 files changed, 1102 insertions(+)
create mode 100644 Documentation/devicetree/bindings/pci/st,stm32-pcie-common.yaml
create mode 100644 Documentation/devicetree/bindings/pci/st,stm32-pcie-ep.yaml
create mode 100644 Documentation/devicetree/bindings/pci/st,stm32-pcie-host.yaml
create mode 100644 drivers/pci/controller/dwc/pcie-stm32-ep.c
create mode 100644 drivers/pci/controller/dwc/pcie-stm32.c
create mode 100644 drivers/pci/controller/dwc/pcie-stm32.h

--
2.34.1