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-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 = ðernet;
|
label-mac-device = &gmac0;
|
||||||
};
|
};
|
||||||
|
|
||||||
chosen {
|
chosen {
|
||||||
@ -148,19 +148,25 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
ðernet {
|
&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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user