ramips: use mt proprietary driver for Netgear R6800 (#6324)
* ramips: use mt proprietary driver for Netgear R6800 Signed-off-by: noire11 <noire.wei@gmail.com> * Merge branch 'master' of https://github.com/noire11/lede
This commit is contained in:
parent
22cfbe7faa
commit
0de1301c53
@ -9,7 +9,7 @@
|
|||||||
compatible = "mediatek,mt7621-soc";
|
compatible = "mediatek,mt7621-soc";
|
||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
label-mac-device = &gmac0;
|
label-mac-device = ðernet;
|
||||||
};
|
};
|
||||||
|
|
||||||
chosen {
|
chosen {
|
||||||
@ -61,39 +61,19 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&gmac0 {
|
ðernet {
|
||||||
|
compatible = "mediatek,ralink-mt7621-eth";
|
||||||
|
mediatek,switch = <&gsw>;
|
||||||
mtd-mac-address = <&factory 0x4>;
|
mtd-mac-address = <&factory 0x4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&switch0 {
|
&switch0 {
|
||||||
ports {
|
/delete-property/ compatible;
|
||||||
port@0 {
|
phy-mode = "rgmii";
|
||||||
status = "okay";
|
};
|
||||||
label = "lan4";
|
|
||||||
};
|
|
||||||
|
|
||||||
port@1 {
|
&gsw {
|
||||||
status = "okay";
|
compatible = "mediatek,ralink-mt7621-gsw";
|
||||||
label = "lan3";
|
|
||||||
};
|
|
||||||
|
|
||||||
port@2 {
|
|
||||||
status = "okay";
|
|
||||||
label = "lan2";
|
|
||||||
};
|
|
||||||
|
|
||||||
port@3 {
|
|
||||||
status = "okay";
|
|
||||||
label = "lan1";
|
|
||||||
};
|
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
label = "wan";
|
|
||||||
mtd-mac-address = <&factory 0x4>;
|
|
||||||
mtd-mac-address-increment = <2>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&i2c {
|
&i2c {
|
||||||
|
@ -56,6 +56,10 @@ ramips_setup_interfaces()
|
|||||||
mikrotik,routerboard-750gr3)
|
mikrotik,routerboard-750gr3)
|
||||||
ucidef_set_interfaces_lan_wan "lan2 lan3 lan4 lan5" "wan"
|
ucidef_set_interfaces_lan_wan "lan2 lan3 lan4 lan5" "wan"
|
||||||
;;
|
;;
|
||||||
|
netgear,r6800)
|
||||||
|
ucidef_add_switch "switch0" \
|
||||||
|
"0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan" "6@eth0"
|
||||||
|
;;
|
||||||
netgear,r6850|\
|
netgear,r6850|\
|
||||||
dlink,dir-867-a1|\
|
dlink,dir-867-a1|\
|
||||||
dlink,dir-878-a1|\
|
dlink,dir-878-a1|\
|
||||||
@ -159,6 +163,10 @@ ramips_setup_macs()
|
|||||||
wan_mac=$label_mac
|
wan_mac=$label_mac
|
||||||
lan_mac=$(macaddr_add $label_mac 1)
|
lan_mac=$(macaddr_add $label_mac 1)
|
||||||
;;
|
;;
|
||||||
|
netgear,r6800)
|
||||||
|
lan_mac=$(mtd_get_mac_binary factory 0x4)
|
||||||
|
wan_mac=$(macaddr_add "$lan_mac" 2)
|
||||||
|
;;
|
||||||
xiaomi,mir3g|\
|
xiaomi,mir3g|\
|
||||||
xiaomi,mi-router-ac2100|\
|
xiaomi,mi-router-ac2100|\
|
||||||
xiaomi,redmi-router-ac2100)
|
xiaomi,redmi-router-ac2100)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user