From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 2/2] mtd: sh_flctl: Add device tree support Date: Tue, 2 Oct 2012 13:54:00 +0000 References: <1349183522-15321-1-git-send-email-hechtb@gmail.com> <1349183522-15321-3-git-send-email-hechtb@gmail.com> In-Reply-To: <1349183522-15321-3-git-send-email-hechtb@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201210021354.01247.arnd@arndb.de> Cc: linux-sh@vger.kernel.org, Vikram Narayanan , Magnus Damm , linux-mtd@lists.infradead.org, Guennadi Liakhovetski , Bastian Hecht List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tuesday 02 October 2012, Bastian Hecht wrote: > +Required properties: > +- compatible : "renesas,shmobile-flctl-sh7372" > +- reg : Address range of the FLCTL > +- interrupts : flste IRQ number > +- nand-bus-width : bus width to NAND chip > + > +The device tree may optionally contain sub-nodes describing partitions of the > +address space. See partition.txt for more detail. > + > +Example: > + > + flctl@e6a30000 { > + #address-cells = <1>; > + #size-cells = <1>; > + compatible = "renesas,shmobile-flctl-sh7372"; > + reg = <0xe6a30000 0x100>; > + interrupts = <0x0d80>; > + > + nand-bus-width = <16>; > + > + system@0 { > + label = "system"; > + reg = <0x0 0x8000000>; > + }; > + > + userdata@8000000 { > + label = "userdata"; > + reg = <0x8000000 0x10000000>; > + }; > + > + cache@18000000 { > + label = "cache"; > + reg = <0x18000000 0x8000000>; > + }; > + }; Since you are also adding dma-engine support, I would suggest you specify a "dmas" and "dma-names" property as well, so the device can find the right dma channel. The code might not do that yet while you're still sorting out the dependencies (and the sh dmaengine code is not yet converted to DT), but I think it would be good to nail down the binding for this device. Arnd