[PATCH 0/2] PCI: ultrarisc: Add DP1000 PCIe clock support
From: Jia Wang via B4 Relay
Date: Mon Jun 29 2026 - 02:00:32 EST
Add clock handling for the UltraRISC DP1000 DesignWare PCIe host
controller.
The DP1000 PCIe controller depends on three input clocks: core, dbi, and
aux. The driver accesses DBI registers during host initialization, so the
clocks must be enabled before the controller registers are touched.
This series documents the required clocks in the device tree binding and
updates the driver to get and enable them during probe. The driver keeps
the clock data alongside struct dw_pcie, uses the bulk clock API to
acquire and enable the clocks, and registers a managed cleanup action to
disable them on failure or detach.
Testing:
- Build and module build tested with ARCH=riscv.
- Boot tested on UltraRISC DP1000.
- Validated the PCIe binding with dt_binding_check and dtbs_check.
Signed-off-by: Jia Wang <wangjia@xxxxxxxxxxxxx>
---
Jia Wang (2):
dt-bindings: pci: ultrarisc: add required DP1000 PCIe clocks
PCI: ultrarisc: get and enable DP1000 PCIe clocks
.../bindings/pci/ultrarisc,dp1000-pcie.yaml | 16 +++++
drivers/pci/controller/dwc/pcie-ultrarisc.c | 74 ++++++++++++++++++++--
2 files changed, 83 insertions(+), 7 deletions(-)
---
base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482
change-id: 20260617-ultrarisc-pci-clk-ac19047af1ea
Best regards,
--
Jia Wang <wangjia@xxxxxxxxxxxxx>