summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2020-05-09 01:33:32 +0300
committerLinus Walleij <linus.walleij@linaro.org>2020-05-09 01:33:32 +0300
commit29f9f8e1fc93d7fd78d16c9b09fbc2b5c41d6959 (patch)
treefeb1ca8ca63732927eb9f34f4ef750d026734923 /tools
parent8d0910121b070b4edf4239d91cf9a4523b33ca0c (diff)
parent3831c051dfbf58595085e432acc00ad4efcf54cc (diff)
downloadlinux-29f9f8e1fc93d7fd78d16c9b09fbc2b5c41d6959.tar.xz
Merge tag 'gpio-updates-for-v5.8-part1' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux into devel
gpio updates for v5.8-rc1 - part1 - correct the IRQ type used in to_irq() in gpio-xgene-sb - add new item to the TODO list - support building gpio-pl061 as module - improve pull-up/down support on GPIO expanders in device-tree - several improvements in gpio-pca953x - emit a warning for too long GPIO line names - add MODULE_DEVICE_TABLE to gpio-tegra186 - add support for new variant to gpio-f7188x - lsgpio can now display bias flags
Diffstat (limited to 'tools')
-rw-r--r--tools/gpio/lsgpio.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/gpio/lsgpio.c b/tools/gpio/lsgpio.c
index e1430f504c13..8a71ad36f83b 100644
--- a/tools/gpio/lsgpio.c
+++ b/tools/gpio/lsgpio.c
@@ -49,6 +49,18 @@ struct gpio_flag flagnames[] = {
.name = "open-source",
.mask = GPIOLINE_FLAG_OPEN_SOURCE,
},
+ {
+ .name = "pull-up",
+ .mask = GPIOLINE_FLAG_BIAS_PULL_UP,
+ },
+ {
+ .name = "pull-down",
+ .mask = GPIOLINE_FLAG_BIAS_PULL_DOWN,
+ },
+ {
+ .name = "bias-disabled",
+ .mask = GPIOLINE_FLAG_BIAS_DISABLE,
+ },
};
void print_flags(unsigned long flags)