aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts
diff options
context:
space:
mode:
authorChen Minqiang <ptpt52@gmail.com>2019-02-22 22:38:59 +0800
committerChristian Lamparter <chunkeey@gmail.com>2019-03-06 22:02:56 +0100
commite15bda603a9aad3564c46071c07b299703ec0f71 (patch)
tree5e1c3e167d9f0e4a5aedb2292c9394a6fb569939 /target/linux/ramips/dts
parentfe591f2fe2e15adf6a9c263fd86bb6924a803eb1 (diff)
downloadupstream-e15bda603a9aad3564c46071c07b299703ec0f71.tar.gz
upstream-e15bda603a9aad3564c46071c07b299703ec0f71.tar.bz2
upstream-e15bda603a9aad3564c46071c07b299703ec0f71.zip
ramips: rework network settings for HC5861
dts: disable port4 and leave it ephy mode because it connect to nothing switch port5 connected to GE port we use it as wan port Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
Diffstat (limited to 'target/linux/ramips/dts')
-rw-r--r--target/linux/ramips/dts/HC5861.dts27
1 files changed, 10 insertions, 17 deletions
diff --git a/target/linux/ramips/dts/HC5861.dts b/target/linux/ramips/dts/HC5861.dts
index 09e2383e3a..76b2ce1088 100644
--- a/target/linux/ramips/dts/HC5861.dts
+++ b/target/linux/ramips/dts/HC5861.dts
@@ -72,15 +72,9 @@
status = "okay";
mtd-mac-address = <&factory 0x4>;
pinctrl-names = "default";
- pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
+ pinctrl-0 = <&rgmii1_pins &mdio_pins>;
mediatek,portmap = "wllll";
- port@4 {
- status = "okay";
- phy-handle = <&phy4>;
- phy-mode = "rgmii";
- };
-
port@5 {
status = "okay";
phy-handle = <&phy5>;
@@ -90,11 +84,6 @@
mdio-bus {
status = "okay";
- phy4: ethernet-phy@4 {
- reg = <4>;
- phy-mode = "rgmii";
- };
-
phy5: ethernet-phy@5 {
reg = <5>;
phy-mode = "rgmii";
@@ -102,18 +91,22 @@
};
};
-&gsw {
- mediatek,port4 = "gmac";
-};
-
&pcie {
status = "okay";
};
&pcie0 {
- mt76@0,0 {
+ wifi@0,0 {
+ compatible = "pci14c3,7662";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
ieee80211-freq-limit = <5000000 6000000>;
};
};
+
+&state_default {
+ gpio {
+ ralink,group = "uartf", "wled", "rgmii2", "ephy";
+ ralink,function = "gpio";
+ };
+};