Path: blob/master/Documentation/devicetree/bindings/edac/altr,socfpga-ecc-manager.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1# Copyright (C) 2025 Altera Corporation2%YAML 1.23---4$id: http://devicetree.org/schemas/edac/altr,socfpga-ecc-manager.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#67title: Altera SoCFPGA ECC Manager89maintainers:10- Matthew Gerlach <matthew.gerlach@altera.com>1112description:13This binding describes the device tree nodes required for the Altera SoCFPGA14ECC Manager for the Cyclone5, Arria5, Arria10, Stratix10, and Agilex chip15families.1617properties:1819compatible:20oneOf:21- items:22- const: altr,socfpga-s10-ecc-manager23- const: altr,socfpga-a10-ecc-manager24- const: altr,socfpga-a10-ecc-manager25- const: altr,socfpga-ecc-manager2627"#address-cells":28const: 12930"#size-cells":31const: 13233interrupts:34minItems: 135maxItems: 23637interrupt-controller: true3839"#interrupt-cells":40const: 24142ranges: true4344altr,sysmgr-syscon:45$ref: /schemas/types.yaml#/definitions/phandle46description: phandle to Stratix10 System Manager Block with the ECC manager registers4748sdramedac:49type: object50additionalProperties: false5152properties:53compatible:54enum:55- altr,sdram-edac-a1056- altr,sdram-edac-s105758interrupts:59minItems: 160maxItems: 26162altr,sdr-syscon:63$ref: /schemas/types.yaml#/definitions/phandle64description: phandle to SDRAM parent6566required:67- compatible68- interrupts69- altr,sdr-syscon7071patternProperties:72"^ocram-ecc@[a-f0-9]+$":73type: object74additionalProperties: false7576properties:77compatible:78oneOf:79- items:80- const: altr,socfpga-s10-ocram-ecc81- const: altr,socfpga-a10-ocram-ecc82- const: altr,socfpga-a10-ocram-ecc83- const: altr,socfpga-ocram-ecc8485reg:86maxItems: 18788interrupts:89minItems: 190maxItems: 29192iram:93$ref: /schemas/types.yaml#/definitions/phandle94description: phandle to OCRAM parent9596altr,ecc-parent:97$ref: /schemas/types.yaml#/definitions/phandle98description: phandle to OCRAM parent99100required:101- compatible102- reg103- interrupts104105"^usb[0-9]-ecc@[a-f0-9]+$":106type: object107additionalProperties: false108109properties:110compatible:111oneOf:112- items:113- const: altr,socfpga-s10-usb-ecc114- const: altr,socfpga-usb-ecc115- const: altr,socfpga-usb-ecc116117reg:118maxItems: 1119120interrupts:121minItems: 1122maxItems: 2123124altr,ecc-parent:125$ref: /schemas/types.yaml#/definitions/phandle126description: phandle to USB parent127128required:129- compatible130- reg131- interrupts132- altr,ecc-parent133134"^emac[0-9]-[t,r]x-ecc@[a-f0-9]+$":135type: object136additionalProperties: false137138properties:139compatible:140oneOf:141- items:142- const: altr,socfpga-s10-eth-mac-ecc143- const: altr,socfpga-eth-mac-ecc144- const: altr,socfpga-eth-mac-ecc145146reg:147maxItems: 1148149interrupts:150minItems: 1151maxItems: 2152153altr,ecc-parent:154$ref: /schemas/types.yaml#/definitions/phandle155description: phandle to ethernet parent156157required:158- compatible159- reg160- interrupts161- altr,ecc-parent162163"^sdmmc[a-f]-ecc@[a-f0-9]+$":164type: object165additionalProperties: false166167properties:168compatible:169oneOf:170- items:171- const: altr,socfpga-s10-sdmmc-ecc172- const: altr,socfpga-sdmmc-ecc173- const: altr,socfpga-sdmmc-ecc174175reg:176maxItems: 1177178interrupts:179minItems: 2180maxItems: 4181182altr,ecc-parent:183$ref: /schemas/types.yaml#/definitions/phandle184description: phandle to SD/MMC parent185186required:187- compatible188- reg189- interrupts190- altr,ecc-parent191192"^l2-ecc@[a-f0-9]+$":193type: object194additionalProperties: false195196properties:197compatible:198enum:199- altr,socfpga-a10-l2-ecc200- altr,socfpga-l2-ecc201202reg:203maxItems: 1204205interrupts:206maxItems: 2207208required:209- compatible210- reg211- interrupts212213"^dma-ecc@[a-f0-9]+$":214type: object215additionalProperties: false216217properties:218compatible:219const: altr,socfpga-dma-ecc220reg:221maxItems: 1222223interrupts:224maxItems: 2225226altr,ecc-parent:227$ref: /schemas/types.yaml#/definitions/phandle228description: phandle to SD/MMC parent229230required:231- compatible232- reg233- interrupts234- altr,ecc-parent235236if:237properties:238compatible:239contains:240const: altr,socfpga-ecc-manager241then:242required:243- compatible244- "#address-cells"245- "#size-cells"246- ranges247248else:249required:250- compatible251- "#address-cells"252- "#size-cells"253- interrupts254- interrupt-controller255- "#interrupt-cells"256- ranges257- altr,sysmgr-syscon258259additionalProperties: false260261examples:262- |263#include <dt-bindings/interrupt-controller/arm-gic.h>264#include <dt-bindings/interrupt-controller/irq.h>265eccmgr {266compatible = "altr,socfpga-s10-ecc-manager",267"altr,socfpga-a10-ecc-manager";268altr,sysmgr-syscon = <&sysmgr>;269#address-cells = <1>;270#size-cells = <1>;271interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;272interrupt-controller;273#interrupt-cells = <2>;274ranges;275276sdramedac {277compatible = "altr,sdram-edac-s10";278altr,sdr-syscon = <&sdr>;279interrupts = <16 IRQ_TYPE_LEVEL_HIGH>;280};281282ocram-ecc@ff8cc000 {283compatible = "altr,socfpga-s10-ocram-ecc",284"altr,socfpga-a10-ocram-ecc";285reg = <0xff8cc000 0x100>;286altr,ecc-parent = <&ocram>;287interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;288};289290usb0-ecc@ff8c4000 {291compatible = "altr,socfpga-s10-usb-ecc",292"altr,socfpga-usb-ecc";293reg = <0xff8c4000 0x100>;294altr,ecc-parent = <&usb0>;295interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;296};297298emac0-rx-ecc@ff8c0000 {299compatible = "altr,socfpga-s10-eth-mac-ecc",300"altr,socfpga-eth-mac-ecc";301reg = <0xff8c0000 0x100>;302altr,ecc-parent = <&gmac0>;303interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;304};305306emac0-tx-ecc@ff8c0400 {307compatible = "altr,socfpga-s10-eth-mac-ecc",308"altr,socfpga-eth-mac-ecc";309reg = <0xff8c0400 0x100>;310altr,ecc-parent = <&gmac0>;311interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;312};313314sdmmca-ecc@ff8c8c00 {315compatible = "altr,socfpga-s10-sdmmc-ecc",316"altr,socfpga-sdmmc-ecc";317reg = <0xff8c8c00 0x100>;318altr,ecc-parent = <&mmc>;319interrupts = <14 IRQ_TYPE_LEVEL_HIGH>,320<15 IRQ_TYPE_LEVEL_HIGH>;321};322};323324325