Skip to content

Commit 784adeb

Browse files
Tooniisvireshk
authored andcommitted
dt-bindings: opp: qcom-opp: Convert to DT schema
Convert qcom-opp.txt to DT schema format. Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
1 parent 8188eaf commit 784adeb

File tree

2 files changed

+60
-19
lines changed

2 files changed

+60
-19
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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 bindings to describe OPP nodes.
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+
23+
properties:
24+
opp-level: true
25+
26+
qcom,opp-fuse-level:
27+
description: |
28+
A positive value representing the fuse corner/level associated with
29+
this OPP node. Sometimes several corners/levels shares a certain fuse
30+
corner/level. A fuse corner/level contains e.g. ref uV, min uV,
31+
and max uV.
32+
$ref: /schemas/types.yaml#/definitions/uint32
33+
34+
required:
35+
- opp-level
36+
- qcom,opp-fuse-level
37+
38+
required:
39+
- compatible
40+
41+
additionalProperties: false
42+
43+
examples:
44+
- |
45+
cpr_opp_table: opp-table-cpr {
46+
compatible = "operating-points-v2-qcom-level";
47+
48+
cpr_opp1: opp1 {
49+
opp-level = <1>;
50+
qcom,opp-fuse-level = <1>;
51+
};
52+
cpr_opp2: opp2 {
53+
opp-level = <2>;
54+
qcom,opp-fuse-level = <2>;
55+
};
56+
cpr_opp3: opp3 {
57+
opp-level = <3>;
58+
qcom,opp-fuse-level = <3>;
59+
};
60+
};

Documentation/devicetree/bindings/opp/qcom-opp.txt

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)