[PATCH V3] Add support for generic BCM SoC chipsets

Arnd Bergmann arnd at arndb.de
Sat Nov 17 12:21:14 EST 2012


On Saturday 17 November 2012, Christian Daudt wrote:
> >> diff --git a/Documentation/devicetree/bindings/arm/bcm/bcm281xx.txt b/Documentation/devicetree/bindings/arm/bcm/bcm281xx.txt
> >
> >> +Required root node property:
> >> +
> >> +compatible = "bcm,bcm281xx";
> >
> > Hmm. I still tend to think we should list the specific SoC rather than
> > the family here, but I guess if you're sure there won't be any SW
> > compatibility between the different SoCs in the series, this is fine.
> >
> 
> right now I expect to be able to use the family thoughout, so I'll stick to it.
> 

But that's not how the compatible property is supposed to work: Each compatible
value should refer to a specific property, and not include wildcards.
If you have one driver (or platform file in this case) that can deal with
a whole family of devices, the normal solution is to list the name of the oldest
part in the compatible string as the most generic part, and then list the
name of the new part as the specific one.

	Arnd



More information about the linux-arm-kernel mailing list