[OpenWrt-Devel] [RFC] User space replacement for named GPIO exports kernel patch

Petr Štetiar ynezz at true.cz
Wed Feb 6 04:32:56 EST 2019


Hi,

there's open PR[A] on GitHub "kernel: move GPIO-add-named-gpio-exports.patch
to generic" which has started discussion around this topic already and before
digging into the possible solution deeper, I would like to get some feedback
first (Maybe, that someone is already working on this also).

It's clear, that this named gpio exports kernel patch was rejected by upstream
long time ago, so we shouldn't probably carry it on forever, and we should
probably start using libgpiod based solution instead.

How to tackle this in the OpenWrt spirit? I see following options:

1. Use commandline utils from libgpiod (gpio-set, gpio-find etc.) and
   potentially add missing features to those utils - probably good enough for
   handling of outputs only
2. Add support for GPIO inputs/outputs using libgpiod to procd
3. Create gpiod and add support for GPIO inputs/outputs using libgpiod
4. Other


A. https://github.com/openwrt/openwrt/pull/1366

-- ynezz

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list