arm: socfpga: dts: Add Arria10 SDRAM EDAC DTS support
authorThor Thayer <tthayer@opensource.altera.com>
Thu, 4 Jun 2015 14:28:48 +0000 (09:28 -0500)
committerBorislav Petkov <bp@suse.de>
Wed, 24 Jun 2015 16:16:10 +0000 (18:16 +0200)
Add support for the Arria10 SDRAM EDAC. Update the bindings document for
the new match string.

Signed-off-by: Thor Thayer <tthayer@opensource.altera.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: devicetree@vger.kernel.org
Cc: dinguyen@opensource.altera.com
Cc: galak@codeaurora.org
Cc: grant.likely@linaro.org
Cc: ijc+devicetree@hellion.org.uk
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: m.chehab@samsung.com
Cc: mark.rutland@arm.com
Cc: pawel.moll@arm.com
Cc: robh+dt@kernel.org
Cc: tthayer.linux@gmail.com
Link: http://lkml.kernel.org/r/1433428128-7292-5-git-send-email-tthayer@opensource.altera.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Documentation/devicetree/bindings/arm/altera/socfpga-sdram-edac.txt
arch/arm/boot/dts/socfpga_arria10.dtsi

index d0ce01d..f5ad0ff 100644 (file)
@@ -2,7 +2,7 @@ Altera SOCFPGA SDRAM Error Detection & Correction [EDAC]
 The EDAC accesses a range of registers in the SDRAM controller.
 
 Required properties:
-- compatible : should contain "altr,sdram-edac";
+- compatible : should contain "altr,sdram-edac" or "altr,sdram-edac-a10"
 - altr,sdr-syscon : phandle of the sdr module
 - interrupts : Should contain the SDRAM ECC IRQ in the
        appropriate format for the IRQ controller.
index 8a05c47..4be7596 100644 (file)
                        status = "disabled";
                };
 
+               sdr: sdr@ffc25000 {
+                       compatible = "syscon";
+                       reg = <0xffcfb100 0x80>;
+               };
+
+               sdramedac {
+                       compatible = "altr,sdram-edac-a10";
+                       altr,sdr-syscon = <&sdr>;
+                       interrupts = <0 2 4>, <0 0 4>;
+               };
+
                L2: l2-cache@fffff000 {
                        compatible = "arm,pl310-cache";
                        reg = <0xfffff000 0x1000>;