commit | a6d4e65d5c4c78f86d690fff31b79db9fa8c3b4c | [log] [tgz] |
---|---|---|
author | Naveen Moses <naveen.mosess@hcl.com> | Wed Apr 13 19:27:25 2022 +0530 |
committer | Naveen Moses <naveen.mosess@hcl.com> | Thu Aug 11 08:20:31 2022 +0000 |
tree | 26e639ca72fa12718190ee291053dc87a2874504 | |
parent | 9a529a690da8246196bd4a6336f1f9eb535385ea [diff] |
Add OCP debug card host selector button interface A new button interface class definition is added for handling OCP debug card host selector button events. In case of the button release event, The host selector property is increased up to the max host position. Design : https://gerrit.openbmc-project.xyz/c/openbmc/docs/+/45544 Signed-off-by: Naveen Moses <naveen.mosess@hcl.com> Change-Id: Iec8fabb00d1daa10f587981a9c77df8a62e3c373
Phosphor-buttons has a collection of IO event handler interfaces for physical inputs which are part of OCP front panel.
It defines an individual dbus interface object for each physical button/switch inputs such as power button, reset button etc. Each of this button interfaces monitors it's associated io for event changes and calls the respective event handlers.
In order to monitor a button/input interface the
respective gpio config details should be mentioned in the gpio defs json file - "/etc/default/obmc/gpio/gpio_defs.json"
{ "gpio_definitions": [ { "name": "POWER_BUTTON", "gpio_config" :[ { "pin": "D0", "direction": "both" } ] }, { "name": "RESET_BUTTON", "gpio_config" :[ { "pin": "AB0", "direction": "both" } ] }, { "name" : "HOST_SELECTOR",
"gpio_config" : [ { "pin": "AA4", "direction": "both" }, { "pin": "AA5", "direction": "both" }, { "pin": "AA6", "direction": "both" }, { "pin": "AA7", "direction": "both" } ] },
}