summaryrefslogtreecommitdiffstats
path: root/xyz/openbmc_project/Chassis/Buttons/Power.interface.yaml
diff options
context:
space:
mode:
authorKuiying Wang <kuiying.wang@intel.com>2018-06-26 11:52:34 +0800
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-08-08 04:12:25 +0000
commit4132f4b6b1de57a993af9bd2bcd039957786a227 (patch)
tree930387807cb8601348423d0e0fd19b3e97ece08c /xyz/openbmc_project/Chassis/Buttons/Power.interface.yaml
parent02486300e9f4c5a4af04ffbfd6898ee59c654873 (diff)
downloadphosphor-dbus-interfaces-4132f4b6b1de57a993af9bd2bcd039957786a227.tar.gz
phosphor-dbus-interfaces-4132f4b6b1de57a993af9bd2bcd039957786a227.zip
Upgrade D-Bus API about Buttons from “/org/openbmc” to
“/xyz/openbmc_project” According to the DEPRECATED API doc, the “/org/openbmc” API is deprecated in the future. Please refer: https://github.com/openbmc/docs/blob/master/deprecated/dbus-interfaces.md xyz.openbmc_project.Chassis.Buttons exposes the operation methods of the buttons on the front panal like Power/Reset/ID, and the signals like pressed/released to dbus, so that other modules could monitor/control these buttons remotely like WebUI. Change-Id: Iaf8990d19633d2df2beeb4b2c22f30f1abad6a45 Signed-off-by: Kuiying Wang <kuiying.wang@intel.com>
Diffstat (limited to 'xyz/openbmc_project/Chassis/Buttons/Power.interface.yaml')
-rw-r--r--xyz/openbmc_project/Chassis/Buttons/Power.interface.yaml27
1 files changed, 27 insertions, 0 deletions
diff --git a/xyz/openbmc_project/Chassis/Buttons/Power.interface.yaml b/xyz/openbmc_project/Chassis/Buttons/Power.interface.yaml
new file mode 100644
index 0000000..dc1c5ab
--- /dev/null
+++ b/xyz/openbmc_project/Chassis/Buttons/Power.interface.yaml
@@ -0,0 +1,27 @@
+description: >
+ Power button control service
+methods:
+ - name: simPress
+ description: >
+ Emulate power button press.
+ errors:
+ - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
+ - xyz.openbmc_project.Chassis.Common.Error.IOError
+
+ - name: simLongPress
+ description: >
+ Emulate power button long press.
+ errors:
+ - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
+ - xyz.openbmc_project.Chassis.Common.Error.IOError
+
+signals:
+ - name: Released
+ description: >
+ Power button released signal
+ - name: Pressed
+ description: >
+ Power button pressed signal
+ - name: PressedLong
+ description: >
+ Power button long pressed signal
OpenPOWER on IntegriCloud