[OpenWrt-Devel] mt76x8: Strange GPIO numbering on Onion Omega2+
Bartosz Golaszewski
bgolaszewski at baylibre.com
Mon Jun 14 03:49:08 PDT 2021
On Mon, Jun 14, 2021 at 9:28 AM Linus Walleij <linus.walleij at linaro.org> wrote:
>
> 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
Hi!
I'm seeing that libgpiod v1.4.4 is available in OpenWRT but this
version is quite dated. I'll see if I can upgrade it to v1.6.3.
Bart
More information about the openwrt-devel
mailing list