]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: opp: v2-qcom-level: Let qcom,opp-fuse-level be a 2-long array
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Mon, 16 Jan 2023 09:38:42 +0000 (10:38 +0100)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 31 Jan 2023 03:31:35 +0000 (09:01 +0530)
In some instances (particularly with CPRh) we might want to specifiy
more than one qcom,opp-fuse-level, as the same OPP subnodes may be
used by different "CPR threads". We need to make sure that
n = num_threads entries is legal and so far nobody seems to use more
than two, so let's allow that.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Documentation/devicetree/bindings/opp/opp-v2-qcom-level.yaml

index b9ce2e099ce9a953622358d96f8ca97042d44d35..a30ef93213c0990f4a4ab993f546ee140958ba47 100644 (file)
@@ -30,7 +30,9 @@ patternProperties:
           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
+        $ref: /schemas/types.yaml#/definitions/uint32-array
+        minItems: 1
+        maxItems: 2
 
     required:
       - opp-level