From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kumar Gala Subject: Re: dec behavior question Date: Tue, 25 Oct 2011 08:23:08 -0500 Message-ID: <81832128-4BB5-4C78-95EB-864AC7B57CA0@kernel.crashing.org> References: <9942C069-D8EC-4133-B436-1DC5F62C502E@kernel.crashing.org> <20111024231529.GE4191@truffala.fritz.box> Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20111024231529.GE4191-MK4v0fQdeXQXU02nzanrWNbf9cGiqdzd@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: David Gibson Cc: devicetree-discuss List-Id: devicetree@vger.kernel.org On Oct 24, 2011, at 6:15 PM, David Gibson wrote: > On Mon, Oct 24, 2011 at 09:01:49AM -0500, Kumar Gala wrote: >> If I have something like: >> >> --------------------------------------- >> spi.dtsi: >> >> &spi0 { >> #address-cells = <1>; >> #size-cells = <0>; >> compatible = "fsl,mpc8536-espi"; >> reg = <0x7000 0x1000>; >> interrupts = <59 0x2 0 0>; >> }; >> --------------------------------------- >> >> foo.dts: >> >> spi0: spi@f00bar { >> compatible = "FOOBAR"; >> }; >> >> /include/ "spi.dtsi" >> >> --------------------------------------- >> >> What do you expect the resulting dtb to look like w/regards to the >> compatible node? > > It's always last tree wins. So it will end up with compatible = > "FOOBAR". Than I think we have a bug in current dtc. - k