Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp637411imm; Wed, 6 Jun 2018 03:39:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLh2Q5SaOcwd0GEP1PMsmRqMKw9hJlmiMPDpM61O0CXu6XWB8XqedekiWbpvUvZl/hKOrvy X-Received: by 2002:a63:6584:: with SMTP id z126-v6mr2138629pgb.168.1528281593207; Wed, 06 Jun 2018 03:39:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528281593; cv=none; d=google.com; s=arc-20160816; b=jg/DgybU4tuowYPKBKEs+oQMwgPVy1BcI93OSLJI/5pKxznbtkOOQjsvjwJTxQP5A3 jt0BzGOWAoj+upZgwhYzKViHYvXWABS/rUKodL6ngxlcA3ihPR9P/hYNG4VnGIZOpt8W 2ukZ5vptG25ZFZ9m6U+PG7x2/Jm9eY31vJz+i2uxtESZnZEhXR+9qdIeOVi7QcsvpuJV WNyVHnDPpur5TKs87+KuMhI8fw21wO8EPPJeuqlYZAc+WYo6thOyRHyABM8vjHQySg01 tlDrHj/4KFOnh9etvctY7xPMlHjKdaa78WPJe5RN9nzvL2/n69axFoat9bGWCDGIkbON cLRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=xRuZ9TRxvWMeP8Vxhwdywer3zoq3qWZz3Tc+3Te380Q=; b=dW2b67F6UUXnal6ulGNgb16qIsR7aaqNcKcaPJfi7tCMXjlw+YjUjzHOWyf5qutrkY lHfezFeg36tw/tn6yPCPFBkYvQ/Ya0lNSThX1+GUpBLJL6nwQLsgkJjmH2deomz62vUC S7vvjXR4z8arTgtyEn/67kWDn0VtkEaP339drR7aBN33mEII8CuZI81VwhdgolI8o1Gr uRwv1zhLcl9Pr+EbgtZOSD18wNA7rV5bLfA4yGab8I2Y+3fQTamltIOiJvgEDeNKNwmH 0yrSoH/9YmiKevTRmZoHYqHhUr3XKOrE1d9Q+8h2OjiDS2atq2r3vqTsZU6TO8N4k0n3 kEZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W773ODwd; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b75-v6si11816918pfd.41.2018.06.06.03.39.39; Wed, 06 Jun 2018 03:39:53 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=W773ODwd; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932647AbeFFKjJ (ORCPT + 99 others); Wed, 6 Jun 2018 06:39:09 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:41314 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932522AbeFFKjH (ORCPT ); Wed, 6 Jun 2018 06:39:07 -0400 Received: by mail-wr0-f196.google.com with SMTP id h10-v6so5715287wrq.8; Wed, 06 Jun 2018 03:39:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=xRuZ9TRxvWMeP8Vxhwdywer3zoq3qWZz3Tc+3Te380Q=; b=W773ODwdUQCvCKIrLWWsi1y+ohKCcb72or2MGyR7m/T+hFRJ/0jWKOb0Z1bUiA07X7 oHAIuE8oDcodAA3QKiCGucKZRHChXUijxG1FYfzE4rUZqcBwtiNTQH6SsYsZkeDfmu4y /ae3/iCNJwesq2vrH5XAIgnLMwskXTHpnMkn5j/QVSH9h5v+YBoMZYA7orczbWi9Vrhm lpYT7zQwlplY4gZVuTMk3kaumWNy/Mj7LH9mu03C//ifd+DAFde9k7H/u5bE3fqeMsv7 BpWtYWwFLAoj0EcDI3S7ZO4AH/HsGbzNavZYbQuCFO6vzAyGPX7K2OA3MbA317+YapVA WIog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=xRuZ9TRxvWMeP8Vxhwdywer3zoq3qWZz3Tc+3Te380Q=; b=YnTkJ1QihT5LK2ouRqRVm8TZFXJmd34J25EBetCHU5vfdf25H59avOiy/TrtgPkben kMdeNQoerzOo/dp+pjHO+kggyy8Kdb8jIKu9jE99h8c7l+fYzZ6Vol8r227fIBjCQ54+ EIaWAt6oO3HQ98t4S0yvm46+eAN4xEwaqP+bNjMO7y3Z+ozgQA0IgvT9EV2LlX9D84+/ z/tVU3FTNzaBa5v2Sv9Er8yaI0+lpNTb9TiIS4ur/mbpc2KYTUtMsLL/9OtY2OudKSV5 tPb/oVnwa0t9nrQ9S8QXsyQMy+Hyxw2Q2o0rJwQZ2es5JHbrOfXV/a9FL8Dkq7CyeQrh imqg== X-Gm-Message-State: APt69E3Y98v5SrulAt/FnyXFdn8uKy7pjwiNDY54buaH9luoYswk906c RSwawWj+8w3KAgt/aTsm3rc= X-Received: by 2002:adf:ff09:: with SMTP id k9-v6mr2085096wrr.15.1528281545481; Wed, 06 Jun 2018 03:39:05 -0700 (PDT) Received: from localhost (pD9E510DD.dip0.t-ipconnect.de. [217.229.16.221]) by smtp.gmail.com with ESMTPSA id w15-v6sm23511608wro.52.2018.06.06.03.39.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Jun 2018 03:39:04 -0700 (PDT) Date: Wed, 6 Jun 2018 12:39:03 +0200 From: Thierry Reding To: Dmitry Osipenko Cc: Boris Brezillon , Stefan Agner , dwmw2@infradead.org, computersforpeace@gmail.com, marek.vasut@gmail.com, robh+dt@kernel.org, mark.rutland@arm.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 Subject: Re: [PATCH v3 3/6] mtd: rawnand: tegra: add devicetree binding Message-ID: <20180606103903.GJ11810@ulmo> References: <20180531221637.6017-1-stefan@agner.ch> <20180531221637.6017-4-stefan@agner.ch> <20180601093025.2817ff30@bbrezillon> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="C7PTD44AewjTsiSV" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --C7PTD44AewjTsiSV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 05, 2018 at 11:19:14PM +0300, Dmitry Osipenko wrote: > On 01.06.2018 10:30, Boris Brezillon wrote: > > On Fri, 1 Jun 2018 00:16:34 +0200 > > Stefan Agner wrote: > >=20 > >> 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-tegra= 20-nand.txt > >> > >> diff --git a/Documentation/devicetree/bindings/mtd/nvidia-tegra20-nand= =2Etxt 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" > >=20 > > As discussed previously, I prefer "nvidia,tegra20-nand-controller" or > > "nvidia,tegra20-nfc". > >=20 > >> +- 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. Curre= ntly > >> +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. Current= ly 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 corre= ct > >> + 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 { > >=20 > > nand-controller@70008000 { > >=20 > >> + compatible =3D "nvidia,tegra20-nand"; > >=20 > > compatible =3D "nvidia,tegra20-nand-controller"; > >=20 > > or > >=20 > > compatible =3D "nvidia,tegra20-nfc"; > >=20 >=20 > Maybe it's just me, but when I'm reading "nfc", my first association is t= he > "Near Field Communication". Probably an explicit > "nvidia,tegra20-nand-controller" variant is more preferable. We don't really use a -controller suffix for any of the other controllers because it is kind of implied. "nfc" is also not something that is ever referred to in the technical documentation. "nvidia,tegra20-nand" would be most consistent with all the rest of Tegra (c.f. "nvidia,tegra*-ahci", "nvidia,tegra*-pci", "nvidia,tegra*-hda", "nvidia,tegra*-gmi", ...). Thierry --C7PTD44AewjTsiSV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlsXucMACgkQ3SOs138+ s6GOsQ/+P8gS5IrroBpzAwxFRbZlyPPj/3aDsFLrE/fNJTmO1q6w2rS+9WdTvoju TdVzh0ljfD/HLvav4uMBKcnDwhy4izEdL7qDE/lnU6zelFoRRayzGOKg3wrFK8LT 2+aGutUIHrGZpLNyINDpeeRd1G2KF7nVvAb2LkBlqpgpB3Eqt6Y5LXQRsC2WzIN6 ZYH/1QFDMtX6xj5rfvBWG+fcV86WJw032YUKaW3sWIrE3Vio9/RQ9m++BqXcCPdC f1m4EVSbfBMwVJRvWDngRL8pO+MdkyawNCeoTzjf/cb54GKYTdY4ENWUBf0YKNKb tZpe70dUBYnRB8VJIGZEoTgRvW8qqbRxk04AltmhDIKqIld6T8Zfst47/DHq44H+ JgmBnnEKC2HYq0L0KlzRmQ7Az/4AZtmgQhLYdL3/8B5KuJrPQQE5M6GEpSp/KBQW LhGMMk2YDVriI4Yb3w+yt5E9ftuTQ1vrtXkrMazTkfImKQIe+qz+W4eJaX45KefV WhNRu68OvcE+Oa0VO8k7PKUSe0B+79yzsHEqgsyQwH4EmEwAtf7BOC0aOTrJBRMR dTXCvmkjK8bxSk36YT/IynfcqqJSyGlDEUqKbazxVqTWDogO7fO/zghebY9Lb+Fv sF7o97IyifBg5+Ow7o00oY37SaKGB3nO7Dcqv5nqWDYjqodPwec= =7lox -----END PGP SIGNATURE----- --C7PTD44AewjTsiSV--