From 6b11f0ec83ceb9747dcbb0ffca0882b90da46b59 Mon Sep 17 00:00:00 2001
From: Alexander Friese <af944580@googlemail.com>
Date: Wed, 12 Jul 2023 16:46:01 +0200
Subject: [PATCH] ipq4019: fix support for AVM FRITZ!Repeater 3000

new versions of the device have NAND with 8bit ECC
which was not yet supported before. This change removes
ECC restrictions.

Signed-off-by: Alexander Friese <af944580@googlemail.com>
---
 .../arch/arm/boot/dts/qcom-ipq4019-fritzrepeater-3000.dts      | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-fritzrepeater-3000.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-fritzrepeater-3000.dts
index 8d88bc15211..41dec725424 100644
--- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-fritzrepeater-3000.dts
+++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4019-fritzrepeater-3000.dts
@@ -121,6 +121,9 @@
 	status = "okay";
 
 	nand@0 {
+		/delete-property/ nand-ecc-strength;
+		/delete-property/ nand-ecc-step-size;
+
 		partitions {
 			compatible = "fixed-partitions";
 			#address-cells = <1>;