ramips: newifi-d2: switch to new hnat driver

This commit is contained in:
AmadeusGhost 2022-05-28 23:30:29 +08:00 committed by AmadeusGhost
parent 9cd22dd829
commit 2be7428fbd

View File

@ -12,7 +12,7 @@
led-failsafe = &led_power_blue;
led-running = &led_power_blue;
led-upgrade = &led_power_blue;
label-mac-device = &ethernet;
label-mac-device = &gmac0;
};
chosen {
@ -148,19 +148,25 @@
};
};
&ethernet {
compatible = "mediatek,ralink-mt7621-eth";
mediatek,switch = <&gsw>;
&gmac0 {
mtd-mac-address = <&factory 0xe000>;
};
&switch0 {
/delete-property/ compatible;
phy-mode = "rgmii";
&gsw {
mediatek,portmap = "llllw";
status = "okay";
};
&gsw {
compatible = "mediatek,ralink-mt7621-gsw";
&hnat {
mtketh-wan = "eth0.2";
mtketh-ppd = "eth0.1";
mtketh-lan = "eth0";
mtketh-max-gmac = <1>;
/delete-property/ mtkdsa-wan-port;
};
&switch0 {
status = "disabled";
};
&state_default {