From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tabi Timur-B04825 Subject: Re: Is there a binding for IORESOURCE_DMA population? Date: Sat, 16 Jul 2011 20:18:53 +0000 Message-ID: <4E21F22C.3020804@freescale.com> References: <20110715163254.GG1840@S2100-06.ap.freescale.net> <201107152011.41546.arnd@arndb.de> <20110716075748.GI1840@S2100-06.ap.freescale.net> <201107161409.46719.arnd@arndb.de> <4E218A4C.8000603@freescale.com> <20110716144026.GB2374@S2100-06.ap.freescale.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20110716144026.GB2374-+NayF8gZjK2ctlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org> Content-Language: en-US Content-ID: <26FD4D19639A794293F289DEE649C1A1-KZfg59tc24wqcZcGjlUOXw@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Cc: Guo Shawn-R65073 , "devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org" List-Id: devicetree@vger.kernel.org Shawn Guo wrote: > It's not about virtual or physical channel. I'm asking suggestion on > how we bind the channel number for each dma client device in device > tree and how they will get the number from device tree when they get > probed. IMHO, a simple property that lists the DMA channels to use should be okay. Arnd's example looks good to me: ssi@83fcc000 { /* SSI1 */ compatible = "fsl,imx51-ssi", "fsl,imx1-ssi"; reg = <0x83fcc000 0x4000>; interrupts = <29>; dma-parent = &fsldma1; dma-channels = <29 28 27 26>; /* TX0 RX0 TX1 RX1 */ }; However, I would use less generic property names, like "fsl,ssi-dma-parent" or something like that. -- Timur Tabi Linux kernel developer at Freescale