Subject: [PATCH] Add support for the 8568 MDS board
David Gibson
david at gibson.dropbear.id.au
Sat Feb 10 13:56:01 EST 2007
On Fri, Feb 09, 2007 at 08:07:47PM -0600, Andy Fleming wrote:
>
> On Feb 9, 2007, at 18:47, David Gibson wrote:
>
> > On Fri, Feb 09, 2007 at 05:28:31PM -0600, Andy Fleming wrote:
> > [snip]
> >> +/ {
> >> + model = "MPC8568EMDS";
> >> + compatible = "MPC85xxMDS";
> >> + #address-cells = <1>;
> >> + #size-cells = <1>;
> >> + linux,phandle = <100>;
> >> +
> >> + cpus {
> >> + #cpus = <1>;
> >> + #address-cells = <1>;
> >> + #size-cells = <0>;
> >> + linux,phandle = <200>;
> >
> > So, every Freescale device tree source I've seen so far has had these
> > hardcoded phandles all through it. dtc has supported
> > reference-to-path to automatically generate the necessary phandles for
> > ages now. Please can we use it...
>
> Ok, I'll take a look. Any pointers on syntax?
interrupt-parent = <&/path/to/interrupt-controller>;
That will give a phandle to the target node, if it doesn't have one
already, and insert that phandle value as a cell into the property.
In very recent versions of dtc (as of about yesterday..) you can also
reference a node's label instead of it's path.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
More information about the Linuxppc-dev
mailing list