mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
ramips: newifi-d2: switch to new hnat driver
This commit is contained in:
parent
9cd22dd829
commit
2be7428fbd
@ -12,7 +12,7 @@
|
||||
led-failsafe = &led_power_blue;
|
||||
led-running = &led_power_blue;
|
||||
led-upgrade = &led_power_blue;
|
||||
label-mac-device = ðernet;
|
||||
label-mac-device = &gmac0;
|
||||
};
|
||||
|
||||
chosen {
|
||||
@ -148,19 +148,25 @@
|
||||
};
|
||||
};
|
||||
|
||||
ðernet {
|
||||
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user