gpis definition in entity manager

Vijay Khemka vijaykhemka at fb.com
Sat Apr 6 05:24:09 AEDT 2019


Thanks James.

On 4/5/19, 8:32 AM, "James Feist" <james.feist at linux.intel.com> wrote:

    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://urldefense.proofpoint.com/v2/url?u=https-3A__gerrit.openbmc-2Dproject.xyz_c_openbmc_intel-2Dipmi-2Doem_-2B_19709&d=DwICaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=v9MU0Ki9pWnTXCWwjHPVgpnCR80vXkkcrIaqU7USl5g&m=Nj0NvY_nyfomDAeLgrpDr2-LxqTeWVYFrdf-zDaZfTA&s=a8h5uJrO1qKh8QcrzO01zqj6q7OrAPri9ah5_zQRynA&e=
    
    -James
    
    > 
    > Regards
    > 
    > -Vijay
    > 
    



More information about the openbmc mailing list