From: Krzysztof Kozlowski Date: Tue, 20 Aug 2024 06:31:24 +0000 (+0200) Subject: dt-bindings: i2c: qcom,i2c-cci: add missing clocks constraint in if:then: X-Git-Tag: v6.12-rc1~84^2^2~34 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=c1a5e6ffdd4f02ca32ef526ad83320cf123f27b8;p=linux-block.git dt-bindings: i2c: qcom,i2c-cci: add missing clocks constraint in if:then: Top level defines clocks as variable from 3 to 6 items, so each clause in if:then: should narrow it further with explicit min and maxItems. Without minItems, the constrain from top-level is being applied, thus qcom,msm8996-cci allows between 3 and 4 clocks. Signed-off-by: Krzysztof Kozlowski Acked-by: Conor Dooley Signed-off-by: Andi Shyti --- diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml index c33ae7b63b84..7dab3852c7f8 100644 --- a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml @@ -130,6 +130,7 @@ allOf: then: properties: clocks: + minItems: 4 maxItems: 4 clock-names: items: