From patchwork Wed Jun 9 11:44:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 12309933 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6FBA0C48BD1 for ; Wed, 9 Jun 2021 12:04:12 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3C74D613BA for ; Wed, 9 Jun 2021 12:04:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3C74D613BA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WAFyQmpGgYqTQjKrrda1L59DpIzNU5DIg4cNtUiv1Ks=; b=vO3ErgJtFU02M5 34j24QgIsR06Jc7n9JUvyIN9KqxGzdtudV3gLlBd+05pljXKzFM0b/NkEDjXR+ucmLgXj3ix8tj1+ V1V7q80N0ibQp62zZTPwrtgAc7nnslBk8/2AlplpVxVPjng8+XcaznAkHNen4X0yhALZaBes76jBH S/8Oa5XgwxJpiKHrtr0zj5x41o2HDGpJjOYlmzT+W02sFORSgfqVV5SVn5RWe5fLSCwqS7c4hMnUQ cWu1w+sWNAXE/Ztpg0XbekPlODYjoa5KHnOERP+wkzCCfAEW7Bdl78Usen2BY8NJExNH8xOxxtIj8 wmgO4gjYOJsu8E9zCwsA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqwtu-00DWNB-9J; Wed, 09 Jun 2021 12:01:39 +0000 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqweZ-00DPzC-1v for linux-arm-kernel@lists.infradead.org; Wed, 09 Jun 2021 11:45:48 +0000 Received: by mail-wr1-x42f.google.com with SMTP id c5so25087930wrq.9 for ; Wed, 09 Jun 2021 04:45:46 -0700 (PDT) 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:in-reply-to:references :mime-version:content-transfer-encoding; bh=TgZ5B4J502ii7Dy6GCLNVKtli/unOViiMaRQaClYuVI=; b=rSYkJPLEqoeYbB3sXP+5MCnQ0t70j4u5kRk1ljAgJyOul11NvFJwZynxEWANTep7v+ 1sdzv3ypm3QWK9y3kig3skcYg++N0UZlcG4STMM+zsMJwO/+A3f+OUaFEhWJdNbGwg6p rlfforaloP0ks6bVk5dbiHjgr8u68Hfzpd8Y4u9R4Ir3f2bd5E6JXeWBtYqWBQ7ChTqy UTXzgQT6JQOyN4qrpuhdbgINq0049UFQr8MbDv30zQXimKISyH3JxhYtPBnr0MSW+6G5 zGbrpTHVmunlB2bOj8NAtLCTmnoFuV2o0wuVxUGsqFQPNzHBQ0fD8sH+Oc5ThsQPVlrj ZcgQ== 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 :in-reply-to:references:mime-version:content-transfer-encoding; bh=TgZ5B4J502ii7Dy6GCLNVKtli/unOViiMaRQaClYuVI=; b=gzXv2HIrGEaHnoH66unk2orMu2/QmCIgV5GnbpAxYZrd4EbZ6kueLTWX4FKV4saUNZ lo5iS2WpXq0Kz59oxe4GOllC3vVZgGtoqQwZR2XDVVFdLXuF0y0UjptJbOIbNqkXn2vt 5ay6nO7dzGRvPjxBsDQqxo29QBawa7ivOA/WKawfbb/Nq3/sNFM+lJ2IOp+1QS45VSiP WrXsRbBsZusaufC2JKKdngW9Uid0niwmM10cxb4foxwDTNvKHyHhLcEk9MWSDd6yT+gs YuXkZwR/VLwx8j7VG/d9pIRUvh4L37Hlik0IiLLVAbPL86+VxtCc5FbsWrRW0pxBNQkc 7/aA== X-Gm-Message-State: AOAM532FVeSw4k/IrwhCBbXreofxsm0X9ECs9X709ZC85SVRdc7K8TyP 9uP8ruHXrOla4e+M1LSw5yKwdQ== X-Google-Smtp-Source: ABdhPJx+JfhhubBypEm5y+nRpda2i6WKRLjb8dclWxrl36b65HCEpQGNaUCkimjH85vz8bNMEeTyow== X-Received: by 2002:adf:e5c7:: with SMTP id a7mr27471448wrn.117.1623239145245; Wed, 09 Jun 2021 04:45:45 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6::45a]) by smtp.gmail.com with ESMTPSA id k11sm5911750wmj.1.2021.06.09.04.45.44 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 09 Jun 2021 04:45:44 -0700 (PDT) From: Michal Simek To: linux-kernel@vger.kernel.org, monstr@monstr.eu, michal.simek@xilinx.com, git@xilinx.com, Viresh Kumar Cc: Amit Kumar Mahapatra , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 14/31] arm64: zynqmp: Enable nand driver for dc2 and dc3 Date: Wed, 9 Jun 2021 13:44:50 +0200 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210609_044547_170590_A6A4AE8D X-CRM114-Status: GOOD ( 12.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add description for nand devices on zc1751 dc2 and dc3 boards. Signed-off-by: Michal Simek --- .../dts/xilinx/zynqmp-zc1751-xm016-dc2.dts | 26 +++++++++++++++++++ .../dts/xilinx/zynqmp-zc1751-xm017-dc3.dts | 9 ++++++- 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm016-dc2.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm016-dc2.dts index 1ac105a82e1b..4b4c19034fe1 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm016-dc2.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm016-dc2.dts @@ -127,6 +127,32 @@ rtc@68 { }; }; +&nand0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_nand0_default>; + arasan,has-mdma; + + nand@0 { + reg = <0x0>; + #address-cells = <0x2>; + #size-cells = <0x1>; + nand-ecc-mode = "soft"; + nand-ecc-algo = "bch"; + nand-rb = <0>; + label = "main-storage-0"; + }; + nand@1 { + reg = <0x1>; + #address-cells = <0x2>; + #size-cells = <0x1>; + nand-ecc-mode = "soft"; + nand-ecc-algo = "bch"; + nand-rb = <0>; + label = "main-storage-1"; + }; +}; + &pinctrl0 { status = "okay"; pinctrl_can0_default: can0-default { diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm017-dc3.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm017-dc3.dts index 4ea6ef5a7f2b..ba7f1f21c579 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm017-dc3.dts +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm017-dc3.dts @@ -2,7 +2,7 @@ /* * dts file for Xilinx ZynqMP zc1751-xm017-dc3 * - * (C) Copyright 2016 - 2019, Xilinx, Inc. + * (C) Copyright 2016 - 2021, Xilinx, Inc. * * Michal Simek */ @@ -107,6 +107,13 @@ &i2c1 { clock-frequency = <400000>; }; +/* MT29F64G08AECDBJ4-6 */ +&nand0 { + status = "okay"; + arasan,has-mdma; + num-cs = <2>; +}; + &rtc { status = "okay"; };