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>
diff --git a/xyz/openbmc_project/Chassis/Buttons/Reset.interface.yaml b/xyz/openbmc_project/Chassis/Buttons/Reset.interface.yaml
new file mode 100644
index 0000000..3c91afd
--- /dev/null
+++ b/xyz/openbmc_project/Chassis/Buttons/Reset.interface.yaml
@@ -0,0 +1,17 @@
+description: >
+ Reset button control service
+methods:
+ - name: simPress
+ description: >
+ Emulate reset button press.
+ errors:
+ - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
+ - xyz.openbmc_project.Chassis.Common.Error.IOError
+
+signals:
+ - name: Released
+ description: >
+ Reset button released signal
+ - name: Pressed
+ description: >
+ Reset button pressed signal