mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 10:39:04 +00:00
ramips: add wan2 support for MQmaker WiTi
The PHY of the wan2 port on MQmaker WiTi is wired to the second MAC of the
SoC. Rename the wan interface to wan1 and define it under the switch node,
effectively disabling the PHY muxing of the MT7530 switch's phy4.
Define the PHY of the wan2 port and adjust the gmac1 node accordingly. Now
that the PHY muxing feature is not being used anymore, the wan2 port can be
used to achieve 2 Gbps total bandwidth to the CPU.
Tested-by: Demetris Ierokipides <ierokipides.dem@gmail.com>
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
(cherry picked from commit 8bf9a8a5e6
)
This commit is contained in:
parent
e573b6b557
commit
b20da12eca
@ -102,8 +102,9 @@
|
|||||||
|
|
||||||
&gmac1 {
|
&gmac1 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
label = "wan";
|
label = "wan2";
|
||||||
phy-handle = <ðphy4>;
|
phy-mode = "rgmii-rxid";
|
||||||
|
phy-handle = <ðphy5>;
|
||||||
|
|
||||||
nvmem-cells = <&macaddr_factory_e000>;
|
nvmem-cells = <&macaddr_factory_e000>;
|
||||||
nvmem-cell-names = "mac-address";
|
nvmem-cell-names = "mac-address";
|
||||||
@ -111,8 +112,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&mdio {
|
&mdio {
|
||||||
ethphy4: ethernet-phy@4 {
|
ethphy5: ethernet-phy@5 {
|
||||||
reg = <4>;
|
reg = <5>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -137,6 +138,15 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
label = "lan4";
|
label = "lan4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
port@4 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan1";
|
||||||
|
|
||||||
|
nvmem-cells = <&macaddr_factory_e000>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
mac-address-increment = <1>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -115,6 +115,9 @@ 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"
|
||||||
;;
|
;;
|
||||||
|
mqmaker,witi)
|
||||||
|
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan1 wan2"
|
||||||
|
;;
|
||||||
tozed,zlt-s12-pro)
|
tozed,zlt-s12-pro)
|
||||||
ucidef_set_interface_lan "lan1 lan2 lan3 wan"
|
ucidef_set_interface_lan "lan1 lan2 lan3 wan"
|
||||||
ucidef_set_interface "wwan" device "/dev/ttyUSB0" protocol "ncm"
|
ucidef_set_interface "wwan" device "/dev/ttyUSB0" protocol "ncm"
|
||||||
|
Loading…
Reference in New Issue
Block a user