xref: /freebsd/sys/contrib/device-tree/Bindings/opp/opp-v2-qcom-level.yaml (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/opp/opp-v2-qcom-level.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm OPP bindings to describe OPP nodes.
8
9maintainers:
10  - Niklas Cassel <nks@flawful.org>
11
12allOf:
13  - $ref: opp-v2-base.yaml#
14
15properties:
16  compatible:
17    const: operating-points-v2-qcom-level
18
19patternProperties:
20  '^opp-?[0-9]+$':
21    type: object
22    additionalProperties: false
23
24    properties:
25      opp-level: true
26
27      qcom,opp-fuse-level:
28        description: |
29          A positive value representing the fuse corner/level associated with
30          this OPP node. Sometimes several corners/levels shares a certain fuse
31          corner/level. A fuse corner/level contains e.g. ref uV, min uV,
32          and max uV.
33        $ref: /schemas/types.yaml#/definitions/uint32
34
35    required:
36      - opp-level
37      - qcom,opp-fuse-level
38
39required:
40  - compatible
41
42additionalProperties: false
43
44examples:
45  - |
46    cpr_opp_table: opp-table-cpr {
47        compatible = "operating-points-v2-qcom-level";
48
49        cpr_opp1: opp1 {
50            opp-level = <1>;
51            qcom,opp-fuse-level = <1>;
52        };
53        cpr_opp2: opp2 {
54            opp-level = <2>;
55            qcom,opp-fuse-level = <2>;
56        };
57        cpr_opp3: opp3 {
58            opp-level = <3>;
59            qcom,opp-fuse-level = <3>;
60        };
61    };
62