commit | 1efa3e2969262594457441acc612216dd1e2e7e7 | [log] [tgz] |
---|---|---|
author | Matt Spinler <spinler@us.ibm.com> | Thu Apr 07 16:19:50 2022 -0500 |
committer | Matt Spinler <spinler@us.ibm.com> | Wed Jun 22 18:23:51 2022 +0000 |
tree | 832f7101875be155c1665fc6c1a4053312306536 | |
parent | 94afa4bacfda2c86fdccdd2c1a8cbeae3f2129ed [diff] |
Use proper path in service file Using /usr/bin/env is an antipattern. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Ife47cd4eec90d280a329c8e7977cd1051e5d9c75
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" } ] },
}