blob: 13606a28464f2fdf24f8e865efa1829173c1e58e [file] [log] [blame]
Patrick Williams8da396c2022-03-14 14:21:02 -05001description: Implement to provide the chassis power management
Andrew Geissler2477d9a2016-11-22 12:09:21 -06002
3properties:
4 - name: RequestedPowerTransition
5 type: enum[self.Transition]
Patrick Williams8da396c2022-03-14 14:21:02 -05006 default: "Off"
Andrew Geissler2477d9a2016-11-22 12:09:21 -06007 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -06008 The desired power transition to start on this chassis. This will be
9 preserved across AC power cycles of the BMC.
Andrew Geisslerabb61a02023-05-25 12:47:56 -050010 errors:
11 - xyz.openbmc_project.State.Chassis.Error.BMCNotReady
Andrew Geissler2477d9a2016-11-22 12:09:21 -060012
13 - name: CurrentPowerState
14 type: enum[self.PowerState]
15 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060016 A read-only property describing the current chassis power state. A
17 user can determine if a chassis is in transition by comparing the
18 CurrentPowerState and RequestedPowerTransition properties.
Andrew Geissler2477d9a2016-11-22 12:09:21 -060019
Andrew Geissler9c913322021-11-08 16:09:45 -060020 - name: CurrentPowerStatus
21 type: enum[self.PowerStatus]
22 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060023 A read-only property describing the current chassis power status. This
24 property aggregates all available information about the status of the
25 power coming into the chassis. Note that this is different then the
26 CurrentPowerState in that it provides status of the power coming into
27 the chassis, not the actual state of the chassis power.
Andrew Geissler9c913322021-11-08 16:09:45 -060028
Matt Spinlere0c06d72018-07-09 11:15:21 -050029 - name: LastStateChangeTime
30 type: uint64
31 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060032 The last time at which the chassis power changed state, as tracked by
33 the CurrentPowerState property, in epoch time, in milliseconds. This
34 can be used to tell when the chassis was last powered on or off.
Matt Spinlere0c06d72018-07-09 11:15:21 -050035
Andrew Geissler2477d9a2016-11-22 12:09:21 -060036enumerations:
37 - name: Transition
38 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050039 The desired power transition for the chassis
Andrew Geissler2477d9a2016-11-22 12:09:21 -060040 values:
Patrick Williams8da396c2022-03-14 14:21:02 -050041 - name: "Off"
42 description: >
43 Chassis power should be off
44 - name: "On"
45 description: >
46 Chassis power should be on
47 - name: "PowerCycle"
48 description: >
49 Chassis power should be cycled from off to on. There will be a 5
50 second delay between the off and the on.
Andrew Geissler2477d9a2016-11-22 12:09:21 -060051
52 - name: PowerState
53 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050054 The current state of the chassis power
Andrew Geissler2477d9a2016-11-22 12:09:21 -060055 values:
Patrick Williams8da396c2022-03-14 14:21:02 -050056 - name: "Off"
57 description: >
58 Chassis power is off
59 - name: "TransitioningToOff"
60 description: >
61 Firmware is transitioning the chassis to an Off state
62 - name: "On"
63 description: >
64 Chassis power is on
65 - name: "TransitioningToOn"
66 description: >
67 Firmware is transitioning the chassis to an On state
Andrew Geissler9c913322021-11-08 16:09:45 -060068
69 - name: PowerStatus
70 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050071 The current status of the chassis power
Andrew Geissler9c913322021-11-08 16:09:45 -060072 values:
Patrick Williams8da396c2022-03-14 14:21:02 -050073 - name: "Undefined"
74 description: >
75 Chassis power status is unknown
76 - name: "BrownOut"
77 description: >
78 Chassis power status is in a brownout condition.
79 - name: "UninterruptiblePowerSupply"
80 description: >
81 Chassis power is being provided via an uninterruptible power
Patrick Williamsa1347412022-12-06 10:56:22 -060082 supply. Note that some systems may choose to continue to use
83 this status, even once power has returned to the system, to
84 indicate the uninterruptible power supply is charging or is
85 below a certain threshold of charged. This provides system
86 owners the flexibility on whether their system requires a
87 certain level of charged uninterruptible power supply to be in a
88 'Good' state or not.
Patrick Williams8da396c2022-03-14 14:21:02 -050089 - name: "Good"
90 description: >
91 Chassis power status is in a good condition