]> git.itanic.dy.fi Git - linux-stable/commitdiff
arm64: dts: ti: k3-am64-main: Add ELM (Error Location Module) node
authorRoger Quadros <rogerq@kernel.org>
Tue, 2 Aug 2022 10:44:56 +0000 (13:44 +0300)
committerVignesh Raghavendra <vigneshr@ti.com>
Thu, 1 Sep 2022 10:08:44 +0000 (15:38 +0530)
The ELM module is used for GPMC NAND accesses for detecting
and correcting errors during reads due to NAND bitflips errors.

4-, 8-, and 16-bit error-correction levels are supported using
the BCH (Bose-ChaudhurI-Hocquenghem) algorithm.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Bryan Brattlof <bb@ti.com>
Link: https://lore.kernel.org/r/20220802104456.11069-3-rogerq@kernel.org
arch/arm64/boot/dts/ti/k3-am64-main.dtsi
arch/arm64/boot/dts/ti/k3-am642-evm.dts
arch/arm64/boot/dts/ti/k3-am642-sk.dts

index 14238bac71e74e10c2caa089598c619bbf2b4d93..d6aa23681bbe51d9b624c5473e9b2cc766c079ed 100644 (file)
@@ -1347,4 +1347,13 @@ gpmc0: memory-controller@3b000000 {
                gpio-controller;
                #gpio-cells = <2>;
        };
+
+       elm0: ecc@25010000 {
+               compatible = "ti,am64-elm";
+               reg = <0x00 0x25010000 0x00 0x2000>;
+               interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>;
+               power-domains = <&k3_pds 54 TI_SCI_PD_EXCLUSIVE>;
+               clocks = <&k3_clks 54 0>;
+               clock-names = "fck";
+       };
 };
index eaaedd5e062f98e967dad26d24e785e9d9295e69..5cf913860f800e1415b79b73c9dc1a1aedf5472e 100644 (file)
@@ -680,3 +680,7 @@ &main_mcan1 {
 &gpmc0 {
        status = "disabled";
 };
+
+&elm0 {
+       status = "disabled";
+};
index 360c177459e691d0d0968fd02c5ba8c8f6ad3665..57c3951f14c25bbfba7e8283d3aa48a7e5dc15f6 100644 (file)
@@ -611,3 +611,7 @@ &main_mcan1 {
 &gpmc0 {
        status = "disabled";
 };
+
+&elm0 {
+       status = "disabled";
+};