aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/opp/opp-v2-qcom-level.yaml
diff options
context:
space:
mode:
authorYassine Oudjana <y.oudjana@protonmail.com>2022-02-03 07:25:49 +0000
committerViresh Kumar <viresh.kumar@linaro.org>2022-02-11 10:03:51 +0530
commit784adeb3a37c2cfbcb24a5707ef751d164cac454 (patch)
tree752d1f564e154b0397c01c19d5c3e2dbf4788f30 /Documentation/devicetree/bindings/opp/opp-v2-qcom-level.yaml
parentarm64: dts: qcom: msm8996-mtp: Add msm8996 compatible (diff)
downloadlinux-dev-784adeb3a37c2cfbcb24a5707ef751d164cac454.tar.xz
linux-dev-784adeb3a37c2cfbcb24a5707ef751d164cac454.zip
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>
Diffstat (limited to 'Documentation/devicetree/bindings/opp/opp-v2-qcom-level.yaml')
-rw-r--r--Documentation/devicetree/bindings/opp/opp-v2-qcom-level.yaml60
1 files changed, 60 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/opp/opp-v2-qcom-level.yaml b/Documentation/devicetree/bindings/opp/opp-v2-qcom-level.yaml
new file mode 100644
index 000000000000..14a7a689ad6d
--- /dev/null
+++ b/Documentation/devicetree/bindings/opp/opp-v2-qcom-level.yaml
@@ -0,0 +1,60 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/opp/opp-v2-qcom-level.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm OPP bindings to describe OPP nodes.
+
+maintainers:
+ - Niklas Cassel <nks@flawful.org>
+
+allOf:
+ - $ref: opp-v2-base.yaml#
+
+properties:
+ compatible:
+ const: operating-points-v2-qcom-level
+
+patternProperties:
+ '^opp-?[0-9]+$':
+ type: object
+
+ properties:
+ opp-level: true
+
+ qcom,opp-fuse-level:
+ description: |
+ A positive value representing the fuse corner/level associated with
+ this OPP node. Sometimes several corners/levels shares a certain fuse
+ corner/level. A fuse corner/level contains e.g. ref uV, min uV,
+ and max uV.
+ $ref: /schemas/types.yaml#/definitions/uint32
+
+ required:
+ - opp-level
+ - qcom,opp-fuse-level
+
+required:
+ - compatible
+
+additionalProperties: false
+
+examples:
+ - |
+ cpr_opp_table: opp-table-cpr {
+ compatible = "operating-points-v2-qcom-level";
+
+ cpr_opp1: opp1 {
+ opp-level = <1>;
+ qcom,opp-fuse-level = <1>;
+ };
+ cpr_opp2: opp2 {
+ opp-level = <2>;
+ qcom,opp-fuse-level = <2>;
+ };
+ cpr_opp3: opp3 {
+ opp-level = <3>;
+ qcom,opp-fuse-level = <3>;
+ };
+ };