ramips: jcg y2: switch to new hnat driver

This commit is contained in:
AmadeusGhost 2022-06-10 21:28:20 +08:00 committed by AmadeusGhost
parent f46c60443c
commit c78af7bc21
2 changed files with 20 additions and 27 deletions

View File

@ -92,34 +92,26 @@
mtd-mac-address = <&factory 0xe000>;
};
&gmac1 {
mtd-mac-address = <&factory 0xe006>;
status = "okay";
};
&gsw {
mediatek,portmap = "llllw";
status = "okay";
};
&hnat {
mtketh-wan = "eth1";
mtketh-ppd = "eth0";
mtketh-lan = "eth0";
mtketh-max-gmac = <2>;
/delete-property/ mtkdsa-wan-port;
};
&switch0 {
ports {
port@0 {
status = "okay";
label = "lan4";
};
port@1 {
status = "okay";
label = "lan3";
};
port@2 {
status = "okay";
label = "lan2";
};
port@3 {
status = "okay";
label = "lan1";
};
wan: port@4 {
status = "okay";
label = "wan";
mtd-mac-address = <&factory 0xe006>;
};
};
status = "disabled";
};
&state_default {

View File

@ -75,6 +75,7 @@ ramips_setup_interfaces()
mikrotik,routerboard-760igs)
ucidef_set_interfaces_lan_wan "lan2 lan3 lan4 lan5" "wan sfp"
;;
jcg,y2|\
phicomm,k2p|\
xiaoyu,xy-c5)
ucidef_add_switch "switch0" \