From patchwork Tue Apr 7 08:39:43 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Roese X-Patchwork-Id: 25672 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 7FEAEDDF01 for ; Tue, 7 Apr 2009 18:43:02 +1000 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1Lr6qY-0006ut-Bv; Tue, 07 Apr 2009 08:39:54 +0000 Received: from mo-p05-ob.rzone.de ([81.169.146.180]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1Lr6qQ-0006tU-Bx for linux-mtd@lists.infradead.org; Tue, 07 Apr 2009 08:39:53 +0000 X-RZG-AUTH: :IW0NeWC7b/q2i6W/qstXb1SBUuFnrGohavlCkce+Ub5QXMSOpHp3JjTzwI2gmg== X-RZG-CLASS-ID: mo05 Received: from localhost.localdomain (p57BD5F72.dip.t-dialin.net [87.189.95.114]) by post.strato.de (fruni mo20) (RZmta 18.28) with ESMTP id z0299dl378H8yI ; Tue, 7 Apr 2009 10:39:44 +0200 (MEST) From: Stefan Roese To: linuxppc-dev@ozlabs.org, linux-mtd@lists.infradead.org Subject: [PATCH 4/4 v2] mtd/powerpc: Describe multiple "reg" tuples usage Date: Tue, 7 Apr 2009 10:39:43 +0200 Message-Id: <1239093583-12201-1-git-send-email-sr@denx.de> X-Mailer: git-send-email 1.6.2.2 X-Spam-Score: 0.0 (/) Cc: Grant Likely , devicetree-discuss@ozlabs.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.11 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-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Signed-off-by: Stefan Roese CC: Grant Likely --- Documentation/powerpc/dts-bindings/mtd-physmap.txt | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/Documentation/powerpc/dts-bindings/mtd-physmap.txt b/Documentation/powerpc/dts-bindings/mtd-physmap.txt index ab1115e..a3fa9e0 100644 --- a/Documentation/powerpc/dts-bindings/mtd-physmap.txt +++ b/Documentation/powerpc/dts-bindings/mtd-physmap.txt @@ -5,7 +5,10 @@ file systems on embedded devices. - compatible : should contain the specific model of flash chip(s) used, if known, followed by either "cfi-flash" or "jedec-flash" - - reg : Address range of the flash chip + - reg : Address range(s) of the flash chip(s) + It's possible to (optionally) define multiple "reg" tuples so that the + Intel P30 48F4400 chip which consists internally of 2 non-identical + NOR chips on one die can also be supported. - bank-width : Width (in bytes) of the flash bank. Equal to the device width times the number of interleaved chips. - #address-cells, #size-cells : Must be present if the flash has @@ -58,3 +61,18 @@ Example: read-only; }; }; + +Here an example with multiple "reg" tuples (e.g. Intel P30): + + flash@f0000000,0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "cfi-flash"; + reg = <0 0x00000000 0x02000000 + 0 0x02000000 0x02000000>; + bank-width = <2>; + partition@0 { + label = "test-part1"; + reg = <0 0x04000000>; + }; + };