From patchwork Tue Jul 15 10:58:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sherlock Wang X-Patchwork-Id: 369957 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 2F5BE14011B for ; Tue, 15 Jul 2014 21:03:18 +1000 (EST) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X70Uy-0000ro-81; Tue, 15 Jul 2014 11:02:16 +0000 Received: from mail-pd0-x236.google.com ([2607:f8b0:400e:c02::236]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X70Uf-0000RP-5K; Tue, 15 Jul 2014 11:01:57 +0000 Received: by mail-pd0-f182.google.com with SMTP id fp1so4046000pdb.41 for ; Tue, 15 Jul 2014 04:01:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0W8D5oY8ROmR9fJG2nLxYuYC2/9VOKYTA2JiAv4EzDQ=; b=PMI/wPKhQTkOjvpjJ+VrM5oh5Q+6SNlLKUyGlNOhYU3EUtTQ5tG55t9pesvq7jom14 juCZ+NklaiaUlbkpq/PNqUedPyjUAJqhfdPWL1NOrmhjNdTzHGFjq3ptopA4/FNJiQ5T C7XO5MEJurNBAIgjFBb4E3WLMJqaK94DPPw3sAVX+/MyKTF23mhTbEsDw0tUWR/Vfik1 BF2b/WguAPjU7UvcweFVMMd8DeIVSeYJmiFeFfO1AwC/qPuw1lbUezdFvJ+RE6EANyZq fMWMh3DP82zBC+RuiAE1TjgKTncupVFKl7phIsWMY9/ZYvhjJWJm1WvlfsS9aBtukHlM V1mA== X-Received: by 10.68.103.228 with SMTP id fz4mr22494030pbb.46.1405422096268; Tue, 15 Jul 2014 04:01:36 -0700 (PDT) Received: from localhost.localdomain ([58.251.159.252]) by mx.google.com with ESMTPSA id ib5sm13603464pbb.55.2014.07.15.04.01.26 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Jul 2014 04:01:35 -0700 (PDT) From: Zhou Wang To: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , David Woodhouse , Brian Norris , Grant Likely , Ezequiel Garcia , Pekon Gupta , Artem Bityutskiy , Alexander Shiyan , Ivan Khoronzhuk , Jussi Kivilinna , Joern Engel , Randy Dunlap , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-mtd@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 3/3] mtd: hisilicon: add device tree binding documentation Date: Tue, 15 Jul 2014 18:58:26 +0800 Message-Id: <1405421906-660-4-git-send-email-wangzhou.bry@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1405421906-660-1-git-send-email-wangzhou.bry@gmail.com> References: <1405421906-660-1-git-send-email-wangzhou.bry@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140715_040157_230878_9CF02B5D X-CRM114-Status: GOOD ( 10.08 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400e:c02:0:0:0:236 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (wangzhou.bry[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain Cc: caizhiyong@huawei.com, Zhou Wang , wangzhou1@hisilicon.com X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Signed-off-by: Zhou Wang --- .../devicetree/bindings/mtd/hisi-nand.txt | 40 ++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/hisi-nand.txt diff --git a/Documentation/devicetree/bindings/mtd/hisi-nand.txt b/Documentation/devicetree/bindings/mtd/hisi-nand.txt new file mode 100644 index 0000000..c8b3988 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/hisi-nand.txt @@ -0,0 +1,40 @@ +Hisilicon Hip04 Soc NAND controller DT binding + +Required properties: +- compatible: Should be "hisilicon,504-nfc". +- reg: The first contains base physical address and size of + NAND controller's registers. The second contains base + physical address and size of NAND controller's buffer. +- interrupts: Interrupt number for nfc. +- nand-bus-width: See nand.txt. +- nand-ecc-mode: See nand.txt. +- hisi,nand-ecc-bits: ECC bits type support. + <0>: none ecc + <1>: Can correct 1bit per 512byte. + <6>: Can correct 16bits per 1K byte. +- #address-cells: partition address, should be set 1. +- #size-cells: partition size, should be set 1. + +Flash chip may optionally contain additional sub-nodes describing partitions of +the address space. See partition.txt for more detail. + +Example: + + nand: nand@4020000 { + compatible = "hisilicon,504-nfc"; + reg = <0x4020000 0x10000>, <0x5000000 0x1000>; + interrupts = <0 379 4>; + nand-bus-width = <8>; + nand-ecc-mode = "hw"; + hisi,nand-ecc-bits = <1>; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "nand_text"; + reg = <0x00000000 0x00400000>; + }; + + ... + + };