Question on States monitoring
Andrew Jeffery
andrew at aj.id.au
Tue May 15 09:16:40 AEST 2018
Hi Andres,
On Tue, 15 May 2018, at 01:16, Andres Oportus wrote:
> Are there any ongoing efforts on expanding States (say provided by GPIOs)
> monitoring/management? I see that phosphor-state-manager has
> Chassis/Host/BMC states that are placed onto DBUS but not a more generic
> mechanism. On the GPIO specific side, I see that phosphor-gpio-monitor
> allows for interrupt driven GPIO monitoring (seemly only used under a
> gpio-keys driver with /dev/input for Power's checkstop monitoring?), but no
> generic GPIO setting/getting for those not allowing interrupt type
> monitoring (say output GPIOs).
It's not clear to me what you're looking for here. Are you hoping for something to expose the GPIOs on DBus? I don't think we have anything like that, which is more of a design philosophy thing (we should probably provide a higher-level capability on DBus, not just directly expose GPIOs).
Alternatively if you're looking to handle GPIOs from your application, I would recommend libgpiod:
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/
Cheers,
Andrew
More information about the openbmc
mailing list