gpis definition in entity manager

James Feist james.feist at linux.intel.com
Sat Apr 6 02:31:45 AEDT 2019


On 4/4/19 4:17 PM, Vijay Khemka wrote:
> Hi James,
> 
> There are gpio definition in json files under configuration. How are we 
> using it. Are these gpios being initialized based on configurations here 
> and where are these being used.

There's two answers. 1. The entity-manager can export gipos:
https://github.com/openbmc/entity-manager/blob/master/include/devices.hpp#L43

2. There is a gpio daemon that can configure gpios: 
https://github.com/Intel-BMC/provingground/tree/master/gpiodaemon but 
it's not completely ready yet.

Current usages include dbus-sensors 
https://github.com/openbmc/dbus-sensors/blob/master/src/TachSensor.cpp#L201 
https://github.com/openbmc/dbus-sensors/blob/master/src/ChassisIntrusionSensor.cpp#L175 

and power control I believe. Theres also some ongoing work for fault 
leds https://gerrit.openbmc-project.xyz/c/openbmc/intel-ipmi-oem/+/19709

-James

> 
> Regards
> 
> -Vijay
> 


More information about the openbmc mailing list