xref: /freebsd/sys/contrib/device-tree/Bindings/opp/opp-v2-qcom-level.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
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
78bab661aSEmmanuel Vadottitle: Qualcomm OPP
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
22b97ee269SEmmanuel 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.
33*cb7aa33aSEmmanuel Vadot        $ref: /schemas/types.yaml#/definitions/uint32-array
34*cb7aa33aSEmmanuel Vadot        minItems: 1
35*cb7aa33aSEmmanuel Vadot        maxItems: 2
36c9ccf3a3SEmmanuel Vadot
37c9ccf3a3SEmmanuel Vadot    required:
38c9ccf3a3SEmmanuel Vadot      - opp-level
39c9ccf3a3SEmmanuel Vadot      - qcom,opp-fuse-level
40c9ccf3a3SEmmanuel Vadot
41c9ccf3a3SEmmanuel Vadotrequired:
42c9ccf3a3SEmmanuel Vadot  - compatible
43c9ccf3a3SEmmanuel Vadot
44c9ccf3a3SEmmanuel VadotadditionalProperties: false
45c9ccf3a3SEmmanuel Vadot
46c9ccf3a3SEmmanuel Vadotexamples:
47c9ccf3a3SEmmanuel Vadot  - |
48c9ccf3a3SEmmanuel Vadot    cpr_opp_table: opp-table-cpr {
49c9ccf3a3SEmmanuel Vadot        compatible = "operating-points-v2-qcom-level";
50c9ccf3a3SEmmanuel Vadot
51c9ccf3a3SEmmanuel Vadot        cpr_opp1: opp1 {
52c9ccf3a3SEmmanuel Vadot            opp-level = <1>;
53c9ccf3a3SEmmanuel Vadot            qcom,opp-fuse-level = <1>;
54c9ccf3a3SEmmanuel Vadot        };
55c9ccf3a3SEmmanuel Vadot        cpr_opp2: opp2 {
56c9ccf3a3SEmmanuel Vadot            opp-level = <2>;
57c9ccf3a3SEmmanuel Vadot            qcom,opp-fuse-level = <2>;
58c9ccf3a3SEmmanuel Vadot        };
59c9ccf3a3SEmmanuel Vadot        cpr_opp3: opp3 {
60c9ccf3a3SEmmanuel Vadot            opp-level = <3>;
61c9ccf3a3SEmmanuel Vadot            qcom,opp-fuse-level = <3>;
62c9ccf3a3SEmmanuel Vadot        };
63c9ccf3a3SEmmanuel Vadot    };
64