RFC arm64: dts: socfpga: clarify MMIO vs non-MMIO nodes
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | dt-bindings: edac: altera: agilex5: document new edac supportDocumentation/ | +61 | 0 replies | |
| 2/2 | arm64: dts: socfpga: agilex5: add support for the ECC managerarch/ | +69 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC 0/2] arm64: dts: socfpga: clarify MMIO vs non-MMIO nodes
Hi DTS maintainers,
This letter will try to explain this comment[1] regarding the eccmgr node not having an addressable range, but it's children does.
I am only including the bindings and DTS patches for this RFC to hopefully not confuse things more.
The eccmgr node is an interrupt aggregator / irqchip, not a standalone register block. Its INTMASK and INTSTAT registers live inside the System Manager. The driver reaches them through the altr,sysmgr-syscon phandle (syscon/regmap), so the manager itself has no reg property and no unit address. In DT terms it is not an MMIO device.
The children (ocram-ecc, usb-ecc, emac-*-ecc, sdmmc-ecc, l2-ecc, dma-ecc, ...) are MMIO devices. Each peripheral has its own ECC controller block at a unique SoC address. The driver maps that block with of_address_to_resource() / ioremap, so those nodes have a reg property and a unit address (for example ocram-ecc@ff8cc000).
The parent still has #address-cells, #size-cells, and ranges so those child addresses can be translated to CPU physical addresses (identity map). ranges describes the children's address space. It does not give the parent its own MMIO window.
sdramedac is the exception among the children: SDRAM ECC registers live in the SDR controller, accessed via altr,sdr-syscon, so that child also has no reg.
The children stay under eccmgr because they are interrupt clients of the manager's irqchip, and the A10/S10/Agilex driver walks the manager's child nodes from probe. One shared IRQ domain, many per-RAM ECC blocks.
I hope that explains the layout of the EDAC controller on SoCFPGA platforms. I welcome any feedback.
Thanks,
Dinh
[1] https://lore.kernel.org/all/20260724-fragrant-baboon-of-temperance-c5cdc0@quoll/
Dinh Nguyen (2):
dt-bindings: edac: altera: agilex5: document new edac support
arm64: dts: socfpga: agilex5: add support for the ECC manager
.../edac/altr,socfpga-ecc-manager.yaml | 85 +++++++++++++------ .../arm64/boot/dts/intel/socfpga_agilex5.dtsi | 69 +++++++++++++++ 2 files changed, 130 insertions(+), 24 deletions(-)
Signature · 1 line
2.42.0.411.g813d9a9188