From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 10 Feb 2007 13:56:01 +1100 From: David Gibson To: Andy Fleming Subject: Re: Subject: [PATCH] Add support for the 8568 MDS board Message-ID: <20070210025601.GA21415@localhost.localdomain> References: <20070210004704.GC8276@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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