GPIO expander user space access(ie. pca9552)

Andrew Jeffery andrew at aj.id.au
Tue Jan 24 11:09:25 AEDT 2017


On Mon, 2017-01-23 at 09:58 -0600, Matt Barth wrote:
> Is there a defined process/interface to access GPIO expanders from user 
> space to be able to determine when the state changes? Possibly polling a 
> fd or getting notified on the state change?
> 
> Previously this was an i2c device that was accessed over i2c and the set 
> of interested bits were simply read into the application. An example is 
> the use of a pca9552 for presence detection on chassis fans.

I expect it should be implemented as a gpiochip driver in the kernel
and exposed via the usual methods to userspace (GPIO chardev and sysfs,
though sysfs is considered deprecated).

Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20170124/fc631bc5/attachment.sig>


More information about the openbmc mailing list