xref: /freebsd/sys/contrib/device-tree/Bindings/power/domain-idle-state.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/power/domain-idle-state.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: PM Domain Idle States
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Ulf Hansson <ulf.hansson@linaro.org>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotdescription:
13c66ec88fSEmmanuel Vadot  A domain idle state node represents the state parameters that will be used to
14c66ec88fSEmmanuel Vadot  select the state when there are no active components in the PM domain.
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadotproperties:
17c66ec88fSEmmanuel Vadot  $nodename:
18c66ec88fSEmmanuel Vadot    const: domain-idle-states
19c66ec88fSEmmanuel Vadot
20c66ec88fSEmmanuel VadotpatternProperties:
21c66ec88fSEmmanuel Vadot  "^(cpu|cluster|domain)-":
22c66ec88fSEmmanuel Vadot    type: object
237ef62cebSEmmanuel Vadot    additionalProperties: false
24c66ec88fSEmmanuel Vadot    description:
25c66ec88fSEmmanuel Vadot      Each state node represents a domain idle state description.
26c66ec88fSEmmanuel Vadot
27c66ec88fSEmmanuel Vadot    properties:
28c66ec88fSEmmanuel Vadot      compatible:
29c66ec88fSEmmanuel Vadot        const: domain-idle-state
30c66ec88fSEmmanuel Vadot
31c66ec88fSEmmanuel Vadot      entry-latency-us:
32c66ec88fSEmmanuel Vadot        description:
33c66ec88fSEmmanuel Vadot          The worst case latency in microseconds required to enter the idle
34c66ec88fSEmmanuel Vadot          state. Note that, the exit-latency-us duration may be guaranteed only
35c66ec88fSEmmanuel Vadot          after the entry-latency-us has passed.
36c66ec88fSEmmanuel Vadot
37c66ec88fSEmmanuel Vadot      exit-latency-us:
38c66ec88fSEmmanuel Vadot        description:
39c66ec88fSEmmanuel Vadot          The worst case latency in microseconds required to exit the idle
40c66ec88fSEmmanuel Vadot          state.
41c66ec88fSEmmanuel Vadot
42c66ec88fSEmmanuel Vadot      min-residency-us:
43c66ec88fSEmmanuel Vadot        description:
44c66ec88fSEmmanuel Vadot          The minimum residency duration in microseconds after which the idle
45c66ec88fSEmmanuel Vadot          state will yield power benefits, after overcoming the overhead while
46c66ec88fSEmmanuel Vadot          entering the idle state.
47c66ec88fSEmmanuel Vadot
487ef62cebSEmmanuel Vadot      arm,psci-suspend-param:
497ef62cebSEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/uint32
507ef62cebSEmmanuel Vadot        description: |
517ef62cebSEmmanuel Vadot          power_state parameter to pass to the ARM PSCI suspend call.
527ef62cebSEmmanuel Vadot
537ef62cebSEmmanuel Vadot          Device tree nodes that require usage of PSCI CPU_SUSPEND function
547ef62cebSEmmanuel Vadot          (i.e. idle states node with entry-method property is set to "psci")
557ef62cebSEmmanuel Vadot          must specify this property.
567ef62cebSEmmanuel Vadot
57c66ec88fSEmmanuel Vadot    required:
58c66ec88fSEmmanuel Vadot      - compatible
59c66ec88fSEmmanuel Vadot      - entry-latency-us
60c66ec88fSEmmanuel Vadot      - exit-latency-us
61c66ec88fSEmmanuel Vadot      - min-residency-us
62c66ec88fSEmmanuel Vadot
636be33864SEmmanuel VadotadditionalProperties: false
646be33864SEmmanuel Vadot
65c66ec88fSEmmanuel Vadotexamples:
66c66ec88fSEmmanuel Vadot  - |
67c66ec88fSEmmanuel Vadot
68c66ec88fSEmmanuel Vadot    domain-idle-states {
69c66ec88fSEmmanuel Vadot      domain_retention: domain-retention {
70c66ec88fSEmmanuel Vadot        compatible = "domain-idle-state";
71c66ec88fSEmmanuel Vadot        entry-latency-us = <20>;
72c66ec88fSEmmanuel Vadot        exit-latency-us = <40>;
73c66ec88fSEmmanuel Vadot        min-residency-us = <80>;
74c66ec88fSEmmanuel Vadot      };
75c66ec88fSEmmanuel Vadot    };
76c66ec88fSEmmanuel Vadot...
77