Hello there.
Not sure where this fits in, but had to post it somewhere.
Since the gpio-sysfs interface has been deprecated since somewhere around 2020-ish, (meaning that some newer 5.15 kernels does not have the /sys/class/gpio interface anymore by default) how would one go to control the gpios, without having access to the /sys/class/gpio interface?
Apparently, there’s a few commands one can use to read/set the gpiochip device’s inputs/outputs, with library access as well. (gpioset, gpioinfo and gpioget)
While one could still enable the legacy gpio-sysfs stuff, but since I need to monitor/control quite a few inputs/outputs (32 inputs/outputs on top off my head) without hogging the system with read/write requests to /sys/class/gpio/gpioX devices, would it be better to somehow grant access the libgpiod library (no idea what it accesses and where) through the gadget snap?
@ogra This might fire-off some debates, so not sure who to involve in this, that Ubuntu Core can support the gpio-char devices?
Usually, they are available through /dev/gpiochipX…
AFAIK the new libgpio stuff was reverted upstream … and i also think we never actually disabled the old stuff until a final decision happens upstream … so gpio-sysfs should still work as is …
This is my custom development board, but should the decision be made upsteam to add support for the libgpio stuff, this could then probably assist in this matter…