Re: [PATCH v2] gpio: Add Tegra186 support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 10, 2017 at 05:26:29PM +0100, Thierry Reding wrote:
> From: Thierry Reding <treding@xxxxxxxxxx>
> 
> 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 <treding@xxxxxxxxxx>
> ---
> 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

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux