commit | ab8dac5102fdacec33076055854cb5b3047d9c72 | [log] [tgz] |
---|---|---|
author | Naveen Moses <naveen.mosess@hcl.com> | Fri Jul 15 19:32:27 2022 +0530 |
committer | Matt Spinler <spinler@us.ibm.com> | Tue Jul 26 13:14:00 2022 +0000 |
tree | c9d99e3cbc666d9a51adb0428686bd998674a6cd | |
parent | 8d281f1b73cd102c619c857a700f7352580d55f5 [diff] |
Rename handler methods to match dbus signal type The button handler process has multiple handlers which monitors for "Released" dbus signal but has handlers named "pressed". Such handlers has been renamed to match the signal type. Signed-off-by: Naveen Moses <naveen.mosess@hcl.com> Change-Id: Iff77569259df620dba2b04ed64ffc029fd9dee46
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" } ] },
}