1description: >
2    Power button control service
3methods:
4    - name: simPress
5      description: >
6          Emulate power button press.
7      errors:
8          - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
9          - xyz.openbmc_project.Chassis.Common.Error.IOError
10    - name: simLongPress
11      description: >
12          Emulate power button long press.
13      errors:
14          - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
15          - xyz.openbmc_project.Chassis.Common.Error.IOError
16
17properties:
18    - name: Enabled
19      type: boolean
20      default: true
21      description: >
22          Enable/disable power button. false means power button is disabled true
23          means power button is enabled
24      errors:
25          - xyz.openbmc_project.Chassis.Common.Error.UnsupportedCommand
26          - xyz.openbmc_project.Chassis.Common.Error.IOError
27
28signals:
29    - name: Released
30      description: >
31          Power button released signal
32      properties:
33          - name: time
34            type: uint64
35            description: >
36                Power button pressing duration in microseconds
37    - name: Pressed
38      description: >
39          Power button pressed signal
40    - name: PressedLong
41      description: >
42          Power button long pressed signal
43