[PATCH 4/4] ARM: dt: mvebu: ix4-300d: Add ECC properties to NAND flash

Sebastian Hesselbarth sebastian.hesselbarth at gmail.com
Sat Nov 28 03:14:08 PST 2015

The NAND device found on Lenovo ix4-300d uses 4-bit BCH ECC protection.
Add the corresponding properties to the NAND node.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth at gmail.com>
Cc: Jason Cooper <jason at lakedaemon.net> 
Cc: Andrew Lunn <andrew at lunn.ch>
Cc: Gregory Clement <gregory.clement at free-electrons.com> 
Cc: Rob Herring <robh+dt at kernel.org> 
Cc: Pawel Moll <pawel.moll at arm.com> 
Cc: Mark Rutland <mark.rutland at arm.com> 
Cc: Ian Campbell <ijc+devicetree at hellion.org.uk> 
Cc: Kumar Gala <galak at codeaurora.org> 
Cc: Russell King <linux at arm.linux.org.uk> 
Cc: Benoit Masson <yahoo at perenite.com>
Cc: linux-arm-kernel at lists.infradead.org 
Cc: devicetree at vger.kernel.org 
Cc: linux-kernel at vger.kernel.org 
 arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts b/arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts
index 13cf69a8d0fb..e4bf83c4bd2f 100644
--- a/arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts
+++ b/arch/arm/boot/dts/armada-xp-lenovo-ix4-300d.dts
@@ -150,6 +150,8 @@
+				nand-ecc-strength = <4>;
+				nand-ecc-step-size = <512>;
 				partitions {
 					#address-cells = <1>;

More information about the linux-arm-kernel mailing list