Path: blob/main/sys/contrib/device-tree/Bindings/edac/socfpga-eccmgr.txt
48378 views
Altera SoCFPGA ECC Manager1This driver uses the EDAC framework to implement the SOCFPGA ECC Manager.2The ECC Manager counts and corrects single bit errors and counts/handles3double bit errors which are uncorrectable.45Cyclone5 and Arria5 ECC Manager6Required Properties:7- compatible : Should be "altr,socfpga-ecc-manager"8- #address-cells: must be 19- #size-cells: must be 110- ranges : standard definition, should translate from local addresses1112Subcomponents:1314L2 Cache ECC15Required Properties:16- compatible : Should be "altr,socfpga-l2-ecc"17- reg : Address and size for ECC error interrupt clear registers.18- interrupts : Should be single bit error interrupt, then double bit error19interrupt. Note the rising edge type.2021On Chip RAM ECC22Required Properties:23- compatible : Should be "altr,socfpga-ocram-ecc"24- reg : Address and size for ECC error interrupt clear registers.25- iram : phandle to On-Chip RAM definition.26- interrupts : Should be single bit error interrupt, then double bit error27interrupt. Note the rising edge type.2829Example:3031eccmgr: eccmgr@ffd08140 {32compatible = "altr,socfpga-ecc-manager";33#address-cells = <1>;34#size-cells = <1>;35ranges;3637l2-ecc@ffd08140 {38compatible = "altr,socfpga-l2-ecc";39reg = <0xffd08140 0x4>;40interrupts = <0 36 1>, <0 37 1>;41};4243ocram-ecc@ffd08144 {44compatible = "altr,socfpga-ocram-ecc";45reg = <0xffd08144 0x4>;46iram = <&ocram>;47interrupts = <0 178 1>, <0 179 1>;48};49};5051Arria10 SoCFPGA ECC Manager52The Arria10 SoC ECC Manager handles the IRQs for each peripheral53in a shared register instead of individual IRQs like the Cyclone554and Arria5. Therefore the device tree is different as well.5556Required Properties:57- compatible : Should be "altr,socfpga-a10-ecc-manager"58- altr,sysgr-syscon : phandle to Arria10 System Manager Block59containing the ECC manager registers.60- #address-cells: must be 161- #size-cells: must be 162- interrupts : Should be single bit error interrupt, then double bit error63interrupt.64- interrupt-controller : boolean indicator that ECC Manager is an interrupt controller65- #interrupt-cells : must be set to 2.66- ranges : standard definition, should translate from local addresses6768Subcomponents:6970L2 Cache ECC71Required Properties:72- compatible : Should be "altr,socfpga-a10-l2-ecc"73- reg : Address and size for ECC error interrupt clear registers.74- interrupts : Should be single bit error interrupt, then double bit error75interrupt, in this order.7677On-Chip RAM ECC78Required Properties:79- compatible : Should be "altr,socfpga-a10-ocram-ecc"80- reg : Address and size for ECC block registers.81- interrupts : Should be single bit error interrupt, then double bit error82interrupt, in this order.8384Ethernet FIFO ECC85Required Properties:86- compatible : Should be "altr,socfpga-eth-mac-ecc"87- reg : Address and size for ECC block registers.88- altr,ecc-parent : phandle to parent Ethernet node.89- interrupts : Should be single bit error interrupt, then double bit error90interrupt, in this order.9192NAND FIFO ECC93Required Properties:94- compatible : Should be "altr,socfpga-nand-ecc"95- reg : Address and size for ECC block registers.96- altr,ecc-parent : phandle to parent NAND node.97- interrupts : Should be single bit error interrupt, then double bit error98interrupt, in this order.99100DMA FIFO ECC101Required Properties:102- compatible : Should be "altr,socfpga-dma-ecc"103- reg : Address and size for ECC block registers.104- altr,ecc-parent : phandle to parent DMA node.105- interrupts : Should be single bit error interrupt, then double bit error106interrupt, in this order.107108USB FIFO ECC109Required Properties:110- compatible : Should be "altr,socfpga-usb-ecc"111- reg : Address and size for ECC block registers.112- altr,ecc-parent : phandle to parent USB node.113- interrupts : Should be single bit error interrupt, then double bit error114interrupt, in this order.115116QSPI FIFO ECC117Required Properties:118- compatible : Should be "altr,socfpga-qspi-ecc"119- reg : Address and size for ECC block registers.120- altr,ecc-parent : phandle to parent QSPI node.121- interrupts : Should be single bit error interrupt, then double bit error122interrupt, in this order.123124SDMMC FIFO ECC125Required Properties:126- compatible : Should be "altr,socfpga-sdmmc-ecc"127- reg : Address and size for ECC block registers.128- altr,ecc-parent : phandle to parent SD/MMC node.129- interrupts : Should be single bit error interrupt, then double bit error130interrupt, in this order for port A, and then single bit error interrupt,131then double bit error interrupt in this order for port B.132133Example:134135eccmgr: eccmgr@ffd06000 {136compatible = "altr,socfpga-a10-ecc-manager";137altr,sysmgr-syscon = <&sysmgr>;138#address-cells = <1>;139#size-cells = <1>;140interrupts = <0 2 IRQ_TYPE_LEVEL_HIGH>,141<0 0 IRQ_TYPE_LEVEL_HIGH>;142interrupt-controller;143#interrupt-cells = <2>;144ranges;145146l2-ecc@ffd06010 {147compatible = "altr,socfpga-a10-l2-ecc";148reg = <0xffd06010 0x4>;149interrupts = <0 IRQ_TYPE_LEVEL_HIGH>,150<32 IRQ_TYPE_LEVEL_HIGH>;151};152153ocram-ecc@ff8c3000 {154compatible = "altr,socfpga-a10-ocram-ecc";155reg = <0xff8c3000 0x90>;156interrupts = <1 IRQ_TYPE_LEVEL_HIGH>,157<33 IRQ_TYPE_LEVEL_HIGH> ;158};159160emac0-rx-ecc@ff8c0800 {161compatible = "altr,socfpga-eth-mac-ecc";162reg = <0xff8c0800 0x400>;163altr,ecc-parent = <&gmac0>;164interrupts = <4 IRQ_TYPE_LEVEL_HIGH>,165<36 IRQ_TYPE_LEVEL_HIGH>;166};167168emac0-tx-ecc@ff8c0c00 {169compatible = "altr,socfpga-eth-mac-ecc";170reg = <0xff8c0c00 0x400>;171altr,ecc-parent = <&gmac0>;172interrupts = <5 IRQ_TYPE_LEVEL_HIGH>,173<37 IRQ_TYPE_LEVEL_HIGH>;174};175176nand-buf-ecc@ff8c2000 {177compatible = "altr,socfpga-nand-ecc";178reg = <0xff8c2000 0x400>;179altr,ecc-parent = <&nand>;180interrupts = <11 IRQ_TYPE_LEVEL_HIGH>,181<43 IRQ_TYPE_LEVEL_HIGH>;182};183184nand-rd-ecc@ff8c2400 {185compatible = "altr,socfpga-nand-ecc";186reg = <0xff8c2400 0x400>;187altr,ecc-parent = <&nand>;188interrupts = <13 IRQ_TYPE_LEVEL_HIGH>,189<45 IRQ_TYPE_LEVEL_HIGH>;190};191192nand-wr-ecc@ff8c2800 {193compatible = "altr,socfpga-nand-ecc";194reg = <0xff8c2800 0x400>;195altr,ecc-parent = <&nand>;196interrupts = <12 IRQ_TYPE_LEVEL_HIGH>,197<44 IRQ_TYPE_LEVEL_HIGH>;198};199200dma-ecc@ff8c8000 {201compatible = "altr,socfpga-dma-ecc";202reg = <0xff8c8000 0x400>;203altr,ecc-parent = <&pdma>;204interrupts = <10 IRQ_TYPE_LEVEL_HIGH>,205<42 IRQ_TYPE_LEVEL_HIGH>;206207usb0-ecc@ff8c8800 {208compatible = "altr,socfpga-usb-ecc";209reg = <0xff8c8800 0x400>;210altr,ecc-parent = <&usb0>;211interrupts = <2 IRQ_TYPE_LEVEL_HIGH>,212<34 IRQ_TYPE_LEVEL_HIGH>;213};214215qspi-ecc@ff8c8400 {216compatible = "altr,socfpga-qspi-ecc";217reg = <0xff8c8400 0x400>;218altr,ecc-parent = <&qspi>;219interrupts = <14 IRQ_TYPE_LEVEL_HIGH>,220<46 IRQ_TYPE_LEVEL_HIGH>;221};222223sdmmc-ecc@ff8c2c00 {224compatible = "altr,socfpga-sdmmc-ecc";225reg = <0xff8c2c00 0x400>;226altr,ecc-parent = <&mmc>;227interrupts = <15 IRQ_TYPE_LEVEL_HIGH>,228<47 IRQ_TYPE_LEVEL_HIGH>,229<16 IRQ_TYPE_LEVEL_HIGH>,230<48 IRQ_TYPE_LEVEL_HIGH>;231};232};233234Stratix10 SoCFPGA ECC Manager (ARM64)235The Stratix10 SoC ECC Manager handles the IRQs for each peripheral236in a shared register similar to the Arria10. However, Stratix10 ECC237requires access to registers that can only be read from Secure Monitor238with SMC calls. Therefore the device tree is slightly different. Note239that only 1 interrupt is sent in Stratix10 because the double bit errors240are treated as SErrors in ARM64 instead of IRQs in ARM32.241242Required Properties:243- compatible : Should be "altr,socfpga-s10-ecc-manager"244- altr,sysgr-syscon : phandle to Stratix10 System Manager Block245containing the ECC manager registers.246- interrupts : Should be single bit error interrupt.247- interrupt-controller : boolean indicator that ECC Manager is an interrupt controller248- #interrupt-cells : must be set to 2.249- #address-cells: must be 1250- #size-cells: must be 1251- ranges : standard definition, should translate from local addresses252253Subcomponents:254255SDRAM ECC256Required Properties:257- compatible : Should be "altr,sdram-edac-s10"258- interrupts : Should be single bit error interrupt.259260On-Chip RAM ECC261Required Properties:262- compatible : Should be "altr,socfpga-s10-ocram-ecc"263- reg : Address and size for ECC block registers.264- altr,ecc-parent : phandle to parent OCRAM node.265- interrupts : Should be single bit error interrupt.266267Ethernet FIFO ECC268Required Properties:269- compatible : Should be "altr,socfpga-s10-eth-mac-ecc"270- reg : Address and size for ECC block registers.271- altr,ecc-parent : phandle to parent Ethernet node.272- interrupts : Should be single bit error interrupt.273274NAND FIFO ECC275Required Properties:276- compatible : Should be "altr,socfpga-s10-nand-ecc"277- reg : Address and size for ECC block registers.278- altr,ecc-parent : phandle to parent NAND node.279- interrupts : Should be single bit error interrupt.280281DMA FIFO ECC282Required Properties:283- compatible : Should be "altr,socfpga-s10-dma-ecc"284- reg : Address and size for ECC block registers.285- altr,ecc-parent : phandle to parent DMA node.286- interrupts : Should be single bit error interrupt.287288USB FIFO ECC289Required Properties:290- compatible : Should be "altr,socfpga-s10-usb-ecc"291- reg : Address and size for ECC block registers.292- altr,ecc-parent : phandle to parent USB node.293- interrupts : Should be single bit error interrupt.294295SDMMC FIFO ECC296Required Properties:297- compatible : Should be "altr,socfpga-s10-sdmmc-ecc"298- reg : Address and size for ECC block registers.299- altr,ecc-parent : phandle to parent SD/MMC node.300- interrupts : Should be single bit error interrupt for port A301and then single bit error interrupt for port B.302303Example:304305eccmgr {306compatible = "altr,socfpga-s10-ecc-manager";307altr,sysmgr-syscon = <&sysmgr>;308#address-cells = <1>;309#size-cells = <1>;310interrupts = <0 15 4>;311interrupt-controller;312#interrupt-cells = <2>;313ranges;314315sdramedac {316compatible = "altr,sdram-edac-s10";317interrupts = <16 IRQ_TYPE_LEVEL_HIGH>;318};319320ocram-ecc@ff8cc000 {321compatible = "altr,socfpga-s10-ocram-ecc";322reg = <ff8cc000 0x100>;323altr,ecc-parent = <&ocram>;324interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;325};326327emac0-rx-ecc@ff8c0000 {328compatible = "altr,socfpga-s10-eth-mac-ecc";329reg = <0xff8c0000 0x100>;330altr,ecc-parent = <&gmac0>;331interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;332};333334emac0-tx-ecc@ff8c0400 {335compatible = "altr,socfpga-s10-eth-mac-ecc";336reg = <0xff8c0400 0x100>;337altr,ecc-parent = <&gmac0>;338interrupts = <5 IRQ_TYPE_LEVEL_HIGH>'339};340341nand-buf-ecc@ff8c8000 {342compatible = "altr,socfpga-s10-nand-ecc";343reg = <0xff8c8000 0x100>;344altr,ecc-parent = <&nand>;345interrupts = <11 IRQ_TYPE_LEVEL_HIGH>;346};347348nand-rd-ecc@ff8c8400 {349compatible = "altr,socfpga-s10-nand-ecc";350reg = <0xff8c8400 0x100>;351altr,ecc-parent = <&nand>;352interrupts = <13 IRQ_TYPE_LEVEL_HIGH>;353};354355nand-wr-ecc@ff8c8800 {356compatible = "altr,socfpga-s10-nand-ecc";357reg = <0xff8c8800 0x100>;358altr,ecc-parent = <&nand>;359interrupts = <12 IRQ_TYPE_LEVEL_HIGH>;360};361362dma-ecc@ff8c9000 {363compatible = "altr,socfpga-s10-dma-ecc";364reg = <0xff8c9000 0x100>;365altr,ecc-parent = <&pdma>;366interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;367368usb0-ecc@ff8c4000 {369compatible = "altr,socfpga-s10-usb-ecc";370reg = <0xff8c4000 0x100>;371altr,ecc-parent = <&usb0>;372interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;373};374375sdmmc-ecc@ff8c8c00 {376compatible = "altr,socfpga-s10-sdmmc-ecc";377reg = <0xff8c8c00 0x100>;378altr,ecc-parent = <&mmc>;379interrupts = <14 IRQ_TYPE_LEVEL_HIGH>,380<15 IRQ_TYPE_LEVEL_HIGH>;381};382};383384385