9f2512a1d050aa51a87c0183c07fb51d649ea2b5
[openwrt/staging/pepe2k.git] /
1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Mon, 7 Feb 2022 10:27:22 +0100
3 Subject: [PATCH] arm64: dts: mediatek: mt7622: add support for coherent
4 DMA
5
6 It improves performance by eliminating the need for a cache flush on rx and tx
7
8 Signed-off-by: Felix Fietkau <nbd@nbd.name>
9 ---
10
11 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
12 +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
13 @@ -357,7 +357,7 @@
14 };
15
16 cci_control2: slave-if@5000 {
17 - compatible = "arm,cci-400-ctrl-if";
18 + compatible = "arm,cci-400-ctrl-if", "syscon";
19 interface-type = "ace";
20 reg = <0x5000 0x1000>;
21 };
22 @@ -938,6 +938,8 @@
23 power-domains = <&scpsys MT7622_POWER_DOMAIN_ETHSYS>;
24 mediatek,ethsys = <&ethsys>;
25 mediatek,sgmiisys = <&sgmiisys>;
26 + mediatek,cci-control = <&cci_control2>;
27 + dma-coherent;
28 #address-cells = <1>;
29 #size-cells = <0>;
30 status = "disabled";