mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-01 06:17:07 +08:00
ramips: rework network settings for HC5861 (JI3)
This commit is contained in:
parent
f31d5fa1a7
commit
7e119a321b
@ -316,11 +316,14 @@ ramips_setup_interfaces()
|
|||||||
"1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0"
|
"1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0"
|
||||||
;;
|
;;
|
||||||
hc5661|\
|
hc5661|\
|
||||||
hc5861|\
|
|
||||||
y1s)
|
y1s)
|
||||||
ucidef_add_switch "switch0" \
|
ucidef_add_switch "switch0" \
|
||||||
"1:lan" "2:lan" "3:lan" "4:lan" "5:lan" "0:wan" "6@eth0"
|
"1:lan" "2:lan" "3:lan" "4:lan" "5:lan" "0:wan" "6@eth0"
|
||||||
;;
|
;;
|
||||||
|
hc5861)
|
||||||
|
ucidef_add_switch "switch0" \
|
||||||
|
"0:lan" "1:lan" "5:wan" "6@eth0"
|
||||||
|
;;
|
||||||
kn_rf)
|
kn_rf)
|
||||||
ucidef_add_switch "switch0" \
|
ucidef_add_switch "switch0" \
|
||||||
"0:wan" "1:lan" "2:lan" "3:lan" "4:lan" "6@eth0"
|
"0:wan" "1:lan" "2:lan" "3:lan" "4:lan" "6@eth0"
|
||||||
|
@ -72,15 +72,9 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
mtd-mac-address = <&factory 0x4>;
|
mtd-mac-address = <&factory 0x4>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
|
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
|
||||||
mediatek,portmap = "wllll";
|
mediatek,portmap = "wllll";
|
||||||
|
|
||||||
port@4 {
|
|
||||||
status = "okay";
|
|
||||||
phy-handle = <&phy4>;
|
|
||||||
phy-mode = "rgmii";
|
|
||||||
};
|
|
||||||
|
|
||||||
port@5 {
|
port@5 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
phy-handle = <&phy5>;
|
phy-handle = <&phy5>;
|
||||||
@ -90,11 +84,6 @@
|
|||||||
mdio-bus {
|
mdio-bus {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
phy4: ethernet-phy@4 {
|
|
||||||
reg = <4>;
|
|
||||||
phy-mode = "rgmii";
|
|
||||||
};
|
|
||||||
|
|
||||||
phy5: ethernet-phy@5 {
|
phy5: ethernet-phy@5 {
|
||||||
reg = <5>;
|
reg = <5>;
|
||||||
phy-mode = "rgmii";
|
phy-mode = "rgmii";
|
||||||
@ -102,18 +91,22 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&gsw {
|
|
||||||
mediatek,port4 = "gmac";
|
|
||||||
};
|
|
||||||
|
|
||||||
&pcie {
|
&pcie {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&pcie0 {
|
&pcie0 {
|
||||||
mt76@0,0 {
|
wifi@0,0 {
|
||||||
|
compatible = "pci14c3,7662";
|
||||||
reg = <0x0000 0 0 0 0>;
|
reg = <0x0000 0 0 0 0>;
|
||||||
mediatek,mtd-eeprom = <&factory 0x8000>;
|
mediatek,mtd-eeprom = <&factory 0x8000>;
|
||||||
ieee80211-freq-limit = <5000000 6000000>;
|
ieee80211-freq-limit = <5000000 6000000>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&state_default {
|
||||||
|
gpio {
|
||||||
|
ralink,group = "uartf", "wled", "rgmii2", "ephy";
|
||||||
|
ralink,function = "gpio";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user