1*d5b0e70fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2*d5b0e70fSEmmanuel Vadot%YAML 1.2 3*d5b0e70fSEmmanuel Vadot--- 4*d5b0e70fSEmmanuel Vadot$id: "http://devicetree.org/schemas/arm/mediatek/mediatek,mt7622-wed.yaml#" 5*d5b0e70fSEmmanuel Vadot$schema: "http://devicetree.org/meta-schemas/core.yaml#" 6*d5b0e70fSEmmanuel Vadot 7*d5b0e70fSEmmanuel Vadottitle: MediaTek Wireless Ethernet Dispatch Controller for MT7622 8*d5b0e70fSEmmanuel Vadot 9*d5b0e70fSEmmanuel Vadotmaintainers: 10*d5b0e70fSEmmanuel Vadot - Lorenzo Bianconi <lorenzo@kernel.org> 11*d5b0e70fSEmmanuel Vadot - Felix Fietkau <nbd@nbd.name> 12*d5b0e70fSEmmanuel Vadot 13*d5b0e70fSEmmanuel Vadotdescription: 14*d5b0e70fSEmmanuel Vadot The mediatek wireless ethernet dispatch controller can be configured to 15*d5b0e70fSEmmanuel Vadot intercept and handle access to the WLAN DMA queues and PCIe interrupts 16*d5b0e70fSEmmanuel Vadot and implement hardware flow offloading from ethernet to WLAN. 17*d5b0e70fSEmmanuel Vadot 18*d5b0e70fSEmmanuel Vadotproperties: 19*d5b0e70fSEmmanuel Vadot compatible: 20*d5b0e70fSEmmanuel Vadot items: 21*d5b0e70fSEmmanuel Vadot - enum: 22*d5b0e70fSEmmanuel Vadot - mediatek,mt7622-wed 23*d5b0e70fSEmmanuel Vadot - const: syscon 24*d5b0e70fSEmmanuel Vadot 25*d5b0e70fSEmmanuel Vadot reg: 26*d5b0e70fSEmmanuel Vadot maxItems: 1 27*d5b0e70fSEmmanuel Vadot 28*d5b0e70fSEmmanuel Vadot interrupts: 29*d5b0e70fSEmmanuel Vadot maxItems: 1 30*d5b0e70fSEmmanuel Vadot 31*d5b0e70fSEmmanuel Vadotrequired: 32*d5b0e70fSEmmanuel Vadot - compatible 33*d5b0e70fSEmmanuel Vadot - reg 34*d5b0e70fSEmmanuel Vadot - interrupts 35*d5b0e70fSEmmanuel Vadot 36*d5b0e70fSEmmanuel VadotadditionalProperties: false 37*d5b0e70fSEmmanuel Vadot 38*d5b0e70fSEmmanuel Vadotexamples: 39*d5b0e70fSEmmanuel Vadot - | 40*d5b0e70fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 41*d5b0e70fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 42*d5b0e70fSEmmanuel Vadot soc { 43*d5b0e70fSEmmanuel Vadot #address-cells = <2>; 44*d5b0e70fSEmmanuel Vadot #size-cells = <2>; 45*d5b0e70fSEmmanuel Vadot wed0: wed@1020a000 { 46*d5b0e70fSEmmanuel Vadot compatible = "mediatek,mt7622-wed","syscon"; 47*d5b0e70fSEmmanuel Vadot reg = <0 0x1020a000 0 0x1000>; 48*d5b0e70fSEmmanuel Vadot interrupts = <GIC_SPI 214 IRQ_TYPE_LEVEL_LOW>; 49*d5b0e70fSEmmanuel Vadot }; 50*d5b0e70fSEmmanuel Vadot }; 51