summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuiying Wang <kuiying.wang@intel.com>2018-10-23 11:55:14 +0800
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2019-01-23 21:53:19 +0000
commiteb458375f1313fd9151f58d5f5d26c50a3f1986b (patch)
tree5a5135c5476be96c9d8c73df3a0c554b1bbc3616
parent3a5168723f1a610368a17d1fa5360bf6e04c62c3 (diff)
downloadphosphor-dbus-interfaces-eb458375f1313fd9151f58d5f5d26c50a3f1986b.zip
phosphor-dbus-interfaces-eb458375f1313fd9151f58d5f5d26c50a3f1986b.tar.gz
Add power control interface
methods: forcePowerOff properties: PGood State Note: All the interfaces are the low level interfaces to handle hardware. And provides supporting the high level interfaces like state-manager. They are the common interfaces and all the platforms implement them all. Change-Id: I6d90439879f5a4940cad03fd588dd233f81f2802 Signed-off-by: Kuiying Wang <kuiying.wang@intel.com>
-rw-r--r--xyz/openbmc_project/Chassis/Control/Power.interface.yaml31
1 files changed, 31 insertions, 0 deletions
diff --git a/xyz/openbmc_project/Chassis/Control/Power.interface.yaml b/xyz/openbmc_project/Chassis/Control/Power.interface.yaml
new file mode 100644
index 0000000..082586f
--- /dev/null
+++ b/xyz/openbmc_project/Chassis/Control/Power.interface.yaml
@@ -0,0 +1,31 @@
+description: >
+ Power control service
+methods:
+ - name: forcePowerOff
+ description: >
+ Force power off the host.
+ returns:
+ - name: status
+ type: boolean
+ description: >
+ The result of power off command.
+ errors:
+ - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
+ - xyz.openbmc_project.Chassis.Common.Error.IOError
+
+properties:
+ - name: PGood
+ type: boolean
+ default: false
+ description: >
+ PSU Power good property
+ It is a read-only property.
+ - name: State
+ type: int32
+ default: 0
+ description: >
+ System power status
+ 0: power is off
+ 1: power is on
+ Setting its value to change the system state
+ Read its value to get the system state. \ No newline at end of file
OpenPOWER on IntegriCloud