aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ramips/dts/mt7621_mqmaker_witi.dts18
-rw-r--r--target/linux/ramips/mt7621/base-files/etc/board.d/02_network3
2 files changed, 17 insertions, 4 deletions
diff --git a/target/linux/ramips/dts/mt7621_mqmaker_witi.dts b/target/linux/ramips/dts/mt7621_mqmaker_witi.dts
index 16cebbad74c..d785d741b1c 100644
--- a/target/linux/ramips/dts/mt7621_mqmaker_witi.dts
+++ b/target/linux/ramips/dts/mt7621_mqmaker_witi.dts
@@ -102,8 +102,9 @@
&gmac1 {
status = "okay";
- label = "wan";
- phy-handle = <&ethphy4>;
+ label = "wan2";
+ phy-mode = "rgmii-rxid";
+ phy-handle = <&ethphy5>;
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
@@ -111,8 +112,8 @@
};
&mdio {
- ethphy4: ethernet-phy@4 {
- reg = <4>;
+ ethphy5: ethernet-phy@5 {
+ reg = <5>;
};
};
@@ -137,6 +138,15 @@
status = "okay";
label = "lan4";
};
+
+ port@4 {
+ status = "okay";
+ label = "wan1";
+
+ nvmem-cells = <&macaddr_factory_e000>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
+ };
};
};
diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
index 38655ef746d..8039c9ede10 100644
--- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
@@ -110,6 +110,9 @@ ramips_setup_interfaces()
mikrotik,routerboard-760igs)
ucidef_set_interfaces_lan_wan "lan2 lan3 lan4 lan5" "wan sfp"
;;
+ mqmaker,witi)
+ ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan1 wan2"
+ ;;
tozed,zlt-s12-pro)
ucidef_set_interface_lan "lan1 lan2 lan3 wan"
ucidef_set_interface "wwan" device "/dev/ttyUSB0" protocol "ncm"