Skip to contentSkip to conversation

dt-bindings: mt76: allow up to 4 interrupts for mt7986

PATCH In review Frank Wunderlich 2 participants 2 messages Feb 7, 2023 – Feb 8, 2023

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: mt76: allow up to 4 interrupts for mt7986

From: Frank Wunderlich <[email protected]>

Mt7986 needs 4 interrupts which are already defined in mt7986a.dtsi. Update binding to reflect it

This fixes this error in dtbs_check (here only bpi-r3 example):

arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: wifi@18000000:
interrupts: [[0, 213, 4], [0, 214, 4], [0, 215, 4], [0, 216, 4]] is too long
From schema: Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: wifi@18000000:
Unevaluated properties are not allowed ('interrupts' was unexpected)
From schema: Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml

---
 .../devicetree/bindings/net/wireless/mediatek,mt76.yaml      | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml +4 -1
index 212508672979..222b657fe4ea 100644
@@ -38,7 +38,10 @@ properties:
       MT7986 should contain 3 regions consys, dcm, and sku, in this order.
 
   interrupts:
-    maxItems: 1
+    minItems: 1
+    maxItems: 4
+    description:
+      MT7986 should contain 4 items.
 
   power-domains:
     maxItems: 1
Signature · 1 line
2.34.1
maintainer
#1 lore raw
Quoted 24 lines · Frank Wunderlich

From: Frank Wunderlich <[email protected]>

Mt7986 needs 4 interrupts which are already defined in mt7986a.dtsi. Update binding to reflect it

This fixes this error in dtbs_check (here only bpi-r3 example):

arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: wifi@18000000:
interrupts: [[0, 213, 4], [0, 214, 4], [0, 215, 4], [0, 216, 4]] is too long
From schema: Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml
arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dtb: wifi@18000000:
Unevaluated properties are not allowed ('interrupts' was unexpected)
From schema: Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml

---
 .../devicetree/bindings/net/wireless/mediatek,mt76.yaml      | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml +0 -0
index 212508672979..222b657fe4ea 100644

Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml properties: · line 44

Quoted 8 lines
Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml +4 -1
@@ -38,7 +38,10 @@ properties:
       MT7986 should contain 3 regions consys, dcm, and sku, in this order.
 
   interrupts:
-    maxItems: 1
+    minItems: 1
+    maxItems: 4
+    description:
+      MT7986 should contain 4 items.

The schema and the description don't match.

You need to define what each interrupt is.

Rob