diff mbox series

[V2,2/2] arm: dts: mediatek: enable sgmii mode and mt7531 switch for mt7629

Message ID 20200619111717.29291-3-Mark-MC.Lee@mediatek.com
State Superseded
Headers show
Series Enable mt7531 switch support for MT7629 | expand

Commit Message

MarkLee June 19, 2020, 11:17 a.m. UTC
This patch enable sgmii mode and mt7531 switch support in mt7629 
ethernet dts node

Signed-off-by: MarkLee <Mark-MC.Lee at mediatek.com>
---
V2: no changes
---
 arch/arm/dts/mt7629-rfb.dts | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

Comments

Tom Rini July 29, 2020, 1:43 p.m. UTC | #1
On Fri, Jun 19, 2020 at 07:17:17PM +0800, MarkLee wrote:

> This patch enable sgmii mode and mt7531 switch support in mt7629 

> ethernet dts node

> 

> Signed-off-by: MarkLee <Mark-MC.Lee@mediatek.com>


Applied to u-boot/master, thanks!

-- 
Tom
diff mbox series

Patch

diff --git a/arch/arm/dts/mt7629-rfb.dts b/arch/arm/dts/mt7629-rfb.dts
index 687fe1c029..5864f5551b 100644
--- a/arch/arm/dts/mt7629-rfb.dts
+++ b/arch/arm/dts/mt7629-rfb.dts
@@ -24,12 +24,14 @@ 
 
 &eth {
 	status = "okay";
-	mediatek,gmac-id = <1>;
-	phy-mode = "gmii";
-	phy-handle = <&phy0>;
+	mediatek,gmac-id = <0>;
+	phy-mode = "sgmii";
+	mediatek,switch = "mt7531";
+	reset-gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
 
-	phy0: ethernet-phy at 0 {
-		reg = <0>;
+	fixed-link {
+		speed = <1000>;
+		full-duplex;
 	};
 };