From 4e2ccca26dae73d2b7b2858da412da23cd67210c Mon Sep 17 00:00:00 2001
From: Weijie Gao <weijie.gao@mediatek.com>
Date: Wed, 25 Sep 2019 17:45:41 +0800
Subject: [PATCH] dts: mtmips: add default pinctrl to eth nodes for all boards

This patch adds default eth pinctrl for all boards.

There are two pinctrl nodes used for two scenarios:
ephy_iot_mode    - for IOT boards which have only one port (PHY0)
ephy_router_mode - For routers which have more than one ports

Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
---
 arch/mips/dts/gardena-smart-gateway-mt7688.dts | 2 ++
 arch/mips/dts/linkit-smart-7688.dts            | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/arch/mips/dts/gardena-smart-gateway-mt7688.dts b/arch/mips/dts/gardena-smart-gateway-mt7688.dts
index 987824a76c..b7b5a24058 100644
--- a/arch/mips/dts/gardena-smart-gateway-mt7688.dts
+++ b/arch/mips/dts/gardena-smart-gateway-mt7688.dts
@@ -123,5 +123,7 @@
 };
 
 &eth {
+	pinctrl-names = "default";
+	pinctrl-0 = <&ephy_iot_mode>;
 	mediatek,poll-link-phy = <0>;
 };
diff --git a/arch/mips/dts/linkit-smart-7688.dts b/arch/mips/dts/linkit-smart-7688.dts
index 740b73b3d1..f154aae190 100644
--- a/arch/mips/dts/linkit-smart-7688.dts
+++ b/arch/mips/dts/linkit-smart-7688.dts
@@ -53,5 +53,7 @@
 };
 
 &eth {
+	pinctrl-names = "default";
+	pinctrl-0 = <&ephy_iot_mode>;
 	mediatek,poll-link-phy = <0>;
 };
-- 
2.39.5