ramips: oraybox x3a: switch to new hnat driver

This commit is contained in:
coolsnowwolf 2023-03-02 16:15:48 +08:00
parent 4e53878138
commit f1edc86983
2 changed files with 25 additions and 20 deletions

View File

@ -128,26 +128,28 @@
nvmem-cell-names = "mac-address";
};
&gmac1 {
nvmem-cells = <&macaddr_bdinfo_9>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
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@2 {
status = "okay";
label = "lan2";
};
port@3 {
status = "okay";
label = "lan1";
};
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_bdinfo_9>;
nvmem-cell-names = "mac-address";
mac-address-increment = <1>;
};
};
status = "disabled";
};
&state_default {

View File

@ -36,7 +36,6 @@ ramips_setup_interfaces()
jdcloud,re-sp-01b|\
lenovo,newifi-d1|\
mikrotik,routerboard-m33g|\
oraybox,x3a|\
xiaomi,mi-router-3g|\
xiaomi,mi-router-3g-v2|\
xiaomi,mi-router-4|\
@ -82,6 +81,10 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6u@eth0" "5u@eth1"
;;
oraybox,x3a)
ucidef_add_switch "switch0" \
"2:lan:2" "3:lan:1" "4:wan" "6u@eth0" "5u@eth1"
;;
raisecom,msg1500-x-00)
ucidef_add_switch "switch0" \
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan:5" "6u@eth0" "5u@eth1"