Skip to content

Commit 3ad6585

Browse files
konradybciowilldeacon
authored andcommitted
dt-bindings: arm-smmu: Document SM61[12]5 GPU SMMU
Both of these SoCs have a Qualcomm MMU500 implementation of SMMU in front of their GPUs that expect 3 clocks. Both of them also have an APPS SMMU that expects no clocks. Remove qcom,sm61[12]5-smmu-500 from the "no clocks" list (intentionally 'breaking' the schema checks of APPS SMMU, as now it *can* accept clocks - with the current structure of this file it would have taken a wastefully-long time to sort this out properly..) and add necessary yaml to describe the clocks required by the GPU SMMUs. Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230315-topic-kamorta_adrsmmu-v1-1-d1c0dea90bd9@linaro.org Signed-off-by: Will Deacon <will@kernel.org>
1 parent 16d1646 commit 3ad6585

1 file changed

Lines changed: 26 additions & 2 deletions

File tree

Documentation/devicetree/bindings/iommu/arm,smmu.yaml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ properties:
8080
items:
8181
- enum:
8282
- qcom,sc7280-smmu-500
83+
- qcom,sm6115-smmu-500
84+
- qcom,sm6125-smmu-500
8385
- qcom,sm8150-smmu-500
8486
- qcom,sm8250-smmu-500
8587
- qcom,sm8350-smmu-500
@@ -376,6 +378,30 @@ allOf:
376378
- description: interface clock required to access smmu's registers
377379
through the TCU's programming interface.
378380

381+
- if:
382+
properties:
383+
compatible:
384+
items:
385+
- enum:
386+
- qcom,sm6115-smmu-500
387+
- qcom,sm6125-smmu-500
388+
- const: qcom,adreno-smmu
389+
- const: qcom,smmu-500
390+
- const: arm,mmu-500
391+
then:
392+
properties:
393+
clock-names:
394+
items:
395+
- const: mem
396+
- const: hlos
397+
- const: iface
398+
399+
clocks:
400+
items:
401+
- description: GPU memory bus clock
402+
- description: Voter clock required for HLOS SMMU access
403+
- description: Interface clock required for register access
404+
379405
# Disallow clocks for all other platforms with specific compatibles
380406
- if:
381407
properties:
@@ -395,8 +421,6 @@ allOf:
395421
- qcom,sdm845-smmu-500
396422
- qcom,sdx55-smmu-500
397423
- qcom,sdx65-smmu-500
398-
- qcom,sm6115-smmu-500
399-
- qcom,sm6125-smmu-500
400424
- qcom,sm6350-smmu-500
401425
- qcom,sm6375-smmu-500
402426
- qcom,sm8350-smmu-500

0 commit comments

Comments
 (0)