[RFC PATCH 01/10] OMAP2+: l3-noc: Add support for device-tree
Grant Likely
grant.likely at secretlab.ca
Thu Sep 8 19:35:16 EDT 2011
On Thu, Sep 08, 2011 at 11:59:18PM +0200, Cousson, Benoit wrote:
> On 9/8/2011 8:01 PM, Grant Likely wrote:
> >On Wed, Aug 24, 2011 at 03:09:07PM +0200, Benoit Cousson wrote:
> >>Add device-tree support for the l3-noc driver.
> >>
> >>Use platform_driver_register to defer the probing at device init
> >>time.
> >>
> >>Signed-off-by: Benoit Cousson<b-cousson at ti.com>
> >>Cc: Tony Lindgren<tony at atomide.com>
> >>Cc: Santosh Shilimkar<santosh.shilimkar at ti.com>
> >>---
> >> arch/arm/mach-omap2/omap_l3_noc.c | 16 ++++++++++++++--
> >> 1 files changed, 14 insertions(+), 2 deletions(-)
> >>
> >>diff --git a/arch/arm/mach-omap2/omap_l3_noc.c b/arch/arm/mach-omap2/omap_l3_noc.c
> >>index 7b9f190..4630703 100644
> >>--- a/arch/arm/mach-omap2/omap_l3_noc.c
> >>+++ b/arch/arm/mach-omap2/omap_l3_noc.c
> >>@@ -228,16 +228,28 @@ static int __exit omap4_l3_remove(struct platform_device *pdev)
> >> return 0;
> >> }
> >>
> >>+#if defined(CONFIG_OF)
> >>+static const struct of_device_id l3_noc_match[] = {
> >>+ {.compatible = "arteris,noc", },
> >
> >Missing documentation for this compatible property.
>
> As you already figured out... it will come later.
>
> >Also, it appears
> >to be rather on the generic side.
>
> It is indeed a generic IP that will be there on OMAP5 too.
Even for common ip blocks, it is good practice to be specific about
the implementation. IP block details tend to change from one silicon
design to the next. Overly generic (optimistic) compatible value names
generally should be avoided. Instead, backwards compatibility is
achieved by newer devices claiming compatibility with older
implementations in the compatible list.
g.
More information about the linux-arm-kernel
mailing list