From f7e94d7f1cf8d3e4018f2613ec55fe9ef2108905 Mon Sep 17 00:00:00 2001 From: Yong Li Date: Fri, 3 Aug 2018 16:00:15 +0800 Subject: Add ACPI system/device power states properties Add ACPI system/device power states interface to support IPMI get/set ACPI state commands. It is different from existed dbus interface 'PowerState'. Based on the IPMI spec, this is an independent setting that may not necessarily match the actual power state of the system. system power state enumeration: S0/G0 0x00 S1 0x01 S2 0x02 S3 0x03 S4 0x04 S5/G2 0x05 S4/S5 0x06 G3 0x07 Sleeping 0x08 G1 sleeping 0x09 Override 0x0A Legacy on 0x20 Unknown 0x2A Device power state enumeration: D0 0x00 D1 0x01 D2 0x02 D3 0x03 Unknown 0x2A Change-Id: I39b393b67dc79ebb90054fcbe408e61e6b76fe36 Signed-off-by: Yong Li --- .../Control/Power/ACPIPowerState.interface.yaml | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 xyz/openbmc_project/Control/Power/ACPIPowerState.interface.yaml (limited to 'xyz') diff --git a/xyz/openbmc_project/Control/Power/ACPIPowerState.interface.yaml b/xyz/openbmc_project/Control/Power/ACPIPowerState.interface.yaml new file mode 100644 index 0000000..c8a3349 --- /dev/null +++ b/xyz/openbmc_project/Control/Power/ACPIPowerState.interface.yaml @@ -0,0 +1,62 @@ +description: > + Implement to set/get ACPI power status + +properties: + - name: SysACPIStatus + type: enum[self.ACPI] + description: > + The ACPI system power status. + + - name: DevACPIStatus + type: enum[self.ACPI] + description: > + The ACPI device power status. + +enumerations: + - name: ACPI + description: > + Possible ACPI status. + values: + - name: S0_G0_D0 + description: > + Working, the system is running + - name: S1_D1 + description: > + Hardware context maintained, typically equates to proc/chip + set clocks stopped. + - name: S2_D2 + description: > + Typically equates to stopped clocks with proc/cache context lost. + - name: S3_D3 + description: > + Typically equates to "suspend-to-RAM". + - name: S4 + description: > + Typically equates to "suspend-to-disk". + - name: S5_G2 + description: > + Soft off. + - name: S4_S5 + description: > + Sent when message source cannot differentiate between S4 and S5. + - name: G3 + description: > + Mechanical off. + - name: SLEEP + description: > + Sleeping - cannot differentiate between S1-S3. + - name: G1_SLEEP + description: > + Sleeping - cannot differentiate between S1-S4. + - name: OVERRIDE + description: > + S5 entered by override. + - name: LEGACY_ON + description: > + Legacy On - used when ACPI mode is disabled. + - name: LEGACY_OFF + description: > + Legacy Off - used when ACPI mode is disabled. + - name: Unknown + description: > + System power state has not been initialized. -- cgit v1.2.1