diff options
Diffstat (limited to 'xyz/openbmc_project/Chassis')
-rw-r--r-- | xyz/openbmc_project/Chassis/Buttons/ID.interface.yaml | 20 | ||||
-rw-r--r-- | xyz/openbmc_project/Chassis/Buttons/Power.interface.yaml | 39 | ||||
-rw-r--r-- | xyz/openbmc_project/Chassis/Buttons/Reset.interface.yaml | 29 | ||||
-rw-r--r-- | xyz/openbmc_project/Chassis/Common.errors.yaml | 6 | ||||
-rw-r--r-- | xyz/openbmc_project/Chassis/Control/Power.interface.yaml | 31 | ||||
-rw-r--r-- | xyz/openbmc_project/Chassis/Intrusion.interface.yaml | 10 | ||||
-rw-r--r-- | xyz/openbmc_project/Chassis/README.md | 39 |
7 files changed, 174 insertions, 0 deletions
diff --git a/xyz/openbmc_project/Chassis/Buttons/ID.interface.yaml b/xyz/openbmc_project/Chassis/Buttons/ID.interface.yaml new file mode 100644 index 0000000..0751ca4 --- /dev/null +++ b/xyz/openbmc_project/Chassis/Buttons/ID.interface.yaml @@ -0,0 +1,20 @@ +description: > + ID button is the system identification button, that allows the server to be + located in a rack, and can be enabled remotely via WebUI; + user can press ID button on the front panel and then walk around to the back + and quickly identify the rear bulkhead of the same server unit. +methods: + - name: simPress + description: > + Emulate ID button press. + errors: + - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand + - xyz.openbmc_project.Chassis.Common.Error.IOError + +signals: + - name: Released + description: > + ID button released signal + - name: Pressed + description: > + ID button pressed signal 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..466fc03 --- /dev/null +++ b/xyz/openbmc_project/Chassis/Buttons/Power.interface.yaml @@ -0,0 +1,39 @@ +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 + +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: > + Power button released signal + - name: Pressed + description: > + Power button pressed signal + - name: PressedLong + description: > + Power button long pressed signal 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..7db8bd5 --- /dev/null +++ b/xyz/openbmc_project/Chassis/Buttons/Reset.interface.yaml @@ -0,0 +1,29 @@ +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 + +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: > + Reset button released signal + - name: Pressed + description: > + Reset button pressed signal diff --git a/xyz/openbmc_project/Chassis/Common.errors.yaml b/xyz/openbmc_project/Chassis/Common.errors.yaml new file mode 100644 index 0000000..2df3649 --- /dev/null +++ b/xyz/openbmc_project/Chassis/Common.errors.yaml @@ -0,0 +1,6 @@ +- name: UnsupportedCommand + description: > + An unsupported command was attempted. +- name: IOError + description: > + An IO error occurred. 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 diff --git a/xyz/openbmc_project/Chassis/Intrusion.interface.yaml b/xyz/openbmc_project/Chassis/Intrusion.interface.yaml new file mode 100644 index 0000000..b3fba48 --- /dev/null +++ b/xyz/openbmc_project/Chassis/Intrusion.interface.yaml @@ -0,0 +1,10 @@ +description: > + Interface to query intrusion detector status. + +properties: + - name: Status + type: string + description: > + Status string of chassis intrusion detector. + The value is defined in chassis redfish schema. + Can be "Normal" or "HardwareIntrusion". diff --git a/xyz/openbmc_project/Chassis/README.md b/xyz/openbmc_project/Chassis/README.md new file mode 100644 index 0000000..d07a939 --- /dev/null +++ b/xyz/openbmc_project/Chassis/README.md @@ -0,0 +1,39 @@ +# Chassis Power Control + +## Overview +Chassis Power Control service exposes D-Bus methods for chassis power operations + +### Power Button Interface +Power button interface `xyz.openbmc_project.Chassis.Buttons.Power` +provides following methods, signals. + +#### methods +* simPress - To emulate physical power button press. +* simLongPress - To emulate physical power button long press. + +#### signals +* Released - Power button released signal. +* Pressed - Power button pressed signal. +* PressedLong - Power button long pressed signal. + +### ID Button Interface +ID button interface `xyz.openbmc_project.Chassis.Buttons.ID` +provides following methods, signals. + +#### methods +* simPress - To emulate ID button press. + +#### signals +* Released - ID button released signal. +* Pressed - ID button pressed signal. + +### Reset Button Interface +ID button interface `xyz.openbmc_project.Chassis.Buttons.Reset` +provides following methods, signals. + +#### methods +* simPress - To emulate reset button press. + +#### signals +* Released - Reset button released signal. +* Pressed - Reset button pressed signal.
\ No newline at end of file |