Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3210033imm; Sun, 24 Jun 2018 14:29:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLZSTK6i4nzH5lrw8pcJJzNPcBwlw8bYgL64PBTLEZWDU8oseaO2NhHimsPGooYXcI6d3Em X-Received: by 2002:a17:902:2884:: with SMTP id f4-v6mr9874252plb.204.1529875753412; Sun, 24 Jun 2018 14:29:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529875753; cv=none; d=google.com; s=arc-20160816; b=OxqG+YmjCzSsw1e+7uzWomRK2m1bdJfb5Yp1O9HOKFIbS1hxZUYLs3UJWNShqqkZWV lnxLQdbNOS/jdQX4ZK+LRVaIaGxlv7iQL+rO7Kzw/7FJOVmCD/BFs6Jqv3RLD12C9gLB 93qcYzzrT4uUxq/QV9l/6Fve8jgV1YxaYNIabIWfJh/oC4sQdkIF8TDIGI+qrD1PP0EG VmltxmWMqtDO+z8h1TU5MgUPoVB7Q/O1GmxsokKZQh7tHujQfF+zicD14T8QgSeDsQTJ u3xw5KQ1yQ+LewuvS1gIcqc2HOChWCOHZtvnwyaDWXSOa8Mge2QJOKICdW3ZnXHJ2/SK IFYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=nhLGt2lu0hppsH+1C07DYqtfwF4yGEPtA8PyqRFyNxw=; b=i1LZq2SRyy+N/tkpvAAeJg+h0TwUHJom7iyN28nshHEA3iO/uiJxgiJ2azrhEGO4vS VQfrs7wxlP2a4KLrFByPVxaVU8legQ1Jddm+XAoVM/TPTEft6I9RZom0U6cxlm04jIBM YHg6jpUG5hhzyFqwwvrCVe4B+Ew4GGlKBae4CIElQNBQDQOsXS/rHwDnZWt94fY9sNHt /0AsLIKukK7VCls8X3hgvj74/ZLO0zgyOuopVj00twRP4dF2igENXFyovbZ40wVLtE0Z JxJhlvE1fWugM/BYiJw9/Bn1YnDFpfMCchF4Chlzw5/NO3c247WJvhEc5qOFHQOk6ex0 ZwBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=TbxMZyqB; 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 f28-v6si12515359pfd.123.2018.06.24.14.28.46; Sun, 24 Jun 2018 14:29:13 -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=@agner.ch header.s=dkim header.b=TbxMZyqB; 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 S1752203AbeFXV1i (ORCPT + 99 others); Sun, 24 Jun 2018 17:27:38 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:37188 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751838AbeFXV1b (ORCPT ); Sun, 24 Jun 2018 17:27:31 -0400 Received: from trochilidae.lan (unknown [IPv6:2a02:169:34d6:10::3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id E5FC25C1C1E; Sun, 24 Jun 2018 23:27:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1529875650; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nhLGt2lu0hppsH+1C07DYqtfwF4yGEPtA8PyqRFyNxw=; b=TbxMZyqBFbt6ILmjB6eNhOh5qxeNrlncaIPcq8t5cxk0i1owdtFt92vP2KnzQNbZKsX7hK kB/G2YXyvSrrsbdDz0Jnm5CTwvIkV/mVxu+8a+R3cLW8TKzBQUa/8k6e41JVBaPKHKQ7p0 feMYszBOkXZbXXxJ29YE02KZL5oJkfc= From: Stefan Agner To: boris.brezillon@bootlin.com, dwmw2@infradead.org, computersforpeace@gmail.com, marek.vasut@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, thierry.reding@gmail.com Cc: dev@lynxeye.de, miquel.raynal@bootlin.com, richard@nod.at, marcel@ziswiler.com, krzk@kernel.org, digetx@gmail.com, benjamin.lindqvist@endian.se, jonathanh@nvidia.com, pdeschrijver@nvidia.com, pgaikwad@nvidia.com, mirza.krak@gmail.com, gaireg@gaireg.de, linux-mtd@lists.infradead.org, linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Agner Subject: [PATCH v8 3/6] mtd: rawnand: tegra: add devicetree binding Date: Sun, 24 Jun 2018 23:27:24 +0200 Message-Id: <20180624212727.21672-4-stefan@agner.ch> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180624212727.21672-1-stefan@agner.ch> References: <20180624212727.21672-1-stefan@agner.ch> X-Spamd-Result: default: False [-2.10 / 15.00]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_TWELVE(0.00)[24]; BAYES_HAM(-3.00)[100.00%]; TAGGED_RCPT(0.00)[dt]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_SIGNED(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; MID_CONTAINS_FROM(1.00)[]; ASN(0.00)[asn:13030, ipnet:2a02:169::/32, country:CH]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds the devicetree binding for the Tegra 2 NAND flash controller. Signed-off-by: Lucas Stach Signed-off-by: Stefan Agner Reviewed-by: Boris Brezillon Reviewed-by: Rob Herring --- .../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 0000000000000..b2f2ca12f9e64 --- /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" +- 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 chosen. +- wp-gpios: GPIO specifier for the write protect pin. + +Optional child node of NAND chip nodes: +Partitions: see partition.txt + + Example: + nand-controller@70008000 { + compatible = "nvidia,tegra20-nand"; + reg = <0x70008000 0x100>; + interrupts = ; + clocks = <&tegra_car TEGRA20_CLK_NDFLASH>; + clock-names = "nand"; + resets = <&tegra_car 13>; + reset-names = "nand"; + + 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>; + }; + }; -- 2.17.1