From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.248]) by ozlabs.org (Postfix) with ESMTP id F229CDDEFF for ; Tue, 19 Feb 2008 05:30:08 +1100 (EST) Received: by an-out-0708.google.com with SMTP id c37so1817694anc.78 for ; Mon, 18 Feb 2008 10:30:07 -0800 (PST) Message-ID: Date: Mon, 18 Feb 2008 11:30:07 -0700 From: "Grant Likely" Sender: glikely@secretlab.ca To: "Scott Wood" Subject: Re: How to describe FPGA-based devices in the device tree ? In-Reply-To: <20080218174701.GA3835@loki.buserror.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <200802181343.54989.laurentp@cse-semaphore.com> <20080218174701.GA3835@loki.buserror.net> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Feb 18, 2008 10:47 AM, Scott Wood wrote: > On Mon, Feb 18, 2008 at 01:43:52PM +0100, Laurent Pinchart wrote: > > Should I put IP core nodes as children of the FPGA node ? > > You could do that as well. I'd recommend doing that, then your subnodes are isolated from changes to the bus attachment (chipselect). (really an insignificant point, but I think it is a more logical layout). So, something like this: fpga@4,0 { #address-cells = <1>; #size-cells = <1>; ranges = <0 4 0 00100000>; /* breakdown of 'ranges' fields: */ /* "0": start address of internal range */ /* "4 0": start address of external range (chip select 4, address 0) */ /* "00100000: size of range */ iocore@0 { compatible = "foo,bar"; reg = <0 00010000>; }; iocore@10000 { compatible = "foo,bar"; reg = <10000 00010000>; }; iocore@20000 { compatible = "foo,bar"; reg = <20000 00010000>; }; }; Cheers, g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.