From patchwork Tue Feb 23 13:53:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1443502 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=QNPlpD9Y; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DlLBR46bnz9sVr for ; Wed, 24 Feb 2021 00:54:07 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 91B0C82A0D; Tue, 23 Feb 2021 14:54:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=monstr-eu.20150623.gappssmtp.com header.i=@monstr-eu.20150623.gappssmtp.com header.b="QNPlpD9Y"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8CB5682A16; Tue, 23 Feb 2021 14:54:02 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A3894827BE for ; Tue, 23 Feb 2021 14:53:59 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ej1-x62b.google.com with SMTP id hs11so34730072ejc.1 for ; Tue, 23 Feb 2021 05:53:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=09LU3mRa59HbBTiyi3wGL3bt7xZ6bqlBnsGJI1ourVY=; b=QNPlpD9YCsn/uLqUZCTU9FavVBOcdCDLcq3yhNYVWblJiWR7ZNed5+q+YGB0bZVaT4 9vIbOxVNLJMGv7Ts5db4rKi6cxteLvT3ivmuX6ihuYUw+ibn+C8odZyjPK+pvJv+qCAM ZtP2wX2V66s4oTuPeg9BUoMu1ptEXr9bP964nvhoG2VB7jUN3eW50qULF1ZeU0DCPMiD mlaifbOGvUTLt9MVHCs5KXHijDJVLFcuImdKFNuS8dNMiIF27dgkGMxo3IlieZEQvNdv ARFpRBtq9xpu5BViELKuC2SkVONJIUepsSqzv0RHTcqfVgKJTmoCAFeOqLpcUsTLnHMo txLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=09LU3mRa59HbBTiyi3wGL3bt7xZ6bqlBnsGJI1ourVY=; b=Lc7tNZVN8m+K+6CiGN6Bj+T9YvKR0DftQxj1ZIiN+/i6YsjfGuAlydtJHuMpEjD0rn 5UT3t+USWZIy4l6ZaSzmghWGzaQ2b3hWFZyjaio2MTsZMElJXdphZIX8BnZtWaQ2qULY ItWd4M7yOsxiIw7VlZwYoRXbXcj5vxvrolWSQ6Uquu7W6U+ygeLMcrMRGVBIqxg4g6xY k8J+HVB+MINYp9WJVMi3A+QwLQFg9fIIPCdXItThWYLTGuZxoohqKysWUA0At3fqCxWs sGxlmMAfoDhn7Y19oES+dIySwKxMMFtqudsZACS8jyYyRYZIR60Yq6uhofIPPBkVKZub Slmw== X-Gm-Message-State: AOAM533e7QVzscE8uIVGQkgE+IZlYwn1XmQy8MyuCLbGKh3TX4A57oyy BAvPqTg+Pneu4ZHGaolFbWHNTz7JxJ3EUCZL X-Google-Smtp-Source: ABdhPJzEMU4Jn5rsZ2uHI4xdoAwESUlOKXF1d48OVoZB4dLgbL7b9Na/eEoGO2kyuBfuyGMNy+TqwQ== X-Received: by 2002:a17:907:2109:: with SMTP id qn9mr26315261ejb.32.1614088439123; Tue, 23 Feb 2021 05:53:59 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id r11sm14641335edt.58.2021.02.23.05.53.58 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Feb 2021 05:53:58 -0800 (PST) From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Amit Kumar Mahapatra Subject: [PATCH] arm64: zynqmp: Update device tree properties for nand flash Date: Tue, 23 Feb 2021 14:53:57 +0100 Message-Id: X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean From: Amit Kumar Mahapatra Update the following device tree properties for nand flash - Set software ecc mode. - Set bch as ecc algo. - Set read block to 0. Signed-off-by: Amit Kumar Mahapatra Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-zc1751-xm016-dc2.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/zynqmp-zc1751-xm016-dc2.dts b/arch/arm/dts/zynqmp-zc1751-xm016-dc2.dts index 92d938d665d2..3204456e6451 100644 --- a/arch/arm/dts/zynqmp-zc1751-xm016-dc2.dts +++ b/arch/arm/dts/zynqmp-zc1751-xm016-dc2.dts @@ -124,6 +124,10 @@ reg = <0x0>; #address-cells = <0x2>; #size-cells = <0x1>; + nand-ecc-mode = "soft"; + nand-ecc-algo = "bch"; + nand-rb = <0>; + label = "main-storage-0"; partition@0 { /* for testing purpose */ label = "nand-fsbl-uboot"; @@ -154,6 +158,10 @@ reg = <0x1>; #address-cells = <0x2>; #size-cells = <0x1>; + nand-ecc-mode = "soft"; + nand-ecc-algo = "bch"; + nand-rb = <0>; + label = "main-storage-1"; partition@0 { /* for testing purpose */ label = "nand1-fsbl-uboot";