[openwrt/openwrt] ramips: mt7620n: enable port 4 as EPHY by default

LEDE Commits lede-commits at lists.infradead.org
Tue Mar 6 10:52:30 PST 2018


mkresin pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/aa5014dd1a58aa8902f2aaf4a02b76998ac2eb2b

commit aa5014dd1a58aa8902f2aaf4a02b76998ac2eb2b
Author: Giuseppe Lippolis <giu.lippolis at gmail.com>
AuthorDate: Sat Feb 24 09:45:12 2018 +0100

    ramips: mt7620n: enable port 4 as EPHY by default
    
    According to the datasheet the mt7620n have a fixed switch configuration
    with 5 ephy (10/100) port. No RGMII configuration is possible.
    
    Drop the mdio node as well. Without RGMII, the mdio node doesn't make any
    sense
    
    Signed-off-by: Giuseppe Lippolis <giu.lippolis at gmail.com>
    [drop mdio node, enable port4 by default]
    Signed-off-by: Mathias Kresin <dev at kresin.me>
---
 target/linux/ramips/dts/mt7620n.dtsi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/target/linux/ramips/dts/mt7620n.dtsi b/target/linux/ramips/dts/mt7620n.dtsi
index 5d3c1e3..26c7d91 100644
--- a/target/linux/ramips/dts/mt7620n.dtsi
+++ b/target/linux/ramips/dts/mt7620n.dtsi
@@ -293,11 +293,11 @@
 
 		mediatek,switch = <&gsw>;
 
-		mdio-bus {
-			#address-cells = <1>;
-			#size-cells = <0>;
+		port at 4 {
+			compatible = "mediatek,mt7620a-gsw-port", "mediatek,eth-port";
+			reg = <4>;
 
-			status = "disabled";
+			status = "okay";
 		};
 	};
 
@@ -310,7 +310,7 @@
 
 		interrupt-parent = <&intc>;
 		interrupts = <17>;
-		mediatek,port4 = "gmac";
+		mediatek,port4 = "ephy";
 	};
 
 	ehci: ehci at 101c0000 {



More information about the lede-commits mailing list