Thread (3 messages) flat view 3 messages, 3 authors, 2008-02-18

Re: How to describe FPGA-based devices in the device tree ?

From: Grant Likely <hidden>
Date: 2008-02-18 18:30:08

On Feb 18, 2008 10:47 AM, Scott Wood [off-list ref] wrote:
On Mon, Feb 18, 2008 at 01:43:52PM +0100, Laurent Pinchart wrote:
quoted
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help