Skip to content

Commit ceb82ac

Browse files
LorenzoBianconidavem330
authored andcommitted
dt-bindings: net: mediatek: add WED RX binding for MT7986 eth driver
Document the binding for the RX Wireless Ethernet Dispatch core on the MT7986 ethernet driver used to offload traffic received by WLAN NIC and forwarded to LAN/WAN one. Signed-off-by: Lorenzo Bianconi <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent eed4f1d commit ceb82ac

File tree

2 files changed

+103
-0
lines changed

2 files changed

+103
-0
lines changed

Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-wed.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,38 @@ properties:
2929
interrupts:
3030
maxItems: 1
3131

32+
memory-region:
33+
items:
34+
- description: firmware EMI region
35+
- description: firmware ILM region
36+
- description: firmware DLM region
37+
- description: firmware CPU DATA region
38+
- description: firmware BOOT region
39+
40+
memory-region-names:
41+
items:
42+
- const: wo-emi
43+
- const: wo-ilm
44+
- const: wo-dlm
45+
- const: wo-data
46+
- const: wo-boot
47+
48+
mediatek,wo-ccif:
49+
$ref: /schemas/types.yaml#/definitions/phandle
50+
description: mediatek wed-wo controller interface.
51+
52+
allOf:
53+
- if:
54+
properties:
55+
compatible:
56+
contains:
57+
const: mediatek,mt7622-wed
58+
then:
59+
properties:
60+
memory-region-names: false
61+
memory-region: false
62+
mediatek,wo-ccif: false
63+
3264
required:
3365
- compatible
3466
- reg
@@ -49,3 +81,23 @@ examples:
4981
interrupts = <GIC_SPI 214 IRQ_TYPE_LEVEL_LOW>;
5082
};
5183
};
84+
85+
- |
86+
#include <dt-bindings/interrupt-controller/arm-gic.h>
87+
#include <dt-bindings/interrupt-controller/irq.h>
88+
soc {
89+
#address-cells = <2>;
90+
#size-cells = <2>;
91+
92+
wed@15010000 {
93+
compatible = "mediatek,mt7986-wed", "syscon";
94+
reg = <0 0x15010000 0 0x1000>;
95+
interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>;
96+
97+
memory-region = <&wo_emi>, <&wo_ilm>, <&wo_dlm>,
98+
<&wo_data>, <&wo_boot>;
99+
memory-region-names = "wo-emi", "wo-ilm", "wo-dlm",
100+
"wo-data", "wo-boot";
101+
mediatek,wo-ccif = <&wo_ccif0>;
102+
};
103+
};
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/soc/mediatek/mediatek,mt7986-wo-ccif.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: MediaTek Wireless Ethernet Dispatch (WED) WO controller interface for MT7986
8+
9+
maintainers:
10+
- Lorenzo Bianconi <[email protected]>
11+
- Felix Fietkau <[email protected]>
12+
13+
description:
14+
The MediaTek wo-ccif provides a configuration interface for WED WO
15+
controller used to perfrom offload rx packet processing (e.g. 802.11
16+
aggregation packet reordering or rx header translation) on MT7986 soc.
17+
18+
properties:
19+
compatible:
20+
items:
21+
- enum:
22+
- mediatek,mt7986-wo-ccif
23+
- const: syscon
24+
25+
reg:
26+
maxItems: 1
27+
28+
interrupts:
29+
maxItems: 1
30+
31+
required:
32+
- compatible
33+
- reg
34+
- interrupts
35+
36+
additionalProperties: false
37+
38+
examples:
39+
- |
40+
#include <dt-bindings/interrupt-controller/arm-gic.h>
41+
#include <dt-bindings/interrupt-controller/irq.h>
42+
soc {
43+
#address-cells = <2>;
44+
#size-cells = <2>;
45+
46+
syscon@151a5000 {
47+
compatible = "mediatek,mt7986-wo-ccif", "syscon";
48+
reg = <0 0x151a5000 0 0x1000>;
49+
interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>;
50+
};
51+
};

0 commit comments

Comments
 (0)