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