openwrt/package/base-files/files/lib/functions
Kuan-Yi Li c5bf9a8ced base-files: gpio switch: add named GPIO support
Previously, gpio_switch only accepts GPIO pin number as input. Once a
GPIO pin is exported and named by device tree, its pin state cannot be
configured and saved across reboots by UCI.

This patch adds support for named GPIO pins. Thus GPIO pin can be
exported by device tree with active high/low correctly configured,
having human-readable name in /sys/class/gpio/ is also now possible.

More importantly, GPIO pins which are referenced by name will be immune
from pin mapping breakage while unintentional pin number changes are
introduced by kernel or driver updates.

Signed-off-by: Kuan-Yi Li <kyli@abysm.org>
2020-06-18 20:08:18 +02:00
..
caldata.sh package/base-files: caldata: work around dd's limitation 2020-05-28 11:22:22 +02:00
leds.sh base-files: diag: restore default trigger for 'boot' LED 2020-02-24 23:27:50 +01:00
migrations.sh base-files: add leds migration 2019-04-06 19:14:05 +02:00
network.sh base-files: add network_get_uptime() to /lib/functions/network.sh 2019-06-29 21:00:58 +02:00
preinit.sh base-files: fix ramoverlay function with kernels 3.18+ 2015-09-21 17:41:07 +00:00
service.sh base-files: remove function service_kill 2014-06-02 12:43:10 +00:00
system.sh base-files: source functions.sh in /lib/functions/system.sh 2020-04-12 14:16:57 +02:00
uci-defaults.sh base-files: gpio switch: add named GPIO support 2020-06-18 20:08:18 +02:00