dt-bindings: net: wireless: mt76: add interrupts description for MT7986
Subsystems (4)
PATCH v3 1/1 dt-bindings: net: wireless: mt76: add interrupts description for MT7986
The mt7986 can support four interrupts to distribute the interrupts to different CPUs.
---
v2: Change to use description instead of using items.
v3: Change to use items and set different minItems for mediatek,mt7986-wmac
--- .../bindings/net/wireless/mediatek,mt76.yaml | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml +26 -2
@@ -38,7 +38,12 @@ properties: MT7986 should contain 3 regions consys, dcm, and sku, in this order. interrupts: - maxItems: 1 + minItems: 1 + items: + - description: major interrupt for rings + - description: additional interrupt for ring 19 + - description: additional interrupt for ring 4 + - description: additional interrupt for ring 5 power-domains: maxItems: 1
@@ -213,6 +218,22 @@ properties: description: Half-dBm power delta for different numbers of antennas +if: + properties: + compatible: + contains: + enum: + - mediatek,mt7986-wmac +then: + properties: + interrupts: + minItems: 4 +else: + properties: + interrupts: + maxItems: 1 + + required: - compatible - reg
@@ -293,7 +314,10 @@ examples: reg = <0x18000000 0x1000000>, <0x10003000 0x1000>, <0x11d10000 0x1000>; - interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>; + interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>; clocks = <&topckgen 50>, <&topckgen 62>; clock-names = "mcu", "ap2conn";
Signature · 1 line
2.18.0
Quoted 7 lines · Peter Chiu
The mt7986 can support four interrupts to distribute the interrupts to different CPUs.
Signed-off-by Peter Chiu <[email protected]>---
v2: Change to use description instead of using items.
v3: Change to use items and set different minItems for mediatek,mt7986-wmac
Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC (and consider --no-git-fallback argument). It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.
Quoted 25 lines
--- .../bindings/net/wireless/mediatek,mt76.yaml | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-)Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml +6
-1@@ -38,7 +38,12 @@ properties: MT7986 should contain 3 regions consys, dcm, and sku, in this order. interrupts: - maxItems: 1 + minItems: 1 + items: + - description: major interrupt for rings + - description: additional interrupt for ring 19 + - description: additional interrupt for ring 4 + - description: additional interrupt for ring 5power-domains:
maxItems: 1
Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml properties: · line 220
Quoted 3 lines
Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml +0
-0@@ -213,6 +218,22 @@ properties: description: Half-dBm power delta for different numbers of antennas
allOf:
And then please look at example-schema. This should be placed after required:.
Quoted 6 lines
Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml +6
-0+if: + properties: + compatible: + contains: + enum: + - mediatek,mt7986-wmac
Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml properties: · line 236
Quoted 10 lines
Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml +10
-0+then: + properties: + interrupts: + minItems: 4 +else: + properties: + interrupts: + maxItems: 1 + +
Just one blank line.
Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml properties: · line 238
Quoted 2 lines
Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml +0
-0required: - compatible
Best regards,
Krzysztof