[PATCH v2] Device tree bindings for Xilinx devices

Grant Likely grant.likely at secretlab.ca
Wed Oct 17 05:36:18 EST 2007


On 10/16/07, Stephen Neuendorffer <stephen.neuendorffer at xilinx.com> wrote:
>
> > +   n) Xilinx EMAC and Xilinx TEMAC
> > +
> > +   Xilinx Ethernet devices.  Uses common properties from
> > other Ethernet
> > +   devices with the following constraints:
> > +
> > +   Required properties:
> > +    - compatible : Must include one of: "xilinx,plb-temac",
> > +                   "xilinx,plb-emac", "xilinx-opb-emac"
> > +    - dma-mode : Must be one of "none", "simple", "sg" (sg
> > == scatter gather)
>
> I think it's going to be a significant headache to remap things like the
> dma-mode from the xilinx configurations to something else, and then
> interpret them correctly in the drivers.
>
> Although it lacks a bit in style, perhaps, I'd greatly prefer having
> something like:
>
>         Ethernet_MAC {
>                 xilinx,C_DMA_PRESENT = <1>;
>             ...
>       }
>
> (which happens to correspond to "none" above)

Ugh.  Can't say I'm thrilled about this....

But in this case is might be a necessity.  The IP core is already
parameterized and the best way to describe the device is to use the
existing parameter names.

I want to be careful though.  Parameters can change from one version
of an IP core to another.  The driver needs to be able to determine
what version of the IP core is used so that the parameters make sense.
 I'm also nervous about adding every possible C_ value to the device
node for each xilinx IP-core; that could make the device tree quite
large.  (on the other hand; maybe that doesn't matter... It is
probably a bigger deal for microblaze than powerpc too.).

Cheers,
g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely at secretlab.ca
(403) 399-0195



More information about the Linuxppc-dev mailing list