On Fri, Mar 10, 2017 at 05:26:29PM +0100, Thierry Reding wrote: > From: Thierry Reding > > Tegra186 has two GPIO controllers that are largely register compatible > between one another but are completely different from the controller > found on earlier generations. > > Signed-off-by: Thierry Reding > --- > Changes in v2: > - add pin names to allow easy lookup using the chardev interface By the way, I tested this using Bartosz Gołaszewski's excellent libgpiod that provides a really nice set of userspace utilities to detect and manipulate GPIO chips: https://github.com/brgl/libgpiod So for userspace access to the Tegra GPIOs we can now run something like this in a shell script: #!/bin/sh gpio=$(gpiofind PCC.00) gpioget $gpio There's a bunch of other features that the library supports. I'm glad we finally have a standard set of tools to deal with GPIOs in userspace. It seems the internet is full of libraries that deal with the GPIO sysfs interface, but hopefully we can standardize on one library and the tools for the chardev interface. Thierry