Linux 6.7-rc7
[linux-modified.git] / Documentation / devicetree / bindings / opp / opp-v2-qcom-level.yaml
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
7 title: Qualcomm OPP
8
9 maintainers:
10   - Niklas Cassel <nks@flawful.org>
11
12 allOf:
13   - $ref: opp-v2-base.yaml#
14
15 properties:
16   compatible:
17     const: operating-points-v2-qcom-level
18
19 patternProperties:
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-array
34         minItems: 1
35         maxItems: 2
36
37     required:
38       - opp-level
39       - qcom,opp-fuse-level
40
41 required:
42   - compatible
43
44 additionalProperties: false
45
46 examples:
47   - |
48     cpr_opp_table: opp-table-cpr {
49         compatible = "operating-points-v2-qcom-level";
50
51         cpr_opp1: opp1 {
52             opp-level = <1>;
53             qcom,opp-fuse-level = <1>;
54         };
55         cpr_opp2: opp2 {
56             opp-level = <2>;
57             qcom,opp-fuse-level = <2>;
58         };
59         cpr_opp3: opp3 {
60             opp-level = <3>;
61             qcom,opp-fuse-level = <3>;
62         };
63     };