dt-bindings: arm-smmu: Fix SM8[45]50 GPU SMMU 'if' condition
authorNeil Armstrong <neil.armstrong@linaro.org>
Fri, 16 Feb 2024 11:03:49 +0000 (12:03 +0100)
committerWill Deacon <will@kernel.org>
Thu, 22 Feb 2024 18:01:01 +0000 (18:01 +0000)
The 'if' condition for the SM8[45]50 GPU SMMU is too large,
add the other compatible strings to the condition to only
allow the clocks for the GPU SMMU nodes.

Fixes: 4fff78dc2490 ("dt-bindings: arm-smmu: Document SM8[45]50 GPU SMMU")
Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240216-topic-sm8650-gpu-v3-2-eb1f4b86d8d3@linaro.org
Signed-off-by: Will Deacon <will@kernel.org>
Documentation/devicetree/bindings/iommu/arm,smmu.yaml

index 4a8d4022aebc2c8efe673e1b6269905b09845f08..7197e0eaa6577ab99fc9774031654bd8b0daa1c2 100644 (file)
@@ -486,7 +486,12 @@ allOf:
   - if:
       properties:
         compatible:
-          const: qcom,sm8450-smmu-500
+          items:
+            - const: qcom,sm8450-smmu-500
+            - const: qcom,adreno-smmu
+            - const: qcom,smmu-500
+            - const: arm,mmu-500
+
     then:
       properties:
         clock-names:
@@ -510,7 +515,11 @@ allOf:
   - if:
       properties:
         compatible:
-          const: qcom,sm8550-smmu-500
+          items:
+            - const: qcom,sm8550-smmu-500
+            - const: qcom,adreno-smmu
+            - const: qcom,smmu-500
+            - const: arm,mmu-500
     then:
       properties:
         clock-names: