Thread (6 messages) 6 messages, 4 authors, 2015-07-27

[PATCH 1/2] gpio: dwapb: Use human understandable gpio numbering.

From: Linus Walleij <hidden>
Date: 2015-07-16 07:50:44
Also in: linux-devicetree, linux-gpio

On Wed, Jul 1, 2015 at 9:34 PM, Richard Cochran
[off-list ref] wrote:
The system-on-chips using this IP core have well defined gpio numbers.
Instead of using random numbers, this patch lets the device tree specify
the correct gpio numbering.

Signed-off-by: Richard Cochran <redacted>
(...)
+- snps,base : The base gpio number.
NACK. And it has been NACKed before again and again, search
the mailinglist for repetitive answers.

The GPIO numbers inside the Linux kernel are Linux specific and
have nothing to do with the hardware numbers. If they sometimes
match it is a lucky coincidence. The same goes for IRQ numbers
in the kernel FWIW.

So this "binding" has nothing to do with describing the hardware,
which device tree is for. If it ever comes to exist it needs to be
a "linux-*" property. But I doubt it will.

We are working to remove dependency on them by introducing GPIO
descriptors and thinking heavily about how to handle the userspace
sysfs ABI moving forward. But for the ABI the numbers just need to
be stable, not intuitive.

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help