Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9C37EC433F5 for ; Fri, 8 Apr 2022 10:28:08 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 20EC083ABC; Fri, 8 Apr 2022 12:28:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id D104583AB6; Fri, 8 Apr 2022 12:28:03 +0200 (CEST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6762F83ABC for ; Fri, 8 Apr 2022 12:28:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=marcel@ziswiler.com Received: from toolbox.int.toradex.com ([81.221.85.15]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LjHC5-1oGDWv2h3v-00dWoY; Fri, 08 Apr 2022 12:27:47 +0200 From: Marcel Ziswiler To: u-boot@lists.denx.de Cc: Fabio Estevam , Han Xu , Miquel Raynal , "NXP i . MX U-Boot Team" , Stefano Babic , Marcel Ziswiler Subject: [PATCH v1 19/24] colibri-imx6ull: fix nand bch geometry Date: Fri, 8 Apr 2022 12:27:41 +0200 Message-Id: <20220408102741.351421-1-marcel@ziswiler.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220408080719.342072-1-marcel@ziswiler.com> References: <20220408080719.342072-1-marcel@ziswiler.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:3WQDujbW4hLROR7p34X2oEyWoEt/UtkT27okfZ5khZPqStD/zyU MstWJhTfjGXGU4eLFm6oZDgjTtvAdqO8C8ZFe2P4vt9jDBmdpltxbIwZG/0sFANpvgj6ZQW sbamfIqnwqAZrFVUgbfiWtx3dpSdeAXNnVb8Wym3yBcoDE3pyZcy5yv1gNGceasfXLf5apL j/vE5po9SOER0xgwAdHfg== X-UI-Out-Filterresults: notjunk:1;V03:K0:CEtsxddSbpI=:gd7NjXjiyh30z5VeDSocmK jeGydxJh5xP75E49hFbJnrSLn/KTzCcEYc9ZZEiZ5GjEKsXJIzmt/FHqUClSIi/xgi/uMnCQt DwReq6pJDFsGxuvBh9pGacL65jDPhYOQyaPD2aMcvrjyo3mmKHVwD4PUjxBGygPN05tP+LPvS 03hAwamedtH8y/c2OIT68g8ZGnE0mhelQii0CfVl1xFHJqaIp0fhPlCm+R8gBWYKzswMgiJ2M nAwEoG5hKVEx1sGy44ay4QeP+P9R0Wq/L8pzas+qVr+QIaYbc8YoeinOAGvwqP/veV7R1Ey1g tIaO6IK+DG9dRfN0EsTSO+vJYUbnIF5WID6O/DX7BwsDASX9ffW946osKTqJZ8PzSUiN/6lp+ 1WvH+ZBCOspoqLXDLjmaQ3HX807mP3/TCuszhpcnW1jVAKyRSM3eecaoJjWaWcwG1vVCiNAa7 HKdH/48aiIR3IOFz2YxPm612cYlic7OjJCJ/l3Eh/R68q54HenGyErkmbt7ptnC5OwsUKDuxN wW/vZPSRp94o5uiRKMuiOoEIYW95s8KlsiYADrlD+0LG+wItQ8oJJK5GxFQuXXPoefcTzLDyU PtlI0dc39ybKFGuIx4FDVsdM5vOcYxQmPGsOXulC1jXqGmbi0sy86cbx+5oAGDAC4bqrMQZoN A/PT26F6q6mBvnv8C/h/QPZPDDCtEiE+c+yoF/jJ4Vgh4MxH3CgGp2CLxMO0O/lnEhnE= X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean From: Marcel Ziswiler Fix NAND BCH geometry as otherwise the following errors are observed upon boot: ... Loading Environment from NAND... NAND read from offset 380000 failed -74 ... NAND read from offset 800 failed -74 ... ubi0 error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read 64 bytes ... Fixes: ed48490f8d3f ("mtd: gpmi: fix the bch setting backward compatible issue") Signed-off-by: Marcel Ziswiler --- arch/arm/dts/imx6ull-colibri.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/imx6ull-colibri.dts b/arch/arm/dts/imx6ull-colibri.dts index dbe3e0206e5..d59696ee6e7 100644 --- a/arch/arm/dts/imx6ull-colibri.dts +++ b/arch/arm/dts/imx6ull-colibri.dts @@ -15,6 +15,7 @@ &gpmi { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpmi_nand>; + fsl,use-minimum-ecc; nand-on-flash-bbt; nand-ecc-mode = "hw"; nand-ecc-strength = <8>; -- 2.34.1