dec behavior question

David Gibson david at gibson.dropbear.id.au
Tue Oct 25 10:15:29 EST 2011


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 at 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".

-- 
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 devicetree-discuss mailing list