[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAKohpom7Sqj7BeTFdsg04iGvZz1jnqB=UZTLdRNK7X-0ivknsQ@mail.gmail.com>
Date: Fri, 23 Nov 2012 16:17:09 +0530
From: Viresh Kumar <viresh.kumar@...aro.org>
To: Lee Jones <lee.jones@...aro.org>
Cc: linus.walleij@...aro.org, grant.likely@...retlab.ca,
devicetree-discuss@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
spear-devel@...t.st.com,
Vipul Kumar Samar <vipulkumar.samar@...com>
Subject: Re: [PATCH] gpio: stmpe: Add DT support for stmpe gpio
On 23 November 2012 16:11, Lee Jones <lee.jones@...aro.org> wrote:
>> > +++ b/Documentation/devicetree/bindings/gpio/gpio-stmpe.txt
>> > @@ -0,0 +1,18 @@
>> > +STMPE gpio
>> > +----------
>> > +
>> > +Required properties:
>> > + - compatible: "st,stmpe-gpio"
>
> ... but this is wrong.
>
>> > +Example:
>> > + stmpe_gpio {
>> > + compatible = "st,stmpe-gpio";
>> > + st,norequest-mask = <0x20>; //gpio 5 can't be used
>> > + };
>
> As is the example.
>
> So will be the the DT - if you've already written it.
Again, I believe these are required by the code you wrote in mfd-core.c
if (parent->of_node && cell->of_compatible) {
for_each_child_of_node(parent->of_node, np) {
if (of_device_is_compatible(np, cell->of_compatible)) {
pdev->dev.of_node = np;
break;
}
}
}
This matches compatible of child node with compatible of cell. And that's
why you have added that in your keypad mappings as well.
--
viresh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists