aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2018-03-23 13:42:56 +0100
committerFelix Fietkau <nbd@nbd.name>2018-04-06 19:37:53 +0200
commit424a9ae128bd2045cd4bfd6e3229f2529d150a25 (patch)
tree2d82652a341a08c3edb660893c20315d5cafc41e /target/linux/ramips/dts
parentdea9922acd290b37a784d354892a44684a8fb696 (diff)
downloadupstream-424a9ae128bd2045cd4bfd6e3229f2529d150a25.tar.gz
upstream-424a9ae128bd2045cd4bfd6e3229f2529d150a25.tar.bz2
upstream-424a9ae128bd2045cd4bfd6e3229f2529d150a25.zip
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 <john@phrozen.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/ramips/dts')
-rw-r--r--target/linux/ramips/dts/mt7621.dtsi10
1 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi
index 23b5455d68..daca857f60 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>;