Thread (31 messages) 31 messages, 8 authors, 2014-04-28

Re: [PATCH 1/7] gpiolib: gpiolib-of: Implement device tree gpio-names based lookup

From: Alexandre Courbot <hidden>
Date: 2014-04-16 06:12:51
Also in: linux-arm-kernel, linux-devicetree, linux-gpio, linux-wireless, lkml

On Tue, Apr 15, 2014 at 11:20 PM, Maxime Ripard
[off-list ref] wrote:
Hi Chen-Yu,

On Tue, Apr 15, 2014 at 02:41:35PM +0800, Chen-Yu Tsai wrote:
quoted
This patch provides of_get_gpiod_flags_by_name(), which looks up GPIO
phandles by name only, through gpios/gpio-names, and not by index.
IIRC, gpios only uses the *-gpios properties, and not gpios/gpio-names
pattern seen on various other things.

Is it some new property you introduce? If so, please add it to the
documentation.

Now, I'm not sure that having two distinct representations of GPIOs in
the DT is a good thing. Yes, it's looking odd compared to other
similar bindings, but it's what we have to deal with.
Mmmm I *think* I somehow remember a discussion about this topic
recently, but I cannot find it. Maybe Chen-yu could point us to the
conclusion of this discussion and the rationale for (re)implementing
named GPIOs this way?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help