lkml.org 
[lkml]   [2022]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v4 01/20] dt-bindings: iommu: mediatek: Increase max interrupt number
Date
mt8195 infra iommu uses 5 interrupts.

Signed-off-by: Tinghan Shen <tinghan.shen@mediatek.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
.../bindings/iommu/mediatek,iommu.yaml | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml b/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml
index fee0241b50988..5afe2a0045330 100644
--- a/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml
+++ b/Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml
@@ -91,7 +91,8 @@ properties:
maxItems: 1

interrupts:
- maxItems: 1
+ minItems: 1
+ maxItems: 5

clocks:
items:
@@ -191,9 +192,24 @@ allOf:
const: mediatek,mt8195-iommu-infra

then:
+ properties:
+ interrupts:
+ maxItems: 1
+
required:
- mediatek,larbs

+ else:
+ properties:
+ interrupts:
+ description: The IOMMU has 5 banks. Each bank has its own interrupt.
+ items:
+ - description: The interrupt for IOMMU bank0
+ - description: The interrupt for IOMMU bank1
+ - description: The interrupt for IOMMU bank2
+ - description: The interrupt for IOMMU bank3
+ - description: The interrupt for IOMMU bank4
+
additionalProperties: false

examples:
--
2.18.0
\
 
 \ /
  Last update: 2022-07-29 08:33    [W:0.184 / U:1.728 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site