From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796066288; b=ocGe1eCSFTaeTz2BYiFkseCgLaZUom4TZEYIDO1u4sEoc7r9ZI2gw7XZ+LMIdlU6ziaV VlxH268UyPMD0rfffaT0mw7c6kuJDn0h+PVXMCbrwegkGLso26x102c+IJDctWAHE6sAY aE+mH5+EGkDkT2WbIE7HtdfIMdAQrzJkHvX91KFP/c+Xd1LVKThzVzjfqTuCvW/laSLIs otejL+K+93bqv5xT97qo3Ys1eaq7v7stluKQaUumQE9nPyM9PfrFE+k0HKwUHCvgCGmSd CPLxro9iKc0rvH+riDgSIrHytD7NL8hXszEm9hvFB15/Xgh+7ERFZnNIY2UBynUXPjA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796066288; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=KzzlNaMqO9Gh5Pne2smP24kuAmFVsvo0BXKDXXFRxoQ=; b=hI2kNJ+FAtxn/b3pfSNTEe3fopDifjCoZBWtDsO2xmlqRB4CWBp7lFFt+IHYsRptAkrH VsPyT7OF1nKo3z+O+wDdLyMrTNjbnu8Vwj71c3AfclSgEMd0Dn8SeT9QsFFFNsbr3ZM+H IhNZw4FCayrZ5ENzAuXQA0SgfslUkede8HvnF1LzPN1TabAN1F7CwjNcxzP3sPLb9oqwq sOX/Jyk12w2egdqGh9ft7QUkRQInhvc0Jp8hsHEl9UPg6DZW4rei9y6L6wvmhiNeUZzeH ry0Q4chxcasMiEM+lMdpAP6cldxZ98OoqFmrzRO/2NSimog8kjxYdYCx7fdD1VW5aFA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="XP82L/QW"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 38913606A68F; Mon, 30 Nov 2026 19:18:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=XP82L/QW Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3EAAB1F00933; Mon, 30 Nov 2026 19:18:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796066288; bh=KzzlNaMqO9Gh5Pne2smP24kuAmFVsvo0BXKDXXFRxoQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=XP82L/QWujA+jFjyEtk3FicNbkK0kwcfWbdojQXT9kcM5crwF9ENkJ8HAoVyFqdfq xMZ8EKTa4BGAxzZg16esi7hYucsU0T4GdOpvFDcbele4GCJ6qyKc/JX11/t3OgawfV 3Tm0w/JZzu9D8i3GwAKtKcfeSlcXHjOPkUP1bEnOJvu8CNrWEZYBGwQJwsXcfU6RLQ az/i7dPDMB+Y1S33/dVmjRfuRksR2d0j+EtLswD/KIrbxvCT9wQTlQNc2Fjcsx3hRa UB8JtOTdg3mNxI9PGHiBZ1NwcDpGJCIypayQXeZt4CYKJhHoMqWaA5lovaOWYzS/mc h4f8hOs0Rf1GA== From: Dinh Nguyen To: bp@alien8.de, tony.luck@intel.com, yazen.ghannam@amd.com Cc: dinguyen@kernel.org, rounakdas2025@gmail.com, niravkumar.l.rabara@altera.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCHv5 4/4] arm64: dts: socfpga: agilex5: add support for the ECC manager Date: Mon, 30 Nov 2026 13:17:54 -0600 Message-ID: <20261130191754.3570042-5-dinguyen@kernel.org> X-Mailer: git-send-email 2.42.0.411.g813d9a9188 In-Reply-To: <20261130191754.3570042-1-dinguyen@kernel.org> References: <20261130191754.3570042-1-dinguyen@kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add the ECC manager to the base Agilex5 dtsi, along with OCRAM ECC and RX/TX ECC for EMAC0, EMAC1, and EMAC2. The eccmgr node is an interrupt aggregator, not an MMIO device. Its INTMASK and INTSTAT registers live in the System Manager, and the driver reaches them through altr,sysmgr-syscon, so the node has no reg property and no unit address. The OCRAM and EMAC children are MMIO devices, each at its own ECC controller address. #address-cells, #size-cells, and ranges translate those addresses onto CPU physical addresses. ranges does not give the manager its own window. The children stay under eccmgr because they are clients of its irqchip. The Agilex5 manager binds to altr_edac_a10_probe(), which walks the child nodes and uses one IRQ domain for the per-RAM blocks. Signed-off-by: Dinh Nguyen --- .../arm64/boot/dts/intel/socfpga_agilex5.dtsi | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi b/arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi index f54767d1526e1..c2d1dbf93e6f1 100644 --- a/arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi +++ b/arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi @@ -149,6 +149,75 @@ qspi_clk: qspi-clk { }; }; + eccmgr { + compatible = "altr,socfpga-agilex5-ecc-manager", + "altr,socfpga-a10-ecc-manager"; + altr,sysmgr-syscon = <&sysmgr>; + #address-cells = <1>; + #size-cells = <1>; + interrupt-parent = <&intc>; + interrupts = , + , + , + , + , + , + ; + interrupt-names = "global_sbe", "global_dbe", "io96b0" , "io96b1", + "sdm_qspi_sbe", "sdm_qspi_dbe", "sdm_seu"; + interrupt-controller; + #interrupt-cells = <2>; + ranges = <0 0 0 0xffffffff>; + + ocram-ecc@108cc000 { + compatible = "altr,socfpga-a10-ocram-ecc"; + reg = <0x108cc000 0x100>; + interrupts = <1 IRQ_TYPE_LEVEL_HIGH>, <33 IRQ_TYPE_LEVEL_HIGH>; + }; + + emac0-rx-ecc@108c0000 { + compatible = "altr,socfpga-eth-mac-ecc"; + reg = <0x108c0000 0x100>; + altr,ecc-parent = <&gmac0>; + interrupts = <4 IRQ_TYPE_LEVEL_HIGH>, <36 IRQ_TYPE_LEVEL_HIGH>; + }; + + emac0-tx-ecc@108c0400 { + compatible = "altr,socfpga-eth-mac-ecc"; + reg = <0x108c0400 0x100>; + altr,ecc-parent = <&gmac0>; + interrupts = <5 IRQ_TYPE_LEVEL_HIGH>, <37 IRQ_TYPE_LEVEL_HIGH>; + }; + + emac1-rx-ecc@108c0800 { + compatible = "altr,socfpga-eth-mac-ecc"; + reg = <0x108c0800 0x100>; + altr,ecc-parent = <&gmac1>; + interrupts = <6 IRQ_TYPE_LEVEL_HIGH>, <38 IRQ_TYPE_LEVEL_HIGH>; + }; + + emac1-tx-ecc@108c0c00 { + compatible = "altr,socfpga-eth-mac-ecc"; + reg = <0x108c0c00 0x100>; + altr,ecc-parent = <&gmac1>; + interrupts = <7 IRQ_TYPE_LEVEL_HIGH>, <39 IRQ_TYPE_LEVEL_HIGH>; + }; + + emac2-rx-ecc@108c1000 { + compatible = "altr,socfpga-eth-mac-ecc"; + reg = <0x108c1000 0x100>; + altr,ecc-parent = <&gmac2>; + interrupts = <8 IRQ_TYPE_LEVEL_HIGH>, <40 IRQ_TYPE_LEVEL_HIGH>; + }; + + emac2-tx-ecc@108c1400 { + compatible = "altr,socfpga-eth-mac-ecc"; + reg = <0x108c1400 0x100>; + altr,ecc-parent = <&gmac2>; + interrupts = <9 IRQ_TYPE_LEVEL_HIGH>, <41 IRQ_TYPE_LEVEL_HIGH>; + }; + }; + timer { compatible = "arm,armv8-timer"; interrupt-parent = <&intc>; -- 2.42.0.411.g813d9a9188