Commit Graph
2 Commits
Author SHA1 Message Date
Bamvor Jian Zhang e1acec0e75 tools/gpio: add gpio basic opereations
Add basic gpio operations. User could get/set gpio value for specific
line of gpiochip.

Reference "tools/gpio/gpio-hammer.c" or
"tools/testing/selftest/gpio/gpio-mockup-chardev.c" for how to use it.

Signed-off-by: Bamvor Jian Zhang <[email protected]>
Reviewed-by: Michael Welling <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
2016-10-24 16:33:11 +02:00
Linus Walleij 6d591c46bc tools/gpio: create GPIO tools
This creates GPIO tools under tools/gpio/* and adds a single
example program to list the GPIOs on a system. When proper
devices are created it provides this minimal output:

Cc: Johan Hovold <[email protected]>
Cc: Michael Welling <[email protected]>
Cc: Markus Pargmann <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
2016-02-09 11:09:48 +01:00