Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3203602imm; Sun, 17 Jun 2018 13:47:44 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJwodUKv0K78a4wT/JuT1Zqol57H2x085QHk5os4+x9sHD0fDd+Es3Njm9fmovC/F9rB5+Y X-Received: by 2002:a17:902:264:: with SMTP id 91-v6mr10967571plc.341.1529268463926; Sun, 17 Jun 2018 13:47:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529268463; cv=none; d=google.com; s=arc-20160816; b=RkpH8HfZvzQ6+wO3+lAC1iR3J5fn8y90C4f+RuwphmtyDOTPXWE5g6kyHo0SkuHcsx bM/HADT/pq+9Fmz/fI6gqvCeQHlO9RAh0J84Ht3Cft8LoVEA0amYCu839qmVPK6o6DmA S1VIPP3+djH92ukHQ4+iky6IdDTo21XTDFn5T/7k35UYcYF9zT4LX0/afo0Uavqa6NFR Pbj70obJ9IZv4qGPwAwEMvP3HzTqSIBWfniCpbplFHnl0c/aCT4UvkVntbPNwzLT1Eg7 5MSh2JYj6QneFpe/kKXn5eKyIim+OBFTHiFGqRSdIGOpkK4bXTktV8ItZJDOUFd27ZCL 2zOQ== 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=bt9OXWD9awlzOzrT4ScG14b67Yoi4Jiyx30D5CWU1CQ=; b=ryj7r14aaqikwwp+QtwlRFZq9g4QqlBU8mQS0O4Ra/yfv/Cid2Oc77BaXpizxbWw41 dDb0e81hpAV4RExtY1CRu+J75NzqWkTqzMRvc0FJU1g8kkGxp5XRNxhftA37vNm3Gk7X eKSlC8vKTbcfRG2LNqMaoaXZ4SfvZ5vd8edEeTrgKceGFZxDigwGCVd0Q0KDK6JH0/D9 THw2ThUMWeO/dFMKL5H1MvMujA2vwSH9gsBc6EmvIUM3CF3IyWn9oCE0ztuBwIER5XPE dGWA1IAjNh6R9uV9DtZFFZM2nQF4/Yo9MYd2SzwTovGTVbKUY3z3h8a/gV+vZ0VEzlKZ /XFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=F1+iGn9L; 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 w4-v6si6708509pgp.10.2018.06.17.13.47.17; Sun, 17 Jun 2018 13:47:43 -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=F1+iGn9L; 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 S934549AbeFQUqS (ORCPT + 99 others); Sun, 17 Jun 2018 16:46:18 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:50308 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754217AbeFQUqI (ORCPT ); Sun, 17 Jun 2018 16:46:08 -0400 Received: from trochilidae.lan (unknown [37.17.239.3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id C1E0E5C1514; Sun, 17 Jun 2018 22:46:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1529268366; 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=bt9OXWD9awlzOzrT4ScG14b67Yoi4Jiyx30D5CWU1CQ=; b=F1+iGn9LkneCZK6WcC2gcEnZ6X+dB8XSAn4Y4noV/feiS84mR6P3R7k9ldsYY7blLCZhVq UcG/iQb0Xla2gyL35GkZLkLxZoOL1AU4wnWdFiyb+rDw/dZNQ9VU4dofJZkerM0PELaHLr 5q0Xek5205av3dCjBurLL/CsyMJjqno= 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 v5 3/6] mtd: rawnand: tegra: add devicetree binding Date: Sun, 17 Jun 2018 22:46:02 +0200 Message-Id: <20180617204605.4648-4-stefan@agner.ch> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180617204605.4648-1-stefan@agner.ch> References: <20180617204605.4648-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:37.17.238.0/23, 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..1c351362f3a96 --- /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 choosen. +- 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