From 424a9ae128bd2045cd4bfd6e3229f2529d150a25 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 23 Mar 2018 13:42:56 +0100 Subject: ramips: implement hardware NAT offload for MT7621 Supports IPv4 flow offloading on MT7621 for Routing, SNAT and DNAT Supported are regular ethernet->ethernet connections, including one 802.1q VLAN and/or PPPoE encapsulation Signed-off-by: John Crispin Signed-off-by: Felix Fietkau --- target/linux/ramips/dts/mt7621.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'target/linux/ramips/dts/mt7621.dtsi') diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi index 23b5455..daca857 100644 --- a/target/linux/ramips/dts/mt7621.dtsi +++ b/target/linux/ramips/dts/mt7621.dtsi @@ -378,6 +378,16 @@ #size-cells = <1>; }; + hnat: hnat@1e100000 { + compatible = "mediatek,mt7623-hnat"; + reg = <0x1e100000 0x10000>; + mtketh-ppd = "eth0"; + mtketh-lan = "eth0"; + mtketh-wan = "eth0"; + resets = <&rstctrl 0>; + reset-names = "mtketh"; + }; + ethernet: ethernet@1e100000 { compatible = "mediatek,mt7621-eth"; reg = <0x1e100000 0x10000>; -- cgit v1.1