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-failsafe = &led_power_blue;
led-running = &led_power_blue; led-running = &led_power_blue;
led-upgrade = &led_power_blue; led-upgrade = &led_power_blue;
label-mac-device = &ethernet; label-mac-device = &gmac0;
}; };
chosen { chosen {
@ -148,19 +148,25 @@
}; };
}; };
&ethernet { &gmac0 {
compatible = "mediatek,ralink-mt7621-eth";
mediatek,switch = <&gsw>;
mtd-mac-address = <&factory 0xe000>; mtd-mac-address = <&factory 0xe000>;
}; };
&switch0 { &gsw {
/delete-property/ compatible; mediatek,portmap = "llllw";
phy-mode = "rgmii"; status = "okay";
}; };
&gsw { &hnat {
compatible = "mediatek,ralink-mt7621-gsw"; 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 { &state_default {