mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-16 12:35:30 +08:00
ramips: jcg y2: switch to new hnat driver
This commit is contained in:
parent
f46c60443c
commit
c78af7bc21
@ -92,34 +92,26 @@
|
|||||||
mtd-mac-address = <&factory 0xe000>;
|
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 {
|
&switch0 {
|
||||||
ports {
|
status = "disabled";
|
||||||
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>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&state_default {
|
&state_default {
|
||||||
|
@ -75,6 +75,7 @@ ramips_setup_interfaces()
|
|||||||
mikrotik,routerboard-760igs)
|
mikrotik,routerboard-760igs)
|
||||||
ucidef_set_interfaces_lan_wan "lan2 lan3 lan4 lan5" "wan sfp"
|
ucidef_set_interfaces_lan_wan "lan2 lan3 lan4 lan5" "wan sfp"
|
||||||
;;
|
;;
|
||||||
|
jcg,y2|\
|
||||||
phicomm,k2p|\
|
phicomm,k2p|\
|
||||||
xiaoyu,xy-c5)
|
xiaoyu,xy-c5)
|
||||||
ucidef_add_switch "switch0" \
|
ucidef_add_switch "switch0" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user