Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp290736imm; Fri, 1 Jun 2018 00:31:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJbG4bZX2xugdmn7leNVHntbL2wzb6Qx4i9VnlT6MXlJXZSIJs9RRd6viu/OM1j702cqhS3 X-Received: by 2002:a63:a05d:: with SMTP id u29-v6mr7983133pgn.80.1527838276445; Fri, 01 Jun 2018 00:31:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527838276; cv=none; d=google.com; s=arc-20160816; b=GN36UKMx1c2JHc14tP+ZOzJhV2NbheGL57+E5/lnb5rQM/rRK2brc+KOOuYyLRyrB+ 1JHx3EvhOwmgIipoIGqz/fWvTUChY7XtGk4NFeur4tHyiZN2aIk5MqZX//WUcqR3gf7p Wtxl4N9wPeqxekxLHBe8UcXe5vkGKWM+V3vlRPdfXcF6tlfnhngzPudOla1Z8swT7Sm+ f8P/G0A0ZWeE+oV4QWjkXith9wAk9T5Gdfav7lYL+S2vX7jwfgWx41xF71DzHNKjjudb Zb1Uiw/uyXeYWalFKSX3o1iCattashsYMwvc63OYb1/jlaKbR0fXqK81zJvA+2l2jAo4 +IUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=oKhoN9fsiTTO9djygLSCaC5jPiIh6HWcQVqtzxkcg5Y=; b=dD427u1DBakmDepkFBBG68wsmUWBML+G24XHiCYf0J3ItylwVvkOryLqiR1mcwb3vl cQMYFdh9dkL/bpXEB+5fIUbJhv98665gJikk/e18h67rOWGZO3QzxuMWdlIUsMlHWS92 hn9exhRK+CL6BGHSnjz5kJwK8bok+NzcxhwSaGDQIB0ogzxXjcAbfhbWc5fHvBaUW56D o9zjRWFYcv3iOO5f8NmX6IwUke0GNgzs2s0llBdS433J5ZfhDBl5WVm2zIBedWtf3vTr QuTx5+WJJ2f94RHnYc5pWyEtK2H1g9OzkuCBVuffXEwpobc6ZgQ3cKegJPv6p4pob7Zm g/CA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 59-v6si4475675plp.496.2018.06.01.00.30.59; Fri, 01 Jun 2018 00:31:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751005AbeFAHaa (ORCPT + 99 others); Fri, 1 Jun 2018 03:30:30 -0400 Received: from mail.bootlin.com ([62.4.15.54]:42825 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750796AbeFAHa2 (ORCPT ); Fri, 1 Jun 2018 03:30:28 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 422BD20750; Fri, 1 Jun 2018 09:30:26 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (AAubervilliers-681-1-125-111.w90-88.abo.wanadoo.fr [90.88.63.111]) by mail.bootlin.com (Postfix) with ESMTPSA id B5A4220728; Fri, 1 Jun 2018 09:30:25 +0200 (CEST) Date: Fri, 1 Jun 2018 09:30:25 +0200 From: Boris Brezillon To: Stefan Agner Cc: dwmw2@infradead.org, computersforpeace@gmail.com, marek.vasut@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, thierry.reding@gmail.com, benjamin.lindqvist@endian.se, pgaikwad@nvidia.com, dev@lynxeye.de, mirza.krak@gmail.com, richard@nod.at, pdeschrijver@nvidia.com, linux-kernel@vger.kernel.org, krzk@kernel.org, jonathanh@nvidia.com, devicetree@vger.kernel.org, linux-mtd@lists.infradead.org, marcel@ziswiler.com, miquel.raynal@bootlin.com, linux-tegra@vger.kernel.org, digetx@gmail.com Subject: Re: [PATCH v3 3/6] mtd: rawnand: tegra: add devicetree binding Message-ID: <20180601093025.2817ff30@bbrezillon> In-Reply-To: <20180531221637.6017-4-stefan@agner.ch> References: <20180531221637.6017-1-stefan@agner.ch> <20180531221637.6017-4-stefan@agner.ch> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 1 Jun 2018 00:16:34 +0200 Stefan Agner wrote: > This adds the devicetree binding for the Tegra 2 NAND flash > controller. > > Signed-off-by: Lucas Stach > Signed-off-by: Stefan Agner > --- > .../bindings/mtd/nvidia-tegra20-nand.txt | 64 +++++++++++++++++++ > 1 file changed, 64 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mtd/nvidia-tegra20-nand.txt > > diff --git a/Documentation/devicetree/bindings/mtd/nvidia-tegra20-nand.txt b/Documentation/devicetree/bindings/mtd/nvidia-tegra20-nand.txt > new file mode 100644 > index 000000000000..5cd984ef046b > --- /dev/null > +++ b/Documentation/devicetree/bindings/mtd/nvidia-tegra20-nand.txt > @@ -0,0 +1,64 @@ > +NVIDIA Tegra NAND Flash controller > + > +Required properties: > +- compatible: Must be one of: > + - "nvidia,tegra20-nand" As discussed previously, I prefer "nvidia,tegra20-nand-controller" or "nvidia,tegra20-nfc". > +- reg: MMIO address range > +- interrupts: interrupt output of the NFC controller > +- clocks: Must contain an entry for each entry in clock-names. > + See ../clocks/clock-bindings.txt for details. > +- clock-names: Must include the following entries: > + - nand > +- resets: Must contain an entry for each entry in reset-names. > + See ../reset/reset.txt for details. > +- reset-names: Must include the following entries: > + - nand > + > +Optional children nodes: > +Individual NAND chips are children of the NAND controller node. Currently > +only one NAND chip supported. > + > +Required children node properties: > +- reg: An integer ranging from 1 to 6 representing the CS line to use. > + > +Optional children node properties: > +- nand-ecc-mode: String, operation mode of the NAND ecc mode. Currently only > + "hw" is supported. > +- nand-ecc-algo: string, algorithm of NAND ECC. > + Supported values with "hw" ECC mode are: "rs", "bch". > +- nand-bus-width : See nand.txt > +- nand-on-flash-bbt: See nand.txt > +- nand-ecc-strength: integer representing the number of bits to correct > + per ECC step (always 512). Supported strength using HW ECC > + modes are: > + - RS: 4, 6, 8 > + - BCH: 4, 8, 14, 16 > +- nand-ecc-maximize: See nand.txt > +- nand-is-boot-medium: Makes sure only ECC strengths supported by the boot ROM > + are choosen. > +- wp-gpios: GPIO specifier for the write protect pin. > + > +Optional child node of NAND chip nodes: > +Partitions: see partition.txt > + > + Example: > + nand@70008000 { nand-controller@70008000 { > + compatible = "nvidia,tegra20-nand"; compatible = "nvidia,tegra20-nand-controller"; or compatible = "nvidia,tegra20-nfc"; > + reg = <0x70008000 0x100>; > + interrupts = ; > + clocks = <&tegra_car TEGRA20_CLK_NDFLASH>; > + clock-names = "nand"; > + resets = <&tegra_car 13>; > + reset-names = "nand"; > + > + nand-chip@0 { nand@0 { > + reg = <0>; > + #address-cells = <1>; > + #size-cells = <1>; > + nand-bus-width = <8>; > + nand-on-flash-bbt; > + nand-ecc-algo = "bch"; > + nand-ecc-strength = <8>; > + wp-gpios = <&gpio TEGRA_GPIO(S, 0) GPIO_ACTIVE_LOW>; > + }; > + }; With this addressed, Reviewed-by: Boris Brezillon