summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuiying Wang <kuiying.wang@intel.com>2018-12-26 16:14:00 +0800
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2019-01-23 21:53:11 +0000
commit3a5168723f1a610368a17d1fa5360bf6e04c62c3 (patch)
tree12a7255ffb4011de195e2044445167f2d8eb2aca
parentda29706fc3b56bdfdcd5b52266319e956c28ec7c (diff)
downloadphosphor-dbus-interfaces-3a5168723f1a610368a17d1fa5360bf6e04c62c3.tar.gz
phosphor-dbus-interfaces-3a5168723f1a610368a17d1fa5360bf6e04c62c3.zip
Define enabled property for reset/power button
It is used to disable/enable reset/power button. Set front panel button enables command depends on this. Change-Id: I4cb3dabce889376d87dde570c56a456835a9a66e Signed-off-by: Kuiying Wang <kuiying.wang@intel.com>
-rw-r--r--xyz/openbmc_project/Chassis/Buttons/Power.interface.yaml12
-rw-r--r--xyz/openbmc_project/Chassis/Buttons/Reset.interface.yaml12
2 files changed, 24 insertions, 0 deletions
diff --git a/xyz/openbmc_project/Chassis/Buttons/Power.interface.yaml b/xyz/openbmc_project/Chassis/Buttons/Power.interface.yaml
index dc1c5ab..466fc03 100644
--- a/xyz/openbmc_project/Chassis/Buttons/Power.interface.yaml
+++ b/xyz/openbmc_project/Chassis/Buttons/Power.interface.yaml
@@ -15,6 +15,18 @@ methods:
- xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
- xyz.openbmc_project.Chassis.Common.Error.IOError
+properties:
+ - name: Enabled
+ type: boolean
+ default: true
+ description: >
+ Enable/disable power button.
+ false means power button is disabled
+ true means power button is enabled
+ errors:
+ - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
+ - xyz.openbmc_project.Chassis.Common.Error.IOError
+
signals:
- name: Released
description: >
diff --git a/xyz/openbmc_project/Chassis/Buttons/Reset.interface.yaml b/xyz/openbmc_project/Chassis/Buttons/Reset.interface.yaml
index 3c91afd..7db8bd5 100644
--- a/xyz/openbmc_project/Chassis/Buttons/Reset.interface.yaml
+++ b/xyz/openbmc_project/Chassis/Buttons/Reset.interface.yaml
@@ -8,6 +8,18 @@ methods:
- xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
- xyz.openbmc_project.Chassis.Common.Error.IOError
+properties:
+ - name: Enabled
+ type: boolean
+ default: true
+ description: >
+ Enable/disable reset button.
+ false means reset button is disabled
+ true means reset button is enabled
+ errors:
+ - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
+ - xyz.openbmc_project.Chassis.Common.Error.IOError
+
signals:
- name: Released
description: >
OpenPOWER on IntegriCloud