Question on States monitoring

Andrew Jeffery andrew at aj.id.au
Tue May 15 11:53:23 AEST 2018


Hi Lei,

On Tue, 15 May 2018, at 11:19, Lei YU wrote:
> Hi Andres,
> 
> The existing [phosphor-gpio-monitor][1] contains two services, one is for
> monitor gpio interrupts, the other is "phosphor-gpio-presence" that checks a
> gpio output and let it be some state on DBus.
> 
> I guess the "presence" service is what you are looking for, that maps a
> gpio output to a Dbus object.
> 
> The existing use case is:
> 1. Witherspoon checks if power supply is connected and create dbus object
>    /inventory/system/chassis/motherboard/powersupplyX, it also is able to
>    bind the kernel driver when it is attached.
> 2. Zaius checks if a PCIE card is connected on E2B and create dbus object
>    /inventory/system/chassis/pcie_card_e2b
> 
> You can see a little detailed explanation at
> https://github.com/mine260309/openbmc-intro/blob/master/Porting_Guide.md#gpio-presence

That porting guide looks like it has some interesting info, and I feel like we should probably make it part of the docs repository. Did you have any plans on integrating it?

Cheers,

Andrew


More information about the openbmc mailing list