Path: blob/master/Documentation/devicetree/bindings/edac/altr,socfpga-ecc-manager.yaml
29282 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-edac56- altr,sdram-edac-a1057- altr,sdram-edac-s105859interrupts:60minItems: 161maxItems: 26263altr,sdr-syscon:64$ref: /schemas/types.yaml#/definitions/phandle65description: phandle to SDRAM parent6667required:68- compatible69- interrupts70- altr,sdr-syscon7172patternProperties:73"^ocram-ecc@[a-f0-9]+$":74type: object75additionalProperties: false7677properties:78compatible:79oneOf:80- items:81- const: altr,socfpga-s10-ocram-ecc82- const: altr,socfpga-a10-ocram-ecc83- const: altr,socfpga-a10-ocram-ecc84- const: altr,socfpga-ocram-ecc8586reg:87maxItems: 18889interrupts:90minItems: 191maxItems: 29293iram:94$ref: /schemas/types.yaml#/definitions/phandle95description: phandle to OCRAM parent9697altr,ecc-parent:98$ref: /schemas/types.yaml#/definitions/phandle99description: phandle to OCRAM parent100101required:102- compatible103- reg104- interrupts105106"^usb[0-9]-ecc@[a-f0-9]+$":107type: object108additionalProperties: false109110properties:111compatible:112oneOf:113- items:114- const: altr,socfpga-s10-usb-ecc115- const: altr,socfpga-usb-ecc116- const: altr,socfpga-usb-ecc117118reg:119maxItems: 1120121interrupts:122minItems: 1123maxItems: 2124125altr,ecc-parent:126$ref: /schemas/types.yaml#/definitions/phandle127description: phandle to USB parent128129required:130- compatible131- reg132- interrupts133- altr,ecc-parent134135"^emac[0-9]-[t,r]x-ecc@[a-f0-9]+$":136type: object137additionalProperties: false138139properties:140compatible:141oneOf:142- items:143- const: altr,socfpga-s10-eth-mac-ecc144- const: altr,socfpga-eth-mac-ecc145- const: altr,socfpga-eth-mac-ecc146147reg:148maxItems: 1149150interrupts:151minItems: 1152maxItems: 2153154altr,ecc-parent:155$ref: /schemas/types.yaml#/definitions/phandle156description: phandle to ethernet parent157158required:159- compatible160- reg161- interrupts162- altr,ecc-parent163164"^sdmmc[a-f]-ecc@[a-f0-9]+$":165type: object166additionalProperties: false167168properties:169compatible:170oneOf:171- items:172- const: altr,socfpga-s10-sdmmc-ecc173- const: altr,socfpga-sdmmc-ecc174- const: altr,socfpga-sdmmc-ecc175176reg:177maxItems: 1178179interrupts:180minItems: 2181maxItems: 4182183altr,ecc-parent:184$ref: /schemas/types.yaml#/definitions/phandle185description: phandle to SD/MMC parent186187required:188- compatible189- reg190- interrupts191- altr,ecc-parent192193"^l2-ecc@[a-f0-9]+$":194type: object195additionalProperties: false196197properties:198compatible:199enum:200- altr,socfpga-a10-l2-ecc201- altr,socfpga-l2-ecc202203reg:204maxItems: 1205206interrupts:207maxItems: 2208209required:210- compatible211- reg212- interrupts213214"^dma-ecc@[a-f0-9]+$":215type: object216additionalProperties: false217218properties:219compatible:220const: altr,socfpga-dma-ecc221reg:222maxItems: 1223224interrupts:225maxItems: 2226227altr,ecc-parent:228$ref: /schemas/types.yaml#/definitions/phandle229description: phandle to SD/MMC parent230231required:232- compatible233- reg234- interrupts235- altr,ecc-parent236237if:238properties:239compatible:240contains:241const: altr,socfpga-ecc-manager242then:243required:244- compatible245- "#address-cells"246- "#size-cells"247- ranges248249else:250required:251- compatible252- "#address-cells"253- "#size-cells"254- interrupts255- interrupt-controller256- "#interrupt-cells"257- ranges258- altr,sysmgr-syscon259260additionalProperties: false261262examples:263- |264#include <dt-bindings/interrupt-controller/arm-gic.h>265#include <dt-bindings/interrupt-controller/irq.h>266eccmgr {267compatible = "altr,socfpga-s10-ecc-manager",268"altr,socfpga-a10-ecc-manager";269altr,sysmgr-syscon = <&sysmgr>;270#address-cells = <1>;271#size-cells = <1>;272interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;273interrupt-controller;274#interrupt-cells = <2>;275ranges;276277sdramedac {278compatible = "altr,sdram-edac-s10";279altr,sdr-syscon = <&sdr>;280interrupts = <16 IRQ_TYPE_LEVEL_HIGH>;281};282283ocram-ecc@ff8cc000 {284compatible = "altr,socfpga-s10-ocram-ecc",285"altr,socfpga-a10-ocram-ecc";286reg = <0xff8cc000 0x100>;287altr,ecc-parent = <&ocram>;288interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;289};290291usb0-ecc@ff8c4000 {292compatible = "altr,socfpga-s10-usb-ecc",293"altr,socfpga-usb-ecc";294reg = <0xff8c4000 0x100>;295altr,ecc-parent = <&usb0>;296interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;297};298299emac0-rx-ecc@ff8c0000 {300compatible = "altr,socfpga-s10-eth-mac-ecc",301"altr,socfpga-eth-mac-ecc";302reg = <0xff8c0000 0x100>;303altr,ecc-parent = <&gmac0>;304interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;305};306307emac0-tx-ecc@ff8c0400 {308compatible = "altr,socfpga-s10-eth-mac-ecc",309"altr,socfpga-eth-mac-ecc";310reg = <0xff8c0400 0x100>;311altr,ecc-parent = <&gmac0>;312interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;313};314315sdmmca-ecc@ff8c8c00 {316compatible = "altr,socfpga-s10-sdmmc-ecc",317"altr,socfpga-sdmmc-ecc";318reg = <0xff8c8c00 0x100>;319altr,ecc-parent = <&mmc>;320interrupts = <14 IRQ_TYPE_LEVEL_HIGH>,321<15 IRQ_TYPE_LEVEL_HIGH>;322};323};324325326