From patchwork Tue Dec 9 00:34:46 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean MacLennan X-Patchwork-Id: 12869 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 E99ACDDEF2 for ; Tue, 9 Dec 2008 11:36:56 +1100 (EST) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1L9qYu-0003fb-6G; Tue, 09 Dec 2008 00:34:52 +0000 Received: from toronto-hs-216-138-233-67.s-ip.magma.ca ([216.138.233.67] helo=yow.seanm.ca) by bombadil.infradead.org with smtp (Exim 4.68 #1 (Red Hat Linux)) id 1L9qYr-0003fV-Qh for linux-mtd@lists.infradead.org; Tue, 09 Dec 2008 00:34:50 +0000 Received: (qmail 12075 invoked from network); 9 Dec 2008 00:34:48 -0000 Received: from unknown (HELO lappy.seanm.ca) (192.168.0.164) by 0 with SMTP; 9 Dec 2008 00:34:48 -0000 Date: Mon, 8 Dec 2008 19:34:46 -0500 From: Sean MacLennan To: "Josh Boyer" Subject: Re: [PATCH] ndfc driver Message-ID: <20081208193446.37e27e26@lappy.seanm.ca> In-Reply-To: <20081204090107.20269571@zod.rchland.ibm.com> References: <20081203222832.3fc77d28@lappy.seanm.ca> <20081204090107.20269571@zod.rchland.ibm.com> Organization: PIKA X-Mailer: Claws Mail 3.6.1 (GTK+ 2.12.9; i686-pc-linux-gnu) X-Message-Flag: Warning: This message may contain actual content. Mime-Version: 1.0 X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.2.5 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.1 RDNS_DYNAMIC Delivered to trusted network by host with dynamic-looking rDNS Cc: linuxppc-dev@ozlabs.org, devicetree-discuss@ozlabs.org, linux-mtd@lists.infradead.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org On Thu, 4 Dec 2008 09:01:07 -0500 "Josh Boyer" wrote: > In addition to an example DTS patch (probably to warp itself), could > you briefly write up a binding and put it in > Documentation/powerpc/dts-bindings/amcc (or similar)? Also please CC > the devicetree-discuss list on that part. Here is a start at the doc. I have sent it as a patch, but could just as easily send raw text. The example comes from the warp dts, just with less partitions, so I have not included a warp dts patch here. Cheers, Sean diff --git a/Documentation/powerpc/dts-bindings/amcc/ndfc.txt b/Documentation/powerpc/dts-bindings/amcc/ndfc.txt new file mode 100644 index 0000000..668f4a9 --- /dev/null +++ b/Documentation/powerpc/dts-bindings/amcc/ndfc.txt @@ -0,0 +1,31 @@ +AMCC NDFC (NanD Flash Controller) + +Required properties: +- compatible : "amcc,ndfc". +- reg : should specify chip select and size used for the chip (0x2000). + +Optional properties: +- ccr : NDFC config and control register value (default 0). +- bank-settings : NDFC bank configuration register value (default 0). +- partition(s) - follows the OF MTD standard for partitions + +Example: + +nand@1,0 { + compatible = "amcc,ndfc"; + reg = <0x00000001 0x00000000 0x00002000>; + ccr = <0x00001000>; + bank-settings = <0x80002222>; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "kernel"; + reg = <0x00000000 0x00200000>; + }; + partition@200000 { + label = "root"; + reg = <0x00200000 0x03E00000>; + }; +}; +