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