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