Skip to contentSkip to conversation

dt-bindings: iommu: Describe MT8195 infra IRQs

PATCH New Rob Herring (Arm) 1 participant 1 message Sep 23

Subsystems (4)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH v2 1/1 dt-bindings: iommu: Describe MT8195 infra IRQs

The MT8195 infra IOMMU has one fault interrupt per IOMMU bank with 5 banks. Keep other MediaTek IOMMUs limited to one unnamed interrupt.

Assisted-by LLM

---
v2:
- Drop unnecessary 'interrupt-names' addition

---
 .../bindings/iommu/mediatek,iommu.yaml         | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml +17 -1
index 79c573c47b08..cbda221a4fc5 100644
@@ -100,7 +100,10 @@ properties:
     maxItems: 1
 
   interrupts:
-    maxItems: 1
+    minItems: 1
+    maxItems: 5
+    description:
+      A single interrupt or one interrupt per bank.
 
   clocks:
     items:
@@ -155,6 +158,19 @@ required:
   - '#iommu-cells'
 
 allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: mediatek,mt8195-iommu-infra
+    then:
+      properties:
+        interrupts:
+          minItems: 5
+    else:
+      properties:
+        interrupts:
+          maxItems: 1
   - if:
       properties:
         compatible:
Signature · 1 line
2.53.0