Debian Codegraph @

dtschema/schemas/power-domain/power-domain-consumer.yaml

raw
1 # SPDX-License-Identifier: BSD-2-Clause
2 # Copyright 2019 ARM Ltd.
3 # Copyright 2019 Linaro Ltd.
4 %YAML 1.2
5 ---
6 $id: http://devicetree.org/schemas/power-domain/power-domain-consumer.yaml#
7 $schema: http://devicetree.org/meta-schemas/base.yaml#
8
9 title: Power Domain Consumer Common Properties
10
11 maintainers:
12 - Rob Herring <[email protected]>
13
14 # always select the core schema
15 select: true
16
17 properties:
18 power-domains:
19 description:
20 A list of PM domain specifiers, as defined by bindings of the power
21 controller that is the PM domain provider.
22 $ref: /schemas/types.yaml#/definitions/phandle-array
23
24 power-domain-names:
25 description:
26 A list of power domain name strings sorted in the same order as the
27 power-domains property. Consumers drivers will use power-domain-names to
28 match power domains with power-domains specifiers.
29 $ref: /schemas/types.yaml#/definitions/string-array
30
31 dependencies:
32 power-domain-names: [ power-domains ]
33
34 additionalProperties: true
35
36 examples:
37 - |
38 leaky-device@12350000 {
39 compatible = "foo,i-leak-current";
40 reg = <0x12350000 0x1000>;
41 power-domains = <&power 0>;
42 power-domain-names = "io";
43 };
44
45 leaky-device@12351000 {
46 compatible = "foo,i-leak-current";
47 reg = <0x12351000 0x1000>;
48 power-domains = <&power 0>, <&power 1> ;
49 power-domain-names = "io", "clk";
50 };