[OpenWrt-Devel] mt76x8: Strange GPIO numbering on Onion Omega2+

Linus Walleij linus.walleij at linaro.org
Mon Jun 14 00:28:25 PDT 2021


On Sat, May 2, 2020 at 10:15 PM Gerhard Bertelsmann
<info at gerhard-bertelsmann.de> wrote:

> I've installed the latest OpenWRT trunk version. Everything
> seems to be fine except the port numbering:
(...)
> Is this common to the new kernel versions or is there
> something missing ?

We are moving away from the global GPIO numberspace used by pretty
much only the deprecated (since 5 years+) sysfs.

The reasons behind deprecation of sysfs and the GPIO global numberspace
is detailed in our TODO:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpio/TODO

What we encourage as GPIO maintainers is for consuming projects
to use the GPIO character device utilizing the libgpiod library:
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/about/

The library comes with a few example tools that are pretty useful for
tinkering and experimenting with the character device.

I'd be thrilled if libgpiod could be included with OpenWrt given how much
use it actually sees in GPIO-based automation despite its roots in
routers.

Yours,
Linus Walleij



More information about the openwrt-devel mailing list